@farm.js/core 0.1.51-beta.2 → 0.1.60
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-WWCC4GLG.mjs → agent-mcp-handler-7QMX2LUY.mjs} +7 -7
- package/dist/agent-mcp-handler-OV4WRFBL.cjs +18 -0
- package/dist/{agent-mcp.d-Z5DuwrqW.d.mts → agent-mcp.d-C-2S9bnP.d.mts} +1 -1
- package/dist/{agent-mcp.d-CR5Ov83o.d.ts → agent-mcp.d-SIoCUP1I.d.ts} +1 -1
- package/dist/agent-runtime.cjs +5 -5
- package/dist/agent-runtime.d.mts +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/agent-runtime.mjs +4 -4
- package/dist/{analyzer-Z6TNEAET.mjs → analyzer-22BEYV7S.mjs} +126 -12
- package/dist/{analyzer-T76CN3S7.cjs → analyzer-LCSI3NSH.cjs} +132 -18
- package/dist/api/client.cjs +5 -4
- package/dist/api/client.d.mts +1 -1
- package/dist/api/client.d.ts +1 -1
- package/dist/api/client.mjs +3 -2
- package/dist/api/client.native.cjs +45 -0
- package/dist/api/client.native.d.mts +23 -0
- package/dist/api/client.native.d.ts +23 -0
- package/dist/api/client.native.mjs +45 -0
- package/dist/api/route-manager.cjs +7 -7
- package/dist/api/route-manager.d.mts +4 -4
- package/dist/api/route-manager.d.ts +4 -4
- package/dist/api/route-manager.mjs +6 -6
- package/dist/api/runtime.cjs +5 -5
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api/runtime.mjs +4 -4
- package/dist/{api-client.d-CeA6tNA6.d.mts → api-client.d-BNLXNCXJ.d.mts} +1 -1
- package/dist/{api-client.d-BWcqZciH.d.ts → api-client.d-ddQBNGtu.d.ts} +1 -1
- package/dist/api.cjs +11 -11
- package/dist/api.d.mts +5 -5
- package/dist/api.d.ts +5 -5
- package/dist/api.mjs +10 -10
- package/dist/{app-manifest.d-CAHkOBFa.d.mts → app-manifest.d-DrSAHskY.d.mts} +1 -1
- package/dist/{app-manifest.d-DiWr_Jfx.d.ts → app-manifest.d-Tb3CJpL4.d.ts} +1 -1
- package/dist/app-markdown.cjs +7 -7
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/app-markdown.mjs +6 -6
- package/dist/{app.d-DmapqkbV.d.ts → app.d-CmWlYpZJ.d.ts} +9 -4
- package/dist/{app.d-BfgJCsTQ.d.mts → app.d-D6QQM_kk.d.mts} +9 -4
- package/dist/{chunk-SN5VSO3Q.mjs → chunk-25T5VXOE.mjs} +7 -9
- package/dist/{chunk-GUJTVM36.cjs → chunk-2FRLSDBT.cjs} +1 -1
- package/dist/{chunk-LM2YOGDK.mjs → chunk-2I6PUKWJ.mjs} +1 -1
- package/dist/{chunk-EIMK7D2D.mjs → chunk-2KTYMMWT.mjs} +34 -4
- package/dist/{chunk-B5BBTPJQ.cjs → chunk-2OF5RPVU.cjs} +14 -14
- package/dist/chunk-37PYUEK5.mjs +533 -0
- package/dist/chunk-3HLQTOVU.cjs +6 -0
- package/dist/{chunk-VSLM6BHX.cjs → chunk-3OJNNCDL.cjs} +9 -9
- package/dist/{chunk-X3JNB2TB.mjs → chunk-3PX4AIXO.mjs} +36 -5
- package/dist/{chunk-UQHIWZZ6.cjs → chunk-3TL3AH25.cjs} +12 -6
- package/dist/chunk-3YMLUNL2.cjs +251 -0
- package/dist/chunk-4JTQPOKO.cjs +137 -0
- package/dist/{chunk-QXPSWMUD.cjs → chunk-4P23B7DU.cjs} +5 -5
- package/dist/{chunk-YVJV7Q2X.mjs → chunk-55U5QIXQ.mjs} +1 -1
- package/dist/{chunk-5N7QAGEA.cjs → chunk-5JNUYGNF.cjs} +37 -7
- package/dist/{chunk-NJLTQR5P.cjs → chunk-6BJJYOFL.cjs} +7 -7
- package/dist/chunk-6UUH4N4J.mjs +251 -0
- package/dist/{chunk-2NHOYYUT.mjs → chunk-7H45IJWO.mjs} +2 -2
- package/dist/{chunk-NN3MOPSI.mjs → chunk-A2MN5PQJ.mjs} +7 -7
- package/dist/{chunk-KY32FWK7.mjs → chunk-BHJAYPYU.mjs} +2 -2
- package/dist/{chunk-VAHBCI6X.mjs → chunk-BQWBHWEW.mjs} +26 -1
- package/dist/{chunk-KJMWAUKE.mjs → chunk-C7GJDVN4.mjs} +1 -1
- package/dist/{chunk-OYNNA4DD.cjs → chunk-CBKRS3M4.cjs} +9 -9
- package/dist/{chunk-I2DQGS56.cjs → chunk-CBOEJ5Z4.cjs} +39 -41
- package/dist/{chunk-BOVGCUDZ.cjs → chunk-CI4UNQHO.cjs} +2 -2
- package/dist/{chunk-S5AQ7CAC.cjs → chunk-CNNBFGL5.cjs} +39 -14
- package/dist/chunk-D2X5MUF5.cjs +1457 -0
- package/dist/{chunk-LEIXUFJN.cjs → chunk-D4MRNBVF.cjs} +10 -9
- package/dist/{chunk-2KVDHNQS.mjs → chunk-D7LTCK3U.mjs} +2 -2
- package/dist/{chunk-J3LBO2O4.cjs → chunk-DPJ66FSI.cjs} +22 -22
- package/dist/{chunk-NYQSC4DX.cjs → chunk-DZPR2W6U.cjs} +5 -5
- package/dist/{chunk-GW4YUIHW.mjs → chunk-E72UD6ME.mjs} +1 -1
- package/dist/chunk-EFZGB7JC.cjs +114 -0
- package/dist/{chunk-XXXRRVY6.mjs → chunk-EGVC4LIG.mjs} +5 -5
- package/dist/{chunk-72NBDVWQ.mjs → chunk-EXUONJYV.mjs} +3 -3
- package/dist/{chunk-VS7EHLLW.mjs → chunk-EZ34EHQP.mjs} +1 -1
- package/dist/{chunk-FM2UEKS2.mjs → chunk-F6Y7ZAPQ.mjs} +2 -2
- package/dist/{chunk-LMFJCXDD.mjs → chunk-FN5UEC7I.mjs} +1 -1
- package/dist/{chunk-E6LTONL4.mjs → chunk-FORSVMEJ.mjs} +2 -2
- package/dist/{chunk-6CYQQQGR.mjs → chunk-HPWB57PZ.mjs} +1 -1
- package/dist/{chunk-Y2G5SJFB.mjs → chunk-IFHPDLIS.mjs} +1 -1
- package/dist/{chunk-GNJIYJMS.cjs → chunk-IFXSBJPN.cjs} +16 -16
- package/dist/{chunk-74Z5KX4A.mjs → chunk-ILMTRGBG.mjs} +309 -56
- package/dist/{chunk-NXBHYO7S.cjs → chunk-JBK7UJOI.cjs} +14 -11
- package/dist/chunk-JI5D7MXY.mjs +137 -0
- package/dist/{chunk-QXJADAQB.cjs → chunk-JIBEFLQ7.cjs} +6 -2
- package/dist/{chunk-LZ4SB57H.mjs → chunk-JPIUGDK4.mjs} +1 -1
- package/dist/{chunk-Y3N5BFRJ.mjs → chunk-JSDV2NUN.mjs} +1 -1
- package/dist/{chunk-IRSS4HS4.mjs → chunk-K3RU5MOR.mjs} +1 -1
- package/dist/chunk-KPOMS5RO.cjs +237 -0
- package/dist/{chunk-LAZK6UV7.mjs → chunk-KVW2M6PI.mjs} +1 -1
- package/dist/{chunk-5IONBVJY.cjs → chunk-LB3DPQP6.cjs} +22 -22
- package/dist/{chunk-CZ35L6PL.mjs → chunk-LJVNMGE3.mjs} +10 -4
- package/dist/chunk-LLZSYFOM.mjs +6 -0
- package/dist/{chunk-X2AMN2WV.cjs → chunk-LQNW3ABP.cjs} +10 -10
- package/dist/{chunk-6ONBZGVH.cjs → chunk-LRB5OVRT.cjs} +3 -3
- package/dist/{chunk-WJFFPXCV.cjs → chunk-LT4VAF5Z.cjs} +12 -10
- package/dist/{chunk-F6TLUMH7.mjs → chunk-M53MIIXY.mjs} +1 -1
- package/dist/{chunk-HIFIG6HL.cjs → chunk-MEQN6DDA.cjs} +5 -5
- package/dist/{chunk-XLRLSTJ6.cjs → chunk-MGKW5XZE.cjs} +7 -7
- package/dist/{chunk-B3GZAQSC.cjs → chunk-MHLNWRCJ.cjs} +3 -3
- package/dist/{chunk-5ENW27SL.mjs → chunk-MMK4MZUN.mjs} +1 -1
- package/dist/{chunk-DTU4PX7V.cjs → chunk-MTWXOEI4.cjs} +927 -629
- package/dist/chunk-NHD7BAKD.mjs +1457 -0
- package/dist/{chunk-NPQLMP7M.cjs → chunk-NQJDO7K7.cjs} +32 -31
- package/dist/{chunk-76GHW3WI.cjs → chunk-O27PLNQZ.cjs} +10 -10
- package/dist/{chunk-PIHKO25G.mjs → chunk-OM7WILES.mjs} +1 -1
- package/dist/{chunk-7UPCJDB5.mjs → chunk-PCXIJKPM.mjs} +8 -8
- package/dist/{chunk-IWFV5ZED.cjs → chunk-PMJSG4JS.cjs} +1 -1
- package/dist/{chunk-JATTVAHA.cjs → chunk-PRFNLQSP.cjs} +4 -4
- package/dist/{chunk-SBABQKPT.cjs → chunk-QAS7KE7J.cjs} +7 -7
- package/dist/chunk-QGOZLGVP.mjs +0 -0
- package/dist/{chunk-VQJYGZNX.cjs → chunk-QMNWKQL4.cjs} +1 -1
- package/dist/{chunk-XB24LZWI.cjs → chunk-QRX4JRBO.cjs} +3 -3
- package/dist/{chunk-LNM57D3H.cjs → chunk-R53QDV6T.cjs} +4 -4
- package/dist/{chunk-SUV6YO4Q.cjs → chunk-RAWWCDCT.cjs} +5 -5
- package/dist/{chunk-LJDIFIJ2.mjs → chunk-RPUJHJHE.mjs} +4 -4
- package/dist/{chunk-G2KTRMWA.mjs → chunk-RSEAX5MW.mjs} +4 -0
- package/dist/chunk-SJRCWF4Z.mjs +237 -0
- package/dist/{chunk-IBSAYAWB.mjs → chunk-SX7EECTS.mjs} +8 -5
- package/dist/{chunk-KBRZAYI7.mjs → chunk-T4TBK5NY.mjs} +2 -2
- package/dist/{chunk-4SSRBCBR.mjs → chunk-T7I62A4C.mjs} +619 -321
- package/dist/{chunk-E36C43IX.cjs → chunk-U4BJKNIR.cjs} +6 -6
- package/dist/{chunk-YU42A5MA.cjs → chunk-UDJY2ZGY.cjs} +533 -280
- package/dist/{chunk-SHS6KXOZ.mjs → chunk-UR25Z5Z6.mjs} +1 -1
- package/dist/{chunk-WZW6LEHM.cjs → chunk-UYSTTPYJ.cjs} +1590 -1019
- package/dist/{chunk-KRRZJ77U.mjs → chunk-UZZ6IEQP.mjs} +3 -3
- package/dist/{chunk-EKJYE4Y7.cjs → chunk-VGG74PSU.cjs} +25 -25
- package/dist/{chunk-CTM4SPB3.mjs → chunk-VPTWKOCY.mjs} +20 -19
- package/dist/{chunk-UN6N623E.mjs → chunk-VQJHT2ND.mjs} +2 -2
- package/dist/{chunk-SJ23LJ3N.cjs → chunk-VVTJTMGQ.cjs} +3 -3
- package/dist/{chunk-KHXAJ2KA.cjs → chunk-W2RZ73IU.cjs} +12 -12
- package/dist/{chunk-JWI5PUO2.mjs → chunk-W2ZXMMHA.mjs} +2 -1
- package/dist/{chunk-BLD5GVCG.mjs → chunk-W6QLRQ3V.mjs} +1 -1
- package/dist/{chunk-AV26KHTG.mjs → chunk-X2CZTWQA.mjs} +2 -2
- package/dist/chunk-XPIPMWY3.cjs +1 -0
- package/dist/chunk-XTG73QZA.cjs +533 -0
- package/dist/{chunk-XPMC4E2G.cjs → chunk-XVSBALOY.cjs} +3 -3
- package/dist/{chunk-XYL4HSVC.cjs → chunk-YI6FKTTN.cjs} +38 -7
- package/dist/{chunk-N77JBPLC.mjs → chunk-YSXTNSXS.mjs} +10 -8
- package/dist/{chunk-EHB77D5U.cjs → chunk-ZDAEHG2O.cjs} +3 -3
- package/dist/{chunk-PMKUU273.mjs → chunk-ZFUKPWFC.mjs} +1226 -655
- package/dist/{chunk-E73PGHSR.mjs → chunk-ZMHAFH4R.mjs} +8 -8
- package/dist/{chunk-ZOWNWHK6.cjs → chunk-ZNH6NR3H.cjs} +2 -2
- package/dist/chunk-ZNXTU4YH.mjs +114 -0
- package/dist/{chunk-PFV2KPDZ.cjs → chunk-ZOYKJBP5.cjs} +3 -3
- package/dist/{chunk-CECUDGXQ.cjs → chunk-ZP32GNJQ.cjs} +13 -13
- package/dist/{chunk-72D2NX77.mjs → chunk-ZZ2QKCKW.mjs} +1 -1
- package/dist/{client-plugins.d-Bx3FXpqm.d.mts → client-plugins.d-CgQQ-EAv.d.mts} +25 -4
- package/dist/{client-plugins.d-TiLbS5j4.d.ts → client-plugins.d-vXrbcfJ1.d.ts} +25 -4
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client.cjs +9 -9
- package/dist/client.d.mts +9 -9
- package/dist/client.d.ts +9 -9
- package/dist/client.mjs +9 -9
- package/dist/{config.d-iRPI16ku.d.mts → config.d-DqZkLwef.d.mts} +146 -1
- package/dist/{config.d-iRPI16ku.d.ts → config.d-DqZkLwef.d.ts} +146 -1
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/cron.cjs +3 -3
- package/dist/cron.d.mts +10 -0
- package/dist/cron.d.ts +10 -0
- package/dist/cron.mjs +2 -2
- package/dist/desktop.d.mts +3 -3
- package/dist/desktop.d.ts +3 -3
- package/dist/{devtools-UQLDAOEI.mjs → devtools-KQZ6SRCJ.mjs} +16 -16
- package/dist/{devtools-6XWCZIGO.cjs → devtools-UF6JYHUN.cjs} +18 -18
- package/dist/docs.cjs +19 -19
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +18 -18
- package/dist/index.cjs +99 -95
- package/dist/{index.d-yueUNipJ.d.ts → index.d-DlCELfhf.d.ts} +1 -1
- package/dist/{index.d-YxJ2AiDF.d.mts → index.d-Dmfb7Kb_.d.mts} +1 -1
- package/dist/index.d.mts +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.mjs +139 -135
- package/dist/integrations.cjs +5 -5
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/integrations.mjs +4 -4
- package/dist/internal/app-markdown-runtime.cjs +6 -6
- package/dist/internal/app-markdown-runtime.d.mts +3 -3
- package/dist/internal/app-markdown-runtime.d.ts +3 -3
- package/dist/internal/app-markdown-runtime.mjs +5 -5
- package/dist/internal/build-runtime.cjs +52 -50
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +51 -49
- package/dist/internal/cli-runtime.cjs +28 -28
- package/dist/internal/cli-runtime.mjs +28 -28
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +20 -15
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/client-runtime.mjs +8 -3
- package/dist/internal/compression-runtime.d.mts +2 -2
- package/dist/internal/compression-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.cjs +18 -18
- package/dist/internal/config-runtime.d.mts +119 -7
- package/dist/internal/config-runtime.d.ts +119 -7
- package/dist/internal/config-runtime.mjs +17 -17
- package/dist/internal/infra-analytics-runtime.cjs +11 -11
- package/dist/internal/infra-analytics-runtime.mjs +9 -9
- package/dist/internal/islands-boot.cjs +211 -0
- package/dist/internal/islands-boot.d.mts +8 -0
- package/dist/internal/islands-boot.d.ts +8 -0
- package/dist/internal/islands-boot.mjs +211 -0
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +42 -28
- package/dist/internal/production-runtime.d.mts +50 -12
- package/dist/internal/production-runtime.d.ts +50 -12
- package/dist/internal/production-runtime.mjs +52 -38
- package/dist/markdown.cjs +7 -5
- package/dist/markdown.d.mts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.mjs +6 -4
- package/dist/middleware.cjs +10 -10
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/middleware.mjs +9 -9
- package/dist/mobile.d.mts +43 -5
- package/dist/mobile.d.ts +43 -5
- package/dist/modules-VHD7BELU.mjs +13 -0
- package/dist/modules-WT5D3AWY.cjs +13 -0
- package/dist/native-specs-BD7HOTMJ.mjs +15 -0
- package/dist/native-specs-IQQRJOOW.cjs +15 -0
- package/dist/native-tree-6G5O53O3.cjs +27 -0
- package/dist/native-tree-VWNW2MQ2.mjs +27 -0
- package/dist/native.cjs +87 -0
- package/dist/native.d.mts +72 -0
- package/dist/native.d.ts +72 -0
- package/dist/native.mjs +87 -0
- package/dist/{navigation-delegate.d-HnDXhlyP.d.mts → navigation-delegate.d-CnOTWOyi.d.mts} +1 -1
- package/dist/{navigation-delegate.d-BY1e_Xrh.d.ts → navigation-delegate.d-JXx40JzR.d.ts} +1 -1
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/navigation.mjs +4 -4
- package/dist/{nitro-R444AF3O.mjs → nitro-FLN6DRGJ.mjs} +7 -7
- package/dist/{nitro-CK7M4RMY.cjs → nitro-HXAZZQKY.cjs} +12 -12
- package/dist/plugin.cjs +43 -42
- package/dist/plugin.d.mts +5 -4
- package/dist/plugin.d.ts +5 -4
- package/dist/plugin.mjs +42 -41
- package/dist/port-C6GBH4C6.cjs +419 -0
- package/dist/port-WOOQ3V56.mjs +419 -0
- package/dist/{production-runtime.d-BpJUDzP8.d.mts → production-runtime.d-CP5s6RuY.d.mts} +1 -1
- package/dist/{production-runtime.d-lMjvE9cf.d.ts → production-runtime.d-N-cE3pmy.d.ts} +1 -1
- package/dist/{programmatic-routes-client.d-BlFp5hv4.d.ts → programmatic-routes-client.d-CLG2N1yH.d.ts} +2 -2
- package/dist/{programmatic-routes-client.d-6CGQ3TCk.d.mts → programmatic-routes-client.d-CPbNqtIi.d.mts} +2 -2
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan.d-DhP0mTHF.d.ts → render-plan.d-B9lAP3uX.d.ts} +1 -1
- package/dist/{render-plan.d-BH9edqKs.d.mts → render-plan.d-DZ-qjjdG.d.mts} +1 -1
- package/dist/renderer/react/server.cjs +2 -2
- package/dist/renderer/react/server.mjs +3 -3
- package/dist/renderer-client.cjs +6 -6
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/renderer-client.mjs +2 -2
- package/dist/{request.d-BVZrsR1v.d.ts → request.d-BiicaNxb.d.ts} +1 -1
- package/dist/{request.d-DJFRdKi8.d.mts → request.d-DV0oeUit.d.mts} +1 -1
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/{route-rendering.d-Bpmw7PED.d.mts → route-rendering.d-BrIKA51A.d.mts} +1 -1
- package/dist/{route-rendering.d-B00JtK_-.d.ts → route-rendering.d-Iss0C7GR.d.ts} +1 -1
- package/dist/{router.d-Bd1x9XxQ.d.ts → router.d-DjGn_al7.d.ts} +1 -1
- package/dist/{router.d-e0jQ3jQ-.d.mts → router.d-mNTbOGV_.d.mts} +1 -1
- package/dist/{routes.d-D96Dq9lz.d.ts → routes.d-BKSjHuH9.d.ts} +27 -4
- package/dist/{routes.d-Cmv8TgVq.d.mts → routes.d-qd8Qf4LG.d.mts} +27 -4
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/{rsc-pipeline-DX4OC5FN.cjs → rsc-pipeline-SVLBTY7H.cjs} +21 -21
- package/dist/{rsc-pipeline-ZQ4CTVEG.mjs → rsc-pipeline-WBLBDQXA.mjs} +20 -20
- package/dist/{runtime-NQ3EDSA7.cjs → runtime-DGUOWSMF.cjs} +307 -48
- package/dist/{runtime-NPDRDV6R.mjs → runtime-HFZTVNFF.mjs} +298 -39
- package/dist/{runtime.d-CgB3IJDq.d.mts → runtime.d-BNVbojF1.d.mts} +1 -1
- package/dist/{runtime.d-D-td-RR3.d.ts → runtime.d-Bm_4hP5T.d.ts} +1 -1
- package/dist/{schema-dev-notice-F6QYSOAI.mjs → schema-dev-notice-JMXEQWIQ.mjs} +3 -3
- package/dist/{schema-dev-notice-UU7DMZEU.cjs → schema-dev-notice-PLBFDTOF.cjs} +6 -6
- package/dist/server-fn-client.d.mts +1 -1
- package/dist/server-fn-client.d.ts +1 -1
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server-plugins.mjs +1 -1
- package/dist/server.cjs +82 -81
- package/dist/server.d.mts +12 -11
- package/dist/server.d.ts +12 -11
- package/dist/server.mjs +65 -64
- package/dist/session-2Q72D4QV.cjs +23 -0
- package/dist/{session-IGEDQ5PY.mjs → session-QZXZOPR2.mjs} +2 -2
- package/dist/shell-render.d-CG6bPiiA.d.mts +41 -0
- package/dist/shell-render.d-CG6bPiiA.d.ts +41 -0
- package/dist/{spa-router.d-CO01mVOM.d.ts → spa-router.d-DAtnNoBe.d.ts} +11 -2
- package/dist/{spa-router.d-BWDhS0FK.d.mts → spa-router.d-DHDoXxDE.d.mts} +11 -2
- package/dist/testing.cjs +7 -7
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.mjs +6 -6
- package/dist/{utils.d-B77__yh8.d.ts → utils.d-DwZ-KLSB.d.ts} +7 -1
- package/dist/{utils.d-DRDazhCA.d.mts → utils.d-uKZcKJk4.d.mts} +7 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +43 -42
- package/dist/vite.d.mts +17 -6
- package/dist/vite.d.ts +17 -6
- package/dist/vite.mjs +42 -41
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +17 -3
- package/dist/agent-mcp-handler-RT3COCEL.cjs +0 -18
- package/dist/session-AAU7RNRO.cjs +0 -23
- package/dist/{chunk-7FVVQEVL.cjs → chunk-4BS3HSY7.cjs} +2 -2
- package/dist/{chunk-N7JQXQAV.cjs → chunk-5OJVKXFV.cjs} +2 -2
- package/dist/{chunk-WSDKXV4E.mjs → chunk-72KABRWN.mjs} +4 -4
- package/dist/{chunk-C3BOESDW.mjs → chunk-B4CWYGCG.mjs} +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
var _chunkRI3EVPKDcjs = require('./chunk-RI3EVPKD.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkJIBEFLQ7cjs = require('./chunk-JIBEFLQ7.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -155,7 +155,8 @@ var SPARouter = class {
|
|
|
155
155
|
// 30 seconds
|
|
156
156
|
scrollRestoration: _nullishCoalesce(options.scrollRestoration, () => ( true)),
|
|
157
157
|
shouldUseDocumentNavigation: _nullishCoalesce(options.shouldUseDocumentNavigation, () => ( (() => false))),
|
|
158
|
-
deploymentId: _nullishCoalesce(options.deploymentId, () => ( readBrowserDeploymentId()))
|
|
158
|
+
deploymentId: _nullishCoalesce(options.deploymentId, () => ( readBrowserDeploymentId())),
|
|
159
|
+
fetchNavigationDocument: options.fetchNavigationDocument
|
|
159
160
|
};
|
|
160
161
|
if (typeof window !== "undefined") {
|
|
161
162
|
window.addEventListener("popstate", this.onPopState);
|
|
@@ -245,7 +246,7 @@ var SPARouter = class {
|
|
|
245
246
|
);
|
|
246
247
|
if (scroll) {
|
|
247
248
|
if (url.hash) {
|
|
248
|
-
_optionalChain([
|
|
249
|
+
_optionalChain([_chunkJIBEFLQ7cjs.getHashTargetElement.call(void 0, url.hash), 'optionalAccess', _10 => _10.scrollIntoView, 'call', _11 => _11()]);
|
|
249
250
|
} else {
|
|
250
251
|
window.scrollTo(0, 0);
|
|
251
252
|
}
|
|
@@ -257,7 +258,7 @@ var SPARouter = class {
|
|
|
257
258
|
if (await this.shouldBlockNavigation({ from, to: fullPath, action })) {
|
|
258
259
|
return;
|
|
259
260
|
}
|
|
260
|
-
if (!(refresh && fullPath === from) && await
|
|
261
|
+
if (!(refresh && fullPath === from) && await _chunkJIBEFLQ7cjs.runFarmNavigationDelegates.call(void 0, { url: url.href, from, to: fullPath, action })) {
|
|
261
262
|
this.cancelActiveNavigation();
|
|
262
263
|
return;
|
|
263
264
|
}
|
|
@@ -277,16 +278,13 @@ var SPARouter = class {
|
|
|
277
278
|
action: replace ? "replace" : "push"
|
|
278
279
|
})]);
|
|
279
280
|
if (!this.isCurrentNavigation(navigation, clientNavigation)) return;
|
|
280
|
-
const pageData = await this.
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
refresh,
|
|
285
|
-
navigation.controller.signal
|
|
286
|
-
);
|
|
281
|
+
const pageData = await _asyncNullishCoalesce(await _optionalChain([this, 'access', _15 => _15.options, 'access', _16 => _16.fetchNavigationDocument, 'optionalCall', _17 => _17(fullPath, {
|
|
282
|
+
signal: navigation.controller.signal,
|
|
283
|
+
refresh
|
|
284
|
+
})]), async () => ( await this.fetchPageData(fullPath, true, from, refresh, navigation.controller.signal)));
|
|
287
285
|
if (!this.isCurrentNavigation(navigation, clientNavigation)) return;
|
|
288
286
|
if (clientNavigation) {
|
|
289
|
-
await _optionalChain([this, 'access',
|
|
287
|
+
await _optionalChain([this, 'access', _18 => _18.clientPlugins, 'optionalAccess', _19 => _19.markNavigationLoaded, 'call', _20 => _20(clientNavigation, pageData)]);
|
|
290
288
|
}
|
|
291
289
|
if (!this.isCurrentNavigation(navigation, clientNavigation)) return;
|
|
292
290
|
await this.runViewTransition(
|
|
@@ -304,14 +302,14 @@ var SPARouter = class {
|
|
|
304
302
|
);
|
|
305
303
|
if (!this.isCurrentNavigation(navigation, clientNavigation)) return;
|
|
306
304
|
if (clientNavigation) {
|
|
307
|
-
await _optionalChain([this, 'access',
|
|
308
|
-
void _optionalChain([this, 'access',
|
|
305
|
+
await _optionalChain([this, 'access', _21 => _21.clientPlugins, 'optionalAccess', _22 => _22.resolveNavigation, 'call', _23 => _23(clientNavigation)]);
|
|
306
|
+
void _optionalChain([this, 'access', _24 => _24.clientPlugins, 'optionalAccess', _25 => _25.scheduleNavigationRendered, 'call', _26 => _26(clientNavigation)]);
|
|
309
307
|
}
|
|
310
308
|
this.finishNavigation(navigation);
|
|
311
309
|
} catch (error) {
|
|
312
310
|
if (!this.isCurrentNavigation(navigation, clientNavigation)) return;
|
|
313
311
|
if (clientNavigation) {
|
|
314
|
-
await _optionalChain([this, 'access',
|
|
312
|
+
await _optionalChain([this, 'access', _27 => _27.clientPlugins, 'optionalAccess', _28 => _28.failNavigation, 'call', _29 => _29(clientNavigation, error)]);
|
|
315
313
|
}
|
|
316
314
|
this.finishNavigation(navigation);
|
|
317
315
|
console.error("[Farm.js] Navigation error:", error);
|
|
@@ -369,7 +367,7 @@ var SPARouter = class {
|
|
|
369
367
|
*/
|
|
370
368
|
unobserveForPrefetch(element) {
|
|
371
369
|
if (this.observedPrefetchLinks.delete(element)) {
|
|
372
|
-
_optionalChain([this, 'access',
|
|
370
|
+
_optionalChain([this, 'access', _30 => _30.prefetchObserver, 'optionalAccess', _31 => _31.unobserve, 'call', _32 => _32(element)]);
|
|
373
371
|
}
|
|
374
372
|
const timer = this.prefetchTimers.get(element);
|
|
375
373
|
if (timer !== void 0) {
|
|
@@ -386,7 +384,7 @@ var SPARouter = class {
|
|
|
386
384
|
const element = entry.target;
|
|
387
385
|
const href = this.observedPrefetchLinks.get(element);
|
|
388
386
|
if (!href) continue;
|
|
389
|
-
_optionalChain([this, 'access',
|
|
387
|
+
_optionalChain([this, 'access', _33 => _33.prefetchObserver, 'optionalAccess', _34 => _34.unobserve, 'call', _35 => _35(element)]);
|
|
390
388
|
this.observedPrefetchLinks.delete(element);
|
|
391
389
|
const timer = setTimeout(() => {
|
|
392
390
|
if (this.prefetchTimers.get(element) !== timer) return;
|
|
@@ -506,7 +504,7 @@ var SPARouter = class {
|
|
|
506
504
|
historyPath,
|
|
507
505
|
options.state,
|
|
508
506
|
options.replace ? window.history.state : void 0,
|
|
509
|
-
_nullishCoalesce(_optionalChain([options, 'access',
|
|
507
|
+
_nullishCoalesce(_optionalChain([options, 'access', _36 => _36.pageData, 'access', _37 => _37.interception, 'optionalAccess', _38 => _38.from]), () => ( null))
|
|
510
508
|
);
|
|
511
509
|
const nextHistoryIndex = this.currentHistoryIndex == null ? null : options.replace ? this.currentHistoryIndex : this.currentHistoryIndex + 1;
|
|
512
510
|
if (nextHistoryIndex != null) {
|
|
@@ -530,7 +528,7 @@ var SPARouter = class {
|
|
|
530
528
|
}
|
|
531
529
|
if (options.scroll) {
|
|
532
530
|
if (options.url.hash) {
|
|
533
|
-
const element =
|
|
531
|
+
const element = _chunkJIBEFLQ7cjs.getHashTargetElement.call(void 0, options.url.hash);
|
|
534
532
|
if (element) {
|
|
535
533
|
element.scrollIntoView();
|
|
536
534
|
}
|
|
@@ -554,11 +552,11 @@ var SPARouter = class {
|
|
|
554
552
|
return;
|
|
555
553
|
}
|
|
556
554
|
const transition = startViewTransition.call(document, () => callback());
|
|
557
|
-
const updateDone = _optionalChain([transition, 'optionalAccess',
|
|
555
|
+
const updateDone = _optionalChain([transition, 'optionalAccess', _39 => _39.updateCallbackDone]) || _optionalChain([transition, 'optionalAccess', _40 => _40.ready]);
|
|
558
556
|
if (updateDone && typeof updateDone.then === "function") {
|
|
559
557
|
await updateDone;
|
|
560
558
|
}
|
|
561
|
-
_optionalChain([transition, 'optionalAccess',
|
|
559
|
+
_optionalChain([transition, 'optionalAccess', _41 => _41.finished, 'optionalAccess', _42 => _42.catch, 'optionalCall', _43 => _43(() => void 0)]);
|
|
562
560
|
}
|
|
563
561
|
/**
|
|
564
562
|
* Fetch page data from cache or server
|
|
@@ -600,7 +598,7 @@ var SPARouter = class {
|
|
|
600
598
|
this.pendingPrefetches.set(prefetchKey, prefetch2);
|
|
601
599
|
}
|
|
602
600
|
const cacheData = (data) => {
|
|
603
|
-
if (!this.destroyed && generation === this.cacheGeneration && _optionalChain([prefetch2, 'optionalAccess',
|
|
601
|
+
if (!this.destroyed && generation === this.cacheGeneration && _optionalChain([prefetch2, 'optionalAccess', _44 => _44.cacheable]) !== false) {
|
|
604
602
|
this.cachePageData(cacheKey, data);
|
|
605
603
|
}
|
|
606
604
|
};
|
|
@@ -612,10 +610,10 @@ var SPARouter = class {
|
|
|
612
610
|
activeLayoutChain,
|
|
613
611
|
signal,
|
|
614
612
|
cacheData,
|
|
615
|
-
_optionalChain([prefetch2, 'optionalAccess',
|
|
613
|
+
_optionalChain([prefetch2, 'optionalAccess', _45 => _45.resolve])
|
|
616
614
|
);
|
|
617
615
|
} finally {
|
|
618
|
-
_optionalChain([prefetch2, 'optionalAccess',
|
|
616
|
+
_optionalChain([prefetch2, 'optionalAccess', _46 => _46.resolve, 'call', _47 => _47(void 0)]);
|
|
619
617
|
if (prefetch2 && this.pendingPrefetches.get(prefetchKey) === prefetch2) {
|
|
620
618
|
this.pendingPrefetches.delete(prefetchKey);
|
|
621
619
|
}
|
|
@@ -651,10 +649,10 @@ var SPARouter = class {
|
|
|
651
649
|
if (!isDeferredResponse) {
|
|
652
650
|
const data2 = await _chunkXQSYOVCWcjs.readDeferredDataResponse.call(void 0, response);
|
|
653
651
|
cacheData(data2);
|
|
654
|
-
_optionalChain([resolvePrefetch, 'optionalCall',
|
|
652
|
+
_optionalChain([resolvePrefetch, 'optionalCall', _48 => _48(data2)]);
|
|
655
653
|
return data2;
|
|
656
654
|
}
|
|
657
|
-
_optionalChain([resolvePrefetch, 'optionalCall',
|
|
655
|
+
_optionalChain([resolvePrefetch, 'optionalCall', _49 => _49(void 0)]);
|
|
658
656
|
let data;
|
|
659
657
|
let streamCompleted = false;
|
|
660
658
|
const markStreamComplete = () => {
|
|
@@ -713,7 +711,7 @@ var SPARouter = class {
|
|
|
713
711
|
}
|
|
714
712
|
const path = window.location.pathname + window.location.search;
|
|
715
713
|
const from = _nullishCoalesce(this.currentHistoryPath, () => ( path));
|
|
716
|
-
if (path === from && window.location.hash !== this.currentHistoryHash && _optionalChain([event, 'access',
|
|
714
|
+
if (path === from && window.location.hash !== this.currentHistoryHash && _optionalChain([event, 'access', _50 => _50.state, 'optionalAccess', _51 => _51[FARM_INTERCEPT_FROM_KEY]]) === this.currentInterceptFrom) {
|
|
717
715
|
this.cancelActiveNavigation();
|
|
718
716
|
this.currentHistoryHash = window.location.hash;
|
|
719
717
|
this.currentHistoryIndex = readHistoryIndex(event.state);
|
|
@@ -729,7 +727,7 @@ var SPARouter = class {
|
|
|
729
727
|
}
|
|
730
728
|
this.currentHistoryPath = path;
|
|
731
729
|
this.currentHistoryHash = window.location.hash;
|
|
732
|
-
this.currentInterceptFrom = _optionalChain([event, 'access',
|
|
730
|
+
this.currentInterceptFrom = _optionalChain([event, 'access', _52 => _52.state, 'optionalAccess', _53 => _53[FARM_INTERCEPT_FROM_KEY]]);
|
|
733
731
|
this.currentHistoryIndex = readHistoryIndex(event.state);
|
|
734
732
|
const navigation = this.startNavigation({
|
|
735
733
|
from,
|
|
@@ -738,13 +736,13 @@ var SPARouter = class {
|
|
|
738
736
|
});
|
|
739
737
|
let clientNavigation;
|
|
740
738
|
try {
|
|
741
|
-
clientNavigation = await _optionalChain([this, 'access',
|
|
739
|
+
clientNavigation = await _optionalChain([this, 'access', _54 => _54.clientPlugins, 'optionalAccess', _55 => _55.beginNavigation, 'call', _56 => _56({
|
|
742
740
|
from: null,
|
|
743
741
|
to: window.location.href,
|
|
744
742
|
action: "pop"
|
|
745
743
|
})]);
|
|
746
744
|
if (!this.isCurrentNavigation(navigation, clientNavigation)) return;
|
|
747
|
-
const interceptFrom = typeof _optionalChain([event, 'access',
|
|
745
|
+
const interceptFrom = typeof _optionalChain([event, 'access', _57 => _57.state, 'optionalAccess', _58 => _58[FARM_INTERCEPT_FROM_KEY]]) === "string" ? event.state[FARM_INTERCEPT_FROM_KEY] : void 0;
|
|
748
746
|
const pageData = await this.fetchPageData(
|
|
749
747
|
path,
|
|
750
748
|
true,
|
|
@@ -754,7 +752,7 @@ var SPARouter = class {
|
|
|
754
752
|
);
|
|
755
753
|
if (!this.isCurrentNavigation(navigation, clientNavigation)) return;
|
|
756
754
|
if (clientNavigation) {
|
|
757
|
-
await _optionalChain([this, 'access',
|
|
755
|
+
await _optionalChain([this, 'access', _59 => _59.clientPlugins, 'optionalAccess', _60 => _60.markNavigationLoaded, 'call', _61 => _61(clientNavigation, pageData)]);
|
|
758
756
|
}
|
|
759
757
|
if (!this.isCurrentNavigation(navigation, clientNavigation)) return;
|
|
760
758
|
this.updateDocumentMetadata(pageData.metadata);
|
|
@@ -764,7 +762,7 @@ var SPARouter = class {
|
|
|
764
762
|
}
|
|
765
763
|
const destinationPath = window.location.pathname + window.location.search;
|
|
766
764
|
if (window.location.hash) {
|
|
767
|
-
const target =
|
|
765
|
+
const target = _chunkJIBEFLQ7cjs.getHashTargetElement.call(void 0, window.location.hash);
|
|
768
766
|
if (target) {
|
|
769
767
|
target.scrollIntoView();
|
|
770
768
|
} else if (this.options.scrollRestoration) {
|
|
@@ -777,14 +775,14 @@ var SPARouter = class {
|
|
|
777
775
|
this.restoreScrollElements(destinationPath);
|
|
778
776
|
}
|
|
779
777
|
if (clientNavigation) {
|
|
780
|
-
await _optionalChain([this, 'access',
|
|
781
|
-
void _optionalChain([this, 'access',
|
|
778
|
+
await _optionalChain([this, 'access', _62 => _62.clientPlugins, 'optionalAccess', _63 => _63.resolveNavigation, 'call', _64 => _64(clientNavigation)]);
|
|
779
|
+
void _optionalChain([this, 'access', _65 => _65.clientPlugins, 'optionalAccess', _66 => _66.scheduleNavigationRendered, 'call', _67 => _67(clientNavigation)]);
|
|
782
780
|
}
|
|
783
781
|
this.finishNavigation(navigation);
|
|
784
782
|
} catch (error) {
|
|
785
783
|
if (!this.isCurrentNavigation(navigation, clientNavigation)) return;
|
|
786
784
|
if (clientNavigation) {
|
|
787
|
-
await _optionalChain([this, 'access',
|
|
785
|
+
await _optionalChain([this, 'access', _68 => _68.clientPlugins, 'optionalAccess', _69 => _69.failNavigation, 'call', _70 => _70(clientNavigation, error)]);
|
|
788
786
|
}
|
|
789
787
|
this.finishNavigation(navigation);
|
|
790
788
|
console.error("[Farm.js] Popstate navigation error:", error);
|
|
@@ -824,7 +822,7 @@ var SPARouter = class {
|
|
|
824
822
|
shouldBlockUnload() {
|
|
825
823
|
for (const blocker of this.blockers) {
|
|
826
824
|
try {
|
|
827
|
-
if (_optionalChain([this, 'access',
|
|
825
|
+
if (_optionalChain([this, 'access', _71 => _71.unloadBlockers, 'access', _72 => _72.get, 'call', _73 => _73(blocker), 'optionalCall', _74 => _74()])) return true;
|
|
828
826
|
} catch (e4) {
|
|
829
827
|
return true;
|
|
830
828
|
}
|
|
@@ -835,7 +833,7 @@ var SPARouter = class {
|
|
|
835
833
|
applyFarmMetadataToDocument(metadata, window.location.pathname);
|
|
836
834
|
}
|
|
837
835
|
startNavigation(options) {
|
|
838
|
-
_optionalChain([this, 'access',
|
|
836
|
+
_optionalChain([this, 'access', _75 => _75.activeNavigation, 'optionalAccess', _76 => _76.controller, 'access', _77 => _77.abort, 'call', _78 => _78("superseded")]);
|
|
839
837
|
const navigation = {
|
|
840
838
|
id: ++this.navigationSequence,
|
|
841
839
|
controller: new AbortController()
|
|
@@ -852,10 +850,10 @@ var SPARouter = class {
|
|
|
852
850
|
return navigation;
|
|
853
851
|
}
|
|
854
852
|
isCurrentNavigation(navigation, clientNavigation) {
|
|
855
|
-
return _optionalChain([this, 'access',
|
|
853
|
+
return _optionalChain([this, 'access', _79 => _79.activeNavigation, 'optionalAccess', _80 => _80.id]) === navigation.id && !navigation.controller.signal.aborted && !_optionalChain([clientNavigation, 'optionalAccess', _81 => _81.signal, 'access', _82 => _82.aborted]);
|
|
856
854
|
}
|
|
857
855
|
finishNavigation(navigation) {
|
|
858
|
-
if (_optionalChain([this, 'access',
|
|
856
|
+
if (_optionalChain([this, 'access', _83 => _83.activeNavigation, 'optionalAccess', _84 => _84.id]) !== navigation.id) return;
|
|
859
857
|
this.activeNavigation = void 0;
|
|
860
858
|
this.setNavigationState(IDLE_NAVIGATION_STATE);
|
|
861
859
|
}
|
|
@@ -965,7 +963,7 @@ function readBrowserDeploymentId() {
|
|
|
965
963
|
if (typeof window === "undefined") return void 0;
|
|
966
964
|
const runtimeId = window.__FARM_DEPLOYMENT_ID__;
|
|
967
965
|
if (typeof runtimeId === "string" && runtimeId) return runtimeId;
|
|
968
|
-
return _optionalChain([document, 'access',
|
|
966
|
+
return _optionalChain([document, 'access', _85 => _85.querySelector, 'call', _86 => _86('meta[name="farm-deployment-id"]'), 'optionalAccess', _87 => _87.content]);
|
|
969
967
|
}
|
|
970
968
|
function dispatchDeploymentMismatch(error) {
|
|
971
969
|
if (typeof window === "undefined" || typeof CustomEvent === "undefined") return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkPRFNLQSPcjs = require('./chunk-PRFNLQSP.cjs');
|
|
4
4
|
|
|
5
5
|
// src/app-markdown.ts
|
|
6
6
|
var _promises = require('fs/promises');
|
|
@@ -8,7 +8,7 @@ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
|
8
8
|
var _url = require('url');
|
|
9
9
|
async function createFarmMarkdownRouteModuleFromFile(filePath, options = {}) {
|
|
10
10
|
const source = await _promises.readFile.call(void 0, filePath, "utf8");
|
|
11
|
-
return
|
|
11
|
+
return _chunkPRFNLQSPcjs.createFarmMarkdownRouteModule.call(void 0, {
|
|
12
12
|
source,
|
|
13
13
|
filePath,
|
|
14
14
|
components: options.components,
|
|
@@ -7,12 +7,16 @@ var _chunk53EHWHT2cjs = require('./chunk-53EHWHT2.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkCBOEJ5Z4cjs = require('./chunk-CBOEJ5Z4.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkRI3EVPKDcjs = require('./chunk-RI3EVPKD.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
|
|
17
|
+
var _chunkJIBEFLQ7cjs = require('./chunk-JIBEFLQ7.cjs');
|
|
18
|
+
|
|
19
|
+
|
|
16
20
|
var _chunk3BIASUGRcjs = require('./chunk-3BIASUGR.cjs');
|
|
17
21
|
|
|
18
22
|
|
|
@@ -48,7 +52,7 @@ function shouldBlockUnload(options) {
|
|
|
48
52
|
function navigateViaRouter(href, basePath, replace, options = {}) {
|
|
49
53
|
if (typeof window === "undefined") return;
|
|
50
54
|
const url = _chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href, basePath);
|
|
51
|
-
const spaRouter =
|
|
55
|
+
const spaRouter = _chunkCBOEJ5Z4cjs.getInstalledFarmSPARouter.call(void 0, );
|
|
52
56
|
if (spaRouter) {
|
|
53
57
|
void spaRouter.navigate(url, {
|
|
54
58
|
replace,
|
|
@@ -56,12 +60,33 @@ function navigateViaRouter(href, basePath, replace, options = {}) {
|
|
|
56
60
|
});
|
|
57
61
|
return;
|
|
58
62
|
}
|
|
63
|
+
if (_chunkJIBEFLQ7cjs.hasFarmNavigationDelegates.call(void 0, )) {
|
|
64
|
+
void writeHistoryUnlessDelegated(url, replace);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
writeHistory(url, replace);
|
|
68
|
+
}
|
|
69
|
+
function writeHistory(url, replace) {
|
|
59
70
|
if (replace) {
|
|
60
71
|
window.history.replaceState(null, "", url);
|
|
61
72
|
} else {
|
|
62
73
|
window.history.pushState(null, "", url);
|
|
63
74
|
}
|
|
64
|
-
|
|
75
|
+
_chunkCBOEJ5Z4cjs.notifyHistoryChange.call(void 0, "url-search");
|
|
76
|
+
}
|
|
77
|
+
async function writeHistoryUnlessDelegated(url, replace) {
|
|
78
|
+
const target = new URL(url, window.location.href);
|
|
79
|
+
const from = window.location.pathname + window.location.search;
|
|
80
|
+
const to = target.pathname + target.search;
|
|
81
|
+
if (target.origin === window.location.origin && to !== from && await _chunkJIBEFLQ7cjs.runFarmNavigationDelegates.call(void 0, {
|
|
82
|
+
url: target.href,
|
|
83
|
+
from,
|
|
84
|
+
to,
|
|
85
|
+
action: replace ? "replace" : "push"
|
|
86
|
+
})) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
writeHistory(url, replace);
|
|
65
90
|
}
|
|
66
91
|
function useRouter(options = {}) {
|
|
67
92
|
const basePath = options.basePath === void 0 ? _chunkD22BUQKWcjs.getFarmBasePath.call(void 0, ) : _chunkD22BUQKWcjs.normalizeFarmBasePath.call(void 0, options.basePath);
|
|
@@ -80,7 +105,7 @@ function useRouter(options = {}) {
|
|
|
80
105
|
setState(readRouterState(basePath, routeMatcher));
|
|
81
106
|
};
|
|
82
107
|
handlePopState();
|
|
83
|
-
const unsubscribe =
|
|
108
|
+
const unsubscribe = _chunkCBOEJ5Z4cjs.subscribeHistoryChange.call(void 0, handlePopState);
|
|
84
109
|
return unsubscribe;
|
|
85
110
|
}, [basePath, routeMatcher]);
|
|
86
111
|
const push = (href, navigateOptions) => {
|
|
@@ -91,11 +116,11 @@ function useRouter(options = {}) {
|
|
|
91
116
|
};
|
|
92
117
|
const pushState = (pageState, href) => {
|
|
93
118
|
if (typeof window === "undefined") return;
|
|
94
|
-
|
|
119
|
+
_chunkCBOEJ5Z4cjs.getRouter.call(void 0, ).pushState(pageState, resolveClientHref(href, basePath));
|
|
95
120
|
};
|
|
96
121
|
const replaceState = (pageState, href) => {
|
|
97
122
|
if (typeof window === "undefined") return;
|
|
98
|
-
|
|
123
|
+
_chunkCBOEJ5Z4cjs.getRouter.call(void 0, ).replaceState(pageState, resolveClientHref(href, basePath));
|
|
99
124
|
};
|
|
100
125
|
const back = () => {
|
|
101
126
|
if (typeof window !== "undefined") {
|
|
@@ -118,24 +143,24 @@ function useRouter(options = {}) {
|
|
|
118
143
|
};
|
|
119
144
|
}
|
|
120
145
|
function usePageState() {
|
|
121
|
-
const [state, setState] = _react.useState.call(void 0, () =>
|
|
146
|
+
const [state, setState] = _react.useState.call(void 0, () => _chunkCBOEJ5Z4cjs.readPageState.call(void 0, ));
|
|
122
147
|
_react.useEffect.call(void 0, () => {
|
|
123
148
|
if (typeof window === "undefined") return;
|
|
124
149
|
const handlePopState = () => {
|
|
125
|
-
setState(
|
|
150
|
+
setState(_chunkCBOEJ5Z4cjs.readPageState.call(void 0, ));
|
|
126
151
|
};
|
|
127
152
|
handlePopState();
|
|
128
|
-
return
|
|
153
|
+
return _chunkCBOEJ5Z4cjs.subscribeHistoryChange.call(void 0, handlePopState);
|
|
129
154
|
}, []);
|
|
130
155
|
return state;
|
|
131
156
|
}
|
|
132
157
|
function useNavigation() {
|
|
133
158
|
const [state, setState] = _react.useState.call(void 0,
|
|
134
|
-
() =>
|
|
159
|
+
() => _chunkCBOEJ5Z4cjs.getRouter.call(void 0, ).getNavigationState()
|
|
135
160
|
);
|
|
136
161
|
_react.useEffect.call(void 0, () => {
|
|
137
162
|
if (typeof window === "undefined") return;
|
|
138
|
-
return
|
|
163
|
+
return _chunkCBOEJ5Z4cjs.getRouter.call(void 0, ).subscribeNavigation(setState);
|
|
139
164
|
}, []);
|
|
140
165
|
return state;
|
|
141
166
|
}
|
|
@@ -147,7 +172,7 @@ function useBlocker(options) {
|
|
|
147
172
|
if (typeof window === "undefined" || !active) {
|
|
148
173
|
return;
|
|
149
174
|
}
|
|
150
|
-
return
|
|
175
|
+
return _chunkCBOEJ5Z4cjs.getRouter.call(void 0, ).addBlocker(
|
|
151
176
|
async (context) => {
|
|
152
177
|
const current = optionsRef.current;
|
|
153
178
|
const when = typeof current.when === "function" ? current.when(context) : current.when;
|
|
@@ -170,7 +195,7 @@ function useScrollRestoration(key) {
|
|
|
170
195
|
_react.useEffect.call(void 0, () => {
|
|
171
196
|
const element = ref.current;
|
|
172
197
|
if (!element) return;
|
|
173
|
-
return
|
|
198
|
+
return _chunkCBOEJ5Z4cjs.getRouter.call(void 0, ).registerScrollElement(key, element);
|
|
174
199
|
}, [key]);
|
|
175
200
|
return ref;
|
|
176
201
|
}
|
|
@@ -191,7 +216,7 @@ function readRouterState(basePath, routeMatcher) {
|
|
|
191
216
|
pathname,
|
|
192
217
|
searchParams: url.searchParams,
|
|
193
218
|
params: _optionalChain([routeMatcher, 'optionalAccess', _5 => _5.match, 'call', _6 => _6(routePathname), 'optionalAccess', _7 => _7.params]) || {},
|
|
194
|
-
pageState: typeof window === "undefined" ? null :
|
|
219
|
+
pageState: typeof window === "undefined" ? null : _chunkCBOEJ5Z4cjs.readPageState.call(void 0, )
|
|
195
220
|
};
|
|
196
221
|
}
|
|
197
222
|
function readCurrentUrl() {
|