@farm.js/core 0.1.49 → 0.1.50
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-Bb8hnnqd.d.ts → agent-mcp-9BMbRgg_.d.ts} +1 -1
- package/dist/{agent-mcp-ir3v4fHf.d.mts → agent-mcp-CIMH324y.d.mts} +1 -1
- package/dist/agent-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +6 -6
- package/dist/agent-runtime.d.ts +6 -6
- package/dist/agent-runtime.mjs +2 -2
- package/dist/analyzer-CN7C74WX.cjs +1066 -0
- package/dist/analyzer-DDW34OMC.mjs +1066 -0
- package/dist/api/client.d.mts +0 -1
- package/dist/api/client.d.ts +0 -1
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +10 -10
- package/dist/api/route-manager.d.ts +10 -10
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.cjs +3 -3
- package/dist/api/runtime.d.mts +7 -7
- package/dist/api/runtime.d.ts +7 -7
- package/dist/api/runtime.mjs +2 -2
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +10 -10
- package/dist/api.d.ts +10 -10
- package/dist/api.mjs +5 -5
- package/dist/{app-y649szYm.d.ts → app-BWibTHVT.d.ts} +7 -7
- package/dist/{app-DLzz02du.d.mts → app-DVJ13FPA.d.mts} +7 -7
- package/dist/{app-manifest-Crn8Qd3U.d.mts → app-manifest-CQDJOKL2.d.mts} +1 -1
- package/dist/{app-manifest-DNeTKMRL.d.ts → app-manifest-D0kaXdwu.d.ts} +1 -1
- package/dist/app-markdown.d.mts +7 -7
- package/dist/app-markdown.d.ts +7 -7
- package/dist/cache.d.mts +4 -3
- package/dist/cache.d.ts +4 -3
- package/dist/{chunk-VJXLUTBM.mjs → chunk-2DEPNLXK.mjs} +7 -7
- package/dist/chunk-2G63BIRL.mjs +227 -0
- package/dist/chunk-2GLQSIZD.mjs +55 -0
- package/dist/{chunk-ACI52TCN.mjs → chunk-2VCC3GVC.mjs} +1 -1
- package/dist/chunk-3ATXWZPH.cjs +227 -0
- package/dist/{chunk-C5S457CK.cjs → chunk-474FO3UE.cjs} +68 -54
- package/dist/{chunk-QNQEK3OF.cjs → chunk-4T25YCZ5.cjs} +14 -14
- package/dist/{chunk-ATHPRVP2.mjs → chunk-5V4KZOZO.mjs} +1 -1
- package/dist/{chunk-FGJQS4EC.cjs → chunk-6QA2SXVH.cjs} +2 -2
- package/dist/{chunk-XLYXG73A.mjs → chunk-75WWOZ5C.mjs} +22 -0
- package/dist/{chunk-QFQDRJKJ.mjs → chunk-76R5GJER.mjs} +2 -2
- package/dist/{chunk-NG44F7AH.mjs → chunk-7ONZDKVY.mjs} +2 -2
- package/dist/{chunk-4IICUBQX.cjs → chunk-A5BJKSZE.cjs} +2 -2
- package/dist/{chunk-TTYXOAB7.mjs → chunk-ANHZ6SUL.mjs} +1 -1
- package/dist/{chunk-ZBS3GOQZ.cjs → chunk-AQLHD6HZ.cjs} +35 -61
- package/dist/{chunk-4HM5B5RR.cjs → chunk-B5S2JS6M.cjs} +117 -115
- package/dist/{chunk-AXRNEVCS.cjs → chunk-B6PREBN6.cjs} +8 -8
- package/dist/{chunk-JOHXK4BB.mjs → chunk-BW6SCVYX.mjs} +1 -1
- package/dist/{chunk-LZBM35DH.mjs → chunk-C73RIAEF.mjs} +4 -4
- package/dist/chunk-CGCJ2TJU.cjs +55 -0
- package/dist/{chunk-UYQOIPXE.mjs → chunk-CPXDDWGL.mjs} +1 -1
- package/dist/{chunk-JPAVNDZH.cjs → chunk-CY7H5KS4.cjs} +25 -25
- package/dist/{chunk-4S7M63WX.cjs → chunk-DGOLAZLV.cjs} +22 -1
- package/dist/{chunk-73XBJRZW.cjs → chunk-E2BMCNMJ.cjs} +2 -2
- package/dist/{chunk-FR4HJDI6.cjs → chunk-F5LERVY3.cjs} +21 -24
- package/dist/{chunk-A7DK663W.cjs → chunk-FACTMUPI.cjs} +27 -27
- package/dist/chunk-G2KTRMWA.mjs +40 -0
- package/dist/{chunk-C6U66WWF.mjs → chunk-GFT5AHAT.mjs} +13 -0
- package/dist/{chunk-NPPT4RWF.cjs → chunk-GOOK2J2W.cjs} +7 -7
- package/dist/{chunk-NW2BKDVT.mjs → chunk-HHFMECFO.mjs} +1 -1
- package/dist/{chunk-J27BZO67.mjs → chunk-HWCHIBJZ.mjs} +21 -24
- package/dist/{chunk-HTLCLOXQ.cjs → chunk-HYN3LLG7.cjs} +3 -3
- package/dist/{chunk-HELQXYVI.cjs → chunk-I2DQGS56.cjs} +11 -9
- package/dist/{chunk-SSNN55Q6.cjs → chunk-IQXGHGZF.cjs} +5 -5
- package/dist/{chunk-ZSIGEHSE.cjs → chunk-IUBDMDZZ.cjs} +21 -180
- package/dist/{chunk-Z3BXMMFF.mjs → chunk-IWJKJDNW.mjs} +38 -24
- package/dist/{chunk-DGVVVYKD.mjs → chunk-JJOWY3XD.mjs} +2 -2
- package/dist/{chunk-6XFGJBYX.cjs → chunk-JYNNIGQO.cjs} +16 -7
- package/dist/{chunk-XO6WL6NL.mjs → chunk-KGP76FSV.mjs} +1 -1
- package/dist/{chunk-GXSMF7UR.mjs → chunk-KO2NWUKN.mjs} +1 -1
- package/dist/{chunk-AIHD6VME.cjs → chunk-KZH6YLND.cjs} +154 -126
- package/dist/{chunk-5566GNEG.cjs → chunk-LIFUPCXW.cjs} +13 -0
- package/dist/{chunk-I2SWKWO7.mjs → chunk-LJDIFIJ2.mjs} +1 -1
- package/dist/{chunk-KZT2VHRQ.cjs → chunk-LYWAGXXW.cjs} +11 -11
- package/dist/{chunk-RYDDUCNJ.mjs → chunk-M7LKA632.mjs} +1 -1
- package/dist/{chunk-6LH33DLL.cjs → chunk-NJVFPJ2Y.cjs} +2 -2
- package/dist/{chunk-JWP56HCP.mjs → chunk-OD6WM3I7.mjs} +2 -2
- package/dist/{chunk-MJ6IC4K2.mjs → chunk-OTOOJIUB.mjs} +1 -1
- package/dist/{chunk-R2SEZEBC.cjs → chunk-OYNNA4DD.cjs} +4 -4
- package/dist/{chunk-GBPDSUFE.mjs → chunk-OZK2DS44.mjs} +1 -1
- package/dist/chunk-QXJADAQB.cjs +40 -0
- package/dist/{chunk-J5VCA45K.cjs → chunk-RHOR2J6V.cjs} +1 -1
- package/dist/{chunk-YQGZLCT4.cjs → chunk-RWT2BTJT.cjs} +6 -6
- package/dist/{chunk-3HBFI373.cjs → chunk-S5AQ7CAC.cjs} +14 -14
- package/dist/{chunk-HNAUK3SC.mjs → chunk-SHJJM6OG.mjs} +40 -199
- package/dist/{chunk-LL7TDMOM.mjs → chunk-SMUW7UST.mjs} +33 -59
- package/dist/{chunk-VCFBQFOV.mjs → chunk-SN5VSO3Q.mjs} +9 -7
- package/dist/{chunk-DM3TFCC2.cjs → chunk-SUV6YO4Q.cjs} +5 -5
- package/dist/{chunk-JUMPFVMK.mjs → chunk-TUOO6IK3.mjs} +9 -0
- package/dist/chunk-UB7RVEMX.mjs +73 -0
- package/dist/{chunk-CDTIXBKN.mjs → chunk-UN6N623E.mjs} +2 -2
- package/dist/{chunk-BEXYFR2R.cjs → chunk-UY6HS5PF.cjs} +2 -2
- package/dist/{chunk-HAH4FBTA.mjs → chunk-VAHBCI6X.mjs} +1 -1
- package/dist/{chunk-N25RPPO5.cjs → chunk-WAPQWAE6.cjs} +10 -10
- package/dist/{chunk-Z4LTSH7D.mjs → chunk-WVBUXNBX.mjs} +71 -43
- package/dist/{chunk-ALD2WMLA.mjs → chunk-WXHDVXJE.mjs} +2 -2
- package/dist/{chunk-EVCQX243.cjs → chunk-X2EL3BLH.cjs} +2 -2
- package/dist/{chunk-EA5PMJDU.mjs → chunk-X3HOVNHI.mjs} +1 -1
- package/dist/{chunk-XXB37YET.cjs → chunk-XLRLSTJ6.cjs} +7 -7
- package/dist/{chunk-DRFADSKY.mjs → chunk-XXXRRVY6.mjs} +4 -4
- package/dist/{chunk-EXHEPWFJ.cjs → chunk-YAXOEAND.cjs} +10 -10
- package/dist/{chunk-PEHL3IZL.cjs → chunk-YB44NKC2.cjs} +2 -2
- package/dist/chunk-YKHRCY4T.cjs +73 -0
- package/dist/{chunk-IVHPRF4W.mjs → chunk-ZLOQQ2UF.mjs} +32 -30
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-plugins-DFDQUI9Q.d.ts → client-plugins-BPfltM5m.d.ts} +15 -8
- package/dist/{client-plugins-BNBeyLMi.d.mts → client-plugins-D4RO59f0.d.mts} +15 -8
- package/dist/client-plugins.d.mts +6 -6
- package/dist/client-plugins.d.ts +6 -6
- package/dist/client.cjs +11 -8
- package/dist/client.d.mts +11 -10
- package/dist/client.d.ts +11 -10
- package/dist/client.mjs +12 -9
- package/dist/client.react-server.mjs +1 -1
- package/dist/config-CnhyvvmT.d.mts +188 -0
- package/dist/config-CnhyvvmT.d.ts +188 -0
- package/dist/config.d.mts +6 -6
- package/dist/config.d.ts +6 -6
- package/dist/desktop.d.mts +7 -7
- package/dist/desktop.d.ts +7 -7
- package/dist/{dev-guard-YO6KPIOQ.mjs → dev-guard-4PFQNXQX.mjs} +2 -1
- package/dist/{dev-guard-PLHL6OTJ.cjs → dev-guard-YLO5DE3H.cjs} +4 -3
- package/dist/{devtools-A37WWJZL.cjs → devtools-N5XTOECL.cjs} +8 -8
- package/dist/{devtools-BLKHPY3C.mjs → devtools-STG7HPRV.mjs} +7 -7
- package/dist/docs.cjs +10 -10
- package/dist/docs.d.mts +7 -7
- package/dist/docs.d.ts +7 -7
- package/dist/docs.mjs +9 -9
- package/dist/environment/vite.d.mts +1 -1
- package/dist/environment/vite.d.ts +1 -1
- package/dist/generate-route-types-DQP0cUzk.d.ts +33 -0
- package/dist/generate-route-types-TF5Wwtvz.d.mts +33 -0
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/image/server.cjs +3 -3
- package/dist/image/server.mjs +2 -2
- package/dist/image/sharp.cjs +10 -10
- package/dist/image/sharp.mjs +2 -2
- package/dist/{index-CeJ9_s9p.d.mts → index-C-N3Pwg-.d.ts} +2 -2
- package/dist/{index-MocnSP3a.d.ts → index-D3l4tREW.d.ts} +2 -2
- package/dist/{index-Cl3akY5U.d.mts → index-DPUAPho_.d.mts} +2 -2
- package/dist/{index-DBdiTkNc.d.ts → index-k8o8eUOd.d.mts} +2 -2
- package/dist/index.cjs +72 -65
- package/dist/index.d.mts +29 -45
- package/dist/index.d.ts +29 -45
- package/dist/index.mjs +77 -70
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +6 -6
- package/dist/integrations.d.ts +6 -6
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +7 -7
- package/dist/internal/app-markdown-runtime.d.ts +7 -7
- package/dist/internal/build-runtime.cjs +35 -32
- package/dist/internal/build-runtime.d.mts +9 -9
- package/dist/internal/build-runtime.d.ts +9 -9
- package/dist/internal/build-runtime.mjs +34 -31
- package/dist/internal/cli-runtime.cjs +16 -15
- package/dist/internal/cli-runtime.mjs +16 -15
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +19 -2
- package/dist/internal/client-runtime.d.mts +45 -3
- package/dist/internal/client-runtime.d.ts +45 -3
- package/dist/internal/client-runtime.mjs +19 -2
- package/dist/internal/compression-runtime.d.mts +6 -6
- package/dist/internal/compression-runtime.d.ts +6 -6
- package/dist/internal/config-runtime.cjs +17 -10
- package/dist/internal/config-runtime.d.mts +259 -18
- package/dist/internal/config-runtime.d.ts +259 -18
- package/dist/internal/config-runtime.mjs +15 -8
- package/dist/internal/form-actions.cjs +4 -4
- package/dist/internal/form-actions.mjs +3 -3
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/metadata-image-runtime.cjs +3 -3
- package/dist/internal/metadata-image-runtime.mjs +2 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +12 -12
- package/dist/internal/production-runtime.d.mts +19 -19
- package/dist/internal/production-runtime.d.ts +19 -19
- package/dist/internal/production-runtime.mjs +14 -14
- package/dist/{layers-D9fbe-rz.d.ts → layers-CcS42OGR.d.mts} +1 -1
- package/dist/{layers-D9fbe-rz.d.mts → layers-CcS42OGR.d.ts} +1 -1
- package/dist/{lifecycle-DK06VuKP.d.ts → lifecycle-C2aLBOwu.d.mts} +1 -1
- package/dist/{lifecycle-DK06VuKP.d.mts → lifecycle-C2aLBOwu.d.ts} +1 -1
- package/dist/markdown.d.mts +6 -6
- package/dist/markdown.d.ts +6 -6
- package/dist/middleware.cjs +7 -7
- package/dist/middleware.d.mts +8 -8
- package/dist/middleware.d.ts +8 -8
- package/dist/middleware.mjs +6 -6
- package/dist/mobile.cjs +9 -0
- package/dist/mobile.d.mts +67 -0
- package/dist/mobile.d.ts +67 -0
- package/dist/mobile.mjs +9 -0
- package/dist/navigation-delegate-8xg3Zvp4.d.ts +29 -0
- package/dist/navigation-delegate-ji6elCKy.d.mts +29 -0
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +9 -9
- package/dist/navigation.d.ts +9 -9
- package/dist/navigation.mjs +4 -4
- package/dist/{nitro-UT2J5A5D.mjs → nitro-2Q5NVY7L.mjs} +2 -2
- package/dist/{nitro-BIXIKJZS.cjs → nitro-YPSZBYDK.cjs} +3 -3
- package/dist/platform.cjs +2 -1
- package/dist/platform.d.mts +4 -3
- package/dist/platform.d.ts +4 -3
- package/dist/platform.mjs +2 -1
- package/dist/{plugin-4KYXV7BB.mjs → plugin-53SY5YBS.mjs} +1 -1
- package/dist/{plugin-WBANOZQM.cjs → plugin-HZIBL3DW.cjs} +2 -2
- package/dist/plugin.cjs +30 -28
- package/dist/plugin.d.mts +13 -8
- package/dist/plugin.d.ts +13 -8
- package/dist/plugin.mjs +29 -27
- package/dist/{production-runtime-DcD-GRAv.d.mts → production-runtime-DXnQQkQf.d.mts} +3 -3
- package/dist/{production-runtime-B3qFFtKF.d.ts → production-runtime-TdKaYRj0.d.ts} +3 -3
- package/dist/production-vite-BQFAlG7n.d.mts +13 -0
- package/dist/production-vite-BQFAlG7n.d.ts +13 -0
- package/dist/{programmatic-routes-client-fD9f4XqU.d.ts → programmatic-routes-client-BwiTndEC.d.ts} +2 -2
- package/dist/{programmatic-routes-client-DzbYGiZQ.d.mts → programmatic-routes-client-Dh1SDLSM.d.mts} +2 -2
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-B6cfssrr.d.ts → render-plan-BPbwRbuN.d.ts} +1 -1
- package/dist/{render-plan-DqJ51ufr.d.mts → render-plan-BvCGXF6K.d.mts} +1 -1
- package/dist/renderer-client.cjs +9 -6
- package/dist/renderer-client.d.mts +9 -8
- package/dist/renderer-client.d.ts +9 -8
- package/dist/renderer-client.mjs +6 -3
- package/dist/{request-jhvUMXRx.d.ts → request-B8PGTZNR.d.ts} +1 -1
- package/dist/{request-UuAxHn8h.d.mts → request-C_xTkJib.d.mts} +1 -1
- package/dist/request.d.mts +7 -7
- package/dist/request.d.ts +7 -7
- package/dist/{resolver-DC57A4vz.d.ts → resolver-CJ-D9nP-.d.ts} +1 -1
- package/dist/{resolver-C2G-3Tm6.d.mts → resolver-TDyZKgKI.d.mts} +1 -1
- package/dist/{route-rendering-Cou00t1X.d.mts → route-rendering-DlddURL1.d.mts} +1 -1
- package/dist/{route-rendering-Sn50cYZf.d.ts → route-rendering-RNtcj607.d.ts} +1 -1
- package/dist/{router-0X9DCTcm.d.mts → router-B97eB0Mq.d.mts} +1 -1
- package/dist/{router-xwLvi48p.d.ts → router-qUVaoEN8.d.ts} +1 -1
- package/dist/routes-8PT9cl60.d.ts +121 -0
- package/dist/routes-kEUsXHx3.d.mts +121 -0
- package/dist/routes.d.mts +6 -6
- package/dist/routes.d.ts +6 -6
- package/dist/{rsc-pipeline-VKHMABDJ.cjs → rsc-pipeline-L4XOZ2TE.cjs} +13 -11
- package/dist/{rsc-pipeline-F6ZPH5MU.mjs → rsc-pipeline-T3775JUA.mjs} +12 -10
- package/dist/runtime-BIBGJO7V.cjs +1005 -0
- package/dist/{runtime-B9HmxiZc.d.ts → runtime-C4CmlOOh.d.ts} +2 -2
- package/dist/{runtime-tkSXZiqO.d.ts → runtime-C8GUnNeP.d.ts} +1 -1
- package/dist/{runtime-CMrsyChI.d.mts → runtime-CaDswfWi.d.mts} +1 -1
- package/dist/{runtime-CCxTmGuf.d.mts → runtime-CihDZ2Rn.d.mts} +2 -2
- package/dist/runtime-HRSFC4ZC.mjs +1005 -0
- package/dist/{schema-dev-notice-O3I5HLXK.mjs → schema-dev-notice-LZ5NXGLN.mjs} +2 -2
- package/dist/{schema-dev-notice-Z73J3NJ6.cjs → schema-dev-notice-XV7GZ3QJ.cjs} +4 -4
- package/dist/server-action-security.cjs +3 -3
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn-client.d.mts +0 -1
- package/dist/server-fn-client.d.ts +0 -1
- package/dist/server-fn.cjs +4 -4
- package/dist/server-fn.d.mts +0 -1
- package/dist/server-fn.d.ts +0 -1
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +7 -7
- package/dist/server-plugins.d.ts +7 -7
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query-client.d.mts +0 -1
- package/dist/server-query-client.d.ts +0 -1
- package/dist/server-query.cjs +5 -5
- package/dist/server-query.d.mts +0 -1
- package/dist/server-query.d.ts +0 -1
- package/dist/server-query.mjs +4 -4
- package/dist/server.cjs +88 -65
- package/dist/server.d.mts +22 -17
- package/dist/server.d.ts +22 -17
- package/dist/server.mjs +63 -40
- package/dist/{spa-router-B48EjsS1.d.mts → spa-router-Dlv5ofg0.d.mts} +4 -4
- package/dist/{spa-router-B06APnGK.d.ts → spa-router-qapSboKz.d.ts} +4 -4
- package/dist/testing.cjs +7 -7
- package/dist/testing.d.mts +6 -6
- package/dist/testing.d.ts +6 -6
- package/dist/testing.mjs +5 -5
- package/dist/{types--Wh02r5_.d.mts → types-C41ePjvP.d.mts} +1 -1
- package/dist/{types--Wh02r5_.d.ts → types-C41ePjvP.d.ts} +1 -1
- package/dist/{utils-C5fyK2tE.d.ts → utils-A-cYF81u.d.ts} +1 -1
- package/dist/{utils-hyAwmcN6.d.mts → utils-DyvlSxFk.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +30 -28
- package/dist/vite.d.mts +9 -9
- package/dist/vite.d.ts +9 -9
- package/dist/vite.mjs +29 -27
- package/dist/{workflows-Df1C_7OG.d.mts → workflows-CRMzQZ3k.d.mts} +2 -1
- package/dist/{workflows-Df1C_7OG.d.ts → workflows-CRMzQZ3k.d.ts} +2 -1
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.mjs +2 -2
- package/package.json +10 -2
- package/dist/cache-invalidation-BD0z_lfu.d.mts +0 -4
- package/dist/cache-invalidation-BD0z_lfu.d.ts +0 -4
- package/dist/chunk-45EUIICW.mjs +0 -15
- package/dist/chunk-V7KTQR4C.cjs +0 -15
- package/dist/{chunk-BR5FSKZ5.cjs → chunk-EQWWOQTK.cjs} +0 -0
- package/dist/{chunk-5OJVKXFV.cjs → chunk-N7JQXQAV.cjs} +2 -2
- package/dist/{chunk-VR4SEDEM.mjs → chunk-VOZ5DI7D.mjs} +0 -0
- package/dist/{chunk-72KABRWN.mjs → chunk-WSDKXV4E.mjs} +4 -4
package/dist/renderer-client.cjs
CHANGED
|
@@ -21,12 +21,14 @@ var _chunk53EHWHT2cjs = require('./chunk-53EHWHT2.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkI2DQGS56cjs = require('./chunk-I2DQGS56.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunkRI3EVPKDcjs = require('./chunk-RI3EVPKD.cjs');
|
|
29
|
-
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
var _chunkQXJADAQBcjs = require('./chunk-QXJADAQB.cjs');
|
|
30
32
|
require('./chunk-QQ44FYRO.cjs');
|
|
31
33
|
|
|
32
34
|
|
|
@@ -63,7 +65,7 @@ require('./chunk-BTZ5O6VM.cjs');
|
|
|
63
65
|
function createRendererRouter(options = {}) {
|
|
64
66
|
const basePath = options.basePath === void 0 ? _chunkD22BUQKWcjs.getFarmBasePath.call(void 0, ) : _chunkD22BUQKWcjs.normalizeFarmBasePath.call(void 0, options.basePath);
|
|
65
67
|
const matcher = _optionalChain([options, 'access', _ => _.routes, 'optionalAccess', _2 => _2.length]) ? _chunk53EHWHT2cjs.createFarmRouter.call(void 0, [...options.routes]) : null;
|
|
66
|
-
const router =
|
|
68
|
+
const router = _chunkI2DQGS56cjs.getRouter.call(void 0, );
|
|
67
69
|
let snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
|
|
68
70
|
const read = () => {
|
|
69
71
|
snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
|
|
@@ -79,7 +81,7 @@ function createRendererRouter(options = {}) {
|
|
|
79
81
|
listener();
|
|
80
82
|
};
|
|
81
83
|
const unsubscribeNavigation = router.subscribeNavigation(notify);
|
|
82
|
-
const unsubscribeHistory =
|
|
84
|
+
const unsubscribeHistory = _chunkI2DQGS56cjs.subscribeHistoryChange.call(void 0, notify);
|
|
83
85
|
read();
|
|
84
86
|
return () => {
|
|
85
87
|
unsubscribeNavigation();
|
|
@@ -310,7 +312,7 @@ function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
|
310
312
|
pathname,
|
|
311
313
|
searchParams: url.searchParams,
|
|
312
314
|
params: _optionalChain([matcher, 'optionalAccess', _20 => _20.match, 'call', _21 => _21(routePathname), 'optionalAccess', _22 => _22.params]) || {},
|
|
313
|
-
pageState:
|
|
315
|
+
pageState: _chunkI2DQGS56cjs.readPageState.call(void 0, ),
|
|
314
316
|
navigation
|
|
315
317
|
};
|
|
316
318
|
}
|
|
@@ -339,4 +341,5 @@ function isRendererFormData(value) {
|
|
|
339
341
|
|
|
340
342
|
|
|
341
343
|
|
|
342
|
-
|
|
344
|
+
|
|
345
|
+
exports.createRendererAction = createRendererAction; exports.createRendererI18n = createRendererI18n; exports.createRendererQuery = createRendererQuery; exports.createRendererRouter = createRendererRouter; exports.createRendererTheme = createRendererTheme; exports.delegateNavigation = _chunkQXJADAQBcjs.delegateNavigation;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { FarmRouterRouteInput } from './router.mjs';
|
|
2
|
-
import { a as FarmNavigationState, b as FarmNavigateOptions } from './spa-router-
|
|
2
|
+
import { a as FarmNavigationState, b as FarmNavigateOptions } from './spa-router-Dlv5ofg0.mjs';
|
|
3
3
|
import { F as FarmClientCacheStatus } from './client-cache-di_Nasxa.mjs';
|
|
4
4
|
import { ServerFn } from './server-fn.mjs';
|
|
5
5
|
import { ServerQuery } from './server-query.mjs';
|
|
6
6
|
import { S as ServerQueryFetchOptions } from './server-query-runtime-aP52iuL5.mjs';
|
|
7
7
|
import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types-DQnyD3VD.mjs';
|
|
8
|
-
import { a as FarmI18nClientSnapshot, d as FarmTranslator, c as FarmI18nLocale } from './types
|
|
9
|
-
|
|
10
|
-
import './
|
|
8
|
+
import { a as FarmI18nClientSnapshot, d as FarmTranslator, c as FarmI18nLocale } from './types-C41ePjvP.mjs';
|
|
9
|
+
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate-ji6elCKy.mjs';
|
|
10
|
+
import './client-plugins-D4RO59f0.mjs';
|
|
11
|
+
import './lifecycle-C2aLBOwu.mjs';
|
|
11
12
|
import './route-2_yXC6gv.mjs';
|
|
12
13
|
import './endpoint-BkMSCRf6.mjs';
|
|
13
14
|
import './cache.mjs';
|
|
14
|
-
import './cache-invalidation-BD0z_lfu.mjs';
|
|
15
15
|
import './renderer.mjs';
|
|
16
16
|
import './deployment.mjs';
|
|
17
17
|
import 'http';
|
|
@@ -25,18 +25,19 @@ import '@farming-labs/docs';
|
|
|
25
25
|
import './observability-B2363jB6.mjs';
|
|
26
26
|
import '@opentelemetry/api';
|
|
27
27
|
import 'vite';
|
|
28
|
-
import './workflows-
|
|
28
|
+
import './workflows-CRMzQZ3k.mjs';
|
|
29
29
|
import './cron.mjs';
|
|
30
30
|
import './env.mjs';
|
|
31
31
|
import './server-action-security.mjs';
|
|
32
32
|
import './server-fn-error-DrcH9cc1.mjs';
|
|
33
|
-
import './layers-
|
|
33
|
+
import './layers-CcS42OGR.mjs';
|
|
34
34
|
import 'rolldown/utils';
|
|
35
35
|
import 'rolldown';
|
|
36
36
|
import './image-config-CeDgNyX4.mjs';
|
|
37
|
+
import './config-CnhyvvmT.mjs';
|
|
37
38
|
import './font.mjs';
|
|
38
39
|
import './island-CfGru1MO.mjs';
|
|
39
|
-
import './render-plan-
|
|
40
|
+
import './render-plan-BvCGXF6K.mjs';
|
|
40
41
|
|
|
41
42
|
interface FarmClientStore<TSnapshot> {
|
|
42
43
|
getSnapshot(): TSnapshot;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { FarmRouterRouteInput } from './router.js';
|
|
2
|
-
import { a as FarmNavigationState, b as FarmNavigateOptions } from './spa-router-
|
|
2
|
+
import { a as FarmNavigationState, b as FarmNavigateOptions } from './spa-router-qapSboKz.js';
|
|
3
3
|
import { F as FarmClientCacheStatus } from './client-cache-Deoqq-nM.js';
|
|
4
4
|
import { ServerFn } from './server-fn.js';
|
|
5
5
|
import { ServerQuery } from './server-query.js';
|
|
6
6
|
import { S as ServerQueryFetchOptions } from './server-query-runtime-DXRNhX_3.js';
|
|
7
7
|
import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types-DQnyD3VD.js';
|
|
8
|
-
import { a as FarmI18nClientSnapshot, d as FarmTranslator, c as FarmI18nLocale } from './types
|
|
9
|
-
|
|
10
|
-
import './
|
|
8
|
+
import { a as FarmI18nClientSnapshot, d as FarmTranslator, c as FarmI18nLocale } from './types-C41ePjvP.js';
|
|
9
|
+
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate-8xg3Zvp4.js';
|
|
10
|
+
import './client-plugins-BPfltM5m.js';
|
|
11
|
+
import './lifecycle-C2aLBOwu.js';
|
|
11
12
|
import './route-DFhZj6jN.js';
|
|
12
13
|
import './endpoint-BgHn0lhl.js';
|
|
13
14
|
import './cache.js';
|
|
14
|
-
import './cache-invalidation-BD0z_lfu.js';
|
|
15
15
|
import './renderer.js';
|
|
16
16
|
import './deployment.js';
|
|
17
17
|
import 'http';
|
|
@@ -25,18 +25,19 @@ import '@farming-labs/docs';
|
|
|
25
25
|
import './observability-B2363jB6.js';
|
|
26
26
|
import '@opentelemetry/api';
|
|
27
27
|
import 'vite';
|
|
28
|
-
import './workflows-
|
|
28
|
+
import './workflows-CRMzQZ3k.js';
|
|
29
29
|
import './cron.js';
|
|
30
30
|
import './env.js';
|
|
31
31
|
import './server-action-security.js';
|
|
32
32
|
import './server-fn-error-DrcH9cc1.js';
|
|
33
|
-
import './layers-
|
|
33
|
+
import './layers-CcS42OGR.js';
|
|
34
34
|
import 'rolldown/utils';
|
|
35
35
|
import 'rolldown';
|
|
36
36
|
import './image-config-CeDgNyX4.js';
|
|
37
|
+
import './config-CnhyvvmT.js';
|
|
37
38
|
import './font.js';
|
|
38
39
|
import './island-CfGru1MO.js';
|
|
39
|
-
import './render-plan-
|
|
40
|
+
import './render-plan-BPbwRbuN.js';
|
|
40
41
|
|
|
41
42
|
interface FarmClientStore<TSnapshot> {
|
|
42
43
|
getSnapshot(): TSnapshot;
|
package/dist/renderer-client.mjs
CHANGED
|
@@ -21,12 +21,14 @@ import {
|
|
|
21
21
|
getRouter,
|
|
22
22
|
readPageState,
|
|
23
23
|
subscribeHistoryChange
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SN5VSO3Q.mjs";
|
|
25
25
|
import {
|
|
26
26
|
getFarmI18nClientState,
|
|
27
27
|
subscribeFarmI18n
|
|
28
28
|
} from "./chunk-PTLXHRJZ.mjs";
|
|
29
|
-
import
|
|
29
|
+
import {
|
|
30
|
+
delegateNavigation
|
|
31
|
+
} from "./chunk-G2KTRMWA.mjs";
|
|
30
32
|
import "./chunk-NCIAP562.mjs";
|
|
31
33
|
import {
|
|
32
34
|
getFarmClientDataCache
|
|
@@ -338,5 +340,6 @@ export {
|
|
|
338
340
|
createRendererI18n,
|
|
339
341
|
createRendererQuery,
|
|
340
342
|
createRendererRouter,
|
|
341
|
-
createRendererTheme
|
|
343
|
+
createRendererTheme,
|
|
344
|
+
delegateNavigation
|
|
342
345
|
};
|
package/dist/request.d.mts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export { g as getCurrentRequest } from './request-
|
|
2
|
-
import './client-plugins-
|
|
3
|
-
import './lifecycle-
|
|
1
|
+
export { g as getCurrentRequest } from './request-C_xTkJib.mjs';
|
|
2
|
+
import './client-plugins-D4RO59f0.mjs';
|
|
3
|
+
import './lifecycle-C2aLBOwu.mjs';
|
|
4
4
|
import './route-2_yXC6gv.mjs';
|
|
5
5
|
import './endpoint-BkMSCRf6.mjs';
|
|
6
6
|
import './cache.mjs';
|
|
7
|
-
import './cache-invalidation-BD0z_lfu.mjs';
|
|
8
7
|
import './renderer.mjs';
|
|
9
8
|
import './deployment.mjs';
|
|
10
9
|
import 'http';
|
|
@@ -21,14 +20,15 @@ import '@farming-labs/docs';
|
|
|
21
20
|
import './observability-B2363jB6.mjs';
|
|
22
21
|
import '@opentelemetry/api';
|
|
23
22
|
import 'vite';
|
|
24
|
-
import './workflows-
|
|
23
|
+
import './workflows-CRMzQZ3k.mjs';
|
|
25
24
|
import './cron.mjs';
|
|
26
25
|
import './env.mjs';
|
|
27
26
|
import './server-action-security.mjs';
|
|
28
|
-
import './layers-
|
|
27
|
+
import './layers-CcS42OGR.mjs';
|
|
29
28
|
import 'rolldown/utils';
|
|
30
29
|
import 'rolldown';
|
|
31
30
|
import './image-config-CeDgNyX4.mjs';
|
|
32
|
-
import './types
|
|
31
|
+
import './types-C41ePjvP.mjs';
|
|
32
|
+
import './config-CnhyvvmT.mjs';
|
|
33
33
|
import './types-DQnyD3VD.mjs';
|
|
34
34
|
import './font.mjs';
|
package/dist/request.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export { g as getCurrentRequest } from './request-
|
|
2
|
-
import './client-plugins-
|
|
3
|
-
import './lifecycle-
|
|
1
|
+
export { g as getCurrentRequest } from './request-B8PGTZNR.js';
|
|
2
|
+
import './client-plugins-BPfltM5m.js';
|
|
3
|
+
import './lifecycle-C2aLBOwu.js';
|
|
4
4
|
import './route-DFhZj6jN.js';
|
|
5
5
|
import './endpoint-BgHn0lhl.js';
|
|
6
6
|
import './cache.js';
|
|
7
|
-
import './cache-invalidation-BD0z_lfu.js';
|
|
8
7
|
import './renderer.js';
|
|
9
8
|
import './deployment.js';
|
|
10
9
|
import 'http';
|
|
@@ -21,14 +20,15 @@ import '@farming-labs/docs';
|
|
|
21
20
|
import './observability-B2363jB6.js';
|
|
22
21
|
import '@opentelemetry/api';
|
|
23
22
|
import 'vite';
|
|
24
|
-
import './workflows-
|
|
23
|
+
import './workflows-CRMzQZ3k.js';
|
|
25
24
|
import './cron.js';
|
|
26
25
|
import './env.js';
|
|
27
26
|
import './server-action-security.js';
|
|
28
|
-
import './layers-
|
|
27
|
+
import './layers-CcS42OGR.js';
|
|
29
28
|
import 'rolldown/utils';
|
|
30
29
|
import 'rolldown';
|
|
31
30
|
import './image-config-CeDgNyX4.js';
|
|
32
|
-
import './types
|
|
31
|
+
import './types-C41ePjvP.js';
|
|
32
|
+
import './config-CnhyvvmT.js';
|
|
33
33
|
import './types-DQnyD3VD.js';
|
|
34
34
|
import './font.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { FarmRouterRouteInput } from './router.mjs';
|
|
3
|
-
import { F as FarmNavigationBlockerContext, a as FarmNavigationState } from './spa-router-
|
|
3
|
+
import { F as FarmNavigationBlockerContext, a as FarmNavigationState } from './spa-router-Dlv5ofg0.mjs';
|
|
4
4
|
|
|
5
5
|
interface UseRouterOptions {
|
|
6
6
|
basePath?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { FarmRouterRouteInput } from './router.js';
|
|
3
|
-
import { F as FarmNavigationBlockerContext, a as FarmNavigationState } from './spa-router-
|
|
3
|
+
import { F as FarmNavigationBlockerContext, a as FarmNavigationState } from './spa-router-qapSboKz.js';
|
|
4
4
|
|
|
5
5
|
interface UseRouterOptions {
|
|
6
6
|
basePath?: string;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { g as FarmI18nRouting } from './types-C41ePjvP.js';
|
|
2
|
+
import { l as FarmMobileScreen, j as FarmMobilePresentation, i as FarmMobilePrefetch, h as FarmMobilePageConfig, F as FarmMobileOS, R as ResolvedFarmMobileConfig, m as FarmMobileTab } from './config-CnhyvvmT.js';
|
|
3
|
+
import { P as PlatformRouteFiles } from './generate-route-types-DQP0cUzk.js';
|
|
4
|
+
|
|
5
|
+
type FarmMobileScreenSource = "page" | "config" | "file" | "analyzer" | "default";
|
|
6
|
+
interface FarmMobileScreenDecision {
|
|
7
|
+
screen: FarmMobileScreen;
|
|
8
|
+
source: FarmMobileScreenSource;
|
|
9
|
+
/** App-root-relative file that decided (`"page"`), or the screen's file. */
|
|
10
|
+
file?: string;
|
|
11
|
+
/** Native module id, derived from the route, such as `"app/notes/[id]"`. Not on web screens. */
|
|
12
|
+
module?: string;
|
|
13
|
+
/** The tier a config route or the analyzer asked for, while nothing can build it yet. */
|
|
14
|
+
requested?: Exclude<FarmMobileScreen, "web">;
|
|
15
|
+
presentation: FarmMobilePresentation;
|
|
16
|
+
prefetch: FarmMobilePrefetch;
|
|
17
|
+
}
|
|
18
|
+
/** A page's static `export const mobile` and the file it came from. */
|
|
19
|
+
interface FarmMobilePageExport {
|
|
20
|
+
file: string;
|
|
21
|
+
config: FarmMobilePageConfig;
|
|
22
|
+
}
|
|
23
|
+
interface FarmMobileScreensOptions {
|
|
24
|
+
root: string;
|
|
25
|
+
os: FarmMobileOS;
|
|
26
|
+
/** Page route patterns with route groups removed. */
|
|
27
|
+
routes: readonly string[];
|
|
28
|
+
mobile: Pick<ResolvedFarmMobileConfig, "routes" | "native">;
|
|
29
|
+
/** Absolute screen files per route. */
|
|
30
|
+
nativePages?: ReadonlyMap<string, PlatformRouteFiles>;
|
|
31
|
+
pageExports?: ReadonlyMap<string, FarmMobilePageExport>;
|
|
32
|
+
/** Routes the analyzer would port; used only with `native.auto: "on"`. */
|
|
33
|
+
analyzerPorts?: ReadonlySet<string>;
|
|
34
|
+
/** Why the analyzer cannot port a route, for config routes that ask for a port. */
|
|
35
|
+
analyzerBlockers?: ReadonlyMap<string, readonly string[]>;
|
|
36
|
+
}
|
|
37
|
+
interface FarmMobileScreens {
|
|
38
|
+
screens: Record<string, FarmMobileScreenDecision>;
|
|
39
|
+
/** Overridden settings, unused files, and ports nothing can build yet. */
|
|
40
|
+
warnings: string[];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The id a native screen registers under: the route under `app/`, route groups removed, such as
|
|
44
|
+
* `"app"` for `/` and `"app/notes/[id]"` for `/notes/[id]`. Never hand-written, so the shell,
|
|
45
|
+
* the native bundle, and the manifest cannot disagree.
|
|
46
|
+
*/
|
|
47
|
+
declare function createFarmMobileModuleId(route: string): string;
|
|
48
|
+
declare function resolveFarmMobileScreens(options: FarmMobileScreensOptions): FarmMobileScreens;
|
|
49
|
+
type Node = {
|
|
50
|
+
type: string;
|
|
51
|
+
[key: string]: unknown;
|
|
52
|
+
};
|
|
53
|
+
type ParseProgram = (file: string, source: string) => {
|
|
54
|
+
body: Node[];
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* A page's `export const mobile = { ... }`, read from its source without running it. Returns
|
|
58
|
+
* undefined when the page has no such export. Only literal values are allowed.
|
|
59
|
+
*/
|
|
60
|
+
declare function readFarmMobilePageExport(source: string, file: string, parse: ParseProgram, context?: {
|
|
61
|
+
os: FarmMobileOS;
|
|
62
|
+
}): FarmMobilePageConfig | undefined;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* One navigator rule. The shell tests `pattern` against a link's decoded URL path, top to
|
|
66
|
+
* bottom, and uses the first match.
|
|
67
|
+
*/
|
|
68
|
+
interface FarmMobileRouteRule {
|
|
69
|
+
/** The app route pattern the rule came from, such as `"/notes/[id]"`. */
|
|
70
|
+
route?: string;
|
|
71
|
+
pattern: string;
|
|
72
|
+
/** `"tab"` switches to tab `tab` instead of presenting a screen. */
|
|
73
|
+
presentation: FarmMobilePresentation | "tab";
|
|
74
|
+
tab?: number;
|
|
75
|
+
screen: FarmMobileScreen;
|
|
76
|
+
/** What decided `screen`: the page export, config, a screen file, the analyzer, or the default. */
|
|
77
|
+
source?: FarmMobileScreenSource;
|
|
78
|
+
/** Native module id derived from the route, such as `"app/notes/[id]"`. Not on web screens. */
|
|
79
|
+
module?: string;
|
|
80
|
+
/** Only when the page overrides the manifest's `prefetch`. */
|
|
81
|
+
prefetch?: FarmMobilePrefetch;
|
|
82
|
+
}
|
|
83
|
+
/** `.farm/output/mobile/farm-routes.json` (RFC 0004, 7.2). */
|
|
84
|
+
interface FarmMobileRouteManifest {
|
|
85
|
+
version: 1;
|
|
86
|
+
server: string;
|
|
87
|
+
/** Tab roots; `path` includes the base path. */
|
|
88
|
+
tabs: FarmMobileTab[];
|
|
89
|
+
/** Default for every rule; a rule's own `prefetch` wins. */
|
|
90
|
+
prefetch: FarmMobilePrefetch;
|
|
91
|
+
rules: FarmMobileRouteRule[];
|
|
92
|
+
}
|
|
93
|
+
interface FarmMobileRouteManifestOptions {
|
|
94
|
+
/** The app's page route patterns. */
|
|
95
|
+
routes: readonly string[];
|
|
96
|
+
/** Server origin; defaults to `mobile.server`. The CLI passes the dev server's in dev. */
|
|
97
|
+
server?: string;
|
|
98
|
+
basePath?: string;
|
|
99
|
+
i18n?: {
|
|
100
|
+
locales: readonly string[];
|
|
101
|
+
routing: FarmI18nRouting;
|
|
102
|
+
} | null;
|
|
103
|
+
/** Per-route screens; resolved from config alone (no page files) when omitted. */
|
|
104
|
+
screens?: Readonly<Record<string, FarmMobileScreenDecision>>;
|
|
105
|
+
/** The OS for the config-only fallback; defaults to `"android"`. */
|
|
106
|
+
os?: FarmMobileOS;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* A regular expression, in the subset Kotlin, Swift, and JavaScript share, that matches the
|
|
110
|
+
* decoded URL paths the client router sends to `pattern`: the base path, an optional locale
|
|
111
|
+
* prefix, `[param]` as one segment, `[...rest]` as one or more, `[[...rest]]` as zero or more,
|
|
112
|
+
* route groups removed, and an optional trailing slash.
|
|
113
|
+
*/
|
|
114
|
+
declare function createFarmMobileRoutePattern(pattern: string, options?: Pick<FarmMobileRouteManifestOptions, "basePath" | "i18n">): string;
|
|
115
|
+
/**
|
|
116
|
+
* The navigator manifest for a resolved `mobile` block: a rule for every page route, most
|
|
117
|
+
* specific first (the client router's order), then a catch-all push for other same-origin paths.
|
|
118
|
+
*/
|
|
119
|
+
declare function createFarmMobileRouteManifest(mobile: ResolvedFarmMobileConfig, options: FarmMobileRouteManifestOptions): FarmMobileRouteManifest;
|
|
120
|
+
|
|
121
|
+
export { type FarmMobileRouteManifest as F, type FarmMobileRouteRule as a, type FarmMobileScreenSource as b, type FarmMobileScreenDecision as c, type FarmMobilePageExport as d, type FarmMobileRouteManifestOptions as e, type FarmMobileScreens as f, type FarmMobileScreensOptions as g, createFarmMobileModuleId as h, createFarmMobileRouteManifest as i, createFarmMobileRoutePattern as j, resolveFarmMobileScreens as k, readFarmMobilePageExport as r };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { g as FarmI18nRouting } from './types-C41ePjvP.mjs';
|
|
2
|
+
import { l as FarmMobileScreen, j as FarmMobilePresentation, i as FarmMobilePrefetch, h as FarmMobilePageConfig, F as FarmMobileOS, R as ResolvedFarmMobileConfig, m as FarmMobileTab } from './config-CnhyvvmT.mjs';
|
|
3
|
+
import { P as PlatformRouteFiles } from './generate-route-types-TF5Wwtvz.mjs';
|
|
4
|
+
|
|
5
|
+
type FarmMobileScreenSource = "page" | "config" | "file" | "analyzer" | "default";
|
|
6
|
+
interface FarmMobileScreenDecision {
|
|
7
|
+
screen: FarmMobileScreen;
|
|
8
|
+
source: FarmMobileScreenSource;
|
|
9
|
+
/** App-root-relative file that decided (`"page"`), or the screen's file. */
|
|
10
|
+
file?: string;
|
|
11
|
+
/** Native module id, derived from the route, such as `"app/notes/[id]"`. Not on web screens. */
|
|
12
|
+
module?: string;
|
|
13
|
+
/** The tier a config route or the analyzer asked for, while nothing can build it yet. */
|
|
14
|
+
requested?: Exclude<FarmMobileScreen, "web">;
|
|
15
|
+
presentation: FarmMobilePresentation;
|
|
16
|
+
prefetch: FarmMobilePrefetch;
|
|
17
|
+
}
|
|
18
|
+
/** A page's static `export const mobile` and the file it came from. */
|
|
19
|
+
interface FarmMobilePageExport {
|
|
20
|
+
file: string;
|
|
21
|
+
config: FarmMobilePageConfig;
|
|
22
|
+
}
|
|
23
|
+
interface FarmMobileScreensOptions {
|
|
24
|
+
root: string;
|
|
25
|
+
os: FarmMobileOS;
|
|
26
|
+
/** Page route patterns with route groups removed. */
|
|
27
|
+
routes: readonly string[];
|
|
28
|
+
mobile: Pick<ResolvedFarmMobileConfig, "routes" | "native">;
|
|
29
|
+
/** Absolute screen files per route. */
|
|
30
|
+
nativePages?: ReadonlyMap<string, PlatformRouteFiles>;
|
|
31
|
+
pageExports?: ReadonlyMap<string, FarmMobilePageExport>;
|
|
32
|
+
/** Routes the analyzer would port; used only with `native.auto: "on"`. */
|
|
33
|
+
analyzerPorts?: ReadonlySet<string>;
|
|
34
|
+
/** Why the analyzer cannot port a route, for config routes that ask for a port. */
|
|
35
|
+
analyzerBlockers?: ReadonlyMap<string, readonly string[]>;
|
|
36
|
+
}
|
|
37
|
+
interface FarmMobileScreens {
|
|
38
|
+
screens: Record<string, FarmMobileScreenDecision>;
|
|
39
|
+
/** Overridden settings, unused files, and ports nothing can build yet. */
|
|
40
|
+
warnings: string[];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The id a native screen registers under: the route under `app/`, route groups removed, such as
|
|
44
|
+
* `"app"` for `/` and `"app/notes/[id]"` for `/notes/[id]`. Never hand-written, so the shell,
|
|
45
|
+
* the native bundle, and the manifest cannot disagree.
|
|
46
|
+
*/
|
|
47
|
+
declare function createFarmMobileModuleId(route: string): string;
|
|
48
|
+
declare function resolveFarmMobileScreens(options: FarmMobileScreensOptions): FarmMobileScreens;
|
|
49
|
+
type Node = {
|
|
50
|
+
type: string;
|
|
51
|
+
[key: string]: unknown;
|
|
52
|
+
};
|
|
53
|
+
type ParseProgram = (file: string, source: string) => {
|
|
54
|
+
body: Node[];
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* A page's `export const mobile = { ... }`, read from its source without running it. Returns
|
|
58
|
+
* undefined when the page has no such export. Only literal values are allowed.
|
|
59
|
+
*/
|
|
60
|
+
declare function readFarmMobilePageExport(source: string, file: string, parse: ParseProgram, context?: {
|
|
61
|
+
os: FarmMobileOS;
|
|
62
|
+
}): FarmMobilePageConfig | undefined;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* One navigator rule. The shell tests `pattern` against a link's decoded URL path, top to
|
|
66
|
+
* bottom, and uses the first match.
|
|
67
|
+
*/
|
|
68
|
+
interface FarmMobileRouteRule {
|
|
69
|
+
/** The app route pattern the rule came from, such as `"/notes/[id]"`. */
|
|
70
|
+
route?: string;
|
|
71
|
+
pattern: string;
|
|
72
|
+
/** `"tab"` switches to tab `tab` instead of presenting a screen. */
|
|
73
|
+
presentation: FarmMobilePresentation | "tab";
|
|
74
|
+
tab?: number;
|
|
75
|
+
screen: FarmMobileScreen;
|
|
76
|
+
/** What decided `screen`: the page export, config, a screen file, the analyzer, or the default. */
|
|
77
|
+
source?: FarmMobileScreenSource;
|
|
78
|
+
/** Native module id derived from the route, such as `"app/notes/[id]"`. Not on web screens. */
|
|
79
|
+
module?: string;
|
|
80
|
+
/** Only when the page overrides the manifest's `prefetch`. */
|
|
81
|
+
prefetch?: FarmMobilePrefetch;
|
|
82
|
+
}
|
|
83
|
+
/** `.farm/output/mobile/farm-routes.json` (RFC 0004, 7.2). */
|
|
84
|
+
interface FarmMobileRouteManifest {
|
|
85
|
+
version: 1;
|
|
86
|
+
server: string;
|
|
87
|
+
/** Tab roots; `path` includes the base path. */
|
|
88
|
+
tabs: FarmMobileTab[];
|
|
89
|
+
/** Default for every rule; a rule's own `prefetch` wins. */
|
|
90
|
+
prefetch: FarmMobilePrefetch;
|
|
91
|
+
rules: FarmMobileRouteRule[];
|
|
92
|
+
}
|
|
93
|
+
interface FarmMobileRouteManifestOptions {
|
|
94
|
+
/** The app's page route patterns. */
|
|
95
|
+
routes: readonly string[];
|
|
96
|
+
/** Server origin; defaults to `mobile.server`. The CLI passes the dev server's in dev. */
|
|
97
|
+
server?: string;
|
|
98
|
+
basePath?: string;
|
|
99
|
+
i18n?: {
|
|
100
|
+
locales: readonly string[];
|
|
101
|
+
routing: FarmI18nRouting;
|
|
102
|
+
} | null;
|
|
103
|
+
/** Per-route screens; resolved from config alone (no page files) when omitted. */
|
|
104
|
+
screens?: Readonly<Record<string, FarmMobileScreenDecision>>;
|
|
105
|
+
/** The OS for the config-only fallback; defaults to `"android"`. */
|
|
106
|
+
os?: FarmMobileOS;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* A regular expression, in the subset Kotlin, Swift, and JavaScript share, that matches the
|
|
110
|
+
* decoded URL paths the client router sends to `pattern`: the base path, an optional locale
|
|
111
|
+
* prefix, `[param]` as one segment, `[...rest]` as one or more, `[[...rest]]` as zero or more,
|
|
112
|
+
* route groups removed, and an optional trailing slash.
|
|
113
|
+
*/
|
|
114
|
+
declare function createFarmMobileRoutePattern(pattern: string, options?: Pick<FarmMobileRouteManifestOptions, "basePath" | "i18n">): string;
|
|
115
|
+
/**
|
|
116
|
+
* The navigator manifest for a resolved `mobile` block: a rule for every page route, most
|
|
117
|
+
* specific first (the client router's order), then a catch-all push for other same-origin paths.
|
|
118
|
+
*/
|
|
119
|
+
declare function createFarmMobileRouteManifest(mobile: ResolvedFarmMobileConfig, options: FarmMobileRouteManifestOptions): FarmMobileRouteManifest;
|
|
120
|
+
|
|
121
|
+
export { type FarmMobileRouteManifest as F, type FarmMobileRouteRule as a, type FarmMobileScreenSource as b, type FarmMobileScreenDecision as c, type FarmMobilePageExport as d, type FarmMobileRouteManifestOptions as e, type FarmMobileScreens as f, type FarmMobileScreensOptions as g, createFarmMobileModuleId as h, createFarmMobileRouteManifest as i, createFarmMobileRoutePattern as j, resolveFarmMobileScreens as k, readFarmMobilePageExport as r };
|
package/dist/routes.d.mts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { v as FarmAppContext, w as PageProps, x as PluginContextProps, f as FarmRouteRuntimeConfig, M as Metadata, i as RouteModule, L as LayoutProps, y as FarmRouteRuntime, z as FarmRouteRegions, A as FarmRouteMaxDuration, P as ParsedRoute } from './client-plugins-
|
|
1
|
+
import { v as FarmAppContext, w as PageProps, x as PluginContextProps, f as FarmRouteRuntimeConfig, M as Metadata, i as RouteModule, L as LayoutProps, y as FarmRouteRuntime, z as FarmRouteRegions, A as FarmRouteMaxDuration, P as ParsedRoute } from './client-plugins-D4RO59f0.mjs';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { RouteDataCacheKey } from './cache.mjs';
|
|
4
4
|
import { ServerFn } from './server-fn.mjs';
|
|
5
5
|
import { FarmServerRendererRuntime } from './renderer.mjs';
|
|
6
|
-
import './lifecycle-
|
|
6
|
+
import './lifecycle-C2aLBOwu.mjs';
|
|
7
7
|
import './route-2_yXC6gv.mjs';
|
|
8
8
|
import './endpoint-BkMSCRf6.mjs';
|
|
9
9
|
import 'http';
|
|
10
10
|
import './server-query.mjs';
|
|
11
|
-
import './cache-invalidation-BD0z_lfu.mjs';
|
|
12
11
|
import './server-fn-error-DrcH9cc1.mjs';
|
|
13
12
|
import './types-BnIqOn9w.mjs';
|
|
14
13
|
import 'db0';
|
|
@@ -19,15 +18,16 @@ import '@farming-labs/docs';
|
|
|
19
18
|
import './observability-B2363jB6.mjs';
|
|
20
19
|
import '@opentelemetry/api';
|
|
21
20
|
import 'vite';
|
|
22
|
-
import './workflows-
|
|
21
|
+
import './workflows-CRMzQZ3k.mjs';
|
|
23
22
|
import './cron.mjs';
|
|
24
23
|
import './env.mjs';
|
|
25
24
|
import './server-action-security.mjs';
|
|
26
|
-
import './layers-
|
|
25
|
+
import './layers-CcS42OGR.mjs';
|
|
27
26
|
import 'rolldown/utils';
|
|
28
27
|
import 'rolldown';
|
|
29
28
|
import './image-config-CeDgNyX4.mjs';
|
|
30
|
-
import './types
|
|
29
|
+
import './types-C41ePjvP.mjs';
|
|
30
|
+
import './config-CnhyvvmT.mjs';
|
|
31
31
|
import './types-DQnyD3VD.mjs';
|
|
32
32
|
import './font.mjs';
|
|
33
33
|
import './deployment.mjs';
|
package/dist/routes.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { v as FarmAppContext, w as PageProps, x as PluginContextProps, f as FarmRouteRuntimeConfig, M as Metadata, i as RouteModule, L as LayoutProps, y as FarmRouteRuntime, z as FarmRouteRegions, A as FarmRouteMaxDuration, P as ParsedRoute } from './client-plugins-
|
|
1
|
+
import { v as FarmAppContext, w as PageProps, x as PluginContextProps, f as FarmRouteRuntimeConfig, M as Metadata, i as RouteModule, L as LayoutProps, y as FarmRouteRuntime, z as FarmRouteRegions, A as FarmRouteMaxDuration, P as ParsedRoute } from './client-plugins-BPfltM5m.js';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { RouteDataCacheKey } from './cache.js';
|
|
4
4
|
import { ServerFn } from './server-fn.js';
|
|
5
5
|
import { FarmServerRendererRuntime } from './renderer.js';
|
|
6
|
-
import './lifecycle-
|
|
6
|
+
import './lifecycle-C2aLBOwu.js';
|
|
7
7
|
import './route-DFhZj6jN.js';
|
|
8
8
|
import './endpoint-BgHn0lhl.js';
|
|
9
9
|
import 'http';
|
|
10
10
|
import './server-query.js';
|
|
11
|
-
import './cache-invalidation-BD0z_lfu.js';
|
|
12
11
|
import './server-fn-error-DrcH9cc1.js';
|
|
13
12
|
import './types-BnIqOn9w.js';
|
|
14
13
|
import 'db0';
|
|
@@ -19,15 +18,16 @@ import '@farming-labs/docs';
|
|
|
19
18
|
import './observability-B2363jB6.js';
|
|
20
19
|
import '@opentelemetry/api';
|
|
21
20
|
import 'vite';
|
|
22
|
-
import './workflows-
|
|
21
|
+
import './workflows-CRMzQZ3k.js';
|
|
23
22
|
import './cron.js';
|
|
24
23
|
import './env.js';
|
|
25
24
|
import './server-action-security.js';
|
|
26
|
-
import './layers-
|
|
25
|
+
import './layers-CcS42OGR.js';
|
|
27
26
|
import 'rolldown/utils';
|
|
28
27
|
import 'rolldown';
|
|
29
28
|
import './image-config-CeDgNyX4.js';
|
|
30
|
-
import './types
|
|
29
|
+
import './types-C41ePjvP.js';
|
|
30
|
+
import './config-CnhyvvmT.js';
|
|
31
31
|
import './types-DQnyD3VD.js';
|
|
32
32
|
import './font.js';
|
|
33
33
|
import './deployment.js';
|