@farm.js/core 0.1.78 → 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.
- package/dist/{agent-mcp-handler-EDJNU224.mjs → agent-mcp-handler-GDY5CPPW.mjs} +5 -5
- package/dist/{agent-mcp-handler-LNBYLRTZ.cjs → agent-mcp-handler-IUL6OPC3.cjs} +6 -6
- package/dist/{agent-mcp.d-BErtnhV2.d.ts → agent-mcp.d-Cxi3214_.d.ts} +1 -1
- package/dist/{agent-mcp.d-CYHfcjur.d.mts → agent-mcp.d-DMqOqnOA.d.mts} +1 -1
- package/dist/agent-runtime.cjs +2 -2
- package/dist/agent-runtime.d.mts +5 -4
- package/dist/agent-runtime.d.ts +5 -4
- package/dist/agent-runtime.mjs +1 -1
- package/dist/analyzer-435DCIQ6.cjs +17 -0
- package/dist/{analyzer-M2BG6QYU.mjs → analyzer-IC66UJCU.mjs} +3 -2
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.mjs +1 -1
- package/dist/api/client.native.cjs +1 -1
- package/dist/api/client.native.mjs +1 -1
- package/dist/api/node.cjs +7 -7
- package/dist/api/node.d.mts +7 -6
- package/dist/api/node.d.ts +7 -6
- package/dist/api/node.mjs +6 -6
- package/dist/api/route-manager.cjs +10 -10
- package/dist/api/route-manager.d.mts +7 -6
- package/dist/api/route-manager.d.ts +7 -6
- package/dist/api/route-manager.mjs +9 -9
- package/dist/api/runtime.cjs +6 -6
- package/dist/api/runtime.d.mts +6 -5
- package/dist/api/runtime.d.ts +6 -5
- package/dist/api/runtime.mjs +5 -5
- package/dist/api.cjs +12 -12
- package/dist/api.d.mts +8 -7
- package/dist/api.d.ts +8 -7
- package/dist/api.mjs +11 -11
- package/dist/{app-manifest.d-6NCkLQ1y.d.mts → app-manifest.d-Bbxp5kes.d.mts} +1 -1
- package/dist/{app-manifest.d-DuqLBcmi.d.ts → app-manifest.d-C8Cswd31.d.ts} +1 -1
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +8 -7
- package/dist/app-markdown.d.ts +8 -7
- package/dist/app-markdown.mjs +4 -4
- package/dist/{app.d-Dk2HkvPh.d.mts → app.d-BJuSurgy.d.mts} +13 -4
- package/dist/{app.d-Bz6vYBFF.d.ts → app.d-DGIoFt5D.d.ts} +13 -4
- package/dist/cache.cjs +3 -3
- package/dist/cache.mjs +2 -2
- package/dist/{chunk-PG7J7XYT.cjs → chunk-26WP75W5.cjs} +38 -22
- package/dist/{chunk-QYOAGT3E.cjs → chunk-2BEGVSDF.cjs} +6 -5
- package/dist/{chunk-GCRT6GJG.mjs → chunk-2HMSSPCZ.mjs} +26 -0
- package/dist/{chunk-2YJ4DHTD.cjs → chunk-2NOHVIJ3.cjs} +2 -2
- package/dist/{chunk-GDM3ZD2O.cjs → chunk-2OFP3IVA.cjs} +5 -1
- package/dist/{chunk-7KDCVSTR.mjs → chunk-2PFGA6PB.mjs} +2 -2
- package/dist/chunk-2UYYXSUS.mjs +401 -0
- package/dist/{chunk-DD2ANOEF.cjs → chunk-2Y2HRZQY.cjs} +843 -627
- package/dist/{chunk-PL7MCYYD.mjs → chunk-3AV4DCXY.mjs} +58 -358
- package/dist/{chunk-3GNHJ3RN.cjs → chunk-3BTN3NP7.cjs} +2 -2
- package/dist/{chunk-XT2CHTDN.mjs → chunk-3RVLJTFZ.mjs} +6 -6
- package/dist/{chunk-VJ6L7TII.cjs → chunk-3SPECQXI.cjs} +31 -20
- package/dist/{chunk-ODYKCC6W.cjs → chunk-46UV2E7I.cjs} +156 -104
- package/dist/{chunk-F4ID7BGO.cjs → chunk-4OFWG4IK.cjs} +7 -7
- package/dist/{chunk-VRI43FDN.mjs → chunk-4WXNTAOM.mjs} +1 -1
- package/dist/{chunk-QMR2TUVZ.cjs → chunk-52Q4OB4A.cjs} +4 -4
- package/dist/chunk-5MMKNW7Q.cjs +54 -0
- package/dist/{chunk-RIMEFQYO.mjs → chunk-5N526T7Q.mjs} +116 -86
- package/dist/{chunk-CYNQPKA4.cjs → chunk-5ZHC6QGD.cjs} +2 -2
- package/dist/{chunk-ALEUMLJN.mjs → chunk-67JTJCAS.mjs} +3 -2
- package/dist/{chunk-CBP7AKZH.mjs → chunk-6GJZJAED.mjs} +1 -1
- package/dist/{chunk-5REIO5DT.mjs → chunk-6WVRVGKC.mjs} +6 -6
- package/dist/{chunk-GC5ROI3A.cjs → chunk-7U4XF76R.cjs} +1 -1
- package/dist/{chunk-FOULIN4S.cjs → chunk-ADQ2LATR.cjs} +2 -2
- package/dist/{chunk-K3ZELA6U.cjs → chunk-AHVF5GI2.cjs} +10 -10
- package/dist/{chunk-CSAIIMY3.mjs → chunk-ATISIC6G.mjs} +1 -1
- package/dist/{chunk-MGKWYPE3.mjs → chunk-AYDVUCXD.mjs} +1 -0
- package/dist/chunk-B7L24VPX.cjs +401 -0
- package/dist/{chunk-DPBQRDWW.cjs → chunk-BBVLOEND.cjs} +4 -4
- package/dist/{chunk-DASQJ5UD.mjs → chunk-BCQIXH7L.mjs} +1 -1
- package/dist/{chunk-BNCKXPCU.cjs → chunk-BIAGSYIZ.cjs} +30 -30
- package/dist/{chunk-R77D7TCZ.mjs → chunk-BJWJP5A4.mjs} +20 -13
- package/dist/{chunk-X2SEYK7I.mjs → chunk-BPWTSPK6.mjs} +3 -3
- package/dist/{chunk-CKNZJFK5.cjs → chunk-BSX5OGSD.cjs} +4 -4
- package/dist/{chunk-ERT6HQAI.mjs → chunk-BVJUFVCU.mjs} +2 -2
- package/dist/chunk-C5QHZ626.cjs +85 -0
- package/dist/{chunk-HVMQAVZK.cjs → chunk-CL7BUGVB.cjs} +656 -521
- package/dist/{chunk-TZ2YPXLB.cjs → chunk-CN2JOTRO.cjs} +7 -7
- package/dist/{chunk-ZCYGYIC2.cjs → chunk-CPZZBCPO.cjs} +22 -21
- package/dist/{chunk-RK4MGL6Q.mjs → chunk-CYRO3WP4.mjs} +4 -3
- package/dist/chunk-D2VAANBS.mjs +48 -0
- package/dist/{chunk-VRJAMU34.mjs → chunk-D77OGI6X.mjs} +1 -1
- package/dist/{chunk-6XDDE7M6.cjs → chunk-DJ3PVHTW.cjs} +3 -3
- package/dist/{chunk-XGS76V7L.cjs → chunk-E3HBD2K3.cjs} +22 -22
- package/dist/{chunk-F35C3TJZ.mjs → chunk-E4E4Y5FD.mjs} +1 -1
- package/dist/{chunk-KUXEII7V.mjs → chunk-ECVSRE4Y.mjs} +3 -2
- package/dist/{chunk-2DA7CLY7.mjs → chunk-EILUVBKS.mjs} +14 -0
- package/dist/chunk-EZYKV24V.mjs +385 -0
- package/dist/{chunk-TVCFY3KK.cjs → chunk-FB4CWSC2.cjs} +12 -12
- package/dist/{chunk-ZO6TOLHL.mjs → chunk-FS55CNTC.mjs} +1 -1
- package/dist/{chunk-IYFBLWXU.cjs → chunk-FULX5RYX.cjs} +61 -361
- package/dist/{chunk-5KISFWD2.cjs → chunk-FYZD7DUS.cjs} +12 -12
- package/dist/{chunk-H5OVJHXY.cjs → chunk-GAWSWJJ2.cjs} +27 -27
- package/dist/{chunk-A37D6LOS.mjs → chunk-GY63XD6K.mjs} +1 -1
- package/dist/{chunk-OVUU2RCQ.mjs → chunk-HD5FLXP2.mjs} +1 -1
- package/dist/{chunk-5QZT2EQN.cjs → chunk-HQEYZSF3.cjs} +4 -3
- package/dist/{chunk-JA6RML7C.mjs → chunk-HR4N2K4V.mjs} +2 -2
- package/dist/{chunk-6D3CJFNU.cjs → chunk-HR5GU4UU.cjs} +7 -7
- package/dist/{chunk-7RQ5KAK6.mjs → chunk-HTNJ7A4D.mjs} +88 -36
- package/dist/chunk-I4WZRG73.mjs +54 -0
- package/dist/{chunk-BGUTIQII.mjs → chunk-ICOJ2BC6.mjs} +24 -8
- package/dist/{chunk-SX535SU5.cjs → chunk-IJPRCQHW.cjs} +10 -10
- package/dist/{chunk-E7V2GYBP.mjs → chunk-IM3UINTZ.mjs} +67 -9
- package/dist/{chunk-MNIR7I7B.mjs → chunk-INKVDO42.mjs} +1 -1
- package/dist/{chunk-AHGOHPRN.mjs → chunk-IPG6B25T.mjs} +235 -100
- package/dist/{chunk-PE2LEWXA.mjs → chunk-J2VUPCCR.mjs} +4 -4
- package/dist/{chunk-Q2EKSSEG.cjs → chunk-JB4BHRFK.cjs} +17 -17
- package/dist/{chunk-YN7G22MP.cjs → chunk-JCYDWJVO.cjs} +3 -3
- package/dist/{chunk-LPXJEZJK.mjs → chunk-KCJBIWBM.mjs} +2 -2
- package/dist/{chunk-NSNQLBHR.cjs → chunk-KMGHXIDA.cjs} +2 -2
- package/dist/{chunk-SVCUSOEF.mjs → chunk-KR5DF7WK.mjs} +1 -1
- package/dist/{chunk-5DREJN4G.cjs → chunk-LKIG5SM6.cjs} +17 -17
- package/dist/{chunk-OGVOKAQU.mjs → chunk-LTOT5KVJ.mjs} +2 -2
- package/dist/{chunk-Z2FFLTF5.mjs → chunk-LTXKRIST.mjs} +2 -2
- package/dist/{chunk-67MZTLTF.cjs → chunk-M6DAIE4T.cjs} +27 -1
- package/dist/{chunk-IWGGRXD2.cjs → chunk-MHKPXX3J.cjs} +2 -2
- package/dist/{chunk-F7PKUP6P.cjs → chunk-MOGRRZMW.cjs} +38 -38
- package/dist/{chunk-DZZHTMWM.cjs → chunk-N3H7UPBM.cjs} +3 -2
- package/dist/{chunk-WGNGM6MJ.mjs → chunk-N3VMHPIY.mjs} +2 -2
- package/dist/{chunk-EBFTAVGD.mjs → chunk-NOYKBGUK.mjs} +672 -456
- package/dist/{chunk-LMXGCFAM.cjs → chunk-NSLRK5DK.cjs} +1 -1
- package/dist/{chunk-EVVV2XZ2.cjs → chunk-NW3DL2PM.cjs} +53 -7
- package/dist/{chunk-6ZFGWB75.cjs → chunk-OFVCWV2D.cjs} +5 -5
- package/dist/{chunk-NB2ZEBIS.cjs → chunk-OIWDEDUO.cjs} +540 -510
- package/dist/{chunk-WRWJ7IWT.cjs → chunk-OLKYHTLN.cjs} +5 -5
- package/dist/{chunk-QES76U42.mjs → chunk-ONSZP5JK.mjs} +4 -4
- package/dist/{chunk-H76C5AOU.mjs → chunk-OO4GVGM3.mjs} +4 -4
- package/dist/{chunk-BZJYPIFZ.cjs → chunk-OUDNUFVR.cjs} +12 -12
- package/dist/{chunk-EVIWKPJV.cjs → chunk-PLJMEUAN.cjs} +15 -1
- package/dist/{chunk-GFXKO4UW.mjs → chunk-PO5MZIWK.mjs} +49 -49
- package/dist/{chunk-VCW6BR6U.mjs → chunk-POL5RCVU.mjs} +2 -2
- package/dist/{chunk-EMTN5ABC.mjs → chunk-POVHO46S.mjs} +1 -1
- package/dist/{chunk-ASYOWPSR.cjs → chunk-PWDBWXQI.cjs} +2 -1
- package/dist/{chunk-X3Y6JWJG.cjs → chunk-PWMJBCAN.cjs} +3 -3
- package/dist/{chunk-IGE5BAWK.mjs → chunk-QBJ6N5MT.mjs} +53 -7
- package/dist/{chunk-62DZHPDK.cjs → chunk-QCKSYYXK.cjs} +10 -10
- package/dist/{chunk-PKXGFQZS.mjs → chunk-QD34VE4N.mjs} +1 -1
- package/dist/{chunk-57QAQU4F.mjs → chunk-QRNYSISP.mjs} +1 -1
- package/dist/{chunk-PRL7FXG4.cjs → chunk-RDNKQ5MK.cjs} +12 -13
- package/dist/{chunk-VJI2LWTL.cjs → chunk-RFNQTQ44.cjs} +2 -2
- package/dist/{chunk-IG2JE6WJ.mjs → chunk-RLEAVG6G.mjs} +1 -1
- package/dist/{chunk-VO5XDZHK.mjs → chunk-RPA45OQS.mjs} +2 -2
- package/dist/{chunk-PNWRH6TR.mjs → chunk-RZ6XUEQS.mjs} +4 -4
- package/dist/{chunk-S6RUJRWI.mjs → chunk-S3IWDDQ3.mjs} +1 -1
- package/dist/{chunk-EGHPFXPZ.cjs → chunk-SAPG45RA.cjs} +23 -23
- package/dist/{chunk-FE6KYDHC.cjs → chunk-SHDCKRP4.cjs} +3 -3
- package/dist/{chunk-DUSTJ6A5.mjs → chunk-SLEHAGGV.mjs} +2 -2
- package/dist/{chunk-26CNCIFI.cjs → chunk-T3SMMLSB.cjs} +2 -2
- package/dist/{chunk-K6DXKHFE.mjs → chunk-TE7AX6HB.mjs} +1 -1
- package/dist/{chunk-A7EJATEW.mjs → chunk-TLSGRK7E.mjs} +4 -4
- package/dist/{chunk-KHS3T3E5.mjs → chunk-TYHWZOA2.mjs} +1 -1
- package/dist/{chunk-Z3QXQN4U.mjs → chunk-U6GMCDRS.mjs} +1 -1
- package/dist/{chunk-URQW27KO.mjs → chunk-UBLKPREL.mjs} +1 -1
- package/dist/chunk-UDMBUTJD.mjs +85 -0
- package/dist/{chunk-WJ4NUY2H.mjs → chunk-UF4BNKKJ.mjs} +4 -4
- package/dist/{chunk-L7Y65BQU.cjs → chunk-UGD53SNO.cjs} +50 -50
- package/dist/{chunk-DD22NQFX.cjs → chunk-UGLTOLTJ.cjs} +2 -2
- package/dist/{chunk-G7B6NU4X.cjs → chunk-VFMHE5D3.cjs} +3 -3
- package/dist/{chunk-4SLHSODZ.cjs → chunk-VGHDPEPQ.cjs} +15 -15
- package/dist/{chunk-IXO6O2EL.cjs → chunk-VGVRGGP4.cjs} +2 -2
- package/dist/{chunk-47R7CX4A.mjs → chunk-VPGEYX5Y.mjs} +4 -4
- package/dist/chunk-VS7HLH4S.cjs +385 -0
- package/dist/{chunk-YRXPDKMM.cjs → chunk-W53Z4WDI.cjs} +8 -8
- package/dist/{chunk-NNGBTJCX.cjs → chunk-W6C3LEXX.cjs} +83 -25
- package/dist/{chunk-4VLXQ55O.cjs → chunk-WIZRYFB2.cjs} +3 -3
- package/dist/chunk-WMRGIQTA.cjs +48 -0
- package/dist/{chunk-52LTENRE.cjs → chunk-WOAXQ5MZ.cjs} +9 -9
- package/dist/{chunk-C6HGUTXB.mjs → chunk-XBSIGZ4J.mjs} +2 -3
- package/dist/{chunk-S7QEQCVV.mjs → chunk-XGL42MQ7.mjs} +1 -1
- package/dist/{chunk-JHZ6HULQ.cjs → chunk-XOFJUSWC.cjs} +4 -4
- package/dist/{chunk-LJKTJNOF.cjs → chunk-XOGCNKB7.cjs} +3 -3
- package/dist/{chunk-7JTVN6IJ.mjs → chunk-XOXCQGAF.mjs} +7 -6
- package/dist/{chunk-LIC6CMLB.mjs → chunk-YH7ENV3K.mjs} +18 -18
- package/dist/{chunk-ZJGFAW5U.mjs → chunk-YHHOTKUT.mjs} +5 -1
- package/dist/{chunk-B3IRRANH.mjs → chunk-YHM4PXJY.mjs} +1 -1
- package/dist/{chunk-PDACTAVX.mjs → chunk-YOVSWY2E.mjs} +1 -1
- package/dist/{chunk-ZEWIWAS2.mjs → chunk-YSU3WCW6.mjs} +2 -2
- package/dist/{chunk-R5X7FDOG.mjs → chunk-YU2MNIIY.mjs} +1 -1
- package/dist/{chunk-42EUEYW6.cjs → chunk-YUQUGVSV.cjs} +8 -8
- package/dist/{chunk-4STJ6LGR.mjs → chunk-Z3RM3VA2.mjs} +1 -1
- package/dist/{chunk-MBD34AS5.cjs → chunk-Z5BANEQD.cjs} +6 -6
- package/dist/{chunk-4PWGLPL6.mjs → chunk-ZIEO3DQ3.mjs} +26 -15
- package/dist/{chunk-2G6JPLSL.cjs → chunk-ZIYJWJV2.cjs} +27 -20
- package/dist/{chunk-KZ5BOWJS.cjs → chunk-ZKNXCRUQ.cjs} +28 -28
- package/dist/{cli-runtime.d-CGMGs1Zz.d.mts → cli-runtime.d-D8O1v2_X.d.mts} +7 -6
- package/dist/{cli-runtime.d-BG9q2_vC.d.ts → cli-runtime.d-hf4L1MNP.d.ts} +7 -6
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-component.d-B84GPb_u.d.ts → client-component.d-CX8UCQh-.d.ts} +1 -1
- package/dist/{client-component.d-CdsG1E7p.d.mts → client-component.d-DFwUHlOz.d.mts} +1 -1
- package/dist/{client-plugins.d-DX-iCJWE.d.mts → client-plugins.d-BflSNO-b.d.mts} +5 -16
- package/dist/{client-plugins.d-FptsHgls.d.ts → client-plugins.d-qWp8hNwd.d.ts} +5 -16
- package/dist/client-plugins.d.mts +5 -4
- package/dist/client-plugins.d.ts +5 -4
- package/dist/client.cjs +9 -8
- package/dist/client.d.mts +23 -154
- package/dist/client.d.ts +23 -154
- package/dist/client.mjs +8 -7
- package/dist/config.d.mts +5 -4
- package/dist/config.d.ts +5 -4
- package/dist/cron.cjs +3 -3
- package/dist/cron.mjs +2 -2
- package/dist/desktop.d.mts +6 -5
- package/dist/desktop.d.ts +6 -5
- package/dist/{devtools-TMATFNUY.cjs → devtools-EI5N366Z.cjs} +17 -17
- package/dist/{devtools-7P3OUNLV.mjs → devtools-XJHODO5H.mjs} +14 -14
- package/dist/docs.cjs +18 -18
- package/dist/docs.d.mts +7 -6
- package/dist/docs.d.ts +7 -6
- package/dist/docs.mjs +17 -17
- package/dist/environment/vite.cjs +8 -7
- package/dist/environment/vite.d.mts +9 -0
- package/dist/environment/vite.d.ts +9 -0
- package/dist/environment/vite.mjs +7 -6
- package/dist/{handler.d-Cy3XbY_W.d.ts → handler.d-C2oRihfa.d.ts} +1 -1
- package/dist/{handler.d-DSwLTpa5.d.mts → handler.d-DoH5Krkq.d.mts} +1 -1
- package/dist/{headers.d-DiL9YTH3.d.mts → headers.d-BrX53wFQ.d.mts} +1 -1
- package/dist/{headers.d-Qbjo38a0.d.ts → headers.d-Dj0mfYpb.d.ts} +1 -1
- package/dist/index.cjs +90 -82
- package/dist/{index.d-OccJoC6I.d.ts → index.d-Dhc2scRl.d.ts} +1 -1
- package/dist/{index.d-CqQKX3s6.d.mts → index.d-DzDHOttz.d.mts} +1 -1
- package/dist/index.d.mts +29 -27
- package/dist/index.d.ts +29 -27
- package/dist/index.mjs +92 -84
- package/dist/instrumentation.cjs +3 -3
- package/dist/instrumentation.mjs +2 -2
- package/dist/integrations/orm.cjs +3 -3
- package/dist/integrations/orm.d.mts +5 -4
- package/dist/integrations/orm.d.ts +5 -4
- package/dist/integrations/orm.mjs +2 -2
- package/dist/integrations.cjs +2 -2
- package/dist/integrations.d.mts +5 -4
- package/dist/integrations.d.ts +5 -4
- package/dist/integrations.mjs +1 -1
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +15 -8
- package/dist/internal/app-markdown-runtime.d.ts +15 -8
- package/dist/internal/app-markdown-runtime.mjs +3 -3
- package/dist/internal/build-runtime.cjs +63 -62
- package/dist/internal/build-runtime.d.mts +8 -7
- package/dist/internal/build-runtime.d.ts +8 -7
- package/dist/internal/build-runtime.mjs +62 -61
- package/dist/internal/cli-runtime.cjs +37 -34
- package/dist/internal/cli-runtime.d.mts +12 -11
- package/dist/internal/cli-runtime.d.ts +12 -11
- package/dist/internal/cli-runtime.mjs +39 -36
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +112 -14
- package/dist/internal/client-runtime.d.mts +29 -22
- package/dist/internal/client-runtime.d.ts +29 -22
- package/dist/internal/client-runtime.mjs +104 -6
- package/dist/internal/compression-runtime.d.mts +5 -4
- package/dist/internal/compression-runtime.d.ts +5 -4
- package/dist/internal/config-runtime.cjs +16 -16
- package/dist/internal/config-runtime.d.mts +7 -6
- package/dist/internal/config-runtime.d.ts +7 -6
- package/dist/internal/config-runtime.mjs +15 -15
- package/dist/internal/docs-precompiled-runtime.cjs +1 -1
- package/dist/internal/docs-precompiled-runtime.mjs +1 -1
- package/dist/internal/form-actions.cjs +3 -3
- package/dist/internal/form-actions.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +11 -11
- package/dist/internal/infra-analytics-runtime.mjs +9 -9
- package/dist/internal/island-codec.cjs +3 -3
- package/dist/internal/island-codec.mjs +2 -2
- package/dist/internal/island-value-store.d.mts +1 -1
- package/dist/internal/island-value-store.d.ts +1 -1
- package/dist/internal/islands-boot.cjs +39 -5
- package/dist/internal/islands-boot.d.mts +19 -1
- package/dist/internal/islands-boot.d.ts +19 -1
- package/dist/internal/islands-boot.mjs +38 -4
- package/dist/internal/islands-runtime.cjs +10 -56
- package/dist/internal/islands-runtime.mjs +6 -52
- package/dist/internal/islands-server.cjs +4 -4
- package/dist/internal/islands-server.mjs +3 -3
- package/dist/internal/islx-actions-client.cjs +36 -0
- package/dist/internal/islx-actions-client.d.mts +13 -0
- package/dist/internal/islx-actions-client.d.ts +13 -0
- package/dist/internal/islx-actions-client.mjs +36 -0
- package/dist/internal/islx-actions-server.cjs +8 -0
- package/dist/internal/islx-actions-server.d.mts +6 -0
- package/dist/internal/islx-actions-server.d.ts +6 -0
- package/dist/internal/islx-actions-server.mjs +8 -0
- package/dist/internal/islx-client.d.mts +0 -4
- package/dist/internal/islx-client.d.ts +0 -4
- package/dist/internal/isolated-boundary.cjs +3 -3
- package/dist/internal/isolated-boundary.d.mts +1 -1
- package/dist/internal/isolated-boundary.d.ts +1 -1
- package/dist/internal/isolated-boundary.mjs +2 -2
- package/dist/internal/metadata-image-runtime.cjs +4 -2
- package/dist/internal/metadata-image-runtime.d.mts +18 -2
- package/dist/internal/metadata-image-runtime.d.ts +18 -2
- package/dist/internal/metadata-image-runtime.mjs +5 -3
- package/dist/internal/native-server-fns.cjs +5 -4
- package/dist/internal/native-server-fns.mjs +4 -3
- package/dist/internal/navigation-neutral.cjs +36 -0
- package/dist/internal/navigation-neutral.d.mts +14 -0
- package/dist/internal/navigation-neutral.d.ts +14 -0
- package/dist/internal/navigation-neutral.mjs +36 -0
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +36 -36
- package/dist/internal/production-runtime.d.mts +15 -13
- package/dist/internal/production-runtime.d.ts +15 -13
- package/dist/internal/production-runtime.mjs +46 -46
- package/dist/internal/server-tree.cjs +5 -4
- package/dist/internal/server-tree.d.mts +3 -4
- package/dist/internal/server-tree.d.ts +3 -4
- package/dist/internal/server-tree.mjs +4 -3
- package/dist/internal/spa-router.cjs +44 -0
- package/dist/internal/spa-router.d.mts +42 -0
- package/dist/internal/spa-router.d.ts +42 -0
- package/dist/internal/spa-router.mjs +44 -0
- package/dist/internal/start-manifest.d.mts +5 -4
- package/dist/internal/start-manifest.d.ts +5 -4
- package/dist/internal/vercel-edge-middleware.cjs +4 -4
- package/dist/internal/vercel-edge-middleware.mjs +3 -3
- package/dist/island-value-protocol.d-fEoc1m8e.d.mts +27 -0
- package/dist/island-value-protocol.d-fEoc1m8e.d.ts +27 -0
- package/dist/{layers-5ZD4764G.mjs → layers-744BBUY5.mjs} +2 -2
- package/dist/layers-XLOMMQP7.cjs +21 -0
- package/dist/{lifecycle.d-VzcXyEyn.d.ts → lifecycle.d-OtGWAvJT.d.mts} +1 -1
- package/dist/{lifecycle.d-VzcXyEyn.d.mts → lifecycle.d-OtGWAvJT.d.ts} +1 -1
- package/dist/markdown.cjs +3 -3
- package/dist/markdown.d.mts +5 -4
- package/dist/markdown.d.ts +5 -4
- package/dist/markdown.mjs +2 -2
- package/dist/middleware.cjs +10 -10
- package/dist/middleware.d.mts +5 -4
- package/dist/middleware.d.ts +5 -4
- package/dist/middleware.mjs +9 -9
- package/dist/{mount.d-AcJaUtHF.d.mts → mount.d-DOaeUoWq.d.mts} +1 -1
- package/dist/{mount.d-CPzqOm-a.d.ts → mount.d-DwXjaOHY.d.ts} +1 -1
- package/dist/{native-server-fn-handler-XRTZR7SZ.cjs → native-server-fn-handler-57TCQPSM.cjs} +6 -6
- package/dist/{native-server-fn-handler-WYYY4YBN.mjs → native-server-fn-handler-PYK65A46.mjs} +5 -5
- package/dist/{native-tree-MNUFN5G6.cjs → native-tree-5TENEQ7Y.cjs} +4 -4
- package/dist/{native-tree-JDI3LJSH.mjs → native-tree-LNO7K6JR.mjs} +3 -3
- package/dist/{navigation-delegate.d-C4i5Y39E.d.mts → navigation-delegate.d-BElGUMgt.d.mts} +1 -1
- package/dist/{navigation-delegate.d-_Df9DnPY.d.ts → navigation-delegate.d-o3pPd9VI.d.ts} +1 -1
- package/dist/navigation-errors.d-DwHtoMyR.d.mts +13 -0
- package/dist/navigation-errors.d-DwHtoMyR.d.ts +13 -0
- package/dist/navigation.cjs +6 -6
- package/dist/navigation.d.mts +10 -9
- package/dist/navigation.d.ts +10 -9
- package/dist/navigation.mjs +5 -5
- package/dist/{nitro-NUCTYEKJ.cjs → nitro-XGIO6EQN.cjs} +7 -7
- package/dist/{nitro-VCJ6QQSI.mjs → nitro-YLTGVGK4.mjs} +3 -3
- package/dist/node-module-bundle-TNSY5PAC.cjs +15 -0
- package/dist/{node-module-bundle-XPLBMXRD.mjs → node-module-bundle-ZWCQJCKA.mjs} +3 -1
- package/dist/observability.cjs +8 -2
- package/dist/{observability.d-DdJRiaIX.d.mts → observability.d-mXSbp4jc.d.mts} +17 -1
- package/dist/{observability.d-DdJRiaIX.d.ts → observability.d-mXSbp4jc.d.ts} +17 -1
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/observability.mjs +7 -1
- package/dist/{plugin-TV6W7YNK.mjs → plugin-33I3V42N.mjs} +1 -1
- package/dist/{plugin-AGEFSU7K.cjs → plugin-LN3JBZRR.cjs} +2 -2
- package/dist/plugin.cjs +50 -48
- package/dist/plugin.d.mts +9 -8
- package/dist/plugin.d.ts +9 -8
- package/dist/plugin.mjs +49 -47
- package/dist/query/client.cjs +10 -10
- package/dist/query/client.mjs +5 -5
- package/dist/{render-plan.d-CslZE7o7.d.ts → render-plan.d-BD06tqFA.d.ts} +1 -1
- package/dist/{render-plan.d-4V_NmaA6.d.mts → render-plan.d-xWCRAJeR.d.mts} +1 -1
- package/dist/renderer/none/server.cjs +5 -1
- package/dist/renderer/none/server.d.mts +3 -1
- package/dist/renderer/none/server.d.ts +3 -1
- package/dist/renderer/none/server.mjs +4 -0
- package/dist/renderer/react/server.cjs +6 -6
- package/dist/renderer/react/server.mjs +3 -3
- package/dist/renderer-client.cjs +34 -15
- package/dist/renderer-client.d.mts +16 -100
- package/dist/renderer-client.d.ts +16 -100
- package/dist/renderer-client.mjs +23 -4
- package/dist/renderer.cjs +4 -2
- package/dist/renderer.d.mts +49 -6
- package/dist/renderer.d.ts +49 -6
- package/dist/renderer.mjs +3 -1
- package/dist/{request.d-CbV3y7j3.d.ts → request.d-DUMuWxSN.d.ts} +1 -1
- package/dist/{request.d-CmLTxEgS.d.mts → request.d-Dx82V8bz.d.mts} +1 -1
- package/dist/request.d.mts +6 -5
- package/dist/request.d.ts +6 -5
- package/dist/{route-rendering.d-CETnXNez.d.ts → route-rendering.d-BwBVpLtD.d.ts} +1 -1
- package/dist/{route-rendering.d-CmoqfOmj.d.mts → route-rendering.d-DJh6GauM.d.mts} +1 -1
- package/dist/{router.d-ktz7pwYm.d.mts → router.d-BtkKDxUB.d.mts} +1 -1
- package/dist/{router.d-Dga3N5YO.d.ts → router.d-CJBSG5jr.d.ts} +1 -1
- package/dist/routes.cjs +5 -5
- package/dist/routes.d.mts +5 -4
- package/dist/routes.d.ts +5 -4
- package/dist/routes.mjs +4 -4
- package/dist/{rsc-pipeline-N7CWJW7T.mjs → rsc-pipeline-GD6KLOIG.mjs} +20 -20
- package/dist/{rsc-pipeline-JLYD26AR.cjs → rsc-pipeline-H5AXQA7A.cjs} +21 -21
- package/dist/{runtime-QXX2A4TS.mjs → runtime-OJ7FXFUI.mjs} +22 -22
- package/dist/{runtime-F5NSS4DD.cjs → runtime-YWQVBC3V.cjs} +32 -32
- package/dist/{runtime.d-BWLZUOfA.d.ts → runtime.d-BQnD0cfC.d.ts} +1 -1
- package/dist/{runtime.d-DuaXEM0p.d.mts → runtime.d-C4SuZXf6.d.mts} +1 -1
- package/dist/{schema-dev-notice-2GN5V7Y2.mjs → schema-dev-notice-EUPAUJVN.mjs} +2 -2
- package/dist/{schema-dev-notice-6VCOZGG2.cjs → schema-dev-notice-ZSCL47CT.cjs} +5 -5
- package/dist/search-client-A7YJT7JZ.cjs +15 -0
- package/dist/{search-client-W4PEFAQB.mjs → search-client-GIXIEU75.mjs} +1 -1
- package/dist/server-action-security.cjs +1 -1
- package/dist/server-action-security.mjs +1 -1
- package/dist/{server-components-status.d-CqxtJmqP.d.mts → server-components-status.d-9rH7ZoEq.d.mts} +1 -1
- package/dist/{server-components-status.d-C5JpC7_Y.d.ts → server-components-status.d-rfKOcE0N.d.ts} +1 -1
- package/dist/server-fn.cjs +5 -5
- package/dist/server-fn.mjs +4 -4
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +7 -6
- package/dist/server-plugins.d.ts +7 -6
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query.cjs +6 -6
- package/dist/server-query.mjs +5 -5
- package/dist/server.cjs +95 -90
- package/dist/server.d.mts +16 -15
- package/dist/server.d.ts +16 -15
- package/dist/server.mjs +61 -56
- package/dist/{session-AK2OA5UZ.mjs → session-4IB34X35.mjs} +2 -2
- package/dist/session-MOYQJ7E6.cjs +24 -0
- package/dist/{spa-router.d-C3LzwTlY.d.ts → spa-router.d-DMKiBsHH.d.ts} +20 -4
- package/dist/{spa-router.d-BLE188EL.d.mts → spa-router.d-V6XLSTCy.d.mts} +20 -4
- package/dist/{ssg.d-QrFyU6T4.d.mts → ssg.d-BnCKPQL0.d.mts} +2 -2
- package/dist/{ssg.d-DisOfj0I.d.ts → ssg.d-MNedvvMB.d.ts} +2 -2
- package/dist/storage.cjs +2 -2
- package/dist/storage.d.mts +112 -96
- package/dist/storage.d.ts +112 -96
- package/dist/storage.mjs +1 -1
- package/dist/store-core.d-Ad5biajo.d.ts +301 -0
- package/dist/store-core.d-BqJI1-ix.d.mts +301 -0
- package/dist/testing.cjs +13 -13
- package/dist/testing.d.mts +5 -4
- package/dist/testing.d.ts +5 -4
- package/dist/testing.mjs +10 -10
- package/dist/{types.d-DW2vyaUq.d.mts → types.d-C5hlNbHa.d.mts} +8 -1
- package/dist/{types.d-DW2vyaUq.d.ts → types.d-C5hlNbHa.d.ts} +8 -1
- package/dist/{utils.d-BlWZFgdL.d.mts → utils.d-BEKLWa0Z.d.mts} +1 -1
- package/dist/{utils.d-7YcgfTCK.d.ts → utils.d-BdjHKDuT.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +55 -49
- package/dist/vite.d.mts +26 -10
- package/dist/vite.d.ts +26 -10
- package/dist/vite.mjs +54 -48
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +23 -2
- package/types/images.d.ts +9 -0
- package/dist/analyzer-KVTUYGTT.cjs +0 -16
- package/dist/chunk-CQL5ZGFU.cjs +0 -50
- package/dist/chunk-HONTCUK6.mjs +0 -203
- package/dist/chunk-K6PGK7DC.cjs +0 -203
- package/dist/chunk-NBIVGHAT.mjs +0 -50
- package/dist/island-value-protocol.d-BRayRghM.d.mts +0 -12
- package/dist/island-value-protocol.d-BRayRghM.d.ts +0 -12
- package/dist/layers-HMEGUEXM.cjs +0 -21
- package/dist/node-module-bundle-M6BISE2P.cjs +0 -13
- package/dist/search-client-6NVC6HM2.cjs +0 -15
- package/dist/session-H4TWP73H.cjs +0 -24
- package/dist/{chunk-JKFN3YVG.mjs → chunk-6JWXHPVR.mjs} +0 -0
- package/dist/{chunk-522K362I.mjs → chunk-C2OLXVUC.mjs} +0 -0
- package/dist/{chunk-MALGIHIC.cjs → chunk-HS4JPIGR.cjs} +0 -0
- package/dist/{chunk-PBJ7MEOV.cjs → chunk-OZUINP2P.cjs} +2 -2
- package/dist/{chunk-CUZT7474.cjs → chunk-TCMRLW3K.cjs} +0 -0
- package/dist/{chunk-Q3DO7MVK.mjs → chunk-URBP6DLH.mjs} +0 -0
- package/dist/{chunk-7FQFK3OA.mjs → chunk-V7HNYR76.mjs} +3 -3
- /package/dist/{chunk-AOTD2N5P.cjs → chunk-WGWWRV2M.cjs} +0 -0
|
@@ -5,7 +5,9 @@ var FARM_NO_RENDERER_MESSAGE = "This app sets `renderer: false`, so it cannot re
|
|
|
5
5
|
function throwNoRenderer() {
|
|
6
6
|
throw new Error(FARM_NO_RENDERER_MESSAGE);
|
|
7
7
|
}
|
|
8
|
+
var name = "none";
|
|
8
9
|
var Fragment = /* @__PURE__ */ Symbol.for("farm.no-renderer.fragment");
|
|
10
|
+
var Suspense = Fragment;
|
|
9
11
|
function createElement() {
|
|
10
12
|
return throwNoRenderer();
|
|
11
13
|
}
|
|
@@ -32,4 +34,6 @@ var server_default = { Fragment, createElement, isValidElement };
|
|
|
32
34
|
|
|
33
35
|
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
exports.Fragment = Fragment; exports.Suspense = Suspense; exports.capabilities = capabilities; exports.createElement = createElement; exports.default = server_default; exports.generateHydrationScript = generateHydrationScript; exports.isValidElement = isValidElement; exports.name = name; exports.renderToPipeableStream = renderToPipeableStream; exports.renderToReadableStream = renderToReadableStream; exports.renderToString = renderToString; exports.renderToStringWithHead = renderToStringWithHead;
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* never renders a component; this module only satisfies the renderer contract without loading
|
|
4
4
|
* React or another UI runtime. Any attempt to render explains how to add pages back.
|
|
5
5
|
*/
|
|
6
|
+
declare const name = "none";
|
|
6
7
|
declare const Fragment: unique symbol;
|
|
8
|
+
declare const Suspense: symbol;
|
|
7
9
|
declare function createElement(): never;
|
|
8
10
|
declare function isValidElement(): boolean;
|
|
9
11
|
declare function renderToString(): never;
|
|
@@ -18,4 +20,4 @@ declare const _default: {
|
|
|
18
20
|
isValidElement: typeof isValidElement;
|
|
19
21
|
};
|
|
20
22
|
|
|
21
|
-
export { Fragment, capabilities, createElement, _default as default, generateHydrationScript, isValidElement, renderToPipeableStream, renderToReadableStream, renderToString, renderToStringWithHead };
|
|
23
|
+
export { Fragment, Suspense, capabilities, createElement, _default as default, generateHydrationScript, isValidElement, name, renderToPipeableStream, renderToReadableStream, renderToString, renderToStringWithHead };
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* never renders a component; this module only satisfies the renderer contract without loading
|
|
4
4
|
* React or another UI runtime. Any attempt to render explains how to add pages back.
|
|
5
5
|
*/
|
|
6
|
+
declare const name = "none";
|
|
6
7
|
declare const Fragment: unique symbol;
|
|
8
|
+
declare const Suspense: symbol;
|
|
7
9
|
declare function createElement(): never;
|
|
8
10
|
declare function isValidElement(): boolean;
|
|
9
11
|
declare function renderToString(): never;
|
|
@@ -18,4 +20,4 @@ declare const _default: {
|
|
|
18
20
|
isValidElement: typeof isValidElement;
|
|
19
21
|
};
|
|
20
22
|
|
|
21
|
-
export { Fragment, capabilities, createElement, _default as default, generateHydrationScript, isValidElement, renderToPipeableStream, renderToReadableStream, renderToString, renderToStringWithHead };
|
|
23
|
+
export { Fragment, Suspense, capabilities, createElement, _default as default, generateHydrationScript, isValidElement, name, renderToPipeableStream, renderToReadableStream, renderToString, renderToStringWithHead };
|
|
@@ -5,7 +5,9 @@ var FARM_NO_RENDERER_MESSAGE = "This app sets `renderer: false`, so it cannot re
|
|
|
5
5
|
function throwNoRenderer() {
|
|
6
6
|
throw new Error(FARM_NO_RENDERER_MESSAGE);
|
|
7
7
|
}
|
|
8
|
+
var name = "none";
|
|
8
9
|
var Fragment = /* @__PURE__ */ Symbol.for("farm.no-renderer.fragment");
|
|
10
|
+
var Suspense = Fragment;
|
|
9
11
|
function createElement() {
|
|
10
12
|
return throwNoRenderer();
|
|
11
13
|
}
|
|
@@ -23,11 +25,13 @@ var renderToStringWithHead = void 0;
|
|
|
23
25
|
var server_default = { Fragment, createElement, isValidElement };
|
|
24
26
|
export {
|
|
25
27
|
Fragment,
|
|
28
|
+
Suspense,
|
|
26
29
|
capabilities,
|
|
27
30
|
createElement,
|
|
28
31
|
server_default as default,
|
|
29
32
|
generateHydrationScript,
|
|
30
33
|
isValidElement,
|
|
34
|
+
name,
|
|
31
35
|
renderToPipeableStream,
|
|
32
36
|
renderToReadableStream,
|
|
33
37
|
renderToString,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSAPG45RAcjs = require('../../chunk-SAPG45RA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkRDNKQ5MKcjs = require('../../chunk-RDNKQ5MK.cjs');
|
|
8
8
|
require('../../chunk-ATYTLVSI.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkUNOXV37Vcjs = require('../../chunk-UNOXV37V.cjs');
|
|
13
|
-
require('../../chunk-
|
|
13
|
+
require('../../chunk-C5QHZ626.cjs');
|
|
14
14
|
require('../../chunk-UZM3PDKK.cjs');
|
|
15
15
|
|
|
16
16
|
// src/renderer/react/server.ts
|
|
@@ -49,9 +49,9 @@ var Fragment = _react2.default.Fragment;
|
|
|
49
49
|
var Suspense = _react2.default.Suspense;
|
|
50
50
|
var createElement = _react2.default.createElement;
|
|
51
51
|
var isValidElement = _react2.default.isValidElement;
|
|
52
|
-
var wrapClientGraph = (element) =>
|
|
53
|
-
var isolateServerPageGraph = (element) =>
|
|
54
|
-
var renderServerTreePage = (element, options = {}) =>
|
|
52
|
+
var wrapClientGraph = (element) => _chunkSAPG45RAcjs.wrapFarmIsolatedClientGraph.call(void 0, _react2.default, element);
|
|
53
|
+
var isolateServerPageGraph = (element) => _chunkSAPG45RAcjs.isolateFarmServerPageGraph.call(void 0, _react2.default, element);
|
|
54
|
+
var renderServerTreePage = (element, options = {}) => _chunkRDNKQ5MKcjs.renderFarmServerTreePage.call(void 0, _react2.default, element, { isolate: isolateServerPageGraph, ...options });
|
|
55
55
|
var renderToString = _server.renderToString;
|
|
56
56
|
var renderToPipeableStream = _server.renderToPipeableStream;
|
|
57
57
|
var server_default = _react2.default;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isolateFarmServerPageGraph,
|
|
3
3
|
wrapFarmIsolatedClientGraph
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-KR5DF7WK.mjs";
|
|
5
5
|
import {
|
|
6
6
|
renderFarmServerTreePage
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-XBSIGZ4J.mjs";
|
|
8
8
|
import "../../chunk-FHURJABM.mjs";
|
|
9
9
|
import {
|
|
10
10
|
markLayoutPosition,
|
|
11
11
|
markPagePosition
|
|
12
12
|
} from "../../chunk-NUWUEXUD.mjs";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-UDMBUTJD.mjs";
|
|
14
14
|
import "../../chunk-TIZJYHB7.mjs";
|
|
15
15
|
|
|
16
16
|
// src/renderer/react/server.ts
|
package/dist/renderer-client.cjs
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
var _chunkYBXIVQCEcjs = require('./chunk-YBXIVQCE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkB7L24VPXcjs = require('./chunk-B7L24VPX.cjs');
|
|
10
|
+
require('./chunk-RK3YYUX6.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
7
13
|
var _chunkN4AQNEXRcjs = require('./chunk-N4AQNEXR.cjs');
|
|
8
14
|
|
|
9
15
|
|
|
@@ -23,7 +29,7 @@ var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
|
|
|
23
29
|
|
|
24
30
|
|
|
25
31
|
|
|
26
|
-
var
|
|
32
|
+
var _chunkUGD53SNOcjs = require('./chunk-UGD53SNO.cjs');
|
|
27
33
|
|
|
28
34
|
|
|
29
35
|
var _chunkJIBEFLQ7cjs = require('./chunk-JIBEFLQ7.cjs');
|
|
@@ -36,10 +42,11 @@ var _chunk2PJVEL56cjs = require('./chunk-2PJVEL56.cjs');
|
|
|
36
42
|
var _chunkI2BYNELAcjs = require('./chunk-I2BYNELA.cjs');
|
|
37
43
|
require('./chunk-PENBZAHJ.cjs');
|
|
38
44
|
require('./chunk-MPU5DOXX.cjs');
|
|
45
|
+
require('./chunk-WKVYF2B5.cjs');
|
|
39
46
|
require('./chunk-CIY74JLV.cjs');
|
|
40
47
|
require('./chunk-RWR7SMD7.cjs');
|
|
41
48
|
require('./chunk-Y3DO7BIJ.cjs');
|
|
42
|
-
require('./chunk-
|
|
49
|
+
require('./chunk-C5QHZ626.cjs');
|
|
43
50
|
require('./chunk-6FXBJPF5.cjs');
|
|
44
51
|
require('./chunk-DBYNZIIQ.cjs');
|
|
45
52
|
require('./chunk-NLBHLPEO.cjs');
|
|
@@ -63,13 +70,14 @@ var _chunkGYJT2U7Jcjs = require('./chunk-GYJT2U7J.cjs');
|
|
|
63
70
|
|
|
64
71
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
65
72
|
require('./chunk-ML4TOUZP.cjs');
|
|
73
|
+
require('./chunk-3BIASUGR.cjs');
|
|
66
74
|
require('./chunk-UZM3PDKK.cjs');
|
|
67
75
|
|
|
68
76
|
// src/renderer-client.ts
|
|
69
77
|
function createRendererRouter(options = {}) {
|
|
70
78
|
const basePath = options.basePath === void 0 ? _chunkD22BUQKWcjs.getFarmBasePath.call(void 0, ) : _chunkD22BUQKWcjs.normalizeFarmBasePath.call(void 0, options.basePath);
|
|
71
79
|
const matcher = _optionalChain([options, 'access', _ => _.routes, 'optionalAccess', _2 => _2.length]) ? _chunkO4JYMU5Ncjs.createFarmRouter.call(void 0, [...options.routes]) : null;
|
|
72
|
-
const router =
|
|
80
|
+
const router = _chunkUGD53SNOcjs.getRouter.call(void 0, );
|
|
73
81
|
let snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
|
|
74
82
|
const read = () => {
|
|
75
83
|
snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
|
|
@@ -85,7 +93,7 @@ function createRendererRouter(options = {}) {
|
|
|
85
93
|
listener();
|
|
86
94
|
};
|
|
87
95
|
const unsubscribeNavigation = router.subscribeNavigation(notify);
|
|
88
|
-
const unsubscribeHistory =
|
|
96
|
+
const unsubscribeHistory = _chunkUGD53SNOcjs.subscribeHistoryChange.call(void 0, notify);
|
|
89
97
|
read();
|
|
90
98
|
return () => {
|
|
91
99
|
unsubscribeNavigation();
|
|
@@ -228,9 +236,17 @@ function createRendererQuery(query, input, options = {}) {
|
|
|
228
236
|
let unsubscribeCache;
|
|
229
237
|
let cleanupBrowser;
|
|
230
238
|
const run = (force = false) => _chunkEX6ZSN5Pcjs.fetchServerQuery.call(void 0, query, input, { ...options, force });
|
|
239
|
+
let pendingInvalidation = false;
|
|
231
240
|
const ensureStarted = () => {
|
|
232
241
|
if (options.enabled === false || unsubscribeCache) return;
|
|
233
|
-
unsubscribeCache = cache.subscribe(key, () => {
|
|
242
|
+
unsubscribeCache = cache.subscribe(key, (event) => {
|
|
243
|
+
const entry = cache.get(key);
|
|
244
|
+
if (event === "invalidate") pendingInvalidation = true;
|
|
245
|
+
else if (_optionalChain([entry, 'optionalAccess', _13 => _13.fetching])) pendingInvalidation = false;
|
|
246
|
+
if (pendingInvalidation && _optionalChain([entry, 'optionalAccess', _14 => _14.invalidatedAt]) !== void 0 && !entry.fetching) {
|
|
247
|
+
pendingInvalidation = false;
|
|
248
|
+
void run().catch(() => void 0);
|
|
249
|
+
}
|
|
234
250
|
for (const listener of listeners) listener();
|
|
235
251
|
});
|
|
236
252
|
if (!cache.get(key) || cache.isStale(key)) void run().catch(() => void 0);
|
|
@@ -247,13 +263,13 @@ function createRendererQuery(query, input, options = {}) {
|
|
|
247
263
|
return {
|
|
248
264
|
getSnapshot() {
|
|
249
265
|
const entry = cache.get(key);
|
|
250
|
-
const status = _nullishCoalesce(_optionalChain([entry, 'optionalAccess',
|
|
266
|
+
const status = _nullishCoalesce(_optionalChain([entry, 'optionalAccess', _15 => _15.status]), () => ( (entry ? "success" : "idle")));
|
|
251
267
|
return {
|
|
252
|
-
data: _optionalChain([entry, 'optionalAccess',
|
|
253
|
-
error: _nullishCoalesce(_optionalChain([entry, 'optionalAccess',
|
|
268
|
+
data: _optionalChain([entry, 'optionalAccess', _16 => _16.data]),
|
|
269
|
+
error: _nullishCoalesce(_optionalChain([entry, 'optionalAccess', _17 => _17.error]), () => ( null)),
|
|
254
270
|
status,
|
|
255
|
-
pending: status === "pending" && (_nullishCoalesce(_optionalChain([entry, 'optionalAccess',
|
|
256
|
-
fetching: _nullishCoalesce(_optionalChain([entry, 'optionalAccess',
|
|
271
|
+
pending: status === "pending" && (_nullishCoalesce(_optionalChain([entry, 'optionalAccess', _18 => _18.updatedAt]), () => ( 0))) === 0,
|
|
272
|
+
fetching: _nullishCoalesce(_optionalChain([entry, 'optionalAccess', _19 => _19.fetching]), () => ( false)),
|
|
257
273
|
stale: cache.isStale(key)
|
|
258
274
|
};
|
|
259
275
|
},
|
|
@@ -264,8 +280,8 @@ function createRendererQuery(query, input, options = {}) {
|
|
|
264
280
|
},
|
|
265
281
|
refetch: () => run(true),
|
|
266
282
|
dispose() {
|
|
267
|
-
_optionalChain([unsubscribeCache, 'optionalCall',
|
|
268
|
-
_optionalChain([cleanupBrowser, 'optionalCall',
|
|
283
|
+
_optionalChain([unsubscribeCache, 'optionalCall', _20 => _20()]);
|
|
284
|
+
_optionalChain([cleanupBrowser, 'optionalCall', _21 => _21()]);
|
|
269
285
|
unsubscribeCache = void 0;
|
|
270
286
|
cleanupBrowser = void 0;
|
|
271
287
|
listeners.clear();
|
|
@@ -315,8 +331,8 @@ function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
|
315
331
|
return {
|
|
316
332
|
pathname,
|
|
317
333
|
searchParams: url.searchParams,
|
|
318
|
-
params: _optionalChain([matcher, 'optionalAccess',
|
|
319
|
-
pageState:
|
|
334
|
+
params: _optionalChain([matcher, 'optionalAccess', _22 => _22.match, 'call', _23 => _23(routePathname), 'optionalAccess', _24 => _24.params]) || {},
|
|
335
|
+
pageState: _chunkUGD53SNOcjs.readPageState.call(void 0, ),
|
|
320
336
|
navigation
|
|
321
337
|
};
|
|
322
338
|
}
|
|
@@ -346,4 +362,7 @@ function isRendererFormData(value) {
|
|
|
346
362
|
|
|
347
363
|
|
|
348
364
|
|
|
349
|
-
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
exports.FARM_LINK_OPTION_KEYS = _chunkB7L24VPXcjs.FARM_LINK_OPTION_KEYS; exports.createRendererAction = createRendererAction; exports.createRendererI18n = createRendererI18n; exports.createRendererQuery = createRendererQuery; exports.createRendererRouter = createRendererRouter; exports.createRendererTheme = createRendererTheme; exports.createStore = _chunkB7L24VPXcjs.createStore; exports.delegateNavigation = _chunkJIBEFLQ7cjs.delegateNavigation; exports.resolveLinkAttributes = _chunkB7L24VPXcjs.resolveLinkAttributes;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
export { F as
|
|
10
|
-
|
|
11
|
-
import './
|
|
1
|
+
import './router.mjs';
|
|
2
|
+
export { b as FarmViewTransitionMode } from './spa-router.d-V6XLSTCy.mjs';
|
|
3
|
+
import './client-cache.d-di_Nasxa.mjs';
|
|
4
|
+
import './server-fn.mjs';
|
|
5
|
+
import './server-query.mjs';
|
|
6
|
+
import './server-query-runtime.d-aP52iuL5.mjs';
|
|
7
|
+
import './types.d-DQnyD3VD.mjs';
|
|
8
|
+
export { b as FarmI18nClientSnapshot, f as FarmI18nLocale, o as FarmTranslator } from './types.d-euATAbE4.mjs';
|
|
9
|
+
export { D as DefaultRouteHref, m as FARM_LINK_OPTION_KEYS, n as FarmAction, o as FarmActionOptions, p as FarmActionSnapshot, q as FarmActionStatus, r as FarmActionSubmit, s as FarmClientStore, t as FarmLinkAttributes, F as FarmLinkOptions, u as FarmRendererI18n, v as FarmRendererQuery, w as FarmRendererQueryOptions, x as FarmRendererQuerySnapshot, y as FarmRendererRouter, z as FarmRendererRouterOptions, A as FarmRendererRouterSnapshot, B as FarmRendererTheme, C as FarmRouteActionTarget, L as LinkDefaultRoute, G as Store, l as StoreApi, H as StoreFields, S as StoreKeyListener, g as StoreKeysListener, h as StoreListener, i as StorePatch, j as StoreState, k as StoreValueUpdater, I as createRendererAction, J as createRendererI18n, K as createRendererQuery, M as createRendererRouter, N as createRendererTheme, O as createStore, Q as resolveLinkAttributes } from './store-core.d-BqJI1-ix.mjs';
|
|
10
|
+
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-BElGUMgt.mjs';
|
|
11
|
+
import './client-plugins.d-BflSNO-b.mjs';
|
|
12
|
+
import './lifecycle.d-OtGWAvJT.mjs';
|
|
12
13
|
import './route.d-ShmtqqVQ.mjs';
|
|
13
14
|
import './endpoint.d-BXbBpKoh.mjs';
|
|
14
15
|
import './cache.mjs';
|
|
@@ -16,7 +17,7 @@ import './renderer.mjs';
|
|
|
16
17
|
import './deployment.mjs';
|
|
17
18
|
import 'http';
|
|
18
19
|
import './routing.d-D67HQmnv.mjs';
|
|
19
|
-
import './types.d-
|
|
20
|
+
import './types.d-C5hlNbHa.mjs';
|
|
20
21
|
import '@farming-labs/orm';
|
|
21
22
|
import '@libsql/core/api';
|
|
22
23
|
import '@farming-labs/orm-sql';
|
|
@@ -25,7 +26,7 @@ import 'unstorage';
|
|
|
25
26
|
import './schema.d-BM-uVGpx.mjs';
|
|
26
27
|
import 'react';
|
|
27
28
|
import '@farming-labs/docs';
|
|
28
|
-
import './observability.d-
|
|
29
|
+
import './observability.d-mXSbp4jc.mjs';
|
|
29
30
|
import '@opentelemetry/api';
|
|
30
31
|
import './types.d-xCIhyjOq.mjs';
|
|
31
32
|
import 'vite';
|
|
@@ -33,6 +34,7 @@ import './workflows.mjs';
|
|
|
33
34
|
import './server-http.d-rAe7lAQc.mjs';
|
|
34
35
|
import './cron.mjs';
|
|
35
36
|
import './env.mjs';
|
|
37
|
+
import './navigation-errors.d-DwHtoMyR.mjs';
|
|
36
38
|
import './server-action-security.mjs';
|
|
37
39
|
import './server-fn-error.d-DrcH9cc1.mjs';
|
|
38
40
|
import './layers.d-CH0bC4QL.mjs';
|
|
@@ -42,90 +44,4 @@ import './image-config.d-ByhQ0TT7.mjs';
|
|
|
42
44
|
import './config.d-BKIhJtmr.mjs';
|
|
43
45
|
import './font.mjs';
|
|
44
46
|
import './island.d-CfGru1MO.mjs';
|
|
45
|
-
import './render-plan.d-
|
|
46
|
-
|
|
47
|
-
interface FarmClientStore<TSnapshot> {
|
|
48
|
-
getSnapshot(): TSnapshot;
|
|
49
|
-
subscribe(listener: () => void): () => void;
|
|
50
|
-
}
|
|
51
|
-
interface FarmRendererRouterOptions {
|
|
52
|
-
basePath?: string;
|
|
53
|
-
routes?: readonly FarmRouterRouteInput[];
|
|
54
|
-
}
|
|
55
|
-
interface FarmRendererRouterSnapshot {
|
|
56
|
-
pathname: string;
|
|
57
|
-
searchParams: URLSearchParams;
|
|
58
|
-
params: Record<string, string>;
|
|
59
|
-
pageState: unknown;
|
|
60
|
-
navigation: FarmNavigationState;
|
|
61
|
-
}
|
|
62
|
-
interface FarmRendererRouter extends FarmClientStore<FarmRendererRouterSnapshot> {
|
|
63
|
-
push(href: string, options?: Omit<FarmNavigateOptions, "replace">): Promise<void>;
|
|
64
|
-
replace(href: string, options?: Omit<FarmNavigateOptions, "replace">): Promise<void>;
|
|
65
|
-
refresh(options?: Omit<FarmNavigateOptions, "replace" | "refresh">): Promise<void>;
|
|
66
|
-
prefetch(href: string): Promise<void>;
|
|
67
|
-
back(): void;
|
|
68
|
-
forward(): void;
|
|
69
|
-
pushState<TState>(state: TState, href?: string): void;
|
|
70
|
-
replaceState<TState>(state: TState, href?: string): void;
|
|
71
|
-
}
|
|
72
|
-
declare function createRendererRouter(options?: FarmRendererRouterOptions): FarmRendererRouter;
|
|
73
|
-
type FarmActionStatus = "idle" | "pending" | "success" | "error";
|
|
74
|
-
interface FarmActionSnapshot<TResult, TError extends Error = Error> {
|
|
75
|
-
pending: boolean;
|
|
76
|
-
status: FarmActionStatus;
|
|
77
|
-
data: TResult | null;
|
|
78
|
-
error: TError | null;
|
|
79
|
-
}
|
|
80
|
-
interface FarmActionOptions<TInput, TResult, TError extends Error = Error> {
|
|
81
|
-
initialResult?: TResult | null;
|
|
82
|
-
resetOnSubmit?: boolean;
|
|
83
|
-
optimistic?: (context: {
|
|
84
|
-
input: TInput | FormData | undefined;
|
|
85
|
-
formData?: FormData;
|
|
86
|
-
current: TResult | null;
|
|
87
|
-
}) => TResult | null | undefined;
|
|
88
|
-
rollbackOnError?: boolean;
|
|
89
|
-
onSuccess?: (result: TResult) => void;
|
|
90
|
-
onError?: (error: TError) => void;
|
|
91
|
-
onSettled?: (result: TResult | null, error: TError | null) => void;
|
|
92
|
-
}
|
|
93
|
-
type FarmActionSubmit<TInput, TResult> = [unknown] extends [TInput] ? (input?: TInput | FormData) => Promise<TResult> : (input: TInput | FormData) => Promise<TResult>;
|
|
94
|
-
type FarmAction<TInput, TResult, TError extends Error = Error> = FarmClientStore<FarmActionSnapshot<TResult, TError>> & {
|
|
95
|
-
submit: FarmActionSubmit<TInput, TResult>;
|
|
96
|
-
reset(): void;
|
|
97
|
-
};
|
|
98
|
-
type FarmRouteActionTarget<TServerFn extends ServerFn<any, any, any>> = {
|
|
99
|
-
readonly action: TServerFn;
|
|
100
|
-
};
|
|
101
|
-
declare function createRendererAction<TInput, TResult, TError extends Error = Error>(target: ServerFn<TInput, TResult, TError> | FarmRouteActionTarget<ServerFn<TInput, TResult, TError>>, options?: FarmActionOptions<TInput, TResult, TError>): FarmAction<TInput, TResult, TError>;
|
|
102
|
-
interface FarmRendererQueryOptions extends ServerQueryFetchOptions {
|
|
103
|
-
enabled?: boolean;
|
|
104
|
-
refetchOnWindowFocus?: boolean;
|
|
105
|
-
refetchOnReconnect?: boolean;
|
|
106
|
-
}
|
|
107
|
-
interface FarmRendererQuerySnapshot<TData> {
|
|
108
|
-
data: TData | undefined;
|
|
109
|
-
error: Error | null;
|
|
110
|
-
status: FarmClientCacheStatus;
|
|
111
|
-
pending: boolean;
|
|
112
|
-
fetching: boolean;
|
|
113
|
-
stale: boolean;
|
|
114
|
-
}
|
|
115
|
-
interface FarmRendererQuery<TData> extends FarmClientStore<FarmRendererQuerySnapshot<TData>> {
|
|
116
|
-
refetch(): Promise<TData>;
|
|
117
|
-
dispose(): void;
|
|
118
|
-
}
|
|
119
|
-
declare function createRendererQuery<TInput, TData>(query: ServerQuery<TInput, TData>, input: TInput, options?: FarmRendererQueryOptions): FarmRendererQuery<TData>;
|
|
120
|
-
interface FarmRendererTheme extends FarmClientStore<FarmThemeSnapshot> {
|
|
121
|
-
setTheme(theme: FarmThemePreference): void;
|
|
122
|
-
toggleTheme(): FarmThemeSnapshot["resolvedTheme"];
|
|
123
|
-
}
|
|
124
|
-
declare function createRendererTheme(): FarmRendererTheme;
|
|
125
|
-
interface FarmRendererI18n extends FarmClientStore<FarmI18nClientSnapshot | undefined> {
|
|
126
|
-
readonly t: FarmTranslator;
|
|
127
|
-
setLocale(locale: FarmI18nLocale): void;
|
|
128
|
-
}
|
|
129
|
-
declare function createRendererI18n(): FarmRendererI18n;
|
|
130
|
-
|
|
131
|
-
export { type FarmAction, type FarmActionOptions, type FarmActionSnapshot, type FarmActionStatus, type FarmActionSubmit, type FarmClientStore, FarmI18nClientSnapshot, FarmI18nLocale, type FarmRendererI18n, type FarmRendererQuery, type FarmRendererQueryOptions, type FarmRendererQuerySnapshot, type FarmRendererRouter, type FarmRendererRouterOptions, type FarmRendererRouterSnapshot, type FarmRendererTheme, type FarmRouteActionTarget, FarmTranslator, createRendererAction, createRendererI18n, createRendererQuery, createRendererRouter, createRendererTheme };
|
|
47
|
+
import './render-plan.d-xWCRAJeR.mjs';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
export { F as
|
|
10
|
-
|
|
11
|
-
import './
|
|
1
|
+
import './router.js';
|
|
2
|
+
export { b as FarmViewTransitionMode } from './spa-router.d-DMKiBsHH.js';
|
|
3
|
+
import './client-cache.d-Deoqq-nM.js';
|
|
4
|
+
import './server-fn.js';
|
|
5
|
+
import './server-query.js';
|
|
6
|
+
import './server-query-runtime.d-DXRNhX_3.js';
|
|
7
|
+
import './types.d-DQnyD3VD.js';
|
|
8
|
+
export { b as FarmI18nClientSnapshot, f as FarmI18nLocale, o as FarmTranslator } from './types.d-euATAbE4.js';
|
|
9
|
+
export { D as DefaultRouteHref, m as FARM_LINK_OPTION_KEYS, n as FarmAction, o as FarmActionOptions, p as FarmActionSnapshot, q as FarmActionStatus, r as FarmActionSubmit, s as FarmClientStore, t as FarmLinkAttributes, F as FarmLinkOptions, u as FarmRendererI18n, v as FarmRendererQuery, w as FarmRendererQueryOptions, x as FarmRendererQuerySnapshot, y as FarmRendererRouter, z as FarmRendererRouterOptions, A as FarmRendererRouterSnapshot, B as FarmRendererTheme, C as FarmRouteActionTarget, L as LinkDefaultRoute, G as Store, l as StoreApi, H as StoreFields, S as StoreKeyListener, g as StoreKeysListener, h as StoreListener, i as StorePatch, j as StoreState, k as StoreValueUpdater, I as createRendererAction, J as createRendererI18n, K as createRendererQuery, M as createRendererRouter, N as createRendererTheme, O as createStore, Q as resolveLinkAttributes } from './store-core.d-Ad5biajo.js';
|
|
10
|
+
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-o3pPd9VI.js';
|
|
11
|
+
import './client-plugins.d-qWp8hNwd.js';
|
|
12
|
+
import './lifecycle.d-OtGWAvJT.js';
|
|
12
13
|
import './route.d-Cd4Fi6BA.js';
|
|
13
14
|
import './endpoint.d-Dx_1k6Du.js';
|
|
14
15
|
import './cache.js';
|
|
@@ -16,7 +17,7 @@ import './renderer.js';
|
|
|
16
17
|
import './deployment.js';
|
|
17
18
|
import 'http';
|
|
18
19
|
import './routing.d-BhPgtN_S.js';
|
|
19
|
-
import './types.d-
|
|
20
|
+
import './types.d-C5hlNbHa.js';
|
|
20
21
|
import '@farming-labs/orm';
|
|
21
22
|
import '@libsql/core/api';
|
|
22
23
|
import '@farming-labs/orm-sql';
|
|
@@ -25,7 +26,7 @@ import 'unstorage';
|
|
|
25
26
|
import './schema.d-BM-uVGpx.js';
|
|
26
27
|
import 'react';
|
|
27
28
|
import '@farming-labs/docs';
|
|
28
|
-
import './observability.d-
|
|
29
|
+
import './observability.d-mXSbp4jc.js';
|
|
29
30
|
import '@opentelemetry/api';
|
|
30
31
|
import './types.d-xCIhyjOq.js';
|
|
31
32
|
import 'vite';
|
|
@@ -33,6 +34,7 @@ import './workflows.js';
|
|
|
33
34
|
import './server-http.d-rAe7lAQc.js';
|
|
34
35
|
import './cron.js';
|
|
35
36
|
import './env.js';
|
|
37
|
+
import './navigation-errors.d-DwHtoMyR.js';
|
|
36
38
|
import './server-action-security.js';
|
|
37
39
|
import './server-fn-error.d-DrcH9cc1.js';
|
|
38
40
|
import './layers.d-CH0bC4QL.js';
|
|
@@ -42,90 +44,4 @@ import './image-config.d-ByhQ0TT7.js';
|
|
|
42
44
|
import './config.d-BKIhJtmr.js';
|
|
43
45
|
import './font.js';
|
|
44
46
|
import './island.d-CfGru1MO.js';
|
|
45
|
-
import './render-plan.d-
|
|
46
|
-
|
|
47
|
-
interface FarmClientStore<TSnapshot> {
|
|
48
|
-
getSnapshot(): TSnapshot;
|
|
49
|
-
subscribe(listener: () => void): () => void;
|
|
50
|
-
}
|
|
51
|
-
interface FarmRendererRouterOptions {
|
|
52
|
-
basePath?: string;
|
|
53
|
-
routes?: readonly FarmRouterRouteInput[];
|
|
54
|
-
}
|
|
55
|
-
interface FarmRendererRouterSnapshot {
|
|
56
|
-
pathname: string;
|
|
57
|
-
searchParams: URLSearchParams;
|
|
58
|
-
params: Record<string, string>;
|
|
59
|
-
pageState: unknown;
|
|
60
|
-
navigation: FarmNavigationState;
|
|
61
|
-
}
|
|
62
|
-
interface FarmRendererRouter extends FarmClientStore<FarmRendererRouterSnapshot> {
|
|
63
|
-
push(href: string, options?: Omit<FarmNavigateOptions, "replace">): Promise<void>;
|
|
64
|
-
replace(href: string, options?: Omit<FarmNavigateOptions, "replace">): Promise<void>;
|
|
65
|
-
refresh(options?: Omit<FarmNavigateOptions, "replace" | "refresh">): Promise<void>;
|
|
66
|
-
prefetch(href: string): Promise<void>;
|
|
67
|
-
back(): void;
|
|
68
|
-
forward(): void;
|
|
69
|
-
pushState<TState>(state: TState, href?: string): void;
|
|
70
|
-
replaceState<TState>(state: TState, href?: string): void;
|
|
71
|
-
}
|
|
72
|
-
declare function createRendererRouter(options?: FarmRendererRouterOptions): FarmRendererRouter;
|
|
73
|
-
type FarmActionStatus = "idle" | "pending" | "success" | "error";
|
|
74
|
-
interface FarmActionSnapshot<TResult, TError extends Error = Error> {
|
|
75
|
-
pending: boolean;
|
|
76
|
-
status: FarmActionStatus;
|
|
77
|
-
data: TResult | null;
|
|
78
|
-
error: TError | null;
|
|
79
|
-
}
|
|
80
|
-
interface FarmActionOptions<TInput, TResult, TError extends Error = Error> {
|
|
81
|
-
initialResult?: TResult | null;
|
|
82
|
-
resetOnSubmit?: boolean;
|
|
83
|
-
optimistic?: (context: {
|
|
84
|
-
input: TInput | FormData | undefined;
|
|
85
|
-
formData?: FormData;
|
|
86
|
-
current: TResult | null;
|
|
87
|
-
}) => TResult | null | undefined;
|
|
88
|
-
rollbackOnError?: boolean;
|
|
89
|
-
onSuccess?: (result: TResult) => void;
|
|
90
|
-
onError?: (error: TError) => void;
|
|
91
|
-
onSettled?: (result: TResult | null, error: TError | null) => void;
|
|
92
|
-
}
|
|
93
|
-
type FarmActionSubmit<TInput, TResult> = [unknown] extends [TInput] ? (input?: TInput | FormData) => Promise<TResult> : (input: TInput | FormData) => Promise<TResult>;
|
|
94
|
-
type FarmAction<TInput, TResult, TError extends Error = Error> = FarmClientStore<FarmActionSnapshot<TResult, TError>> & {
|
|
95
|
-
submit: FarmActionSubmit<TInput, TResult>;
|
|
96
|
-
reset(): void;
|
|
97
|
-
};
|
|
98
|
-
type FarmRouteActionTarget<TServerFn extends ServerFn<any, any, any>> = {
|
|
99
|
-
readonly action: TServerFn;
|
|
100
|
-
};
|
|
101
|
-
declare function createRendererAction<TInput, TResult, TError extends Error = Error>(target: ServerFn<TInput, TResult, TError> | FarmRouteActionTarget<ServerFn<TInput, TResult, TError>>, options?: FarmActionOptions<TInput, TResult, TError>): FarmAction<TInput, TResult, TError>;
|
|
102
|
-
interface FarmRendererQueryOptions extends ServerQueryFetchOptions {
|
|
103
|
-
enabled?: boolean;
|
|
104
|
-
refetchOnWindowFocus?: boolean;
|
|
105
|
-
refetchOnReconnect?: boolean;
|
|
106
|
-
}
|
|
107
|
-
interface FarmRendererQuerySnapshot<TData> {
|
|
108
|
-
data: TData | undefined;
|
|
109
|
-
error: Error | null;
|
|
110
|
-
status: FarmClientCacheStatus;
|
|
111
|
-
pending: boolean;
|
|
112
|
-
fetching: boolean;
|
|
113
|
-
stale: boolean;
|
|
114
|
-
}
|
|
115
|
-
interface FarmRendererQuery<TData> extends FarmClientStore<FarmRendererQuerySnapshot<TData>> {
|
|
116
|
-
refetch(): Promise<TData>;
|
|
117
|
-
dispose(): void;
|
|
118
|
-
}
|
|
119
|
-
declare function createRendererQuery<TInput, TData>(query: ServerQuery<TInput, TData>, input: TInput, options?: FarmRendererQueryOptions): FarmRendererQuery<TData>;
|
|
120
|
-
interface FarmRendererTheme extends FarmClientStore<FarmThemeSnapshot> {
|
|
121
|
-
setTheme(theme: FarmThemePreference): void;
|
|
122
|
-
toggleTheme(): FarmThemeSnapshot["resolvedTheme"];
|
|
123
|
-
}
|
|
124
|
-
declare function createRendererTheme(): FarmRendererTheme;
|
|
125
|
-
interface FarmRendererI18n extends FarmClientStore<FarmI18nClientSnapshot | undefined> {
|
|
126
|
-
readonly t: FarmTranslator;
|
|
127
|
-
setLocale(locale: FarmI18nLocale): void;
|
|
128
|
-
}
|
|
129
|
-
declare function createRendererI18n(): FarmRendererI18n;
|
|
130
|
-
|
|
131
|
-
export { type FarmAction, type FarmActionOptions, type FarmActionSnapshot, type FarmActionStatus, type FarmActionSubmit, type FarmClientStore, FarmI18nClientSnapshot, FarmI18nLocale, type FarmRendererI18n, type FarmRendererQuery, type FarmRendererQueryOptions, type FarmRendererQuerySnapshot, type FarmRendererRouter, type FarmRendererRouterOptions, type FarmRendererRouterSnapshot, type FarmRendererTheme, type FarmRouteActionTarget, FarmTranslator, createRendererAction, createRendererI18n, createRendererQuery, createRendererRouter, createRendererTheme };
|
|
47
|
+
import './render-plan.d-BD06tqFA.js';
|
package/dist/renderer-client.mjs
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createFarmClientTranslator
|
|
4
4
|
} from "./chunk-B5QRNCIE.mjs";
|
|
5
|
+
import {
|
|
6
|
+
FARM_LINK_OPTION_KEYS,
|
|
7
|
+
createStore,
|
|
8
|
+
resolveLinkAttributes
|
|
9
|
+
} from "./chunk-2UYYXSUS.mjs";
|
|
10
|
+
import "./chunk-5XD2ULJG.mjs";
|
|
5
11
|
import {
|
|
6
12
|
attachRevalidationListeners
|
|
7
13
|
} from "./chunk-Z64V4WZI.mjs";
|
|
@@ -23,7 +29,7 @@ import {
|
|
|
23
29
|
getRouter,
|
|
24
30
|
readPageState,
|
|
25
31
|
subscribeHistoryChange
|
|
26
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-PO5MZIWK.mjs";
|
|
27
33
|
import {
|
|
28
34
|
delegateNavigation
|
|
29
35
|
} from "./chunk-RSEAX5MW.mjs";
|
|
@@ -36,10 +42,11 @@ import {
|
|
|
36
42
|
} from "./chunk-C64XOPBZ.mjs";
|
|
37
43
|
import "./chunk-H227LYHT.mjs";
|
|
38
44
|
import "./chunk-N7XWC6BN.mjs";
|
|
45
|
+
import "./chunk-VDQZV6BX.mjs";
|
|
39
46
|
import "./chunk-PWHF2C6A.mjs";
|
|
40
47
|
import "./chunk-SD6JGJOM.mjs";
|
|
41
48
|
import "./chunk-AG27TI6Q.mjs";
|
|
42
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-UDMBUTJD.mjs";
|
|
43
50
|
import "./chunk-WCLLPR6H.mjs";
|
|
44
51
|
import "./chunk-7BIW7VCW.mjs";
|
|
45
52
|
import "./chunk-IWJONXPF.mjs";
|
|
@@ -63,6 +70,7 @@ import {
|
|
|
63
70
|
stripFarmBasePath
|
|
64
71
|
} from "./chunk-SF3JB56B.mjs";
|
|
65
72
|
import "./chunk-5KAEGBIL.mjs";
|
|
73
|
+
import "./chunk-VIXTAVEA.mjs";
|
|
66
74
|
import "./chunk-TIZJYHB7.mjs";
|
|
67
75
|
|
|
68
76
|
// src/renderer-client.ts
|
|
@@ -228,9 +236,17 @@ function createRendererQuery(query, input, options = {}) {
|
|
|
228
236
|
let unsubscribeCache;
|
|
229
237
|
let cleanupBrowser;
|
|
230
238
|
const run = (force = false) => fetchServerQuery(query, input, { ...options, force });
|
|
239
|
+
let pendingInvalidation = false;
|
|
231
240
|
const ensureStarted = () => {
|
|
232
241
|
if (options.enabled === false || unsubscribeCache) return;
|
|
233
|
-
unsubscribeCache = cache.subscribe(key, () => {
|
|
242
|
+
unsubscribeCache = cache.subscribe(key, (event) => {
|
|
243
|
+
const entry = cache.get(key);
|
|
244
|
+
if (event === "invalidate") pendingInvalidation = true;
|
|
245
|
+
else if (entry?.fetching) pendingInvalidation = false;
|
|
246
|
+
if (pendingInvalidation && entry?.invalidatedAt !== void 0 && !entry.fetching) {
|
|
247
|
+
pendingInvalidation = false;
|
|
248
|
+
void run().catch(() => void 0);
|
|
249
|
+
}
|
|
234
250
|
for (const listener of listeners) listener();
|
|
235
251
|
});
|
|
236
252
|
if (!cache.get(key) || cache.isStale(key)) void run().catch(() => void 0);
|
|
@@ -340,10 +356,13 @@ function isRendererFormData(value) {
|
|
|
340
356
|
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
341
357
|
}
|
|
342
358
|
export {
|
|
359
|
+
FARM_LINK_OPTION_KEYS,
|
|
343
360
|
createRendererAction,
|
|
344
361
|
createRendererI18n,
|
|
345
362
|
createRendererQuery,
|
|
346
363
|
createRendererRouter,
|
|
347
364
|
createRendererTheme,
|
|
348
|
-
|
|
365
|
+
createStore,
|
|
366
|
+
delegateNavigation,
|
|
367
|
+
resolveLinkAttributes
|
|
349
368
|
};
|
package/dist/renderer.cjs
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
var _chunkM6DAIE4Tcjs = require('./chunk-M6DAIE4T.cjs');
|
|
19
20
|
require('./chunk-UZM3PDKK.cjs');
|
|
20
21
|
|
|
21
22
|
|
|
@@ -34,4 +35,5 @@ require('./chunk-UZM3PDKK.cjs');
|
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
|
|
39
|
+
exports.FARM_COMPONENT_EXTENSIONS = _chunkM6DAIE4Tcjs.FARM_COMPONENT_EXTENSIONS; exports.NO_RENDERER = _chunkM6DAIE4Tcjs.NO_RENDERER; exports.REACT_RENDERER = _chunkM6DAIE4Tcjs.REACT_RENDERER; exports.assertFarmRendererServerModule = _chunkM6DAIE4Tcjs.assertFarmRendererServerModule; exports.assertFarmRendererStreamingRuntime = _chunkM6DAIE4Tcjs.assertFarmRendererStreamingRuntime; exports.defineRenderer = _chunkM6DAIE4Tcjs.defineRenderer; exports.getFarmRendererCapabilities = _chunkM6DAIE4Tcjs.getFarmRendererCapabilities; exports.getFarmRendererComponentExtensions = _chunkM6DAIE4Tcjs.getFarmRendererComponentExtensions; exports.getFarmRendererStreamingCapabilitiesForRuntime = _chunkM6DAIE4Tcjs.getFarmRendererStreamingCapabilitiesForRuntime; exports.isFarmRendererDisabled = _chunkM6DAIE4Tcjs.isFarmRendererDisabled; exports.isReactRenderer = _chunkM6DAIE4Tcjs.isReactRenderer; exports.loadFarmRendererVitePlugins = _chunkM6DAIE4Tcjs.loadFarmRendererVitePlugins; exports.readFarmRendererWebStream = _chunkM6DAIE4Tcjs.readFarmRendererWebStream; exports.resolveFarmComponentExtensions = _chunkM6DAIE4Tcjs.resolveFarmComponentExtensions; exports.resolveFarmRenderer = _chunkM6DAIE4Tcjs.resolveFarmRenderer; exports.resolveFarmRendererAppSetup = _chunkM6DAIE4Tcjs.resolveFarmRendererAppSetup; exports.resolveFarmRendererModule = _chunkM6DAIE4Tcjs.resolveFarmRendererModule;
|