@farm.js/core 0.1.81 → 0.1.83
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.d-Cxi3214_.d.ts → agent-mcp.d-7uKdOttc.d.ts} +1 -1
- package/dist/{agent-mcp.d-DMqOqnOA.d.mts → agent-mcp.d-LChlR2au.d.mts} +1 -1
- package/dist/agent-runtime.cjs +4 -3
- package/dist/agent-runtime.d.mts +2 -1
- package/dist/agent-runtime.d.ts +2 -1
- package/dist/agent-runtime.mjs +3 -2
- package/dist/analyzer-WGH6J2HN.cjs +17 -0
- package/dist/{analyzer-IC66UJCU.mjs → analyzer-Y6IY26HI.mjs} +2 -2
- package/dist/api/node.cjs +5 -4
- package/dist/api/node.d.mts +4 -3
- package/dist/api/node.d.ts +4 -3
- package/dist/api/node.mjs +4 -3
- package/dist/api/route-manager.cjs +5 -4
- package/dist/api/route-manager.d.mts +4 -3
- package/dist/api/route-manager.d.ts +4 -3
- package/dist/api/route-manager.mjs +4 -3
- package/dist/api/runtime.cjs +4 -3
- package/dist/api/runtime.d.mts +3 -2
- package/dist/api/runtime.d.ts +3 -2
- package/dist/api/runtime.mjs +3 -2
- package/dist/api.cjs +7 -6
- package/dist/api.d.mts +5 -4
- package/dist/api.d.ts +5 -4
- package/dist/api.mjs +6 -5
- package/dist/{app-manifest.d-C8Cswd31.d.ts → app-manifest.d-CRp21oAz.d.ts} +1 -1
- package/dist/{app-manifest.d-Bbxp5kes.d.mts → app-manifest.d-QMdmqqCr.d.mts} +1 -1
- package/dist/app-markdown.d.mts +3 -2
- package/dist/app-markdown.d.ts +3 -2
- package/dist/{app.d-DGIoFt5D.d.ts → app.d-CVPu_hoD.d.ts} +51 -4
- package/dist/{app.d-BJuSurgy.d.mts → app.d-eSm7jgoc.d.mts} +51 -4
- package/dist/{chunk-NSLRK5DK.cjs → chunk-3CZ4MJHW.cjs} +1 -1
- package/dist/{chunk-CPZZBCPO.cjs → chunk-3DAJXBSL.cjs} +2 -2
- package/dist/chunk-3DE6RK7K.cjs +36 -0
- package/dist/{chunk-XMHERKSE.mjs → chunk-42IBGQTN.mjs} +5 -12
- package/dist/{chunk-GY63XD6K.mjs → chunk-43N3X6OO.mjs} +1 -1
- package/dist/{chunk-MOGRRZMW.cjs → chunk-55UJGUBP.cjs} +35 -30
- package/dist/{chunk-BPWTSPK6.mjs → chunk-5AL2GXAU.mjs} +1 -1
- package/dist/{chunk-GAWSWJJ2.cjs → chunk-5GFTMTX3.cjs} +2 -2
- package/dist/{chunk-LKIG5SM6.cjs → chunk-5P65LXGU.cjs} +9 -9
- package/dist/{chunk-TPA2PV5J.mjs → chunk-5V6HSJFG.mjs} +24 -1
- package/dist/chunk-5X5GJU5A.cjs +426 -0
- package/dist/{chunk-UF4BNKKJ.mjs → chunk-6QYPP5KC.mjs} +2 -2
- package/dist/{chunk-ATISIC6G.mjs → chunk-7VJXYB6S.mjs} +7 -1
- package/dist/{chunk-OIWDEDUO.cjs → chunk-7X2CYE66.cjs} +419 -357
- package/dist/{chunk-XOGCNKB7.cjs → chunk-A5BHJHDF.cjs} +3 -3
- package/dist/{chunk-WGWWRV2M.cjs → chunk-B3HQTGXS.cjs} +6 -4
- package/dist/{chunk-HTNJ7A4D.mjs → chunk-B5SJYXJK.mjs} +177 -67
- package/dist/chunk-BUQR7KKO.mjs +17 -0
- package/dist/{chunk-OO4GVGM3.mjs → chunk-CA2HBLXP.mjs} +11 -1
- package/dist/{chunk-724WT3NI.mjs → chunk-CRE642TW.mjs} +1 -1
- package/dist/{chunk-Z5BANEQD.cjs → chunk-DMSXZNQR.cjs} +2 -2
- package/dist/{chunk-IPG6B25T.mjs → chunk-DPUZVGXH.mjs} +203 -54
- package/dist/{chunk-ZIYJWJV2.cjs → chunk-DZTWUEBB.cjs} +8 -8
- package/dist/{chunk-4OFWG4IK.cjs → chunk-EACD6ND7.cjs} +8 -2
- package/dist/{chunk-46UV2E7I.cjs → chunk-EFI6QWBQ.cjs} +200 -90
- package/dist/chunk-ELNRKD4V.mjs +426 -0
- package/dist/{chunk-XOXCQGAF.mjs → chunk-FFWSER54.mjs} +1 -1
- package/dist/chunk-FZ7OUN5M.cjs +30 -0
- package/dist/{chunk-5MMKNW7Q.cjs → chunk-H7REG7OX.cjs} +15 -8
- package/dist/{chunk-5ZHC6QGD.cjs → chunk-HQKCSJEH.cjs} +8 -2
- package/dist/{chunk-OUDNUFVR.cjs → chunk-HRH7OKBQ.cjs} +6 -4
- package/dist/{chunk-RHI67C2V.cjs → chunk-HUGPJFOC.cjs} +1 -35
- package/dist/{chunk-ADQ2LATR.cjs → chunk-IABI62FH.cjs} +2 -2
- package/dist/{chunk-TLSGRK7E.mjs → chunk-IAIRQAHA.mjs} +3 -1
- package/dist/{chunk-C2OLXVUC.mjs → chunk-IVP5Q4BX.mjs} +10 -3
- package/dist/{chunk-EX6ZSN5P.cjs → chunk-IZYFP7IN.cjs} +17 -24
- package/dist/chunk-J6RFB324.cjs +17 -0
- package/dist/{chunk-CL7BUGVB.cjs → chunk-JHRJ5V2F.cjs} +509 -360
- package/dist/{chunk-WIZRYFB2.cjs → chunk-JYQ6DGPW.cjs} +8 -6
- package/dist/{chunk-POL5RCVU.mjs → chunk-K3GHY7GY.mjs} +14 -9
- package/dist/{chunk-TYHWZOA2.mjs → chunk-KWI3SQFX.mjs} +4 -2
- package/dist/{chunk-UVV3I5QA.cjs → chunk-L2GUEYHR.cjs} +29 -6
- package/dist/{chunk-POVHO46S.mjs → chunk-L3RDECA5.mjs} +1 -1
- package/dist/{chunk-E3HBD2K3.cjs → chunk-LN6FAYNB.cjs} +36 -31
- package/dist/chunk-M6AJZ4XR.mjs +30 -0
- package/dist/{chunk-RPA45OQS.mjs → chunk-MO4UTDQ6.mjs} +1 -1
- package/dist/{chunk-6WVRVGKC.mjs → chunk-NAHDG6UX.mjs} +1 -1
- package/dist/{chunk-NOYKBGUK.mjs → chunk-NDWI6FDH.mjs} +558 -212
- package/dist/{chunk-OFVCWV2D.cjs → chunk-NEKO3HM2.cjs} +11 -1
- package/dist/{chunk-M6DAIE4T.cjs → chunk-NGTZHWBG.cjs} +78 -9
- package/dist/{chunk-D77OGI6X.mjs → chunk-NKVBWPXR.mjs} +1 -1
- package/dist/{chunk-SLEHAGGV.mjs → chunk-NQ3Y6E2T.mjs} +7 -1
- package/dist/{chunk-W6C3LEXX.cjs → chunk-OM6JIIJU.cjs} +155 -20
- package/dist/{chunk-S3IWDDQ3.mjs → chunk-ORBBAA7B.mjs} +1 -1
- package/dist/{chunk-7VCLTNED.mjs → chunk-PNMAD3OS.mjs} +1 -35
- package/dist/{chunk-BJWJP5A4.mjs → chunk-R3VLM2MW.mjs} +3 -3
- package/dist/{chunk-I4WZRG73.mjs → chunk-RB5IGN3N.mjs} +13 -6
- package/dist/{chunk-2HMSSPCZ.mjs → chunk-RGTZAM6Y.mjs} +71 -2
- package/dist/{chunk-IM3UINTZ.mjs → chunk-RNJX3MD6.mjs} +151 -16
- package/dist/{chunk-EJCVG25Z.mjs → chunk-S3R4JDRO.mjs} +17 -9
- package/dist/{chunk-2Y2HRZQY.cjs → chunk-SLIXHUMS.cjs} +931 -585
- package/dist/{chunk-WFVSAT7Y.cjs → chunk-T7HGXF7D.cjs} +3 -3
- package/dist/{chunk-ZKNXCRUQ.cjs → chunk-U54REWMJ.cjs} +23 -23
- package/dist/{chunk-YH7ENV3K.mjs → chunk-U56Z3755.mjs} +13 -8
- package/dist/chunk-U6XYBTUT.mjs +36 -0
- package/dist/{chunk-TCMRLW3K.cjs → chunk-VACYUMXW.cjs} +10 -3
- package/dist/{chunk-RZ6XUEQS.mjs → chunk-VQ6IXALL.mjs} +2 -2
- package/dist/{chunk-UGLTOLTJ.cjs → chunk-W76C7TCW.cjs} +2 -2
- package/dist/{chunk-FYZD7DUS.cjs → chunk-WCSBYQOT.cjs} +4 -4
- package/dist/{chunk-5N526T7Q.mjs → chunk-WZV2G2A6.mjs} +95 -33
- package/dist/{chunk-SM2SYWAR.cjs → chunk-XJDB564A.cjs} +18 -10
- package/dist/{chunk-6JWXHPVR.mjs → chunk-XRSNW4IU.mjs} +4 -2
- package/dist/{cli-runtime.d-D8O1v2_X.d.mts → cli-runtime.d-C7aMfoTq.d.mts} +8 -6
- package/dist/{cli-runtime.d-hf4L1MNP.d.ts → cli-runtime.d-DaElKjaL.d.ts} +8 -6
- package/dist/{client-component.d-DFwUHlOz.d.mts → client-component.d-DLMCzmUx.d.mts} +1 -1
- package/dist/{client-component.d-CX8UCQh-.d.ts → client-component.d-DLknFP8l.d.ts} +1 -1
- package/dist/{client-plugins.d-qWp8hNwd.d.ts → client-plugins.d-BVXjyIkY.d.ts} +20 -1
- package/dist/{client-plugins.d-BflSNO-b.d.mts → client-plugins.d-BwKwuO_0.d.mts} +20 -1
- package/dist/client-plugins.d.mts +2 -1
- package/dist/client-plugins.d.ts +2 -1
- package/dist/client.cjs +4 -3
- package/dist/client.d.mts +10 -9
- package/dist/client.d.ts +10 -9
- package/dist/client.mjs +3 -2
- package/dist/config.d.mts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/cron.cjs +2 -2
- package/dist/cron.mjs +1 -1
- package/dist/desktop.d.mts +3 -2
- package/dist/desktop.d.ts +3 -2
- package/dist/{devtools-XJHODO5H.mjs → devtools-OI52TCSD.mjs} +8 -7
- package/dist/{devtools-EI5N366Z.cjs → devtools-ZM2AR36W.cjs} +11 -10
- package/dist/docs.cjs +13 -11
- package/dist/docs.d.mts +15 -6
- package/dist/docs.d.ts +15 -6
- package/dist/docs.mjs +12 -10
- package/dist/environment/vite.cjs +4 -4
- package/dist/environment/vite.d.mts +1 -0
- package/dist/environment/vite.d.ts +1 -0
- package/dist/environment/vite.mjs +3 -3
- package/dist/{generate-route-types.d-CaGMIaNI.d.mts → generate-route-types.d-BFOMM8Ef.d.mts} +3 -0
- package/dist/{generate-route-types.d-B76M5R11.d.ts → generate-route-types.d-C2m8myHb.d.ts} +3 -0
- package/dist/{handler.d-DoH5Krkq.d.mts → handler.d-BKTWzzNA.d.mts} +1 -1
- package/dist/{handler.d-C2oRihfa.d.ts → handler.d-Dzpyg3-N.d.ts} +1 -1
- package/dist/{headers.d-BrX53wFQ.d.mts → headers.d-5opjyhXw.d.mts} +1 -1
- package/dist/{headers.d-Dj0mfYpb.d.ts → headers.d-PZyXcDAH.d.ts} +1 -1
- package/dist/index.cjs +38 -35
- package/dist/{index.d-DzDHOttz.d.mts → index.d-C0Mie66f.d.mts} +1 -1
- package/dist/{index.d-Dhc2scRl.d.ts → index.d-DV2q-0mE.d.ts} +1 -1
- package/dist/index.d.mts +26 -25
- package/dist/index.d.ts +26 -25
- package/dist/index.mjs +38 -35
- package/dist/integrations/orm.d.mts +2 -1
- package/dist/integrations/orm.d.ts +2 -1
- package/dist/integrations.cjs +4 -3
- package/dist/integrations.d.mts +2 -1
- package/dist/integrations.d.ts +2 -1
- package/dist/integrations.mjs +3 -2
- package/dist/internal/app-markdown-runtime.d.mts +3 -2
- package/dist/internal/app-markdown-runtime.d.ts +3 -2
- package/dist/internal/build-runtime.cjs +31 -30
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +30 -29
- package/dist/internal/cli-runtime.cjs +12 -11
- package/dist/internal/cli-runtime.d.mts +8 -7
- package/dist/internal/cli-runtime.d.ts +8 -7
- package/dist/internal/cli-runtime.mjs +11 -10
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/compression-runtime.d.mts +2 -1
- package/dist/internal/compression-runtime.d.ts +2 -1
- package/dist/internal/config-runtime.cjs +10 -9
- package/dist/internal/config-runtime.d.mts +6 -5
- package/dist/internal/config-runtime.d.ts +6 -5
- package/dist/internal/config-runtime.mjs +9 -8
- package/dist/internal/infra-analytics-runtime.cjs +8 -6
- package/dist/internal/infra-analytics-runtime.d.mts +8 -2
- package/dist/internal/infra-analytics-runtime.d.ts +8 -2
- package/dist/internal/infra-analytics-runtime.mjs +8 -6
- package/dist/internal/islands-action-client.cjs +18 -0
- package/dist/internal/islands-action-client.d.mts +18 -0
- package/dist/internal/islands-action-client.d.ts +18 -0
- package/dist/internal/islands-action-client.mjs +18 -0
- package/dist/internal/islands-boot.cjs +54 -20
- package/dist/internal/islands-boot.d.mts +5 -3
- package/dist/internal/islands-boot.d.ts +5 -3
- package/dist/internal/islands-boot.mjs +49 -15
- package/dist/internal/islands-runtime.cjs +3 -8
- package/dist/internal/islands-runtime.mjs +4 -9
- package/dist/internal/islx-actions-client.cjs +4 -3
- package/dist/internal/islx-actions-client.mjs +3 -2
- package/dist/internal/islx-actions-server.d.mts +0 -2
- package/dist/internal/islx-actions-server.d.ts +0 -2
- package/dist/internal/islx-client.cjs +13 -1
- package/dist/internal/islx-client.d.mts +11 -0
- package/dist/internal/islx-client.d.ts +11 -0
- package/dist/internal/islx-client.mjs +14 -0
- package/dist/internal/metadata-image-runtime.d.mts +1 -0
- package/dist/internal/metadata-image-runtime.d.ts +1 -0
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +12 -7
- package/dist/internal/production-runtime.d.mts +14 -12
- package/dist/internal/production-runtime.d.ts +14 -12
- package/dist/internal/production-runtime.mjs +11 -6
- package/dist/internal/spa-router.d.mts +3 -3
- package/dist/internal/spa-router.d.ts +3 -3
- package/dist/internal/start-manifest.d.mts +2 -1
- package/dist/internal/start-manifest.d.ts +2 -1
- package/dist/markdown.d.mts +2 -1
- package/dist/markdown.d.ts +2 -1
- package/dist/middleware.d.mts +2 -1
- package/dist/middleware.d.ts +2 -1
- package/dist/mobile.d.mts +6 -3
- package/dist/mobile.d.ts +6 -3
- package/dist/{mount.d-DOaeUoWq.d.mts → mount.d-CZ_qL1iS.d.mts} +1 -1
- package/dist/{mount.d-DwXjaOHY.d.ts → mount.d-gWul1GA1.d.ts} +1 -1
- package/dist/{navigation-delegate.d-BElGUMgt.d.mts → navigation-delegate.d-BBTzhJLj.d.mts} +1 -1
- package/dist/{navigation-delegate.d-o3pPd9VI.d.ts → navigation-delegate.d-BZsYEAet.d.ts} +1 -1
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/{nitro-YLTGVGK4.mjs → nitro-FK3SZM4H.mjs} +1 -1
- package/dist/{nitro-XGIO6EQN.cjs → nitro-YDFMH5PY.cjs} +4 -4
- package/dist/{plugin-LN3JBZRR.cjs → plugin-3PT7I26P.cjs} +2 -2
- package/dist/{plugin-33I3V42N.mjs → plugin-QOTAPTVV.mjs} +1 -1
- package/dist/plugin.cjs +25 -23
- package/dist/plugin.d.mts +6 -6
- package/dist/plugin.d.ts +6 -6
- package/dist/plugin.mjs +24 -22
- package/dist/{render-plan.d-BD06tqFA.d.ts → render-plan.d-AaJsYPX-.d.ts} +1 -1
- package/dist/{render-plan.d-xWCRAJeR.d.mts → render-plan.d-bnWxS12w.d.mts} +1 -1
- package/dist/renderer-client.cjs +54 -10
- package/dist/renderer-client.d.mts +8 -7
- package/dist/renderer-client.d.ts +8 -7
- package/dist/renderer-client.mjs +50 -6
- package/dist/renderer.cjs +6 -2
- package/dist/renderer.d.mts +97 -4
- package/dist/renderer.d.ts +97 -4
- package/dist/renderer.mjs +5 -1
- package/dist/{request.d-Dx82V8bz.d.mts → request.d-C2HOn3Hi.d.mts} +1 -1
- package/dist/{request.d-DUMuWxSN.d.ts → request.d-CAeitOG1.d.ts} +1 -1
- package/dist/request.d.mts +3 -2
- package/dist/request.d.ts +3 -2
- package/dist/{route-rendering.d-BwBVpLtD.d.ts → route-rendering.d-A1dIkUK5.d.ts} +1 -1
- package/dist/{route-rendering.d-DJh6GauM.d.mts → route-rendering.d-CYA-ulnX.d.mts} +1 -1
- package/dist/{router.d-BtkKDxUB.d.mts → router.d-8lxnzlkr.d.mts} +1 -1
- package/dist/{router.d-CJBSG5jr.d.ts → router.d-A_Yt6jYz.d.ts} +1 -1
- package/dist/{routes.d-CCccJRrp.d.mts → routes.d-BWvpUoYu.d.mts} +1 -1
- package/dist/{routes.d-b7khoRoU.d.ts → routes.d-D7RWvfqL.d.ts} +1 -1
- package/dist/routes.d.mts +2 -1
- package/dist/routes.d.ts +2 -1
- package/dist/{rsc-pipeline-H5AXQA7A.cjs → rsc-pipeline-MFJZGDPE.cjs} +11 -10
- package/dist/{rsc-pipeline-GD6KLOIG.mjs → rsc-pipeline-TRZVFCBX.mjs} +10 -9
- package/dist/{runtime-YWQVBC3V.cjs → runtime-MJUG2HGR.cjs} +15 -13
- package/dist/{runtime-OJ7FXFUI.mjs → runtime-O4Y3Z6V3.mjs} +11 -9
- package/dist/{runtime.d-BQnD0cfC.d.ts → runtime.d-BPyvWrgQ.d.ts} +1 -1
- package/dist/{runtime.d-C4SuZXf6.d.mts → runtime.d-C_rZ9_DD.d.mts} +1 -1
- package/dist/{server-components-status.d-9rH7ZoEq.d.mts → server-components-status.d-BpxiEMQE.d.mts} +1 -1
- package/dist/{server-components-status.d-rfKOcE0N.d.ts → server-components-status.d-C2UEKJn7.d.ts} +1 -1
- package/dist/server-plugins.d.mts +4 -3
- package/dist/server-plugins.d.ts +4 -3
- package/dist/server-query-call.d-rVM_lsYk.d.mts +15 -0
- package/dist/server-query-call.d-rVM_lsYk.d.ts +15 -0
- package/dist/server-query-client.cjs +5 -3
- package/dist/server-query-client.d.mts +3 -2
- package/dist/server-query-client.d.ts +3 -2
- package/dist/server-query-client.mjs +5 -3
- package/dist/{server-query-runtime.d-DXRNhX_3.d.ts → server-query-runtime.d-BlHd90D0.d.ts} +2 -8
- package/dist/{server-query-runtime.d-aP52iuL5.d.mts → server-query-runtime.d-CCLGkQtE.d.mts} +2 -8
- package/dist/server.cjs +58 -52
- package/dist/server.d.mts +12 -12
- package/dist/server.d.ts +12 -12
- package/dist/server.mjs +34 -28
- package/dist/{spa-router.d-V6XLSTCy.d.mts → spa-router.d-BD-6WX1R.d.mts} +2 -2
- package/dist/{spa-router.d-DMKiBsHH.d.ts → spa-router.d-Cw5i_15e.d.ts} +2 -2
- package/dist/{ssg.d-MNedvvMB.d.ts → ssg.d-Bifiq0EL.d.ts} +2 -2
- package/dist/{ssg.d-BnCKPQL0.d.mts → ssg.d-CCE9aob5.d.mts} +2 -2
- package/dist/{store-core.d-Ad5biajo.d.ts → store-core.d-5tVn5vi1.d.ts} +12 -4
- package/dist/{store-core.d-BqJI1-ix.d.mts → store-core.d-BN2MxSG9.d.mts} +12 -4
- package/dist/testing.cjs +5 -4
- package/dist/testing.d.mts +2 -1
- package/dist/testing.d.ts +2 -1
- package/dist/testing.mjs +4 -3
- package/dist/{utils.d-BdjHKDuT.d.ts → utils.d-BUjpSNIO.d.ts} +1 -1
- package/dist/{utils.d-BEKLWa0Z.d.mts → utils.d-wGPLeVbq.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +25 -23
- package/dist/vite.d.mts +6 -6
- package/dist/vite.d.ts +6 -6
- package/dist/vite.mjs +24 -22
- package/package.json +7 -2
- package/dist/analyzer-435DCIQ6.cjs +0 -17
- package/dist/chunk-AHVF5GI2.cjs +0 -229
- package/dist/chunk-ONSZP5JK.mjs +0 -229
package/dist/plugin.mjs
CHANGED
|
@@ -1,65 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
2
|
farmPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WZV2G2A6.mjs";
|
|
4
4
|
import "./chunk-7V5M43ND.mjs";
|
|
5
5
|
import "./chunk-ZIEO3DQ3.mjs";
|
|
6
6
|
import "./chunk-UD6KTSJS.mjs";
|
|
7
7
|
import "./chunk-RDSHEHBA.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-DPUZVGXH.mjs";
|
|
9
|
+
import "./chunk-MO4UTDQ6.mjs";
|
|
10
10
|
import {
|
|
11
11
|
FARM_NODE_RESPONSE_END_PENDING,
|
|
12
12
|
FarmRuntimeShutdownError,
|
|
13
13
|
PluginManager,
|
|
14
14
|
definePlugin
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-IVP5Q4BX.mjs";
|
|
16
|
+
import "./chunk-IAIRQAHA.mjs";
|
|
17
17
|
import "./chunk-YSU3WCW6.mjs";
|
|
18
18
|
import "./chunk-YHHOTKUT.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-ELNRKD4V.mjs";
|
|
20
20
|
import "./chunk-HQ2VAJLW.mjs";
|
|
21
21
|
import "./chunk-UTUS6JUH.mjs";
|
|
22
|
+
import "./chunk-EZYKV24V.mjs";
|
|
22
23
|
import "./chunk-SMUW7UST.mjs";
|
|
23
24
|
import "./chunk-UB7RVEMX.mjs";
|
|
24
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-CA2HBLXP.mjs";
|
|
25
26
|
import "./chunk-LLZSYFOM.mjs";
|
|
26
27
|
import "./chunk-UUMKLGUU.mjs";
|
|
27
28
|
import "./chunk-ZXDX7VYZ.mjs";
|
|
28
29
|
import "./chunk-V7HNYR76.mjs";
|
|
29
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-RNJX3MD6.mjs";
|
|
31
|
+
import "./chunk-VQ6IXALL.mjs";
|
|
30
32
|
import "./chunk-HR4N2K4V.mjs";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-EZYKV24V.mjs";
|
|
33
|
+
import "./chunk-43N3X6OO.mjs";
|
|
33
34
|
import "./chunk-2PFGA6PB.mjs";
|
|
34
35
|
import "./chunk-L4RTTTVE.mjs";
|
|
35
36
|
import "./chunk-GNZIAJGB.mjs";
|
|
37
|
+
import "./chunk-X3EFRVXY.mjs";
|
|
36
38
|
import "./chunk-XAXTTBUT.mjs";
|
|
37
39
|
import "./chunk-INKVDO42.mjs";
|
|
38
|
-
import "./chunk-X3EFRVXY.mjs";
|
|
39
40
|
import "./chunk-K6HIIWUB.mjs";
|
|
40
41
|
import "./chunk-YFTGIHNC.mjs";
|
|
41
42
|
import "./chunk-HZOMT5DY.mjs";
|
|
42
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-B5SJYXJK.mjs";
|
|
43
44
|
import "./chunk-D2VAANBS.mjs";
|
|
44
45
|
import "./chunk-S32PDOLO.mjs";
|
|
45
46
|
import "./chunk-ZEWWZJPZ.mjs";
|
|
46
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-S3R4JDRO.mjs";
|
|
47
48
|
import "./chunk-NRNAHZ57.mjs";
|
|
48
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-5V6HSJFG.mjs";
|
|
49
50
|
import "./chunk-YVVY276M.mjs";
|
|
50
51
|
import "./chunk-XR2ZIBQK.mjs";
|
|
51
52
|
import {
|
|
52
53
|
resolveFarmDevtoolsConfig
|
|
53
54
|
} from "./chunk-CU5SYTJG.mjs";
|
|
54
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-NQ3Y6E2T.mjs";
|
|
55
56
|
import "./chunk-22W4FNTG.mjs";
|
|
56
57
|
import "./chunk-SQ5O7I3L.mjs";
|
|
57
58
|
import "./chunk-XGL42MQ7.mjs";
|
|
58
59
|
import "./chunk-4QENVMG7.mjs";
|
|
59
60
|
import "./chunk-Z3RM3VA2.mjs";
|
|
60
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-RGTZAM6Y.mjs";
|
|
61
62
|
import "./chunk-AOIUYHPH.mjs";
|
|
62
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-7VJXYB6S.mjs";
|
|
63
64
|
import "./chunk-NLATR3T3.mjs";
|
|
64
65
|
import "./chunk-N33DLJBC.mjs";
|
|
65
66
|
import "./chunk-ECVSRE4Y.mjs";
|
|
@@ -72,7 +73,7 @@ import "./chunk-LTOT5KVJ.mjs";
|
|
|
72
73
|
import "./chunk-WXFY5JIY.mjs";
|
|
73
74
|
import "./chunk-YP7YO3S3.mjs";
|
|
74
75
|
import "./chunk-YWPNIYUP.mjs";
|
|
75
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-XRSNW4IU.mjs";
|
|
76
77
|
import "./chunk-H4WUWLQR.mjs";
|
|
77
78
|
import "./chunk-CZOXZ6WQ.mjs";
|
|
78
79
|
import "./chunk-WNLPQW7W.mjs";
|
|
@@ -91,20 +92,21 @@ import "./chunk-EDPENAVO.mjs";
|
|
|
91
92
|
import "./chunk-OJO2GOM3.mjs";
|
|
92
93
|
import "./chunk-5PZJ63PK.mjs";
|
|
93
94
|
import "./chunk-IYEY3JWJ.mjs";
|
|
94
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-NAHDG6UX.mjs";
|
|
95
96
|
import "./chunk-NRWEY2CM.mjs";
|
|
96
97
|
import "./chunk-URBP6DLH.mjs";
|
|
97
98
|
import "./chunk-YX6AFPXC.mjs";
|
|
98
99
|
import "./chunk-O7JEFGUV.mjs";
|
|
99
100
|
import "./chunk-VO55MMBX.mjs";
|
|
100
101
|
import "./chunk-NR63PD3P.mjs";
|
|
101
|
-
import "./chunk-
|
|
102
|
+
import "./chunk-KWI3SQFX.mjs";
|
|
102
103
|
import "./chunk-HD5FLXP2.mjs";
|
|
103
104
|
import "./chunk-2LKUR5QJ.mjs";
|
|
104
105
|
import "./chunk-D7Y63SOY.mjs";
|
|
105
106
|
import "./chunk-ZIAWO6BC.mjs";
|
|
106
107
|
import "./chunk-F7MJWW6A.mjs";
|
|
107
|
-
import "./chunk-
|
|
108
|
+
import "./chunk-U6XYBTUT.mjs";
|
|
109
|
+
import "./chunk-PNMAD3OS.mjs";
|
|
108
110
|
import "./chunk-UJWRXBVP.mjs";
|
|
109
111
|
import "./chunk-DZXD6CYJ.mjs";
|
|
110
112
|
import "./chunk-PKMUQ7LM.mjs";
|
|
@@ -123,7 +125,7 @@ import "./chunk-YT2ZMLXK.mjs";
|
|
|
123
125
|
import "./chunk-D2LCAV6L.mjs";
|
|
124
126
|
import "./chunk-H3ASZDT7.mjs";
|
|
125
127
|
import "./chunk-EILUVBKS.mjs";
|
|
126
|
-
import "./chunk-
|
|
128
|
+
import "./chunk-NKVBWPXR.mjs";
|
|
127
129
|
import "./chunk-QPNVDSFZ.mjs";
|
|
128
130
|
import "./chunk-GYMGK467.mjs";
|
|
129
131
|
import "./chunk-5Y4GYKKH.mjs";
|
package/dist/renderer-client.cjs
CHANGED
|
@@ -15,7 +15,8 @@ var _chunkN4AQNEXRcjs = require('./chunk-N4AQNEXR.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkIZYFP7INcjs = require('./chunk-IZYFP7IN.cjs');
|
|
19
|
+
require('./chunk-J6RFB324.cjs');
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
|
|
@@ -70,7 +71,9 @@ var _chunkGYJT2U7Jcjs = require('./chunk-GYJT2U7J.cjs');
|
|
|
70
71
|
|
|
71
72
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
72
73
|
require('./chunk-ML4TOUZP.cjs');
|
|
73
|
-
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
var _chunk3BIASUGRcjs = require('./chunk-3BIASUGR.cjs');
|
|
74
77
|
require('./chunk-UZM3PDKK.cjs');
|
|
75
78
|
|
|
76
79
|
// src/renderer-client.ts
|
|
@@ -211,8 +214,38 @@ function createRendererAction(target, options = {}) {
|
|
|
211
214
|
}
|
|
212
215
|
};
|
|
213
216
|
}
|
|
217
|
+
async function submitRendererActionForm(action, event) {
|
|
218
|
+
const form = event.target;
|
|
219
|
+
if (event.defaultPrevented || !isFormElement(form)) return;
|
|
220
|
+
event.preventDefault();
|
|
221
|
+
const submitter = _nullishCoalesce(event.submitter, () => ( null));
|
|
222
|
+
try {
|
|
223
|
+
await action.submit(createSubmittedFormData(form, submitter));
|
|
224
|
+
} catch (e) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
form.reset();
|
|
228
|
+
}
|
|
229
|
+
function isFormElement(value) {
|
|
230
|
+
return typeof HTMLFormElement !== "undefined" && value instanceof HTMLFormElement;
|
|
231
|
+
}
|
|
232
|
+
function createSubmittedFormData(form, submitter) {
|
|
233
|
+
if (submitter) {
|
|
234
|
+
try {
|
|
235
|
+
const data2 = new FormData(form, submitter);
|
|
236
|
+
const name = submitter.getAttribute("name");
|
|
237
|
+
if (!name || data2.has(name)) return data2;
|
|
238
|
+
} catch (e2) {
|
|
239
|
+
return new FormData(form);
|
|
240
|
+
}
|
|
241
|
+
const data = new FormData(form);
|
|
242
|
+
data.append(submitter.getAttribute("name"), _nullishCoalesce(submitter.getAttribute("value"), () => ( "")));
|
|
243
|
+
return data;
|
|
244
|
+
}
|
|
245
|
+
return new FormData(form);
|
|
246
|
+
}
|
|
214
247
|
function createRendererQuery(query, input, options = {}) {
|
|
215
|
-
if (!
|
|
248
|
+
if (!_chunkIZYFP7INcjs.isFarmServerQueryBrowserRuntime.call(void 0, )) {
|
|
216
249
|
const snapshot = {
|
|
217
250
|
data: void 0,
|
|
218
251
|
error: null,
|
|
@@ -225,17 +258,17 @@ function createRendererQuery(query, input, options = {}) {
|
|
|
225
258
|
getSnapshot: () => snapshot,
|
|
226
259
|
subscribe: () => () => {
|
|
227
260
|
},
|
|
228
|
-
refetch: () =>
|
|
261
|
+
refetch: () => _chunkIZYFP7INcjs.fetchServerQuery.call(void 0, query, input),
|
|
229
262
|
dispose() {
|
|
230
263
|
}
|
|
231
264
|
};
|
|
232
265
|
}
|
|
233
266
|
const cache = _chunkI2BYNELAcjs.getFarmClientDataCache.call(void 0, );
|
|
234
|
-
const key =
|
|
267
|
+
const key = _chunkIZYFP7INcjs.createServerQueryCallKey.call(void 0, query, input);
|
|
235
268
|
const listeners = /* @__PURE__ */ new Set();
|
|
236
269
|
let unsubscribeCache;
|
|
237
270
|
let cleanupBrowser;
|
|
238
|
-
const run = (force = false) =>
|
|
271
|
+
const run = (force = false) => _chunkIZYFP7INcjs.fetchServerQuery.call(void 0, query, input, { ...options, force });
|
|
239
272
|
let pendingInvalidation = false;
|
|
240
273
|
const ensureStarted = () => {
|
|
241
274
|
if (options.enabled === false || unsubscribeCache) return;
|
|
@@ -315,7 +348,8 @@ function createRendererI18n() {
|
|
|
315
348
|
};
|
|
316
349
|
}
|
|
317
350
|
function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
318
|
-
|
|
351
|
+
const url = readRendererCurrentUrl();
|
|
352
|
+
if (!url) {
|
|
319
353
|
return {
|
|
320
354
|
pathname: "/",
|
|
321
355
|
searchParams: new URLSearchParams(),
|
|
@@ -324,7 +358,6 @@ function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
|
324
358
|
navigation
|
|
325
359
|
};
|
|
326
360
|
}
|
|
327
|
-
const url = new URL(window.location.href);
|
|
328
361
|
const pathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, url.pathname, basePath);
|
|
329
362
|
const i18n = _chunk2PJVEL56cjs.getFarmI18nClientState.call(void 0, );
|
|
330
363
|
const routePathname = i18n ? _chunkGYJT2U7Jcjs.stripFarmLocaleFromPathname.call(void 0, pathname, { ...i18n, basePath: "/" }) : pathname;
|
|
@@ -332,10 +365,20 @@ function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
|
332
365
|
pathname,
|
|
333
366
|
searchParams: url.searchParams,
|
|
334
367
|
params: _optionalChain([matcher, 'optionalAccess', _22 => _22.match, 'call', _23 => _23(routePathname), 'optionalAccess', _24 => _24.params]) || {},
|
|
335
|
-
pageState: _chunkUGD53SNOcjs.readPageState.call(void 0, ),
|
|
368
|
+
pageState: typeof window === "undefined" ? null : _chunkUGD53SNOcjs.readPageState.call(void 0, ),
|
|
336
369
|
navigation
|
|
337
370
|
};
|
|
338
371
|
}
|
|
372
|
+
function readRendererCurrentUrl() {
|
|
373
|
+
if (typeof window !== "undefined") return new URL(window.location.href);
|
|
374
|
+
const request = _chunk3BIASUGRcjs._peekCurrentRequest.call(void 0, );
|
|
375
|
+
if (!request) return void 0;
|
|
376
|
+
try {
|
|
377
|
+
return new URL(request.url);
|
|
378
|
+
} catch (e3) {
|
|
379
|
+
return void 0;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
339
382
|
function resolveRendererHref(href, basePath) {
|
|
340
383
|
return _chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href, basePath);
|
|
341
384
|
}
|
|
@@ -365,4 +408,5 @@ function isRendererFormData(value) {
|
|
|
365
408
|
|
|
366
409
|
|
|
367
410
|
|
|
368
|
-
|
|
411
|
+
|
|
412
|
+
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; exports.submitRendererActionForm = submitRendererActionForm;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import './router.mjs';
|
|
2
|
-
export { b as FarmViewTransitionMode } from './spa-router.d-
|
|
2
|
+
export { b as FarmViewTransitionMode } from './spa-router.d-BD-6WX1R.mjs';
|
|
3
3
|
import './client-cache.d-di_Nasxa.mjs';
|
|
4
4
|
import './server-fn.mjs';
|
|
5
5
|
import './server-query.mjs';
|
|
6
|
-
import './server-query-runtime.d-
|
|
6
|
+
import './server-query-runtime.d-CCLGkQtE.mjs';
|
|
7
7
|
import './types.d-DQnyD3VD.mjs';
|
|
8
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-
|
|
10
|
-
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-
|
|
11
|
-
import './client-plugins.d-
|
|
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, T as submitRendererActionForm } from './store-core.d-BN2MxSG9.mjs';
|
|
10
|
+
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-BBTzhJLj.mjs';
|
|
11
|
+
import './client-plugins.d-BwKwuO_0.mjs';
|
|
12
12
|
import './lifecycle.d-OtGWAvJT.mjs';
|
|
13
13
|
import './route.d-ShmtqqVQ.mjs';
|
|
14
14
|
import './endpoint.d-BXbBpKoh.mjs';
|
|
15
15
|
import './cache.mjs';
|
|
16
16
|
import './renderer.mjs';
|
|
17
17
|
import './deployment.mjs';
|
|
18
|
+
import './island.d-CfGru1MO.mjs';
|
|
18
19
|
import 'http';
|
|
19
20
|
import './routing.d-D67HQmnv.mjs';
|
|
20
21
|
import './types.d-C5hlNbHa.mjs';
|
|
@@ -43,5 +44,5 @@ import 'rolldown';
|
|
|
43
44
|
import './image-config.d-ByhQ0TT7.mjs';
|
|
44
45
|
import './config.d-BKIhJtmr.mjs';
|
|
45
46
|
import './font.mjs';
|
|
46
|
-
import './
|
|
47
|
-
import './
|
|
47
|
+
import './render-plan.d-bnWxS12w.mjs';
|
|
48
|
+
import './server-query-call.d-rVM_lsYk.mjs';
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import './router.js';
|
|
2
|
-
export { b as FarmViewTransitionMode } from './spa-router.d-
|
|
2
|
+
export { b as FarmViewTransitionMode } from './spa-router.d-Cw5i_15e.js';
|
|
3
3
|
import './client-cache.d-Deoqq-nM.js';
|
|
4
4
|
import './server-fn.js';
|
|
5
5
|
import './server-query.js';
|
|
6
|
-
import './server-query-runtime.d-
|
|
6
|
+
import './server-query-runtime.d-BlHd90D0.js';
|
|
7
7
|
import './types.d-DQnyD3VD.js';
|
|
8
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-
|
|
10
|
-
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-
|
|
11
|
-
import './client-plugins.d-
|
|
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, T as submitRendererActionForm } from './store-core.d-5tVn5vi1.js';
|
|
10
|
+
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-BZsYEAet.js';
|
|
11
|
+
import './client-plugins.d-BVXjyIkY.js';
|
|
12
12
|
import './lifecycle.d-OtGWAvJT.js';
|
|
13
13
|
import './route.d-Cd4Fi6BA.js';
|
|
14
14
|
import './endpoint.d-Dx_1k6Du.js';
|
|
15
15
|
import './cache.js';
|
|
16
16
|
import './renderer.js';
|
|
17
17
|
import './deployment.js';
|
|
18
|
+
import './island.d-CfGru1MO.js';
|
|
18
19
|
import 'http';
|
|
19
20
|
import './routing.d-BhPgtN_S.js';
|
|
20
21
|
import './types.d-C5hlNbHa.js';
|
|
@@ -43,5 +44,5 @@ import 'rolldown';
|
|
|
43
44
|
import './image-config.d-ByhQ0TT7.js';
|
|
44
45
|
import './config.d-BKIhJtmr.js';
|
|
45
46
|
import './font.js';
|
|
46
|
-
import './
|
|
47
|
-
import './
|
|
47
|
+
import './render-plan.d-AaJsYPX-.js';
|
|
48
|
+
import './server-query-call.d-rVM_lsYk.js';
|
package/dist/renderer-client.mjs
CHANGED
|
@@ -15,7 +15,8 @@ import {
|
|
|
15
15
|
createServerQueryCallKey,
|
|
16
16
|
fetchServerQuery,
|
|
17
17
|
isFarmServerQueryBrowserRuntime
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-42IBGQTN.mjs";
|
|
19
|
+
import "./chunk-BUQR7KKO.mjs";
|
|
19
20
|
import {
|
|
20
21
|
getTheme,
|
|
21
22
|
setTheme,
|
|
@@ -70,7 +71,9 @@ import {
|
|
|
70
71
|
stripFarmBasePath
|
|
71
72
|
} from "./chunk-SF3JB56B.mjs";
|
|
72
73
|
import "./chunk-5KAEGBIL.mjs";
|
|
73
|
-
import
|
|
74
|
+
import {
|
|
75
|
+
_peekCurrentRequest
|
|
76
|
+
} from "./chunk-VIXTAVEA.mjs";
|
|
74
77
|
import "./chunk-TIZJYHB7.mjs";
|
|
75
78
|
|
|
76
79
|
// src/renderer-client.ts
|
|
@@ -211,6 +214,36 @@ function createRendererAction(target, options = {}) {
|
|
|
211
214
|
}
|
|
212
215
|
};
|
|
213
216
|
}
|
|
217
|
+
async function submitRendererActionForm(action, event) {
|
|
218
|
+
const form = event.target;
|
|
219
|
+
if (event.defaultPrevented || !isFormElement(form)) return;
|
|
220
|
+
event.preventDefault();
|
|
221
|
+
const submitter = event.submitter ?? null;
|
|
222
|
+
try {
|
|
223
|
+
await action.submit(createSubmittedFormData(form, submitter));
|
|
224
|
+
} catch {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
form.reset();
|
|
228
|
+
}
|
|
229
|
+
function isFormElement(value) {
|
|
230
|
+
return typeof HTMLFormElement !== "undefined" && value instanceof HTMLFormElement;
|
|
231
|
+
}
|
|
232
|
+
function createSubmittedFormData(form, submitter) {
|
|
233
|
+
if (submitter) {
|
|
234
|
+
try {
|
|
235
|
+
const data2 = new FormData(form, submitter);
|
|
236
|
+
const name = submitter.getAttribute("name");
|
|
237
|
+
if (!name || data2.has(name)) return data2;
|
|
238
|
+
} catch {
|
|
239
|
+
return new FormData(form);
|
|
240
|
+
}
|
|
241
|
+
const data = new FormData(form);
|
|
242
|
+
data.append(submitter.getAttribute("name"), submitter.getAttribute("value") ?? "");
|
|
243
|
+
return data;
|
|
244
|
+
}
|
|
245
|
+
return new FormData(form);
|
|
246
|
+
}
|
|
214
247
|
function createRendererQuery(query, input, options = {}) {
|
|
215
248
|
if (!isFarmServerQueryBrowserRuntime()) {
|
|
216
249
|
const snapshot = {
|
|
@@ -315,7 +348,8 @@ function createRendererI18n() {
|
|
|
315
348
|
};
|
|
316
349
|
}
|
|
317
350
|
function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
318
|
-
|
|
351
|
+
const url = readRendererCurrentUrl();
|
|
352
|
+
if (!url) {
|
|
319
353
|
return {
|
|
320
354
|
pathname: "/",
|
|
321
355
|
searchParams: new URLSearchParams(),
|
|
@@ -324,7 +358,6 @@ function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
|
324
358
|
navigation
|
|
325
359
|
};
|
|
326
360
|
}
|
|
327
|
-
const url = new URL(window.location.href);
|
|
328
361
|
const pathname = stripFarmBasePath(url.pathname, basePath);
|
|
329
362
|
const i18n = getFarmI18nClientState();
|
|
330
363
|
const routePathname = i18n ? stripFarmLocaleFromPathname(pathname, { ...i18n, basePath: "/" }) : pathname;
|
|
@@ -332,10 +365,20 @@ function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
|
332
365
|
pathname,
|
|
333
366
|
searchParams: url.searchParams,
|
|
334
367
|
params: matcher?.match(routePathname)?.params || {},
|
|
335
|
-
pageState: readPageState(),
|
|
368
|
+
pageState: typeof window === "undefined" ? null : readPageState(),
|
|
336
369
|
navigation
|
|
337
370
|
};
|
|
338
371
|
}
|
|
372
|
+
function readRendererCurrentUrl() {
|
|
373
|
+
if (typeof window !== "undefined") return new URL(window.location.href);
|
|
374
|
+
const request = _peekCurrentRequest();
|
|
375
|
+
if (!request) return void 0;
|
|
376
|
+
try {
|
|
377
|
+
return new URL(request.url);
|
|
378
|
+
} catch {
|
|
379
|
+
return void 0;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
339
382
|
function resolveRendererHref(href, basePath) {
|
|
340
383
|
return applyFarmBasePath(href, basePath);
|
|
341
384
|
}
|
|
@@ -364,5 +407,6 @@ export {
|
|
|
364
407
|
createRendererTheme,
|
|
365
408
|
createStore,
|
|
366
409
|
delegateNavigation,
|
|
367
|
-
resolveLinkAttributes
|
|
410
|
+
resolveLinkAttributes,
|
|
411
|
+
submitRendererActionForm
|
|
368
412
|
};
|
package/dist/renderer.cjs
CHANGED
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _chunkNGTZHWBGcjs = require('./chunk-NGTZHWBG.cjs');
|
|
20
22
|
require('./chunk-UZM3PDKK.cjs');
|
|
21
23
|
|
|
22
24
|
|
|
@@ -36,4 +38,6 @@ require('./chunk-UZM3PDKK.cjs');
|
|
|
36
38
|
|
|
37
39
|
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
exports.FARM_COMPONENT_EXTENSIONS = _chunkNGTZHWBGcjs.FARM_COMPONENT_EXTENSIONS; exports.NO_RENDERER = _chunkNGTZHWBGcjs.NO_RENDERER; exports.REACT_RENDERER = _chunkNGTZHWBGcjs.REACT_RENDERER; exports.assertFarmRendererServerModule = _chunkNGTZHWBGcjs.assertFarmRendererServerModule; exports.assertFarmRendererStreamingRuntime = _chunkNGTZHWBGcjs.assertFarmRendererStreamingRuntime; exports.createFarmRendererHookError = _chunkNGTZHWBGcjs.createFarmRendererHookError; exports.defineRenderer = _chunkNGTZHWBGcjs.defineRenderer; exports.getFarmRendererCapabilities = _chunkNGTZHWBGcjs.getFarmRendererCapabilities; exports.getFarmRendererComponentExtensions = _chunkNGTZHWBGcjs.getFarmRendererComponentExtensions; exports.getFarmRendererStreamingCapabilitiesForRuntime = _chunkNGTZHWBGcjs.getFarmRendererStreamingCapabilitiesForRuntime; exports.isFarmRendererDisabled = _chunkNGTZHWBGcjs.isFarmRendererDisabled; exports.isReactRenderer = _chunkNGTZHWBGcjs.isReactRenderer; exports.loadFarmRendererVitePlugins = _chunkNGTZHWBGcjs.loadFarmRendererVitePlugins; exports.readFarmRendererHydration = _chunkNGTZHWBGcjs.readFarmRendererHydration; exports.readFarmRendererWebStream = _chunkNGTZHWBGcjs.readFarmRendererWebStream; exports.resolveFarmComponentExtensions = _chunkNGTZHWBGcjs.resolveFarmComponentExtensions; exports.resolveFarmRenderer = _chunkNGTZHWBGcjs.resolveFarmRenderer; exports.resolveFarmRendererAppSetup = _chunkNGTZHWBGcjs.resolveFarmRendererAppSetup; exports.resolveFarmRendererModule = _chunkNGTZHWBGcjs.resolveFarmRendererModule;
|
package/dist/renderer.d.mts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { FarmPresetRuntime } from './deployment.mjs';
|
|
2
|
+
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* A rendering-library integration used by Farm's compiler, server renderer,
|
|
5
6
|
* and browser hydration runtime.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* Code that runs in the app (the Vite plugin, the server and client modules) is named by module
|
|
9
|
+
* id, so every module resolves from the application that selected the renderer and Farm can import
|
|
10
|
+
* it from the entries it generates. Build-time hooks (`routes()` and `hydration.resolve()`) are
|
|
11
|
+
* methods: they run in Node while Farm scans the app, and never reach a bundle.
|
|
10
12
|
*/
|
|
11
13
|
interface FarmRenderer {
|
|
12
14
|
/** Stable public identifier used in diagnostics and generated manifests. */
|
|
@@ -56,6 +58,80 @@ interface FarmRenderer {
|
|
|
56
58
|
* the renderer's `configureApp()`, which both renderer runtime modules must export.
|
|
57
59
|
*/
|
|
58
60
|
appSetup?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Which files are routes, and the URL each one serves. Farm calls it once per route scan, in
|
|
63
|
+
* `farm dev`, `farm build` and `farm generate`, and builds its one route table from the rules
|
|
64
|
+
* `resolve()` returns. Leave it out to keep Farm's folders: `src/app/blog/[slug]/page.tsx`.
|
|
65
|
+
*/
|
|
66
|
+
routes?(context: FarmRendererRoutesContext): FarmRendererRoutes | Promise<FarmRendererRoutes>;
|
|
67
|
+
/** Which pages and layouts hydrate, and when, by default and in this renderer's own syntax. */
|
|
68
|
+
hydration?: FarmRendererHydrationOptions;
|
|
69
|
+
}
|
|
70
|
+
/** What Farm passes to a renderer's `routes()`. */
|
|
71
|
+
interface FarmRendererRoutesContext {
|
|
72
|
+
/** The project root, or a layer's root when Farm scans that layer's routes. */
|
|
73
|
+
readonly root: string;
|
|
74
|
+
/** Farm's folder rules (`about/page.tsx` → `/about`), to hand the files you don't map yourself. */
|
|
75
|
+
readonly defaults: FarmRendererRoutes;
|
|
76
|
+
}
|
|
77
|
+
/** A renderer's route rules. */
|
|
78
|
+
interface FarmRendererRoutes {
|
|
79
|
+
/** The directory Farm scans, relative to the root. Defaults to `src/app` (`<srcDir>/app`). */
|
|
80
|
+
dir?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The route a file is, or `null` when it isn't one. Called once per file under `dir`, with the
|
|
83
|
+
* same answer expected for the same file. Farm doesn't pass its own files: `route.ts`,
|
|
84
|
+
* `middleware.ts`, metadata routes, and named slots stay in `src/app`.
|
|
85
|
+
*/
|
|
86
|
+
resolve(file: FarmRendererRouteFile): FarmRendererRoute | null | undefined;
|
|
87
|
+
}
|
|
88
|
+
/** A file under a renderer's route `dir`. */
|
|
89
|
+
interface FarmRendererRouteFile {
|
|
90
|
+
/** Relative to `dir`, with `/` separators: `"blog/[slug].client.leaf"`. */
|
|
91
|
+
readonly path: string;
|
|
92
|
+
/** The directories between `dir` and the file: `["blog"]`, or `[]` for a file directly in it. */
|
|
93
|
+
readonly segments: readonly string[];
|
|
94
|
+
/** The file name without its extension: `"[slug].client"`. */
|
|
95
|
+
readonly name: string;
|
|
96
|
+
/** The extension, lowercase: `".leaf"`. */
|
|
97
|
+
readonly extension: string;
|
|
98
|
+
}
|
|
99
|
+
type FarmRendererRouteKind = "page" | "layout" | "loading" | "error" | "not-found";
|
|
100
|
+
/** A route a file is, with optional hydration settings for it. */
|
|
101
|
+
interface FarmRendererRoute extends FarmRendererHydration {
|
|
102
|
+
kind: FarmRendererRouteKind;
|
|
103
|
+
/**
|
|
104
|
+
* The URL, written as `src/app` folders write it: `"/"`, `"/blog/[slug]"`,
|
|
105
|
+
* `"/docs/[...path]"`, `"/(marketing)/pricing"`. A layout, loading or error file applies to
|
|
106
|
+
* its pattern and everything below it. `"not-found"` takes `"/"`: Farm renders one not-found page.
|
|
107
|
+
*/
|
|
108
|
+
pattern: string;
|
|
109
|
+
}
|
|
110
|
+
/** Hydration settings for a page or layout. A field left out falls back to the next level. */
|
|
111
|
+
interface FarmRendererHydration {
|
|
112
|
+
/** Whether the page or layout hydrates, as `export const hydrate = true` says. */
|
|
113
|
+
hydrate?: boolean;
|
|
114
|
+
/** When it hydrates, as `export const island = "visible"` says. Takes effect when it hydrates. */
|
|
115
|
+
strategy?: FarmIslandStrategy;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* A renderer's hydration settings. The most specific level wins: a file's own settings, then its
|
|
119
|
+
* route rule from `routes()`, then these defaults, then Farm's (no hydration, `"load"`).
|
|
120
|
+
*/
|
|
121
|
+
interface FarmRendererHydrationOptions {
|
|
122
|
+
/** Whether pages hydrate by default. */
|
|
123
|
+
pages?: boolean;
|
|
124
|
+
/** Whether layouts hydrate by default. */
|
|
125
|
+
layouts?: boolean;
|
|
126
|
+
/** When a hydrating page or layout that sets no strategy hydrates. */
|
|
127
|
+
strategy?: FarmIslandStrategy;
|
|
128
|
+
/**
|
|
129
|
+
* Reads a page or layout's settings from its source, in this renderer's own syntax. Farm calls
|
|
130
|
+
* it for files with the descriptor's `componentExtensions`, before any compiler runs. Return
|
|
131
|
+
* nothing to leave the file to Farm's `export const hydrate` and `export const island`; a file
|
|
132
|
+
* that says both, and disagrees, fails the build.
|
|
133
|
+
*/
|
|
134
|
+
resolve?(source: string, file: string): FarmRendererHydration | null | undefined;
|
|
59
135
|
}
|
|
60
136
|
type FarmRendererRuntime = Exclude<FarmPresetRuntime, "unknown">;
|
|
61
137
|
interface FarmRendererStreamingPrimitives {
|
|
@@ -105,6 +181,15 @@ interface FarmRendererCapabilities {
|
|
|
105
181
|
* handles them.
|
|
106
182
|
*/
|
|
107
183
|
functionComponents: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Whether a production page whose `hydrateRoot()` throws is rendered again with `createRoot()`.
|
|
186
|
+
*
|
|
187
|
+
* Development always does this. In production, a renderer that leaves this off keeps the
|
|
188
|
+
* server's markup without event listeners, as before the option existed. Turn it on only when
|
|
189
|
+
* the client module's `createRoot()` replaces what's already in its container, because the failed
|
|
190
|
+
* hydration leaves the server's markup there.
|
|
191
|
+
*/
|
|
192
|
+
hydrationFallback: boolean;
|
|
108
193
|
}
|
|
109
194
|
interface FarmRendererCapabilitiesInput {
|
|
110
195
|
streaming?: Partial<FarmRendererStreamingPrimitives> & {
|
|
@@ -112,6 +197,7 @@ interface FarmRendererCapabilitiesInput {
|
|
|
112
197
|
};
|
|
113
198
|
reconcilesRerenders?: boolean;
|
|
114
199
|
functionComponents?: boolean;
|
|
200
|
+
hydrationFallback?: boolean;
|
|
115
201
|
}
|
|
116
202
|
/** A client layout participating in a renderer-owned route update. */
|
|
117
203
|
interface FarmRendererRouteLayout {
|
|
@@ -312,6 +398,13 @@ declare const NO_RENDERER: Readonly<FarmRenderer>;
|
|
|
312
398
|
declare function isFarmRendererDisabled(renderer: Pick<FarmRenderer, "name"> | false | undefined): boolean;
|
|
313
399
|
declare function defineRenderer<const TRenderer extends FarmRenderer>(renderer: TRenderer): TRenderer;
|
|
314
400
|
declare function resolveFarmRenderer(renderer?: FarmRenderer | false): FarmRenderer;
|
|
401
|
+
/** @internal An error a renderer hook caused, with the hook's own error as its `cause`. */
|
|
402
|
+
declare function createFarmRendererHookError(message: string, cause: unknown): Error;
|
|
403
|
+
/**
|
|
404
|
+
* @internal The `hydrate` and `strategy` a renderer hook returned, checked. `where` names the hook
|
|
405
|
+
* and the file for the error a bad value throws.
|
|
406
|
+
*/
|
|
407
|
+
declare function readFarmRendererHydration(value: Readonly<Record<string, unknown>>, where: string): FarmRendererHydration;
|
|
315
408
|
declare function readFarmRendererWebStream(stream: ReadableStream<Uint8Array | string>): Promise<string>;
|
|
316
409
|
declare function isReactRenderer(renderer: Pick<FarmRenderer, "name"> | undefined): boolean;
|
|
317
410
|
/** Absolute path of the renderer's app setup module, or null when the app has none. */
|
|
@@ -323,4 +416,4 @@ declare function loadFarmRendererVitePlugins(renderer: FarmRenderer, root: strin
|
|
|
323
416
|
buildLifetime?: AbortSignal;
|
|
324
417
|
}): Promise<unknown[]>;
|
|
325
418
|
|
|
326
|
-
export { FARM_COMPONENT_EXTENSIONS, type FarmRenderer, type FarmRendererCapabilities, type FarmRendererCapabilitiesInput, type FarmRendererClientRoot, type FarmRendererClientRuntime, type FarmRendererRenderOptions, type FarmRendererRouteLayout, type FarmRendererRouteState, type FarmRendererRuntime, type FarmRendererStreamingCapabilities, type FarmRendererStreamingPrimitives, type FarmRendererViteModule, type FarmServerRendererRuntime, NO_RENDERER, REACT_RENDERER, assertFarmRendererServerModule, assertFarmRendererStreamingRuntime, defineRenderer, getFarmRendererCapabilities, getFarmRendererComponentExtensions, getFarmRendererStreamingCapabilitiesForRuntime, isFarmRendererDisabled, isReactRenderer, loadFarmRendererVitePlugins, readFarmRendererWebStream, resolveFarmComponentExtensions, resolveFarmRenderer, resolveFarmRendererAppSetup, resolveFarmRendererModule };
|
|
419
|
+
export { FARM_COMPONENT_EXTENSIONS, type FarmRenderer, type FarmRendererCapabilities, type FarmRendererCapabilitiesInput, type FarmRendererClientRoot, type FarmRendererClientRuntime, type FarmRendererHydration, type FarmRendererHydrationOptions, type FarmRendererRenderOptions, type FarmRendererRoute, type FarmRendererRouteFile, type FarmRendererRouteKind, type FarmRendererRouteLayout, type FarmRendererRouteState, type FarmRendererRoutes, type FarmRendererRoutesContext, type FarmRendererRuntime, type FarmRendererStreamingCapabilities, type FarmRendererStreamingPrimitives, type FarmRendererViteModule, type FarmServerRendererRuntime, NO_RENDERER, REACT_RENDERER, assertFarmRendererServerModule, assertFarmRendererStreamingRuntime, createFarmRendererHookError, defineRenderer, getFarmRendererCapabilities, getFarmRendererComponentExtensions, getFarmRendererStreamingCapabilitiesForRuntime, isFarmRendererDisabled, isReactRenderer, loadFarmRendererVitePlugins, readFarmRendererHydration, readFarmRendererWebStream, resolveFarmComponentExtensions, resolveFarmRenderer, resolveFarmRendererAppSetup, resolveFarmRendererModule };
|