@farm.js/core 0.1.80 → 0.1.81

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 (358) hide show
  1. package/dist/{agent-mcp.d-BPa5n0ld.d.ts → agent-mcp.d-Cxi3214_.d.ts} +1 -1
  2. package/dist/{agent-mcp.d-DOP95Jxm.d.mts → agent-mcp.d-DMqOqnOA.d.mts} +1 -1
  3. package/dist/agent-runtime.d.mts +2 -1
  4. package/dist/agent-runtime.d.ts +2 -1
  5. package/dist/analyzer-435DCIQ6.cjs +17 -0
  6. package/dist/{analyzer-F7CWE5VA.mjs → analyzer-IC66UJCU.mjs} +3 -2
  7. package/dist/api/client.cjs +1 -1
  8. package/dist/api/client.mjs +1 -1
  9. package/dist/api/client.native.cjs +1 -1
  10. package/dist/api/client.native.mjs +1 -1
  11. package/dist/api/node.cjs +1 -1
  12. package/dist/api/node.d.mts +4 -3
  13. package/dist/api/node.d.ts +4 -3
  14. package/dist/api/node.mjs +1 -1
  15. package/dist/api/route-manager.cjs +4 -4
  16. package/dist/api/route-manager.d.mts +4 -3
  17. package/dist/api/route-manager.d.ts +4 -3
  18. package/dist/api/route-manager.mjs +3 -3
  19. package/dist/api/runtime.cjs +1 -1
  20. package/dist/api/runtime.d.mts +3 -2
  21. package/dist/api/runtime.d.ts +3 -2
  22. package/dist/api/runtime.mjs +1 -1
  23. package/dist/api.cjs +5 -5
  24. package/dist/api.d.mts +5 -4
  25. package/dist/api.d.ts +5 -4
  26. package/dist/api.mjs +4 -4
  27. package/dist/{app-manifest.d-9UD6BznX.d.mts → app-manifest.d-Bbxp5kes.d.mts} +1 -1
  28. package/dist/{app-manifest.d-CO6Iu0Hx.d.ts → app-manifest.d-C8Cswd31.d.ts} +1 -1
  29. package/dist/app-markdown.cjs +3 -3
  30. package/dist/app-markdown.d.mts +5 -4
  31. package/dist/app-markdown.d.ts +5 -4
  32. package/dist/app-markdown.mjs +2 -2
  33. package/dist/{app.d-DXeRWZK7.d.mts → app.d-BJuSurgy.d.mts} +13 -4
  34. package/dist/{app.d-DwX1ePhs.d.ts → app.d-DGIoFt5D.d.ts} +13 -4
  35. package/dist/{chunk-Q4TRGTO7.cjs → chunk-26WP75W5.cjs} +32 -16
  36. package/dist/{chunk-GCRT6GJG.mjs → chunk-2HMSSPCZ.mjs} +26 -0
  37. package/dist/{chunk-7KDCVSTR.mjs → chunk-2PFGA6PB.mjs} +2 -2
  38. package/dist/chunk-2UYYXSUS.mjs +401 -0
  39. package/dist/{chunk-G4SZC2WH.cjs → chunk-2Y2HRZQY.cjs} +431 -332
  40. package/dist/{chunk-PL7MCYYD.mjs → chunk-3AV4DCXY.mjs} +58 -358
  41. package/dist/{chunk-3GNHJ3RN.cjs → chunk-3BTN3NP7.cjs} +2 -2
  42. package/dist/{chunk-ZVSQN7NC.cjs → chunk-46UV2E7I.cjs} +40 -43
  43. package/dist/{chunk-QMR2TUVZ.cjs → chunk-52Q4OB4A.cjs} +4 -4
  44. package/dist/chunk-5MMKNW7Q.cjs +54 -0
  45. package/dist/{chunk-XZBBKZGW.mjs → chunk-5N526T7Q.mjs} +64 -33
  46. package/dist/{chunk-XY5OZQF6.cjs → chunk-ADQ2LATR.cjs} +2 -2
  47. package/dist/{chunk-7DD5TNPS.cjs → chunk-AHVF5GI2.cjs} +2 -2
  48. package/dist/{chunk-MGKWYPE3.mjs → chunk-AYDVUCXD.mjs} +1 -0
  49. package/dist/chunk-B7L24VPX.cjs +401 -0
  50. package/dist/{chunk-5VDJEKGK.cjs → chunk-BBVLOEND.cjs} +1 -1
  51. package/dist/{chunk-XF7MJSUS.mjs → chunk-BCQIXH7L.mjs} +1 -1
  52. package/dist/{chunk-44G4XHEL.mjs → chunk-BJWJP5A4.mjs} +9 -9
  53. package/dist/{chunk-GBESKA76.cjs → chunk-BSX5OGSD.cjs} +1 -1
  54. package/dist/{chunk-CNDBLUKI.mjs → chunk-BVJUFVCU.mjs} +1 -1
  55. package/dist/chunk-C5QHZ626.cjs +85 -0
  56. package/dist/{chunk-X4TSMQWF.cjs → chunk-CL7BUGVB.cjs} +465 -360
  57. package/dist/{chunk-RLCOWWE5.cjs → chunk-CN2JOTRO.cjs} +7 -7
  58. package/dist/{chunk-AXA2BSX3.cjs → chunk-CPZZBCPO.cjs} +22 -21
  59. package/dist/chunk-D2VAANBS.mjs +48 -0
  60. package/dist/{chunk-JGEN2FIT.mjs → chunk-D77OGI6X.mjs} +1 -1
  61. package/dist/{chunk-4H4ZXUNB.cjs → chunk-DJ3PVHTW.cjs} +3 -3
  62. package/dist/{chunk-ZPEZXQTM.cjs → chunk-E3HBD2K3.cjs} +2 -2
  63. package/dist/{chunk-Q4YEAWUK.mjs → chunk-ECVSRE4Y.mjs} +3 -2
  64. package/dist/chunk-EZYKV24V.mjs +385 -0
  65. package/dist/{chunk-TVCFY3KK.cjs → chunk-FB4CWSC2.cjs} +12 -12
  66. package/dist/{chunk-IYFBLWXU.cjs → chunk-FULX5RYX.cjs} +61 -361
  67. package/dist/{chunk-5OAN7BG5.cjs → chunk-FYZD7DUS.cjs} +4 -4
  68. package/dist/{chunk-RQBGHHOQ.mjs → chunk-GY63XD6K.mjs} +1 -1
  69. package/dist/{chunk-HNUBRUFQ.cjs → chunk-HQEYZSF3.cjs} +4 -3
  70. package/dist/{chunk-MDEFTF63.mjs → chunk-HTNJ7A4D.mjs} +25 -28
  71. package/dist/chunk-I4WZRG73.mjs +54 -0
  72. package/dist/{chunk-MUZHULW2.mjs → chunk-ICOJ2BC6.mjs} +23 -7
  73. package/dist/{chunk-V73Y4UBL.mjs → chunk-IM3UINTZ.mjs} +1 -1
  74. package/dist/{chunk-MNIR7I7B.mjs → chunk-INKVDO42.mjs} +1 -1
  75. package/dist/{chunk-ZDYYZX73.mjs → chunk-IPG6B25T.mjs} +194 -89
  76. package/dist/{chunk-HEDGTXXB.cjs → chunk-JB4BHRFK.cjs} +17 -17
  77. package/dist/{chunk-XKUKWMGX.cjs → chunk-JCYDWJVO.cjs} +3 -3
  78. package/dist/{chunk-SVCUSOEF.mjs → chunk-KR5DF7WK.mjs} +1 -1
  79. package/dist/{chunk-COTFX4GT.mjs → chunk-LTOT5KVJ.mjs} +1 -1
  80. package/dist/{chunk-67MZTLTF.cjs → chunk-M6DAIE4T.cjs} +27 -1
  81. package/dist/{chunk-LVGB5PYK.cjs → chunk-MOGRRZMW.cjs} +17 -17
  82. package/dist/{chunk-MZ5QGWRW.mjs → chunk-N3VMHPIY.mjs} +2 -2
  83. package/dist/{chunk-GBW5DU7V.mjs → chunk-NOYKBGUK.mjs} +376 -277
  84. package/dist/{chunk-CCMP4JD2.cjs → chunk-NSLRK5DK.cjs} +1 -1
  85. package/dist/{chunk-WJ2O2MPP.cjs → chunk-OIWDEDUO.cjs} +394 -363
  86. package/dist/{chunk-K3XKEZR6.mjs → chunk-ONSZP5JK.mjs} +1 -1
  87. package/dist/{chunk-SDICLSQU.cjs → chunk-OUDNUFVR.cjs} +10 -10
  88. package/dist/{chunk-3XTRT3MB.mjs → chunk-PO5MZIWK.mjs} +1 -1
  89. package/dist/{chunk-EG5YBYHO.mjs → chunk-POL5RCVU.mjs} +1 -1
  90. package/dist/{chunk-ASYOWPSR.cjs → chunk-PWDBWXQI.cjs} +2 -1
  91. package/dist/{chunk-7YLDUB4R.cjs → chunk-QCKSYYXK.cjs} +7 -7
  92. package/dist/{chunk-57QAQU4F.mjs → chunk-QRNYSISP.mjs} +1 -1
  93. package/dist/{chunk-PRL7FXG4.cjs → chunk-RDNKQ5MK.cjs} +12 -13
  94. package/dist/{chunk-3JQBQG7K.mjs → chunk-RZ6XUEQS.mjs} +2 -2
  95. package/dist/{chunk-QHAISITM.mjs → chunk-S3IWDDQ3.mjs} +1 -1
  96. package/dist/{chunk-EGHPFXPZ.cjs → chunk-SAPG45RA.cjs} +23 -23
  97. package/dist/{chunk-YN3YMSKD.mjs → chunk-TLSGRK7E.mjs} +3 -3
  98. package/dist/chunk-UDMBUTJD.mjs +85 -0
  99. package/dist/{chunk-NJ4OASLP.mjs → chunk-UF4BNKKJ.mjs} +1 -1
  100. package/dist/{chunk-WHEQJN4G.cjs → chunk-UGD53SNO.cjs} +2 -2
  101. package/dist/{chunk-WBPVLCNE.mjs → chunk-VPGEYX5Y.mjs} +4 -4
  102. package/dist/chunk-VS7HLH4S.cjs +385 -0
  103. package/dist/{chunk-ANZLZNNX.cjs → chunk-W6C3LEXX.cjs} +3 -3
  104. package/dist/chunk-WMRGIQTA.cjs +48 -0
  105. package/dist/{chunk-52LTENRE.cjs → chunk-WOAXQ5MZ.cjs} +9 -9
  106. package/dist/{chunk-C6HGUTXB.mjs → chunk-XBSIGZ4J.mjs} +2 -3
  107. package/dist/{chunk-TS3ZHJN5.cjs → chunk-XOGCNKB7.cjs} +3 -3
  108. package/dist/{chunk-KEU55O2D.mjs → chunk-XOXCQGAF.mjs} +7 -6
  109. package/dist/{chunk-4MIDUSIX.mjs → chunk-YH7ENV3K.mjs} +14 -14
  110. package/dist/{chunk-2RRTOKRZ.mjs → chunk-YHM4PXJY.mjs} +1 -1
  111. package/dist/{chunk-A5D3UMLJ.mjs → chunk-YSU3WCW6.mjs} +1 -1
  112. package/dist/{chunk-4STJ6LGR.mjs → chunk-Z3RM3VA2.mjs} +1 -1
  113. package/dist/{chunk-DVHFIETW.cjs → chunk-ZIYJWJV2.cjs} +13 -13
  114. package/dist/{chunk-Z4SMFUZ7.cjs → chunk-ZKNXCRUQ.cjs} +7 -7
  115. package/dist/{cli-runtime.d-DPNTN-JV.d.mts → cli-runtime.d-D8O1v2_X.d.mts} +5 -5
  116. package/dist/{cli-runtime.d-8BhZy_wr.d.ts → cli-runtime.d-hf4L1MNP.d.ts} +5 -5
  117. package/dist/{client-component.d-CkDcob6D.d.ts → client-component.d-CX8UCQh-.d.ts} +1 -1
  118. package/dist/{client-component.d-CMCdyAr8.d.mts → client-component.d-DFwUHlOz.d.mts} +1 -1
  119. package/dist/{client-plugins.d-WcMwOZGZ.d.mts → client-plugins.d-BflSNO-b.d.mts} +2 -13
  120. package/dist/{client-plugins.d-BYIovYqX.d.ts → client-plugins.d-qWp8hNwd.d.ts} +2 -13
  121. package/dist/client-plugins.d.mts +2 -1
  122. package/dist/client-plugins.d.ts +2 -1
  123. package/dist/client.cjs +9 -8
  124. package/dist/client.d.mts +20 -151
  125. package/dist/client.d.ts +20 -151
  126. package/dist/client.mjs +8 -7
  127. package/dist/config.d.mts +2 -1
  128. package/dist/config.d.ts +2 -1
  129. package/dist/desktop.d.mts +3 -2
  130. package/dist/desktop.d.ts +3 -2
  131. package/dist/{devtools-JJOYTIMS.cjs → devtools-EI5N366Z.cjs} +9 -9
  132. package/dist/{devtools-F3FDFV26.mjs → devtools-XJHODO5H.mjs} +7 -7
  133. package/dist/docs.cjs +9 -9
  134. package/dist/docs.d.mts +4 -3
  135. package/dist/docs.d.ts +4 -3
  136. package/dist/docs.mjs +8 -8
  137. package/dist/environment/vite.cjs +7 -6
  138. package/dist/environment/vite.mjs +6 -5
  139. package/dist/{handler.d-BwdOyc9x.d.ts → handler.d-C2oRihfa.d.ts} +1 -1
  140. package/dist/{handler.d-s3IM6pbJ.d.mts → handler.d-DoH5Krkq.d.mts} +1 -1
  141. package/dist/{headers.d-BR-OXrqQ.d.mts → headers.d-BrX53wFQ.d.mts} +1 -1
  142. package/dist/{headers.d-CAW4wPey.d.ts → headers.d-Dj0mfYpb.d.ts} +1 -1
  143. package/dist/index.cjs +58 -56
  144. package/dist/{index.d-ah2c89Wu.d.ts → index.d-Dhc2scRl.d.ts} +1 -1
  145. package/dist/{index.d-BEVK61zS.d.mts → index.d-DzDHOttz.d.mts} +1 -1
  146. package/dist/index.d.mts +25 -23
  147. package/dist/index.d.ts +25 -23
  148. package/dist/index.mjs +62 -60
  149. package/dist/instrumentation.cjs +3 -3
  150. package/dist/instrumentation.mjs +2 -2
  151. package/dist/integrations/orm.d.mts +2 -1
  152. package/dist/integrations/orm.d.ts +2 -1
  153. package/dist/integrations.d.mts +2 -1
  154. package/dist/integrations.d.ts +2 -1
  155. package/dist/internal/app-markdown-runtime.cjs +2 -2
  156. package/dist/internal/app-markdown-runtime.d.mts +12 -5
  157. package/dist/internal/app-markdown-runtime.d.ts +12 -5
  158. package/dist/internal/app-markdown-runtime.mjs +1 -1
  159. package/dist/internal/build-runtime.cjs +41 -40
  160. package/dist/internal/build-runtime.d.mts +5 -4
  161. package/dist/internal/build-runtime.d.ts +5 -4
  162. package/dist/internal/build-runtime.mjs +40 -39
  163. package/dist/internal/cli-runtime.cjs +19 -19
  164. package/dist/internal/cli-runtime.d.mts +8 -7
  165. package/dist/internal/cli-runtime.d.ts +8 -7
  166. package/dist/internal/cli-runtime.mjs +20 -20
  167. package/dist/internal/client-error-overlay.cjs +4 -4
  168. package/dist/internal/client-error-overlay.mjs +1 -1
  169. package/dist/internal/client-runtime.cjs +76 -15
  170. package/dist/internal/client-runtime.d.mts +18 -7
  171. package/dist/internal/client-runtime.d.ts +18 -7
  172. package/dist/internal/client-runtime.mjs +67 -6
  173. package/dist/internal/compression-runtime.d.mts +2 -1
  174. package/dist/internal/compression-runtime.d.ts +2 -1
  175. package/dist/internal/config-runtime.cjs +9 -9
  176. package/dist/internal/config-runtime.d.mts +4 -3
  177. package/dist/internal/config-runtime.d.ts +4 -3
  178. package/dist/internal/config-runtime.mjs +8 -8
  179. package/dist/internal/docs-precompiled-runtime.cjs +1 -1
  180. package/dist/internal/docs-precompiled-runtime.mjs +1 -1
  181. package/dist/internal/form-actions.cjs +3 -3
  182. package/dist/internal/form-actions.mjs +2 -2
  183. package/dist/internal/infra-analytics-runtime.cjs +7 -7
  184. package/dist/internal/infra-analytics-runtime.mjs +5 -5
  185. package/dist/internal/island-codec.cjs +3 -3
  186. package/dist/internal/island-codec.mjs +2 -2
  187. package/dist/internal/island-value-store.d.mts +1 -1
  188. package/dist/internal/island-value-store.d.ts +1 -1
  189. package/dist/internal/islands-boot.cjs +9 -3
  190. package/dist/internal/islands-boot.mjs +9 -3
  191. package/dist/internal/islands-runtime.cjs +10 -56
  192. package/dist/internal/islands-runtime.mjs +6 -52
  193. package/dist/internal/islands-server.cjs +4 -4
  194. package/dist/internal/islands-server.mjs +3 -3
  195. package/dist/internal/islx-actions-client.cjs +36 -0
  196. package/dist/internal/islx-actions-client.d.mts +13 -0
  197. package/dist/internal/islx-actions-client.d.ts +13 -0
  198. package/dist/internal/islx-actions-client.mjs +36 -0
  199. package/dist/internal/islx-actions-server.cjs +8 -0
  200. package/dist/internal/islx-actions-server.d.mts +6 -0
  201. package/dist/internal/islx-actions-server.d.ts +6 -0
  202. package/dist/internal/islx-actions-server.mjs +8 -0
  203. package/dist/internal/islx-client.d.mts +0 -4
  204. package/dist/internal/islx-client.d.ts +0 -4
  205. package/dist/internal/isolated-boundary.cjs +3 -3
  206. package/dist/internal/isolated-boundary.d.mts +1 -1
  207. package/dist/internal/isolated-boundary.d.ts +1 -1
  208. package/dist/internal/isolated-boundary.mjs +2 -2
  209. package/dist/internal/metadata-image-runtime.cjs +4 -2
  210. package/dist/internal/metadata-image-runtime.d.mts +18 -2
  211. package/dist/internal/metadata-image-runtime.d.ts +18 -2
  212. package/dist/internal/metadata-image-runtime.mjs +5 -3
  213. package/dist/internal/native-server-fns.cjs +5 -4
  214. package/dist/internal/native-server-fns.mjs +4 -3
  215. package/dist/internal/navigation-neutral.cjs +36 -0
  216. package/dist/internal/navigation-neutral.d.mts +14 -0
  217. package/dist/internal/navigation-neutral.d.ts +14 -0
  218. package/dist/internal/navigation-neutral.mjs +36 -0
  219. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  220. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  221. package/dist/internal/production-runtime.cjs +24 -24
  222. package/dist/internal/production-runtime.d.mts +11 -10
  223. package/dist/internal/production-runtime.d.ts +11 -10
  224. package/dist/internal/production-runtime.mjs +29 -29
  225. package/dist/internal/server-tree.cjs +5 -4
  226. package/dist/internal/server-tree.d.mts +3 -4
  227. package/dist/internal/server-tree.d.ts +3 -4
  228. package/dist/internal/server-tree.mjs +4 -3
  229. package/dist/internal/spa-router.cjs +3 -3
  230. package/dist/internal/spa-router.d.mts +4 -3
  231. package/dist/internal/spa-router.d.ts +4 -3
  232. package/dist/internal/spa-router.mjs +2 -2
  233. package/dist/internal/start-manifest.d.mts +2 -1
  234. package/dist/internal/start-manifest.d.ts +2 -1
  235. package/dist/internal/vercel-edge-middleware.cjs +1 -1
  236. package/dist/internal/vercel-edge-middleware.mjs +1 -1
  237. package/dist/island-value-protocol.d-fEoc1m8e.d.mts +27 -0
  238. package/dist/island-value-protocol.d-fEoc1m8e.d.ts +27 -0
  239. package/dist/{layers-5ZD4764G.mjs → layers-744BBUY5.mjs} +2 -2
  240. package/dist/layers-XLOMMQP7.cjs +21 -0
  241. package/dist/markdown.d.mts +2 -1
  242. package/dist/markdown.d.ts +2 -1
  243. package/dist/middleware.cjs +5 -5
  244. package/dist/middleware.d.mts +2 -1
  245. package/dist/middleware.d.ts +2 -1
  246. package/dist/middleware.mjs +4 -4
  247. package/dist/{mount.d-Ylo-CmzK.d.mts → mount.d-DOaeUoWq.d.mts} +1 -1
  248. package/dist/{mount.d-DcoPFqv5.d.ts → mount.d-DwXjaOHY.d.ts} +1 -1
  249. package/dist/{native-server-fn-handler-TNVFEQW3.cjs → native-server-fn-handler-57TCQPSM.cjs} +4 -4
  250. package/dist/{native-server-fn-handler-OXFTI6V5.mjs → native-server-fn-handler-PYK65A46.mjs} +3 -3
  251. package/dist/{navigation-delegate.d-BA5h0fbE.d.mts → navigation-delegate.d-BElGUMgt.d.mts} +1 -1
  252. package/dist/{navigation-delegate.d-2MK4YSlL.d.ts → navigation-delegate.d-o3pPd9VI.d.ts} +1 -1
  253. package/dist/navigation-errors.d-DwHtoMyR.d.mts +13 -0
  254. package/dist/navigation-errors.d-DwHtoMyR.d.ts +13 -0
  255. package/dist/navigation.cjs +6 -6
  256. package/dist/navigation.d.mts +7 -6
  257. package/dist/navigation.d.ts +7 -6
  258. package/dist/navigation.mjs +5 -5
  259. package/dist/{nitro-6UOJXJZ6.cjs → nitro-XGIO6EQN.cjs} +2 -2
  260. package/dist/{nitro-C3MYDX7V.mjs → nitro-YLTGVGK4.mjs} +1 -1
  261. package/dist/node-module-bundle-TNSY5PAC.cjs +15 -0
  262. package/dist/{node-module-bundle-XPLBMXRD.mjs → node-module-bundle-ZWCQJCKA.mjs} +3 -1
  263. package/dist/plugin.cjs +32 -30
  264. package/dist/plugin.d.mts +6 -5
  265. package/dist/plugin.d.ts +6 -5
  266. package/dist/plugin.mjs +31 -29
  267. package/dist/query/client.cjs +10 -10
  268. package/dist/query/client.mjs +5 -5
  269. package/dist/{render-plan.d-2o-AG-ot.d.ts → render-plan.d-BD06tqFA.d.ts} +1 -1
  270. package/dist/{render-plan.d-ChYBMhLu.d.mts → render-plan.d-xWCRAJeR.d.mts} +1 -1
  271. package/dist/renderer/none/server.cjs +5 -1
  272. package/dist/renderer/none/server.d.mts +3 -1
  273. package/dist/renderer/none/server.d.ts +3 -1
  274. package/dist/renderer/none/server.mjs +4 -0
  275. package/dist/renderer/react/server.cjs +6 -6
  276. package/dist/renderer/react/server.mjs +3 -3
  277. package/dist/renderer-client.cjs +34 -15
  278. package/dist/renderer-client.d.mts +13 -97
  279. package/dist/renderer-client.d.ts +13 -97
  280. package/dist/renderer-client.mjs +23 -4
  281. package/dist/renderer.cjs +4 -2
  282. package/dist/renderer.d.mts +33 -5
  283. package/dist/renderer.d.ts +33 -5
  284. package/dist/renderer.mjs +3 -1
  285. package/dist/{request.d-CE0FIkiM.d.ts → request.d-DUMuWxSN.d.ts} +1 -1
  286. package/dist/{request.d-RCnCBuWq.d.mts → request.d-Dx82V8bz.d.mts} +1 -1
  287. package/dist/request.d.mts +3 -2
  288. package/dist/request.d.ts +3 -2
  289. package/dist/{route-rendering.d-BTPOM2nU.d.ts → route-rendering.d-BwBVpLtD.d.ts} +1 -1
  290. package/dist/{route-rendering.d-BZJnfKsp.d.mts → route-rendering.d-DJh6GauM.d.mts} +1 -1
  291. package/dist/{router.d-D8Vvwl4i.d.mts → router.d-BtkKDxUB.d.mts} +1 -1
  292. package/dist/{router.d-BU_WE6Ol.d.ts → router.d-CJBSG5jr.d.ts} +1 -1
  293. package/dist/routes.cjs +1 -1
  294. package/dist/routes.d.mts +2 -1
  295. package/dist/routes.d.ts +2 -1
  296. package/dist/routes.mjs +1 -1
  297. package/dist/{rsc-pipeline-JZWVSHOR.mjs → rsc-pipeline-GD6KLOIG.mjs} +13 -13
  298. package/dist/{rsc-pipeline-A3R4U26C.cjs → rsc-pipeline-H5AXQA7A.cjs} +14 -14
  299. package/dist/{runtime-SQFRHRGJ.mjs → runtime-OJ7FXFUI.mjs} +13 -13
  300. package/dist/{runtime-WZ3CHHGJ.cjs → runtime-YWQVBC3V.cjs} +15 -15
  301. package/dist/{runtime.d-DJ6IIKcF.d.ts → runtime.d-BQnD0cfC.d.ts} +1 -1
  302. package/dist/{runtime.d-BnmuOXVD.d.mts → runtime.d-C4SuZXf6.d.mts} +1 -1
  303. package/dist/server-action-security.cjs +1 -1
  304. package/dist/server-action-security.mjs +1 -1
  305. package/dist/{server-components-status.d-BzOg9M8g.d.mts → server-components-status.d-9rH7ZoEq.d.mts} +1 -1
  306. package/dist/{server-components-status.d-BeqSXcjM.d.ts → server-components-status.d-rfKOcE0N.d.ts} +1 -1
  307. package/dist/server-fn.cjs +3 -3
  308. package/dist/server-fn.mjs +2 -2
  309. package/dist/server-plugins.cjs +1 -1
  310. package/dist/server-plugins.d.mts +4 -3
  311. package/dist/server-plugins.d.ts +4 -3
  312. package/dist/server-plugins.mjs +1 -1
  313. package/dist/server-query.cjs +4 -4
  314. package/dist/server-query.mjs +3 -3
  315. package/dist/server.cjs +64 -59
  316. package/dist/server.d.mts +12 -11
  317. package/dist/server.d.ts +12 -11
  318. package/dist/server.mjs +45 -40
  319. package/dist/{spa-router.d-BOwuVkMl.d.ts → spa-router.d-DMKiBsHH.d.ts} +3 -3
  320. package/dist/{spa-router.d-CDpftSsk.d.mts → spa-router.d-V6XLSTCy.d.mts} +3 -3
  321. package/dist/{ssg.d-Bx_WFuwg.d.mts → ssg.d-BnCKPQL0.d.mts} +2 -2
  322. package/dist/{ssg.d-BTVqyq8T.d.ts → ssg.d-MNedvvMB.d.ts} +2 -2
  323. package/dist/store-core.d-Ad5biajo.d.ts +301 -0
  324. package/dist/store-core.d-BqJI1-ix.d.mts +301 -0
  325. package/dist/testing.cjs +3 -3
  326. package/dist/testing.d.mts +2 -1
  327. package/dist/testing.d.ts +2 -1
  328. package/dist/testing.mjs +3 -3
  329. package/dist/{utils.d-JkrpS-NJ.d.mts → utils.d-BEKLWa0Z.d.mts} +1 -1
  330. package/dist/{utils.d-_dvevm5s.d.ts → utils.d-BdjHKDuT.d.ts} +1 -1
  331. package/dist/version.cjs +2 -2
  332. package/dist/version.mjs +1 -1
  333. package/dist/vite.cjs +34 -30
  334. package/dist/vite.d.mts +18 -7
  335. package/dist/vite.d.ts +18 -7
  336. package/dist/vite.mjs +33 -29
  337. package/dist/workflows.cjs +2 -2
  338. package/dist/workflows.mjs +1 -1
  339. package/package.json +17 -2
  340. package/dist/analyzer-I7RBBQ65.cjs +0 -16
  341. package/dist/chunk-CQL5ZGFU.cjs +0 -50
  342. package/dist/chunk-HONTCUK6.mjs +0 -203
  343. package/dist/chunk-K6PGK7DC.cjs +0 -203
  344. package/dist/chunk-NBIVGHAT.mjs +0 -50
  345. package/dist/island-value-protocol.d-BRayRghM.d.mts +0 -12
  346. package/dist/island-value-protocol.d-BRayRghM.d.ts +0 -12
  347. package/dist/layers-HMEGUEXM.cjs +0 -21
  348. package/dist/node-module-bundle-M6BISE2P.cjs +0 -13
  349. package/dist/{chunk-EY7ED5UW.mjs → chunk-3RVLJTFZ.mjs} +3 -3
  350. package/dist/{chunk-KKVRWNDH.mjs → chunk-6WVRVGKC.mjs} +3 -3
  351. package/dist/{chunk-UJPE75GF.mjs → chunk-J2VUPCCR.mjs} +3 -3
  352. package/dist/{chunk-MQOHYV6L.cjs → chunk-LKIG5SM6.cjs} +2 -2
  353. package/dist/{chunk-UWOCYINY.cjs → chunk-OFVCWV2D.cjs} +2 -2
  354. package/dist/{chunk-3K2E55BJ.mjs → chunk-OO4GVGM3.mjs} +3 -3
  355. package/dist/{chunk-PBJ7MEOV.cjs → chunk-OZUINP2P.cjs} +2 -2
  356. package/dist/{chunk-7FQFK3OA.mjs → chunk-V7HNYR76.mjs} +3 -3
  357. package/dist/{chunk-2FK47RRZ.cjs → chunk-VGHDPEPQ.cjs} +2 -2
  358. package/dist/{chunk-CGIVCGH5.cjs → chunk-XOFJUSWC.cjs} +2 -2
package/dist/client.cjs CHANGED
@@ -13,8 +13,7 @@
13
13
 
14
14
 
15
15
 
16
- var _chunkIYFBLWXUcjs = require('./chunk-IYFBLWXU.cjs');
17
- require('./chunk-RK3YYUX6.cjs');
16
+ var _chunkFULX5RYXcjs = require('./chunk-FULX5RYX.cjs');
18
17
 
19
18
 
20
19
 
@@ -31,7 +30,7 @@ var _chunkWFVSAT7Ycjs = require('./chunk-WFVSAT7Y.cjs');
31
30
 
32
31
 
33
32
 
34
- var _chunkHEDGTXXBcjs = require('./chunk-HEDGTXXB.cjs');
33
+ var _chunkJB4BHRFKcjs = require('./chunk-JB4BHRFK.cjs');
35
34
 
36
35
 
37
36
  var _chunkC7LCTVJ2cjs = require('./chunk-C7LCTVJ2.cjs');
@@ -52,6 +51,8 @@ var _chunkC7LCTVJ2cjs = require('./chunk-C7LCTVJ2.cjs');
52
51
 
53
52
  var _chunkZNXU4E6Acjs = require('./chunk-ZNXU4E6A.cjs');
54
53
  require('./chunk-EOXPRC2C.cjs');
54
+ require('./chunk-B7L24VPX.cjs');
55
+ require('./chunk-RK3YYUX6.cjs');
55
56
  require('./chunk-N4AQNEXR.cjs');
56
57
 
57
58
 
@@ -71,7 +72,7 @@ require('./chunk-O4JYMU5N.cjs');
71
72
 
72
73
 
73
74
 
74
- var _chunkWHEQJN4Gcjs = require('./chunk-WHEQJN4G.cjs');
75
+ var _chunkUGD53SNOcjs = require('./chunk-UGD53SNO.cjs');
75
76
 
76
77
 
77
78
  var _chunkJIBEFLQ7cjs = require('./chunk-JIBEFLQ7.cjs');
@@ -86,7 +87,6 @@ require('./chunk-MPU5DOXX.cjs');
86
87
 
87
88
 
88
89
  var _chunkOO7DYIJDcjs = require('./chunk-OO7DYIJD.cjs');
89
- require('./chunk-WKVYF2B5.cjs');
90
90
  require('./chunk-OOZEU5KK.cjs');
91
91
 
92
92
 
@@ -98,10 +98,11 @@ require('./chunk-PO5MXV5X.cjs');
98
98
  require('./chunk-HLYRXN2I.cjs');
99
99
  require('./chunk-L6E5BSNU.cjs');
100
100
  require('./chunk-PMJSG4JS.cjs');
101
+ require('./chunk-WKVYF2B5.cjs');
101
102
  require('./chunk-CIY74JLV.cjs');
102
103
  require('./chunk-RWR7SMD7.cjs');
103
104
  require('./chunk-Y3DO7BIJ.cjs');
104
- require('./chunk-CQL5ZGFU.cjs');
105
+ require('./chunk-C5QHZ626.cjs');
105
106
  require('./chunk-6FXBJPF5.cjs');
106
107
  require('./chunk-DBYNZIIQ.cjs');
107
108
  require('./chunk-NLBHLPEO.cjs');
@@ -111,11 +112,11 @@ require('./chunk-AOKXITZ6.cjs');
111
112
  require('./chunk-R5U7OIPI.cjs');
112
113
  require('./chunk-DXUXQP2T.cjs');
113
114
  require('./chunk-UZCMMJJT.cjs');
114
- require('./chunk-3BIASUGR.cjs');
115
115
  require('./chunk-7JUIK547.cjs');
116
116
  require('./chunk-GYJT2U7J.cjs');
117
117
  require('./chunk-D22BUQKW.cjs');
118
118
  require('./chunk-ML4TOUZP.cjs');
119
+ require('./chunk-3BIASUGR.cjs');
119
120
  require('./chunk-UZM3PDKK.cjs');
120
121
 
121
122
 
@@ -177,4 +178,4 @@ require('./chunk-UZM3PDKK.cjs');
177
178
 
178
179
 
179
180
 
180
- exports.APIClientError = _chunkZNXU4E6Acjs.APIClientError; exports.FARM_CACHE_INVALIDATION_CHANNEL = _chunkIYFBLWXUcjs.FARM_CACHE_INVALIDATION_CHANNEL; exports.FARM_CLIENT_CACHE_PERSIST_VERSION = _chunkIYFBLWXUcjs.FARM_CLIENT_CACHE_PERSIST_VERSION; exports.FarmClientPluginManager = _chunkOO7DYIJDcjs.FarmClientPluginManager; exports.FetcherInputError = _chunkIYFBLWXUcjs.FetcherInputError; exports.IntegrationClientError = _chunkZNXU4E6Acjs.IntegrationClientError; exports.Link = _chunkIYFBLWXUcjs.Link; exports.SPARouter = _chunkWHEQJN4Gcjs.SPARouter; exports.api = _chunkHA7YRO53cjs.api; exports.clearPersistedCache = _chunkIYFBLWXUcjs.clearPersistedCache; exports.createAPIClient = _chunkZNXU4E6Acjs.createAPIClient; exports.createApiClients = _chunkZNXU4E6Acjs.createApiClients; exports.createClientPluginManager = _chunkOO7DYIJDcjs.createClientPluginManager; exports.createIntegrationApi = _chunkZNXU4E6Acjs.createIntegrationApi; exports.createIntegrationClient = _chunkZNXU4E6Acjs.createIntegrationClient; exports.createIntegrationClients = _chunkZNXU4E6Acjs.createIntegrationClients; exports.createIntegrationServerClient = _chunkZNXU4E6Acjs.createIntegrationServerClient; exports.createIntegrations = _chunkZNXU4E6Acjs.createIntegrations; exports.createServerAPIClient = _chunkZNXU4E6Acjs.createServerAPIClient; exports.createStore = _chunkIYFBLWXUcjs.createStore; exports.defineClientCacheAdapter = _chunkIYFBLWXUcjs.defineClientCacheAdapter; exports.defineIntegrationAPI = _chunkHA7YRO53cjs.defineIntegrationAPI; exports.defineIntegrationAPIOperation = _chunkHA7YRO53cjs.defineIntegrationAPIOperation; exports.delegateNavigation = _chunkJIBEFLQ7cjs.delegateNavigation; exports.enableCrossTabCacheInvalidation = _chunkIYFBLWXUcjs.enableCrossTabCacheInvalidation; exports.enableLiveCacheInvalidation = _chunkIYFBLWXUcjs.enableLiveCacheInvalidation; exports.endpoint = _chunkHA7YRO53cjs.endpoint; exports.fetchServerQuery = _chunkEX6ZSN5Pcjs.fetchServerQuery; exports.getFarmClientDataCache = _chunkI2BYNELAcjs.getFarmClientDataCache; exports.getIntegrationAPIManifest = _chunkZNXU4E6Acjs.getIntegrationAPIManifest; exports.getRouter = _chunkWHEQJN4Gcjs.getRouter; exports.getTheme = _chunkWEGAVN37cjs.getTheme; exports.initConfiguredClientCachePersistence = _chunkIYFBLWXUcjs.initConfiguredClientCachePersistence; exports.initPersistedClientCache = _chunkIYFBLWXUcjs.initPersistedClientCache; exports.installChunkErrorRecovery = _chunkIBEHVSU4cjs.installChunkErrorRecovery; exports.integrationClients = _chunkZNXU4E6Acjs.integrationClients; exports.integrationsClient = _chunkZNXU4E6Acjs.integrationsClient; exports.integrationsServer = _chunkZNXU4E6Acjs.integrationsServer; exports.isChunkLoadError = _chunkIBEHVSU4cjs.isChunkLoadError; exports.navigateTo = _chunkWHEQJN4Gcjs.navigateTo; exports.normalizeFarmClientCacheKey = _chunkI2BYNELAcjs.normalizeFarmClientCacheKey; exports.prefetch = _chunkWHEQJN4Gcjs.prefetch; exports.prefetchServerQuery = _chunkEX6ZSN5Pcjs.prefetchServerQuery; exports.pushState = _chunkWHEQJN4Gcjs.pushState; exports.readPageState = _chunkWHEQJN4Gcjs.readPageState; exports.replaceState = _chunkWHEQJN4Gcjs.replaceState; exports.setTheme = _chunkWEGAVN37cjs.setTheme; exports.storageClientCacheAdapter = _chunkIYFBLWXUcjs.storageClientCacheAdapter; exports.toggleTheme = _chunkWEGAVN37cjs.toggleTheme; exports.useAction = _chunkPZXYAWYGcjs.useAction; exports.useBlocker = _chunkHEDGTXXBcjs.useBlocker; exports.useFetcher = _chunkIYFBLWXUcjs.useFetcher; exports.useMutation = _chunkIYFBLWXUcjs.useMutation; exports.useNavigation = _chunkHEDGTXXBcjs.useNavigation; exports.usePageState = _chunkHEDGTXXBcjs.usePageState; exports.useRouter = _chunkHEDGTXXBcjs.useRouter; exports.useScrollRestoration = _chunkHEDGTXXBcjs.useScrollRestoration; exports.useServerQuery = _chunkWFVSAT7Ycjs.useServerQuery; exports.useTheme = _chunkC7LCTVJ2cjs.useTheme;
181
+ exports.APIClientError = _chunkZNXU4E6Acjs.APIClientError; exports.FARM_CACHE_INVALIDATION_CHANNEL = _chunkFULX5RYXcjs.FARM_CACHE_INVALIDATION_CHANNEL; exports.FARM_CLIENT_CACHE_PERSIST_VERSION = _chunkFULX5RYXcjs.FARM_CLIENT_CACHE_PERSIST_VERSION; exports.FarmClientPluginManager = _chunkOO7DYIJDcjs.FarmClientPluginManager; exports.FetcherInputError = _chunkFULX5RYXcjs.FetcherInputError; exports.IntegrationClientError = _chunkZNXU4E6Acjs.IntegrationClientError; exports.Link = _chunkFULX5RYXcjs.Link; exports.SPARouter = _chunkUGD53SNOcjs.SPARouter; exports.api = _chunkHA7YRO53cjs.api; exports.clearPersistedCache = _chunkFULX5RYXcjs.clearPersistedCache; exports.createAPIClient = _chunkZNXU4E6Acjs.createAPIClient; exports.createApiClients = _chunkZNXU4E6Acjs.createApiClients; exports.createClientPluginManager = _chunkOO7DYIJDcjs.createClientPluginManager; exports.createIntegrationApi = _chunkZNXU4E6Acjs.createIntegrationApi; exports.createIntegrationClient = _chunkZNXU4E6Acjs.createIntegrationClient; exports.createIntegrationClients = _chunkZNXU4E6Acjs.createIntegrationClients; exports.createIntegrationServerClient = _chunkZNXU4E6Acjs.createIntegrationServerClient; exports.createIntegrations = _chunkZNXU4E6Acjs.createIntegrations; exports.createServerAPIClient = _chunkZNXU4E6Acjs.createServerAPIClient; exports.createStore = _chunkFULX5RYXcjs.createStore; exports.defineClientCacheAdapter = _chunkFULX5RYXcjs.defineClientCacheAdapter; exports.defineIntegrationAPI = _chunkHA7YRO53cjs.defineIntegrationAPI; exports.defineIntegrationAPIOperation = _chunkHA7YRO53cjs.defineIntegrationAPIOperation; exports.delegateNavigation = _chunkJIBEFLQ7cjs.delegateNavigation; exports.enableCrossTabCacheInvalidation = _chunkFULX5RYXcjs.enableCrossTabCacheInvalidation; exports.enableLiveCacheInvalidation = _chunkFULX5RYXcjs.enableLiveCacheInvalidation; exports.endpoint = _chunkHA7YRO53cjs.endpoint; exports.fetchServerQuery = _chunkEX6ZSN5Pcjs.fetchServerQuery; exports.getFarmClientDataCache = _chunkI2BYNELAcjs.getFarmClientDataCache; exports.getIntegrationAPIManifest = _chunkZNXU4E6Acjs.getIntegrationAPIManifest; exports.getRouter = _chunkUGD53SNOcjs.getRouter; exports.getTheme = _chunkWEGAVN37cjs.getTheme; exports.initConfiguredClientCachePersistence = _chunkFULX5RYXcjs.initConfiguredClientCachePersistence; exports.initPersistedClientCache = _chunkFULX5RYXcjs.initPersistedClientCache; exports.installChunkErrorRecovery = _chunkIBEHVSU4cjs.installChunkErrorRecovery; exports.integrationClients = _chunkZNXU4E6Acjs.integrationClients; exports.integrationsClient = _chunkZNXU4E6Acjs.integrationsClient; exports.integrationsServer = _chunkZNXU4E6Acjs.integrationsServer; exports.isChunkLoadError = _chunkIBEHVSU4cjs.isChunkLoadError; exports.navigateTo = _chunkUGD53SNOcjs.navigateTo; exports.normalizeFarmClientCacheKey = _chunkI2BYNELAcjs.normalizeFarmClientCacheKey; exports.prefetch = _chunkUGD53SNOcjs.prefetch; exports.prefetchServerQuery = _chunkEX6ZSN5Pcjs.prefetchServerQuery; exports.pushState = _chunkUGD53SNOcjs.pushState; exports.readPageState = _chunkUGD53SNOcjs.readPageState; exports.replaceState = _chunkUGD53SNOcjs.replaceState; exports.setTheme = _chunkWEGAVN37cjs.setTheme; exports.storageClientCacheAdapter = _chunkFULX5RYXcjs.storageClientCacheAdapter; exports.toggleTheme = _chunkWEGAVN37cjs.toggleTheme; exports.useAction = _chunkPZXYAWYGcjs.useAction; exports.useBlocker = _chunkJB4BHRFKcjs.useBlocker; exports.useFetcher = _chunkFULX5RYXcjs.useFetcher; exports.useMutation = _chunkFULX5RYXcjs.useMutation; exports.useNavigation = _chunkJB4BHRFKcjs.useNavigation; exports.usePageState = _chunkJB4BHRFKcjs.usePageState; exports.useRouter = _chunkJB4BHRFKcjs.useRouter; exports.useScrollRestoration = _chunkJB4BHRFKcjs.useScrollRestoration; exports.useServerQuery = _chunkWFVSAT7Ycjs.useServerQuery; exports.useTheme = _chunkC7LCTVJ2cjs.useTheme;
package/dist/client.d.mts CHANGED
@@ -6,13 +6,12 @@ export { RouteActionTarget, UseActionFormProps, UseActionReturn, UseServerFnOpti
6
6
  export { UseServerQueryOptions, UseServerQueryResult, useServerQuery } from './server-query-client.mjs';
7
7
  export { a as FarmClientCacheEntry, b as FarmClientCacheKey, F as FarmClientCacheStatus, g as getFarmClientDataCache, n as normalizeFarmClientCacheKey } from './client-cache.d-di_Nasxa.mjs';
8
8
  export { F as FarmIntegrationAPI, a as FarmIntegrationAPIBodyFormat, b as FarmIntegrationAPIMethod, c as FarmIntegrationAPIOperation, d as FarmIntegrationAPIResponseFormat, e as api, f as defineIntegrationAPI, g as defineIntegrationAPIOperation, h as endpoint } from './route.d-ShmtqqVQ.mjs';
9
+ import { j as StoreState, l as StoreApi$1, k as StoreValueUpdater, S as StoreKeyListener, D as DefaultRouteHref, F as FarmLinkOptions } from './store-core.d-BqJI1-ix.mjs';
10
+ export { a as DefaultRoutePath, b as DefaultRoutePattern, E as ExternalHref, L as LinkDefaultRoute, c as LinkExternalUriSchemes, P as PrefetchBehavior, R as RouteHref, d as RouteOptionalParamValue, e as RouteParamValue, f as RouteParams, g as StoreKeysListener, h as StoreListener, i as StorePatch } from './store-core.d-BqJI1-ix.mjs';
9
11
  export { UseThemeResult, useTheme } from './theme/client.mjs';
10
- import { FarmRouterPathParams, FarmRouterPathParam, FarmRouterBuildOptions } from './router.mjs';
11
- import { c as FarmViewTransitionMode } from './spa-router.d-CDpftSsk.mjs';
12
- export { b as FarmNavigateOptions, e as FarmNavigationBlocker, F as FarmNavigationBlockerContext, f as FarmNavigationListener, h as FarmNavigationLocation, a as FarmNavigationState, S as SPARouter, j as getRouter, n as navigateTo, p as prefetch, k as pushState, r as readPageState, l as replaceState } from './spa-router.d-CDpftSsk.mjs';
13
- import { f as FarmI18nLocale } from './types.d-euATAbE4.mjs';
14
- export { U as UseBlockerOptions, a as UseBlockerReturn, b as UseRouterOptions, u as useBlocker, c as useNavigation, d as usePageState, e as useRouter, f as useScrollRestoration } from './router.d-D8Vvwl4i.mjs';
15
- export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-BA5h0fbE.mjs';
12
+ export { U as UseBlockerOptions, a as UseBlockerReturn, b as UseRouterOptions, u as useBlocker, c as useNavigation, d as usePageState, e as useRouter, f as useScrollRestoration } from './router.d-BtkKDxUB.mjs';
13
+ export { c as FarmNavigateOptions, e as FarmNavigationBlocker, F as FarmNavigationBlockerContext, f as FarmNavigationListener, h as FarmNavigationLocation, a as FarmNavigationState, b as FarmViewTransitionMode, S as SPARouter, j as getRouter, n as navigateTo, p as prefetch, k as pushState, r as readPageState, l as replaceState } from './spa-router.d-V6XLSTCy.mjs';
14
+ export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-BElGUMgt.mjs';
16
15
  export { F as FarmChunkRecoveryOptions, i as installChunkErrorRecovery, a as isChunkLoadError } from './chunk-recovery.d-lnQFzcQP.mjs';
17
16
  export { d as FarmClientHydrationCompleteEvent, e as FarmClientHydrationEvent, f as FarmClientHydrationMode, g as FarmClientHydrationSession, h as FarmClientLocation, i as FarmClientNavigationAction, j as FarmClientNavigationErrorEvent, k as FarmClientNavigationEvent, l as FarmClientNavigationLoadedEvent, m as FarmClientNavigationResolvedEvent, a as FarmClientNavigationSession, n as FarmClientPerformanceEvent, b as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle.d-OtGWAvJT.mjs';
18
17
  export { S as ServerQueryFetchOptions, f as fetchServerQuery, p as prefetchServerQuery } from './server-query-runtime.d-aP52iuL5.mjs';
@@ -21,8 +20,10 @@ import './cache.mjs';
21
20
  import './server-fn.mjs';
22
21
  import './server-fn-error.d-DrcH9cc1.mjs';
23
22
  import './server-query.mjs';
23
+ import './router.mjs';
24
24
  import './types.d-DQnyD3VD.mjs';
25
- import './client-plugins.d-WcMwOZGZ.mjs';
25
+ import './types.d-euATAbE4.mjs';
26
+ import './client-plugins.d-BflSNO-b.mjs';
26
27
  import './renderer.mjs';
27
28
  import './deployment.mjs';
28
29
  import 'http';
@@ -43,6 +44,7 @@ import './workflows.mjs';
43
44
  import './server-http.d-rAe7lAQc.mjs';
44
45
  import './cron.mjs';
45
46
  import './env.mjs';
47
+ import './navigation-errors.d-DwHtoMyR.mjs';
46
48
  import './server-action-security.mjs';
47
49
  import './layers.d-CH0bC4QL.mjs';
48
50
  import 'rolldown/utils';
@@ -51,7 +53,7 @@ import './image-config.d-ByhQ0TT7.mjs';
51
53
  import './config.d-BKIhJtmr.mjs';
52
54
  import './font.mjs';
53
55
  import './island.d-CfGru1MO.mjs';
54
- import './render-plan.d-ChYBMhLu.mjs';
56
+ import './render-plan.d-xWCRAJeR.mjs';
55
57
 
56
58
  type MutationStatus = "idle" | "pending" | "success" | "error";
57
59
  type AnyMutationTarget = (...args: any[]) => Promise<any>;
@@ -291,13 +293,8 @@ declare function initConfiguredClientCachePersistence(adapterModule: unknown, op
291
293
  */
292
294
  declare function clearPersistedCache(): Promise<void>;
293
295
 
294
- type StoreState = Record<string, any>;
295
- type StoreValueUpdater<T> = T | ((previous: T) => T);
296
- type StorePatch<T extends StoreState> = Partial<T> | ((state: T) => Partial<T>);
297
- type StoreListener<T extends StoreState> = (state: T, previousState: T) => void;
298
- type StoreKeyListener<T extends StoreState, K extends keyof T> = (value: T[K], previousValue: T[K]) => void;
299
- type StoreKeysListener<T extends StoreState, K extends keyof T> = (value: Pick<T, K>, previousValue: Pick<T, K>) => void;
300
296
  type FieldAccessor<T extends StoreState, K extends keyof T> = {
297
+ /** A React hook that returns the field's value and re-renders when it changes. */
301
298
  (): T[K];
302
299
  get(): T[K];
303
300
  set(value: StoreValueUpdater<T[K]>): T[K];
@@ -306,152 +303,24 @@ type FieldAccessor<T extends StoreState, K extends keyof T> = {
306
303
  type StoreFields<T extends StoreState> = {
307
304
  [K in keyof T]: FieldAccessor<T, K>;
308
305
  };
309
- interface StoreApi<T extends StoreState> {
306
+ /** The renderer-neutral store API plus React's `use()` hook. */
307
+ interface StoreApi<T extends StoreState> extends StoreApi$1<T> {
310
308
  use(): T;
311
309
  use<K extends keyof T>(key: K): T[K];
312
310
  use<K extends keyof T>(keys: readonly K[]): Pick<T, K>;
313
- get(): T;
314
- get<K extends keyof T>(key: K): T[K];
315
- set<K extends keyof T>(key: K, value: StoreValueUpdater<T[K]>): T[K];
316
- set(patch: StorePatch<T>): T;
317
- replace(nextState: T | ((state: T) => T)): T;
318
- reset(): T;
319
- subscribe(listener: StoreListener<T>): () => void;
320
- subscribe<K extends keyof T>(key: K, listener: StoreKeyListener<T, K>): () => void;
321
- subscribe<K extends keyof T>(keys: readonly K[], listener: StoreKeysListener<T, K>): () => void;
322
311
  }
323
312
  type Store<T extends StoreState, TMethods extends Record<string, any> = {}> = StoreApi<T> & StoreFields<T> & TMethods;
324
- declare function createStore<T extends StoreState, TMethods extends Record<string, any> = {}>(initialState: T, extend?: (store: Store<T>) => TMethods): Store<T, TMethods>;
325
-
326
- /**
327
- * Prefetch strategy (TanStack Router–style):
328
- * - "intent": prefetch on hover and touchstart (with prefetchDelay)
329
- * - "viewport": prefetch when link enters viewport (IntersectionObserver)
330
- * - "render": prefetch as soon as the link is mounted
331
- * - "none" | false: no prefetch
332
- */
333
- type PrefetchBehavior = false | "intent" | "viewport" | "render" | "none";
334
- /** @internal Legacy prefetch mode for backward compatibility */
335
- type PrefetchLegacy = boolean | "hover" | "viewport" | "none";
336
313
  /**
337
- * Augment this interface via the generated farm.d.ts so Link href is typed
338
- * without passing a generic. Defaults to string when not augmented.
314
+ * Creates an in-memory store with React hooks: `store.use()`, `store.use(key)`, and field
315
+ * accessors such as `store.count()`. Other renderers import the same store, without the hooks,
316
+ * from `@farm.js/core/renderer-client`.
339
317
  */
340
- interface LinkDefaultRoute {
341
- }
342
- type DefaultRoutePath = LinkDefaultRoute extends {
343
- _: infer TRoute extends string;
344
- } ? TRoute : string;
345
- type DefaultRoutePattern = LinkDefaultRoute extends {
346
- pattern: infer TRoute extends string;
347
- } ? TRoute : DefaultRoutePath;
348
- type DefaultRouteHref = DefaultRoutePath | DefaultRoutePattern;
349
- type RouteHref<TRoute extends string> = TRoute | `${TRoute}?${string}` | `${TRoute}#${string}` | `${TRoute}?${string}#${string}`;
350
- type RouteParamValue = Exclude<FarmRouterPathParam, null | undefined>;
351
- type RouteOptionalParamValue = FarmRouterPathParam;
352
- type RouteParams<TRoute extends string> = string extends TRoute ? FarmRouterPathParams : ExtractRouteParams<StripRouteSuffix<TRoute>>;
353
- /** URI schemes recognized as typed external Link targets. Apps may augment this interface. */
354
- interface LinkExternalUriSchemes {
355
- about: true;
356
- blob: true;
357
- data: true;
358
- file: true;
359
- ftp: true;
360
- ftps: true;
361
- geo: true;
362
- git: true;
363
- http: true;
364
- https: true;
365
- im: true;
366
- intent: true;
367
- irc: true;
368
- ircs: true;
369
- magnet: true;
370
- mailto: true;
371
- market: true;
372
- sms: true;
373
- ssh: true;
374
- tel: true;
375
- urn: true;
376
- vscode: true;
377
- webcal: true;
378
- ws: true;
379
- wss: true;
380
- }
381
- type ExternalUriScheme = Extract<keyof LinkExternalUriSchemes, string>;
382
- type UriSchemeLetter = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
383
- type UriSchemeStart = UriSchemeLetter | Uppercase<UriSchemeLetter>;
384
- type UriSchemeCharacter = UriSchemeStart | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "+" | "-" | ".";
385
- type IsUriSchemeTail<TValue extends string> = TValue extends "" ? true : TValue extends `${infer First}${infer Rest}` ? First extends UriSchemeCharacter ? IsUriSchemeTail<Rest> : false : false;
386
- type IsUriScheme<TValue extends string> = TValue extends `${infer First}${infer Rest}` ? First extends UriSchemeStart ? IsUriSchemeTail<Rest> : false : false;
387
- type KnownExternalHref = `//${string}` | `${ExternalUriScheme}:${string}`;
388
- /** External URLs; these are never type-checked as routes. */
389
- type ExternalHref<THref extends string = string> = string extends THref ? KnownExternalHref : THref extends `//${string}` ? THref : THref extends `${infer Scheme}:${string}` ? IsUriScheme<Scheme> extends true ? THref : never : never;
390
- type StripRouteSuffix<TRoute extends string> = TRoute extends `${infer Path}?${string}` ? StripRouteSuffix<Path> : TRoute extends `${infer Path}#${string}` ? StripRouteSuffix<Path> : TRoute;
391
- type ExtractRouteParams<TRoute extends string> = Simplify<ExtractOptionalCatchAllParams<TRoute> & ExtractCatchAllParams<TRoute> & ExtractDynamicParams<TRoute>>;
392
- type ExtractOptionalCatchAllParams<TRoute extends string> = TRoute extends `${string}[[...${infer Param}]]${infer Rest}` ? {
393
- [Key in Param]?: RouteOptionalParamValue;
394
- } & ExtractOptionalCatchAllParams<Rest> : {};
395
- type ExtractCatchAllParams<TRoute extends string> = TRoute extends `${string}[...${infer Param}]${infer Rest}` ? Param extends `[...${string}` ? ExtractCatchAllParams<Rest> : {
396
- [Key in Param]: RouteParamValue;
397
- } & ExtractCatchAllParams<Rest> : {};
398
- type ExtractDynamicParams<TRoute extends string> = TRoute extends `${string}[${infer Param}]${infer Rest}` ? Param extends `...${string}` | `[...${string}` ? ExtractDynamicParams<Rest> : {
399
- [Key in Param]: RouteParamValue;
400
- } & ExtractDynamicParams<Rest> : {};
401
- type Simplify<T> = {
402
- [Key in keyof T]: T[Key];
403
- } & {};
404
- type HasRouteParams<TRoute extends string> = keyof RouteParams<TRoute> extends never ? false : true;
405
- type RoutesWithRequiredParams<TRoute extends string> = TRoute extends string ? HasRouteParams<TRoute> extends true ? TRoute : never : never;
406
- type LinkRouteParamsProps<TRoute extends string> = string extends TRoute ? {
407
- params?: FarmRouterPathParams;
408
- } : HasRouteParams<TRoute> extends true ? {
409
- params: RouteParams<TRoute>;
410
- } : {
411
- params?: FarmRouterPathParams;
412
- };
413
- type LinkRouteTargetProps<TRoute extends string> = [RoutesWithRequiredParams<TRoute>] extends [
414
- never
415
- ] ? {
416
- /** Internal route path with all params already resolved. */
417
- href: RouteHref<TRoute>;
418
- params?: FarmRouterPathParams;
419
- } : TRoute extends string ? {
420
- /** Internal route path or route pattern. */
421
- href: RouteHref<TRoute>;
422
- } & LinkRouteParamsProps<TRoute> : never;
423
- type LinkExternalTargetProps<THref extends string = string> = {
424
- /** External URL; these are never type-checked as app routes. */
425
- href: ExternalHref<THref>;
426
- params?: never;
427
- };
428
- type LinkTargetProps<TRoute extends string, THref extends string> = LinkExternalTargetProps<THref> | LinkRouteTargetProps<TRoute>;
429
- type LinkProps<TRoute extends string = DefaultRouteHref, THref extends string = string> = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & LinkTargetProps<TRoute, THref> & {
430
- /**
431
- * When to prefetch. TanStack-style: "intent" (hover+touch), "viewport", "render", or "none".
432
- * Legacy: true (intent+viewport), "hover" (intent), "viewport", false/"none".
433
- */
434
- prefetch?: PrefetchBehavior | PrefetchLegacy;
435
- /** Search params appended after route params are resolved. */
436
- query?: FarmRouterBuildOptions["query"];
437
- /** Hash appended after route params and search params are resolved. */
438
- hash?: string;
439
- /** Add a trailing slash to the generated internal href. */
440
- trailingSlash?: boolean;
441
- /** Delay in ms before intent-based prefetch (hover/touch). Default 50. */
442
- prefetchDelay?: number;
443
- /** Replace current history entry instead of pushing */
444
- replace?: boolean;
445
- /** Scroll to top after navigation (default: true) */
446
- scroll?: boolean;
447
- /** Wrap this SPA navigation in a browser View Transition when supported. */
448
- viewTransition?: FarmViewTransitionMode;
449
- /** Preserve the active locale by default, or navigate using this locale. */
450
- locale?: FarmI18nLocale;
451
- };
318
+ declare function createStore<T extends StoreState, TMethods extends Record<string, any> = {}>(initialState: T, extend?: (store: Store<T>) => TMethods): Store<T, TMethods>;
319
+
320
+ type LinkProps<TRoute extends string = DefaultRouteHref, THref extends string = string> = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & FarmLinkOptions<TRoute, THref>;
452
321
  type LinkComponentType = <TRoute extends string = DefaultRouteHref, THref extends string = string>(props: LinkProps<TRoute, THref> & {
453
322
  ref?: React__default.ForwardedRef<HTMLAnchorElement>;
454
323
  }) => React__default.ReactElement;
455
324
  declare const Link: LinkComponentType;
456
325
 
457
- export { type AnyMutationTarget, type ClientCachePersistenceOptions, type CrossTabCacheInvalidationOptions, type DefaultRouteHref, type DefaultRoutePath, type DefaultRoutePattern, type ExternalHref, FARM_CACHE_INVALIDATION_CHANNEL, FARM_CLIENT_CACHE_PERSIST_VERSION, type FarmClientCacheAdapter, type FarmClientCacheStorage, FarmViewTransitionMode, type FetcherFormDataContext, type FetcherFormProps, FetcherInputError, type FetcherState, type FetcherSubmit, type FetcherSubmitAsync, type InferMutationData, type InferMutationError, type InferMutationVariables, Link, type LinkDefaultRoute, type LinkExternalUriSchemes, type LinkProps, type LiveCacheInvalidationOptions, type MutationAsync, type MutationNetworkMode, type MutationOptimisticContext, type MutationStatus, type MutationTrigger, type PersistedEntry, type PrefetchBehavior, type RouteHref, type RouteOptionalParamValue, type RouteParamValue, type RouteParams, type Store, type StoreApi, type StoreFields, type StoreKeyListener, type StoreKeysListener, type StoreListener, type StorePatch, type StoreState, type StoreValueUpdater, type UseFetcherOptions, type UseFetcherReturn, type UseMutationOptions, type UseMutationReturn, clearPersistedCache, createStore, defineClientCacheAdapter, enableCrossTabCacheInvalidation, enableLiveCacheInvalidation, initConfiguredClientCachePersistence, initPersistedClientCache, storageClientCacheAdapter, useFetcher, useMutation };
326
+ export { type AnyMutationTarget, type ClientCachePersistenceOptions, type CrossTabCacheInvalidationOptions, DefaultRouteHref, FARM_CACHE_INVALIDATION_CHANNEL, FARM_CLIENT_CACHE_PERSIST_VERSION, type FarmClientCacheAdapter, type FarmClientCacheStorage, type FetcherFormDataContext, type FetcherFormProps, FetcherInputError, type FetcherState, type FetcherSubmit, type FetcherSubmitAsync, type InferMutationData, type InferMutationError, type InferMutationVariables, Link, type LinkProps, type LiveCacheInvalidationOptions, type MutationAsync, type MutationNetworkMode, type MutationOptimisticContext, type MutationStatus, type MutationTrigger, type PersistedEntry, type Store, type StoreApi, type StoreFields, StoreKeyListener, StoreState, StoreValueUpdater, type UseFetcherOptions, type UseFetcherReturn, type UseMutationOptions, type UseMutationReturn, clearPersistedCache, createStore, defineClientCacheAdapter, enableCrossTabCacheInvalidation, enableLiveCacheInvalidation, initConfiguredClientCachePersistence, initPersistedClientCache, storageClientCacheAdapter, useFetcher, useMutation };
package/dist/client.d.ts CHANGED
@@ -6,13 +6,12 @@ export { RouteActionTarget, UseActionFormProps, UseActionReturn, UseServerFnOpti
6
6
  export { UseServerQueryOptions, UseServerQueryResult, useServerQuery } from './server-query-client.js';
7
7
  export { a as FarmClientCacheEntry, b as FarmClientCacheKey, F as FarmClientCacheStatus, g as getFarmClientDataCache, n as normalizeFarmClientCacheKey } from './client-cache.d-Deoqq-nM.js';
8
8
  export { F as FarmIntegrationAPI, a as FarmIntegrationAPIBodyFormat, b as FarmIntegrationAPIMethod, c as FarmIntegrationAPIOperation, d as FarmIntegrationAPIResponseFormat, e as api, f as defineIntegrationAPI, g as defineIntegrationAPIOperation, h as endpoint } from './route.d-Cd4Fi6BA.js';
9
+ import { j as StoreState, l as StoreApi$1, k as StoreValueUpdater, S as StoreKeyListener, D as DefaultRouteHref, F as FarmLinkOptions } from './store-core.d-Ad5biajo.js';
10
+ export { a as DefaultRoutePath, b as DefaultRoutePattern, E as ExternalHref, L as LinkDefaultRoute, c as LinkExternalUriSchemes, P as PrefetchBehavior, R as RouteHref, d as RouteOptionalParamValue, e as RouteParamValue, f as RouteParams, g as StoreKeysListener, h as StoreListener, i as StorePatch } from './store-core.d-Ad5biajo.js';
9
11
  export { UseThemeResult, useTheme } from './theme/client.js';
10
- import { FarmRouterPathParams, FarmRouterPathParam, FarmRouterBuildOptions } from './router.js';
11
- import { c as FarmViewTransitionMode } from './spa-router.d-BOwuVkMl.js';
12
- export { b as FarmNavigateOptions, e as FarmNavigationBlocker, F as FarmNavigationBlockerContext, f as FarmNavigationListener, h as FarmNavigationLocation, a as FarmNavigationState, S as SPARouter, j as getRouter, n as navigateTo, p as prefetch, k as pushState, r as readPageState, l as replaceState } from './spa-router.d-BOwuVkMl.js';
13
- import { f as FarmI18nLocale } from './types.d-euATAbE4.js';
14
- export { U as UseBlockerOptions, a as UseBlockerReturn, b as UseRouterOptions, u as useBlocker, c as useNavigation, d as usePageState, e as useRouter, f as useScrollRestoration } from './router.d-BU_WE6Ol.js';
15
- export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-2MK4YSlL.js';
12
+ export { U as UseBlockerOptions, a as UseBlockerReturn, b as UseRouterOptions, u as useBlocker, c as useNavigation, d as usePageState, e as useRouter, f as useScrollRestoration } from './router.d-CJBSG5jr.js';
13
+ export { c as FarmNavigateOptions, e as FarmNavigationBlocker, F as FarmNavigationBlockerContext, f as FarmNavigationListener, h as FarmNavigationLocation, a as FarmNavigationState, b as FarmViewTransitionMode, S as SPARouter, j as getRouter, n as navigateTo, p as prefetch, k as pushState, r as readPageState, l as replaceState } from './spa-router.d-DMKiBsHH.js';
14
+ export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-o3pPd9VI.js';
16
15
  export { F as FarmChunkRecoveryOptions, i as installChunkErrorRecovery, a as isChunkLoadError } from './chunk-recovery.d-lnQFzcQP.js';
17
16
  export { d as FarmClientHydrationCompleteEvent, e as FarmClientHydrationEvent, f as FarmClientHydrationMode, g as FarmClientHydrationSession, h as FarmClientLocation, i as FarmClientNavigationAction, j as FarmClientNavigationErrorEvent, k as FarmClientNavigationEvent, l as FarmClientNavigationLoadedEvent, m as FarmClientNavigationResolvedEvent, a as FarmClientNavigationSession, n as FarmClientPerformanceEvent, b as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle.d-OtGWAvJT.js';
18
17
  export { S as ServerQueryFetchOptions, f as fetchServerQuery, p as prefetchServerQuery } from './server-query-runtime.d-DXRNhX_3.js';
@@ -21,8 +20,10 @@ import './cache.js';
21
20
  import './server-fn.js';
22
21
  import './server-fn-error.d-DrcH9cc1.js';
23
22
  import './server-query.js';
23
+ import './router.js';
24
24
  import './types.d-DQnyD3VD.js';
25
- import './client-plugins.d-BYIovYqX.js';
25
+ import './types.d-euATAbE4.js';
26
+ import './client-plugins.d-qWp8hNwd.js';
26
27
  import './renderer.js';
27
28
  import './deployment.js';
28
29
  import 'http';
@@ -43,6 +44,7 @@ import './workflows.js';
43
44
  import './server-http.d-rAe7lAQc.js';
44
45
  import './cron.js';
45
46
  import './env.js';
47
+ import './navigation-errors.d-DwHtoMyR.js';
46
48
  import './server-action-security.js';
47
49
  import './layers.d-CH0bC4QL.js';
48
50
  import 'rolldown/utils';
@@ -51,7 +53,7 @@ import './image-config.d-ByhQ0TT7.js';
51
53
  import './config.d-BKIhJtmr.js';
52
54
  import './font.js';
53
55
  import './island.d-CfGru1MO.js';
54
- import './render-plan.d-2o-AG-ot.js';
56
+ import './render-plan.d-BD06tqFA.js';
55
57
 
56
58
  type MutationStatus = "idle" | "pending" | "success" | "error";
57
59
  type AnyMutationTarget = (...args: any[]) => Promise<any>;
@@ -291,13 +293,8 @@ declare function initConfiguredClientCachePersistence(adapterModule: unknown, op
291
293
  */
292
294
  declare function clearPersistedCache(): Promise<void>;
293
295
 
294
- type StoreState = Record<string, any>;
295
- type StoreValueUpdater<T> = T | ((previous: T) => T);
296
- type StorePatch<T extends StoreState> = Partial<T> | ((state: T) => Partial<T>);
297
- type StoreListener<T extends StoreState> = (state: T, previousState: T) => void;
298
- type StoreKeyListener<T extends StoreState, K extends keyof T> = (value: T[K], previousValue: T[K]) => void;
299
- type StoreKeysListener<T extends StoreState, K extends keyof T> = (value: Pick<T, K>, previousValue: Pick<T, K>) => void;
300
296
  type FieldAccessor<T extends StoreState, K extends keyof T> = {
297
+ /** A React hook that returns the field's value and re-renders when it changes. */
301
298
  (): T[K];
302
299
  get(): T[K];
303
300
  set(value: StoreValueUpdater<T[K]>): T[K];
@@ -306,152 +303,24 @@ type FieldAccessor<T extends StoreState, K extends keyof T> = {
306
303
  type StoreFields<T extends StoreState> = {
307
304
  [K in keyof T]: FieldAccessor<T, K>;
308
305
  };
309
- interface StoreApi<T extends StoreState> {
306
+ /** The renderer-neutral store API plus React's `use()` hook. */
307
+ interface StoreApi<T extends StoreState> extends StoreApi$1<T> {
310
308
  use(): T;
311
309
  use<K extends keyof T>(key: K): T[K];
312
310
  use<K extends keyof T>(keys: readonly K[]): Pick<T, K>;
313
- get(): T;
314
- get<K extends keyof T>(key: K): T[K];
315
- set<K extends keyof T>(key: K, value: StoreValueUpdater<T[K]>): T[K];
316
- set(patch: StorePatch<T>): T;
317
- replace(nextState: T | ((state: T) => T)): T;
318
- reset(): T;
319
- subscribe(listener: StoreListener<T>): () => void;
320
- subscribe<K extends keyof T>(key: K, listener: StoreKeyListener<T, K>): () => void;
321
- subscribe<K extends keyof T>(keys: readonly K[], listener: StoreKeysListener<T, K>): () => void;
322
311
  }
323
312
  type Store<T extends StoreState, TMethods extends Record<string, any> = {}> = StoreApi<T> & StoreFields<T> & TMethods;
324
- declare function createStore<T extends StoreState, TMethods extends Record<string, any> = {}>(initialState: T, extend?: (store: Store<T>) => TMethods): Store<T, TMethods>;
325
-
326
- /**
327
- * Prefetch strategy (TanStack Router–style):
328
- * - "intent": prefetch on hover and touchstart (with prefetchDelay)
329
- * - "viewport": prefetch when link enters viewport (IntersectionObserver)
330
- * - "render": prefetch as soon as the link is mounted
331
- * - "none" | false: no prefetch
332
- */
333
- type PrefetchBehavior = false | "intent" | "viewport" | "render" | "none";
334
- /** @internal Legacy prefetch mode for backward compatibility */
335
- type PrefetchLegacy = boolean | "hover" | "viewport" | "none";
336
313
  /**
337
- * Augment this interface via the generated farm.d.ts so Link href is typed
338
- * without passing a generic. Defaults to string when not augmented.
314
+ * Creates an in-memory store with React hooks: `store.use()`, `store.use(key)`, and field
315
+ * accessors such as `store.count()`. Other renderers import the same store, without the hooks,
316
+ * from `@farm.js/core/renderer-client`.
339
317
  */
340
- interface LinkDefaultRoute {
341
- }
342
- type DefaultRoutePath = LinkDefaultRoute extends {
343
- _: infer TRoute extends string;
344
- } ? TRoute : string;
345
- type DefaultRoutePattern = LinkDefaultRoute extends {
346
- pattern: infer TRoute extends string;
347
- } ? TRoute : DefaultRoutePath;
348
- type DefaultRouteHref = DefaultRoutePath | DefaultRoutePattern;
349
- type RouteHref<TRoute extends string> = TRoute | `${TRoute}?${string}` | `${TRoute}#${string}` | `${TRoute}?${string}#${string}`;
350
- type RouteParamValue = Exclude<FarmRouterPathParam, null | undefined>;
351
- type RouteOptionalParamValue = FarmRouterPathParam;
352
- type RouteParams<TRoute extends string> = string extends TRoute ? FarmRouterPathParams : ExtractRouteParams<StripRouteSuffix<TRoute>>;
353
- /** URI schemes recognized as typed external Link targets. Apps may augment this interface. */
354
- interface LinkExternalUriSchemes {
355
- about: true;
356
- blob: true;
357
- data: true;
358
- file: true;
359
- ftp: true;
360
- ftps: true;
361
- geo: true;
362
- git: true;
363
- http: true;
364
- https: true;
365
- im: true;
366
- intent: true;
367
- irc: true;
368
- ircs: true;
369
- magnet: true;
370
- mailto: true;
371
- market: true;
372
- sms: true;
373
- ssh: true;
374
- tel: true;
375
- urn: true;
376
- vscode: true;
377
- webcal: true;
378
- ws: true;
379
- wss: true;
380
- }
381
- type ExternalUriScheme = Extract<keyof LinkExternalUriSchemes, string>;
382
- type UriSchemeLetter = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
383
- type UriSchemeStart = UriSchemeLetter | Uppercase<UriSchemeLetter>;
384
- type UriSchemeCharacter = UriSchemeStart | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "+" | "-" | ".";
385
- type IsUriSchemeTail<TValue extends string> = TValue extends "" ? true : TValue extends `${infer First}${infer Rest}` ? First extends UriSchemeCharacter ? IsUriSchemeTail<Rest> : false : false;
386
- type IsUriScheme<TValue extends string> = TValue extends `${infer First}${infer Rest}` ? First extends UriSchemeStart ? IsUriSchemeTail<Rest> : false : false;
387
- type KnownExternalHref = `//${string}` | `${ExternalUriScheme}:${string}`;
388
- /** External URLs; these are never type-checked as routes. */
389
- type ExternalHref<THref extends string = string> = string extends THref ? KnownExternalHref : THref extends `//${string}` ? THref : THref extends `${infer Scheme}:${string}` ? IsUriScheme<Scheme> extends true ? THref : never : never;
390
- type StripRouteSuffix<TRoute extends string> = TRoute extends `${infer Path}?${string}` ? StripRouteSuffix<Path> : TRoute extends `${infer Path}#${string}` ? StripRouteSuffix<Path> : TRoute;
391
- type ExtractRouteParams<TRoute extends string> = Simplify<ExtractOptionalCatchAllParams<TRoute> & ExtractCatchAllParams<TRoute> & ExtractDynamicParams<TRoute>>;
392
- type ExtractOptionalCatchAllParams<TRoute extends string> = TRoute extends `${string}[[...${infer Param}]]${infer Rest}` ? {
393
- [Key in Param]?: RouteOptionalParamValue;
394
- } & ExtractOptionalCatchAllParams<Rest> : {};
395
- type ExtractCatchAllParams<TRoute extends string> = TRoute extends `${string}[...${infer Param}]${infer Rest}` ? Param extends `[...${string}` ? ExtractCatchAllParams<Rest> : {
396
- [Key in Param]: RouteParamValue;
397
- } & ExtractCatchAllParams<Rest> : {};
398
- type ExtractDynamicParams<TRoute extends string> = TRoute extends `${string}[${infer Param}]${infer Rest}` ? Param extends `...${string}` | `[...${string}` ? ExtractDynamicParams<Rest> : {
399
- [Key in Param]: RouteParamValue;
400
- } & ExtractDynamicParams<Rest> : {};
401
- type Simplify<T> = {
402
- [Key in keyof T]: T[Key];
403
- } & {};
404
- type HasRouteParams<TRoute extends string> = keyof RouteParams<TRoute> extends never ? false : true;
405
- type RoutesWithRequiredParams<TRoute extends string> = TRoute extends string ? HasRouteParams<TRoute> extends true ? TRoute : never : never;
406
- type LinkRouteParamsProps<TRoute extends string> = string extends TRoute ? {
407
- params?: FarmRouterPathParams;
408
- } : HasRouteParams<TRoute> extends true ? {
409
- params: RouteParams<TRoute>;
410
- } : {
411
- params?: FarmRouterPathParams;
412
- };
413
- type LinkRouteTargetProps<TRoute extends string> = [RoutesWithRequiredParams<TRoute>] extends [
414
- never
415
- ] ? {
416
- /** Internal route path with all params already resolved. */
417
- href: RouteHref<TRoute>;
418
- params?: FarmRouterPathParams;
419
- } : TRoute extends string ? {
420
- /** Internal route path or route pattern. */
421
- href: RouteHref<TRoute>;
422
- } & LinkRouteParamsProps<TRoute> : never;
423
- type LinkExternalTargetProps<THref extends string = string> = {
424
- /** External URL; these are never type-checked as app routes. */
425
- href: ExternalHref<THref>;
426
- params?: never;
427
- };
428
- type LinkTargetProps<TRoute extends string, THref extends string> = LinkExternalTargetProps<THref> | LinkRouteTargetProps<TRoute>;
429
- type LinkProps<TRoute extends string = DefaultRouteHref, THref extends string = string> = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & LinkTargetProps<TRoute, THref> & {
430
- /**
431
- * When to prefetch. TanStack-style: "intent" (hover+touch), "viewport", "render", or "none".
432
- * Legacy: true (intent+viewport), "hover" (intent), "viewport", false/"none".
433
- */
434
- prefetch?: PrefetchBehavior | PrefetchLegacy;
435
- /** Search params appended after route params are resolved. */
436
- query?: FarmRouterBuildOptions["query"];
437
- /** Hash appended after route params and search params are resolved. */
438
- hash?: string;
439
- /** Add a trailing slash to the generated internal href. */
440
- trailingSlash?: boolean;
441
- /** Delay in ms before intent-based prefetch (hover/touch). Default 50. */
442
- prefetchDelay?: number;
443
- /** Replace current history entry instead of pushing */
444
- replace?: boolean;
445
- /** Scroll to top after navigation (default: true) */
446
- scroll?: boolean;
447
- /** Wrap this SPA navigation in a browser View Transition when supported. */
448
- viewTransition?: FarmViewTransitionMode;
449
- /** Preserve the active locale by default, or navigate using this locale. */
450
- locale?: FarmI18nLocale;
451
- };
318
+ declare function createStore<T extends StoreState, TMethods extends Record<string, any> = {}>(initialState: T, extend?: (store: Store<T>) => TMethods): Store<T, TMethods>;
319
+
320
+ type LinkProps<TRoute extends string = DefaultRouteHref, THref extends string = string> = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & FarmLinkOptions<TRoute, THref>;
452
321
  type LinkComponentType = <TRoute extends string = DefaultRouteHref, THref extends string = string>(props: LinkProps<TRoute, THref> & {
453
322
  ref?: React__default.ForwardedRef<HTMLAnchorElement>;
454
323
  }) => React__default.ReactElement;
455
324
  declare const Link: LinkComponentType;
456
325
 
457
- export { type AnyMutationTarget, type ClientCachePersistenceOptions, type CrossTabCacheInvalidationOptions, type DefaultRouteHref, type DefaultRoutePath, type DefaultRoutePattern, type ExternalHref, FARM_CACHE_INVALIDATION_CHANNEL, FARM_CLIENT_CACHE_PERSIST_VERSION, type FarmClientCacheAdapter, type FarmClientCacheStorage, FarmViewTransitionMode, type FetcherFormDataContext, type FetcherFormProps, FetcherInputError, type FetcherState, type FetcherSubmit, type FetcherSubmitAsync, type InferMutationData, type InferMutationError, type InferMutationVariables, Link, type LinkDefaultRoute, type LinkExternalUriSchemes, type LinkProps, type LiveCacheInvalidationOptions, type MutationAsync, type MutationNetworkMode, type MutationOptimisticContext, type MutationStatus, type MutationTrigger, type PersistedEntry, type PrefetchBehavior, type RouteHref, type RouteOptionalParamValue, type RouteParamValue, type RouteParams, type Store, type StoreApi, type StoreFields, type StoreKeyListener, type StoreKeysListener, type StoreListener, type StorePatch, type StoreState, type StoreValueUpdater, type UseFetcherOptions, type UseFetcherReturn, type UseMutationOptions, type UseMutationReturn, clearPersistedCache, createStore, defineClientCacheAdapter, enableCrossTabCacheInvalidation, enableLiveCacheInvalidation, initConfiguredClientCachePersistence, initPersistedClientCache, storageClientCacheAdapter, useFetcher, useMutation };
326
+ export { type AnyMutationTarget, type ClientCachePersistenceOptions, type CrossTabCacheInvalidationOptions, DefaultRouteHref, FARM_CACHE_INVALIDATION_CHANNEL, FARM_CLIENT_CACHE_PERSIST_VERSION, type FarmClientCacheAdapter, type FarmClientCacheStorage, type FetcherFormDataContext, type FetcherFormProps, FetcherInputError, type FetcherState, type FetcherSubmit, type FetcherSubmitAsync, type InferMutationData, type InferMutationError, type InferMutationVariables, Link, type LinkProps, type LiveCacheInvalidationOptions, type MutationAsync, type MutationNetworkMode, type MutationOptimisticContext, type MutationStatus, type MutationTrigger, type PersistedEntry, type Store, type StoreApi, type StoreFields, StoreKeyListener, StoreState, StoreValueUpdater, type UseFetcherOptions, type UseFetcherReturn, type UseMutationOptions, type UseMutationReturn, clearPersistedCache, createStore, defineClientCacheAdapter, enableCrossTabCacheInvalidation, enableLiveCacheInvalidation, initConfiguredClientCachePersistence, initPersistedClientCache, storageClientCacheAdapter, useFetcher, useMutation };
package/dist/client.mjs CHANGED
@@ -13,8 +13,7 @@ import {
13
13
  storageClientCacheAdapter,
14
14
  useFetcher,
15
15
  useMutation
16
- } from "./chunk-PL7MCYYD.mjs";
17
- import "./chunk-5XD2ULJG.mjs";
16
+ } from "./chunk-3AV4DCXY.mjs";
18
17
  import {
19
18
  installChunkErrorRecovery,
20
19
  isChunkLoadError
@@ -31,7 +30,7 @@ import {
31
30
  usePageState,
32
31
  useRouter,
33
32
  useScrollRestoration
34
- } from "./chunk-WBPVLCNE.mjs";
33
+ } from "./chunk-VPGEYX5Y.mjs";
35
34
  import {
36
35
  useTheme
37
36
  } from "./chunk-EFLNOZGH.mjs";
@@ -52,6 +51,8 @@ import {
52
51
  integrationsServer
53
52
  } from "./chunk-7DBJ2SWK.mjs";
54
53
  import "./chunk-IAPTECEB.mjs";
54
+ import "./chunk-2UYYXSUS.mjs";
55
+ import "./chunk-5XD2ULJG.mjs";
55
56
  import "./chunk-Z64V4WZI.mjs";
56
57
  import {
57
58
  fetchServerQuery,
@@ -71,7 +72,7 @@ import {
71
72
  pushState,
72
73
  readPageState,
73
74
  replaceState
74
- } from "./chunk-3XTRT3MB.mjs";
75
+ } from "./chunk-PO5MZIWK.mjs";
75
76
  import {
76
77
  delegateNavigation
77
78
  } from "./chunk-RSEAX5MW.mjs";
@@ -86,7 +87,6 @@ import {
86
87
  FarmClientPluginManager,
87
88
  createClientPluginManager
88
89
  } from "./chunk-TTXIITYA.mjs";
89
- import "./chunk-VDQZV6BX.mjs";
90
90
  import "./chunk-QPNVDSFZ.mjs";
91
91
  import {
92
92
  api,
@@ -98,10 +98,11 @@ import "./chunk-5Y4GYKKH.mjs";
98
98
  import "./chunk-YT3SLLZK.mjs";
99
99
  import "./chunk-GLVDXRG2.mjs";
100
100
  import "./chunk-W6QLRQ3V.mjs";
101
+ import "./chunk-VDQZV6BX.mjs";
101
102
  import "./chunk-PWHF2C6A.mjs";
102
103
  import "./chunk-SD6JGJOM.mjs";
103
104
  import "./chunk-AG27TI6Q.mjs";
104
- import "./chunk-NBIVGHAT.mjs";
105
+ import "./chunk-UDMBUTJD.mjs";
105
106
  import "./chunk-WCLLPR6H.mjs";
106
107
  import "./chunk-7BIW7VCW.mjs";
107
108
  import "./chunk-IWJONXPF.mjs";
@@ -111,11 +112,11 @@ import "./chunk-M25IONJP.mjs";
111
112
  import "./chunk-AY2YD5ZX.mjs";
112
113
  import "./chunk-GLOICKDO.mjs";
113
114
  import "./chunk-AZQXXXDX.mjs";
114
- import "./chunk-VIXTAVEA.mjs";
115
115
  import "./chunk-JNYFXL7X.mjs";
116
116
  import "./chunk-4QBFYEDC.mjs";
117
117
  import "./chunk-SF3JB56B.mjs";
118
118
  import "./chunk-5KAEGBIL.mjs";
119
+ import "./chunk-VIXTAVEA.mjs";
119
120
  import "./chunk-TIZJYHB7.mjs";
120
121
  export {
121
122
  APIClientError,
package/dist/config.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { x as FarmUserConfig } from './client-plugins.d-WcMwOZGZ.mjs';
1
+ import { x as FarmUserConfig } from './client-plugins.d-BflSNO-b.mjs';
2
2
  import './lifecycle.d-OtGWAvJT.mjs';
3
3
  import './route.d-ShmtqqVQ.mjs';
4
4
  import './endpoint.d-BXbBpKoh.mjs';
@@ -28,6 +28,7 @@ import './workflows.mjs';
28
28
  import './server-http.d-rAe7lAQc.mjs';
29
29
  import './cron.mjs';
30
30
  import './env.mjs';
31
+ import './navigation-errors.d-DwHtoMyR.mjs';
31
32
  import './server-action-security.mjs';
32
33
  import './layers.d-CH0bC4QL.mjs';
33
34
  import 'rolldown/utils';