@farm.js/core 0.1.0-beta.6 → 0.1.0-beta.8
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/after.cjs +227 -0
- package/dist/after.cjs.map +1 -0
- package/dist/after.d.mts +25 -0
- package/dist/after.d.ts +25 -0
- package/dist/after.mjs +14 -0
- package/dist/after.mjs.map +1 -0
- package/dist/agent-runtime.cjs +2379 -0
- package/dist/agent-runtime.cjs.map +1 -0
- package/dist/agent-runtime.d.mts +94 -0
- package/dist/agent-runtime.d.ts +94 -0
- package/dist/agent-runtime.mjs +479 -0
- package/dist/agent-runtime.mjs.map +1 -0
- package/dist/api/route-manager.d.mts +66 -0
- package/dist/api/route-manager.d.ts +66 -0
- package/dist/api/runtime.d.mts +3 -0
- package/dist/api/runtime.d.ts +3 -0
- package/dist/api.cjs +4100 -0
- package/dist/api.cjs.map +1 -0
- package/dist/api.d.mts +48 -0
- package/dist/api.d.ts +48 -0
- package/dist/api.mjs +93 -0
- package/dist/api.mjs.map +1 -0
- package/dist/app-BWtqQu3R.d.mts +302 -0
- package/dist/app-markdown.cjs +244 -0
- package/dist/app-markdown.cjs.map +1 -0
- package/dist/app-markdown.d.mts +22 -0
- package/dist/app-markdown.d.ts +22 -0
- package/dist/app-markdown.mjs +27 -0
- package/dist/app-markdown.mjs.map +1 -0
- package/dist/app-xltejvLY.d.ts +302 -0
- package/dist/cache.cjs +945 -0
- package/dist/cache.cjs.map +1 -0
- package/dist/cache.d.mts +192 -0
- package/dist/cache.d.ts +192 -0
- package/dist/cache.mjs +46 -0
- package/dist/cache.mjs.map +1 -0
- package/dist/chunk-2ED5Q2GH.mjs +422 -0
- package/dist/chunk-2ED5Q2GH.mjs.map +1 -0
- package/dist/chunk-32W4QEJP.mjs +158 -0
- package/dist/chunk-32W4QEJP.mjs.map +1 -0
- package/dist/chunk-3XNTL3FQ.mjs +452 -0
- package/dist/chunk-3XNTL3FQ.mjs.map +1 -0
- package/dist/chunk-44ZCFSKE.mjs +84 -0
- package/dist/chunk-44ZCFSKE.mjs.map +1 -0
- package/dist/chunk-4MGVSBRP.mjs +7787 -0
- package/dist/chunk-4MGVSBRP.mjs.map +1 -0
- package/dist/chunk-4S3ORGFA.mjs +44 -0
- package/dist/chunk-4S3ORGFA.mjs.map +1 -0
- package/dist/chunk-5BY76U2M.mjs +1 -0
- package/dist/chunk-5BY76U2M.mjs.map +1 -0
- package/dist/chunk-5ZGPRGWV.mjs +136 -0
- package/dist/chunk-5ZGPRGWV.mjs.map +1 -0
- package/dist/chunk-65A7QIKI.mjs +142 -0
- package/dist/chunk-65A7QIKI.mjs.map +1 -0
- package/dist/chunk-74YTBPTY.mjs +450 -0
- package/dist/chunk-74YTBPTY.mjs.map +1 -0
- package/dist/chunk-7FBJLMQH.mjs +338 -0
- package/dist/chunk-7FBJLMQH.mjs.map +1 -0
- package/dist/chunk-7HO6AEOP.mjs +74 -0
- package/dist/chunk-7HO6AEOP.mjs.map +1 -0
- package/dist/chunk-7MABZJIM.mjs +29 -0
- package/dist/chunk-7MABZJIM.mjs.map +1 -0
- package/dist/chunk-7N62DNSO.mjs +41 -0
- package/dist/chunk-7N62DNSO.mjs.map +1 -0
- package/dist/chunk-7ZY5AIJO.mjs +161 -0
- package/dist/chunk-7ZY5AIJO.mjs.map +1 -0
- package/dist/chunk-ALCLXXTY.mjs +187 -0
- package/dist/chunk-ALCLXXTY.mjs.map +1 -0
- package/dist/chunk-AZ7YUVNR.mjs +65 -0
- package/dist/chunk-AZ7YUVNR.mjs.map +1 -0
- package/dist/chunk-B232I2GP.mjs +163 -0
- package/dist/chunk-B232I2GP.mjs.map +1 -0
- package/dist/chunk-B4W3BNTL.mjs +483 -0
- package/dist/chunk-B4W3BNTL.mjs.map +1 -0
- package/dist/chunk-C2ROET2V.mjs +718 -0
- package/dist/chunk-C2ROET2V.mjs.map +1 -0
- package/dist/chunk-CGILA3WO.mjs +14 -0
- package/dist/chunk-CGILA3WO.mjs.map +1 -0
- package/dist/chunk-CGIXMLSY.mjs +184 -0
- package/dist/chunk-CGIXMLSY.mjs.map +1 -0
- package/dist/chunk-DJSGLHCN.mjs +597 -0
- package/dist/chunk-DJSGLHCN.mjs.map +1 -0
- package/dist/chunk-E2MPIBRE.mjs +149 -0
- package/dist/chunk-E2MPIBRE.mjs.map +1 -0
- package/dist/chunk-E6EPN5BT.mjs +203 -0
- package/dist/chunk-E6EPN5BT.mjs.map +1 -0
- package/dist/chunk-EI43C4RA.mjs +6277 -0
- package/dist/chunk-EI43C4RA.mjs.map +1 -0
- package/dist/chunk-EJ7T4TPB.mjs +622 -0
- package/dist/chunk-EJ7T4TPB.mjs.map +1 -0
- package/dist/chunk-FQYDHKKU.mjs +128 -0
- package/dist/chunk-FQYDHKKU.mjs.map +1 -0
- package/dist/chunk-FRPWCMMG.mjs +299 -0
- package/dist/chunk-FRPWCMMG.mjs.map +1 -0
- package/dist/chunk-GN72QAIH.mjs +146 -0
- package/dist/chunk-GN72QAIH.mjs.map +1 -0
- package/dist/chunk-GQVGIUSN.mjs +149 -0
- package/dist/chunk-GQVGIUSN.mjs.map +1 -0
- package/dist/chunk-GS6K5OCM.mjs +407 -0
- package/dist/chunk-GS6K5OCM.mjs.map +1 -0
- package/dist/chunk-GXASWWJU.mjs +364 -0
- package/dist/chunk-GXASWWJU.mjs.map +1 -0
- package/dist/chunk-GY2STC2S.mjs +180 -0
- package/dist/chunk-GY2STC2S.mjs.map +1 -0
- package/dist/chunk-H2FA2SBS.mjs +51 -0
- package/dist/chunk-H2FA2SBS.mjs.map +1 -0
- package/dist/chunk-I4CUBGVF.mjs +93 -0
- package/dist/chunk-I4CUBGVF.mjs.map +1 -0
- package/dist/chunk-ITN462YM.mjs +98 -0
- package/dist/chunk-ITN462YM.mjs.map +1 -0
- package/dist/chunk-J23HNLFY.mjs +72 -0
- package/dist/chunk-J23HNLFY.mjs.map +1 -0
- package/dist/chunk-J4FNJ5IU.mjs +179 -0
- package/dist/chunk-J4FNJ5IU.mjs.map +1 -0
- package/dist/chunk-J5YWQVI5.mjs +211 -0
- package/dist/chunk-J5YWQVI5.mjs.map +1 -0
- package/dist/chunk-JDEOUK5V.mjs +427 -0
- package/dist/chunk-JDEOUK5V.mjs.map +1 -0
- package/dist/chunk-JK25YEN6.mjs +219 -0
- package/dist/chunk-JK25YEN6.mjs.map +1 -0
- package/dist/chunk-K4667E2Q.mjs +1916 -0
- package/dist/chunk-K4667E2Q.mjs.map +1 -0
- package/dist/chunk-LGHEOHBU.mjs +218 -0
- package/dist/chunk-LGHEOHBU.mjs.map +1 -0
- package/dist/chunk-LM2YNO4U.mjs +24 -0
- package/dist/chunk-LM2YNO4U.mjs.map +1 -0
- package/dist/chunk-ME4MO2RJ.mjs +3540 -0
- package/dist/chunk-ME4MO2RJ.mjs.map +1 -0
- package/dist/chunk-MIUW47JX.mjs +639 -0
- package/dist/chunk-MIUW47JX.mjs.map +1 -0
- package/dist/chunk-NNLCAVB6.mjs +391 -0
- package/dist/chunk-NNLCAVB6.mjs.map +1 -0
- package/dist/chunk-P7QDS5AT.mjs +191 -0
- package/dist/chunk-P7QDS5AT.mjs.map +1 -0
- package/dist/chunk-PFE6GMNE.mjs +603 -0
- package/dist/chunk-PFE6GMNE.mjs.map +1 -0
- package/dist/chunk-QGOHVJ6J.mjs +63 -0
- package/dist/chunk-QGOHVJ6J.mjs.map +1 -0
- package/dist/chunk-QKVUNGAH.mjs +39 -0
- package/dist/chunk-QKVUNGAH.mjs.map +1 -0
- package/dist/chunk-QM746KUO.mjs +56 -0
- package/dist/chunk-QM746KUO.mjs.map +1 -0
- package/dist/chunk-QTZZ2ISQ.mjs +753 -0
- package/dist/chunk-QTZZ2ISQ.mjs.map +1 -0
- package/dist/chunk-RBRLLZL5.mjs +81 -0
- package/dist/chunk-RBRLLZL5.mjs.map +1 -0
- package/dist/chunk-RHIFZZUI.mjs +69 -0
- package/dist/chunk-RHIFZZUI.mjs.map +1 -0
- package/dist/chunk-RQ633A5I.mjs +187 -0
- package/dist/chunk-RQ633A5I.mjs.map +1 -0
- package/dist/chunk-SCFX4UTD.mjs +28 -0
- package/dist/chunk-SCFX4UTD.mjs.map +1 -0
- package/dist/chunk-SL6HTIOK.mjs +66 -0
- package/dist/chunk-SL6HTIOK.mjs.map +1 -0
- package/dist/chunk-SPBBQLXI.mjs +207 -0
- package/dist/chunk-SPBBQLXI.mjs.map +1 -0
- package/dist/chunk-SSA7THPX.mjs +10 -0
- package/dist/chunk-SSA7THPX.mjs.map +1 -0
- package/dist/chunk-T4QJQK76.mjs +459 -0
- package/dist/chunk-T4QJQK76.mjs.map +1 -0
- package/dist/chunk-TQAEEJB4.mjs +157 -0
- package/dist/chunk-TQAEEJB4.mjs.map +1 -0
- package/dist/chunk-UB5UOSHB.mjs +458 -0
- package/dist/chunk-UB5UOSHB.mjs.map +1 -0
- package/dist/chunk-USWZZUEH.mjs +25 -0
- package/dist/chunk-USWZZUEH.mjs.map +1 -0
- package/dist/chunk-UVCIEUJC.mjs +16 -0
- package/dist/chunk-UVCIEUJC.mjs.map +1 -0
- package/dist/chunk-UXUAWNO5.mjs +396 -0
- package/dist/chunk-UXUAWNO5.mjs.map +1 -0
- package/dist/chunk-V3XURYJO.mjs +756 -0
- package/dist/chunk-V3XURYJO.mjs.map +1 -0
- package/dist/chunk-V6WE6JSZ.mjs +352 -0
- package/dist/chunk-V6WE6JSZ.mjs.map +1 -0
- package/dist/chunk-V7RBCSDJ.mjs +170 -0
- package/dist/chunk-V7RBCSDJ.mjs.map +1 -0
- package/dist/chunk-VCANOYFI.mjs +588 -0
- package/dist/chunk-VCANOYFI.mjs.map +1 -0
- package/dist/chunk-VY2UYN5R.mjs +224 -0
- package/dist/chunk-VY2UYN5R.mjs.map +1 -0
- package/dist/chunk-W2CRQFF6.mjs +1352 -0
- package/dist/chunk-W2CRQFF6.mjs.map +1 -0
- package/dist/chunk-WDU6QXNK.mjs +872 -0
- package/dist/chunk-WDU6QXNK.mjs.map +1 -0
- package/dist/chunk-WZ5QFROO.mjs +23 -0
- package/dist/chunk-WZ5QFROO.mjs.map +1 -0
- package/dist/chunk-XIVV5IWN.mjs +541 -0
- package/dist/chunk-XIVV5IWN.mjs.map +1 -0
- package/dist/chunk-YW7OBE6Q.mjs +119 -0
- package/dist/chunk-YW7OBE6Q.mjs.map +1 -0
- package/dist/chunk-Z5CQMP54.mjs +365 -0
- package/dist/chunk-Z5CQMP54.mjs.map +1 -0
- package/dist/chunk-ZBE6MLHL.mjs +230 -0
- package/dist/chunk-ZBE6MLHL.mjs.map +1 -0
- package/dist/chunk-ZVWA4ZQ3.mjs +189 -0
- package/dist/chunk-ZVWA4ZQ3.mjs.map +1 -0
- package/dist/chunk-ZZ57EH5Z.mjs +173 -0
- package/dist/chunk-ZZ57EH5Z.mjs.map +1 -0
- package/dist/client-BT1mFQas.d.mts +447 -0
- package/dist/client-Nn0q4eO4.d.ts +447 -0
- package/dist/client-cache-CIlyBlmx.d.ts +6 -0
- package/dist/client-cache-D-EZ7XVW.d.mts +6 -0
- package/dist/client-plugins-BI2R6Eae.d.mts +1926 -0
- package/dist/client-plugins-DU9oMspX.d.ts +1926 -0
- package/dist/client-plugins.cjs +415 -0
- package/dist/client-plugins.cjs.map +1 -0
- package/dist/client-plugins.d.mts +22 -0
- package/dist/client-plugins.d.ts +22 -0
- package/dist/client-plugins.mjs +10 -0
- package/dist/client-plugins.mjs.map +1 -0
- package/dist/client.cjs +5402 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.mts +447 -0
- package/dist/client.d.ts +447 -0
- package/dist/client.mjs +110 -0
- package/dist/client.mjs.map +1 -0
- package/dist/config.cjs +38 -0
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.mts +29 -0
- package/dist/config.d.ts +29 -0
- package/dist/config.mjs +10 -0
- package/dist/config.mjs.map +1 -0
- package/dist/cron.cjs +406 -0
- package/dist/cron.cjs.map +1 -0
- package/dist/cron.d.mts +78 -0
- package/dist/cron.d.ts +78 -0
- package/dist/cron.mjs +30 -0
- package/dist/cron.mjs.map +1 -0
- package/dist/deferred.cjs +438 -0
- package/dist/deferred.cjs.map +1 -0
- package/dist/deferred.d.mts +42 -0
- package/dist/deferred.d.ts +42 -0
- package/dist/deferred.mjs +28 -0
- package/dist/deferred.mjs.map +1 -0
- package/dist/deployment.cjs +199 -0
- package/dist/deployment.cjs.map +1 -0
- package/dist/deployment.d.mts +34 -0
- package/dist/deployment.d.ts +34 -0
- package/dist/deployment.mjs +38 -0
- package/dist/deployment.mjs.map +1 -0
- package/dist/devtools-REQTS3I7.mjs +371 -0
- package/dist/devtools-REQTS3I7.mjs.map +1 -0
- package/dist/devtools-client-3XRTBND5.mjs +216 -0
- package/dist/devtools-client-3XRTBND5.mjs.map +1 -0
- package/dist/devtools-ui-NJKFORTG.mjs +1349 -0
- package/dist/devtools-ui-NJKFORTG.mjs.map +1 -0
- package/dist/docs.cjs +5548 -0
- package/dist/docs.cjs.map +1 -0
- package/dist/docs.d.mts +69 -0
- package/dist/docs.d.ts +69 -0
- package/dist/docs.mjs +47 -0
- package/dist/docs.mjs.map +1 -0
- package/dist/env-types.cjs +232 -0
- package/dist/env-types.cjs.map +1 -0
- package/dist/env-types.d.mts +12 -0
- package/dist/env-types.d.ts +12 -0
- package/dist/env-types.mjs +11 -0
- package/dist/env-types.mjs.map +1 -0
- package/dist/env.cjs +215 -0
- package/dist/env.cjs.map +1 -0
- package/dist/env.d.mts +45 -0
- package/dist/env.d.ts +45 -0
- package/dist/env.mjs +22 -0
- package/dist/env.mjs.map +1 -0
- package/dist/environment/vite.d.mts +22 -0
- package/dist/environment/vite.d.ts +22 -0
- package/dist/environment.cjs +96 -0
- package/dist/environment.cjs.map +1 -0
- package/dist/environment.d.mts +18 -0
- package/dist/environment.d.ts +18 -0
- package/dist/environment.mjs +14 -0
- package/dist/environment.mjs.map +1 -0
- package/dist/headers.cjs +126 -0
- package/dist/headers.cjs.map +1 -0
- package/dist/headers.d.mts +22 -0
- package/dist/headers.d.ts +22 -0
- package/dist/headers.mjs +12 -0
- package/dist/headers.mjs.map +1 -0
- package/dist/i18n/client.d.mts +32 -0
- package/dist/i18n/client.d.ts +32 -0
- package/dist/i18n/index.d.mts +20 -0
- package/dist/i18n/index.d.ts +20 -0
- package/dist/i18n/server.d.mts +30 -0
- package/dist/i18n/server.d.ts +30 -0
- package/dist/image/server.d.mts +37 -0
- package/dist/image/server.d.ts +37 -0
- package/dist/image/sharp.d.mts +7 -0
- package/dist/image/sharp.d.ts +7 -0
- package/dist/image-config-Duob7wER.d.mts +50 -0
- package/dist/image-config-Duob7wER.d.ts +50 -0
- package/dist/image.cjs +209 -0
- package/dist/image.cjs.map +1 -0
- package/dist/image.d.mts +39 -0
- package/dist/image.d.ts +39 -0
- package/dist/image.mjs +165 -0
- package/dist/image.mjs.map +1 -0
- package/dist/index.cjs +42186 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +454 -0
- package/dist/index.d.ts +454 -0
- package/dist/index.mjs +980 -0
- package/dist/index.mjs.map +1 -0
- package/dist/integration-api-CHT2OKAf.d.mts +93 -0
- package/dist/integration-api-CHT2OKAf.d.ts +93 -0
- package/dist/integration-orm-GQLGU66X.mjs +13 -0
- package/dist/integration-orm-GQLGU66X.mjs.map +1 -0
- package/dist/integrations.cjs +2820 -0
- package/dist/integrations.cjs.map +1 -0
- package/dist/integrations.d.mts +22 -0
- package/dist/integrations.d.ts +22 -0
- package/dist/integrations.mjs +51 -0
- package/dist/integrations.mjs.map +1 -0
- package/dist/internal/build-runtime.cjs +643 -322
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.d.mts +39 -0
- package/dist/internal/build-runtime.d.ts +39 -0
- package/dist/internal/build-runtime.mjs +11 -10
- package/dist/internal/client-runtime.d.mts +2 -0
- package/dist/internal/client-runtime.d.ts +2 -0
- package/dist/internal/config-runtime.cjs +135 -39
- package/dist/internal/config-runtime.cjs.map +1 -1
- package/dist/internal/config-runtime.d.mts +39 -0
- package/dist/internal/config-runtime.d.ts +39 -0
- package/dist/internal/config-runtime.mjs +5 -4
- package/dist/internal/production-node-env.d.mts +12 -0
- package/dist/internal/production-node-env.d.ts +12 -0
- package/dist/internal/production-runtime.d.mts +39 -0
- package/dist/internal/production-runtime.d.ts +39 -0
- package/dist/layers-VWVDTPUZ.mjs +16 -0
- package/dist/layers-VWVDTPUZ.mjs.map +1 -0
- package/dist/manager-THKFTOFE.mjs +10 -0
- package/dist/manager-THKFTOFE.mjs.map +1 -0
- package/dist/markdown.cjs +364 -0
- package/dist/markdown.cjs.map +1 -0
- package/dist/markdown.d.mts +60 -0
- package/dist/markdown.d.ts +60 -0
- package/dist/markdown.mjs +18 -0
- package/dist/markdown.mjs.map +1 -0
- package/dist/metadata-Cm9ujH4I.d.ts +22 -0
- package/dist/metadata-DacXbnLA.d.mts +22 -0
- package/dist/middleware.cjs +2148 -0
- package/dist/middleware.cjs.map +1 -0
- package/dist/middleware.d.mts +164 -0
- package/dist/middleware.d.ts +164 -0
- package/dist/middleware.mjs +49 -0
- package/dist/middleware.mjs.map +1 -0
- package/dist/navigation-errors-Dvwpzaer.d.mts +13 -0
- package/dist/navigation-errors-Dvwpzaer.d.ts +13 -0
- package/dist/navigation.cjs +1329 -0
- package/dist/navigation.cjs.map +1 -0
- package/dist/navigation.d.mts +14 -0
- package/dist/navigation.d.ts +14 -0
- package/dist/navigation.mjs +33 -0
- package/dist/navigation.mjs.map +1 -0
- package/dist/nitro-QO5LV6QK.mjs +689 -0
- package/dist/nitro-QO5LV6QK.mjs.map +1 -0
- package/dist/observability.cjs +186 -0
- package/dist/observability.cjs.map +1 -0
- package/dist/observability.d.mts +335 -0
- package/dist/observability.d.ts +335 -0
- package/dist/observability.mjs +16 -0
- package/dist/observability.mjs.map +1 -0
- package/dist/params-BALtrRim.d.ts +15 -0
- package/dist/params-ry-lxqmy.d.mts +15 -0
- package/dist/plugin-BJDf43dc.d.mts +165 -0
- package/dist/plugin-BJDf43dc.d.ts +165 -0
- package/dist/plugin.cjs +23470 -0
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.mts +22 -0
- package/dist/plugin.d.ts +22 -0
- package/dist/plugin.mjs +8 -7
- package/dist/production-runtime-4KKq1AVC.d.mts +79 -0
- package/dist/production-runtime-C_B79w2P.d.mts +28 -0
- package/dist/production-runtime-DDEM1D2q.d.ts +28 -0
- package/dist/production-runtime-DRsWDN2x.d.ts +79 -0
- package/dist/query/client.d.mts +61 -0
- package/dist/query/client.d.ts +61 -0
- package/dist/query/index.d.mts +90 -0
- package/dist/query/index.d.ts +90 -0
- package/dist/query/parsers.d.mts +25 -0
- package/dist/query/parsers.d.ts +25 -0
- package/dist/query/server.d.mts +55 -0
- package/dist/query/server.d.ts +55 -0
- package/dist/request-Dsq4kGW0.d.mts +6 -0
- package/dist/request-udtobOLv.d.ts +6 -0
- package/dist/request.d.mts +2 -0
- package/dist/request.d.ts +2 -0
- package/dist/resolver-DJqjLMg_.d.mts +14 -0
- package/dist/resolver-IH4RmPEl.d.ts +14 -0
- package/dist/route-runtime-DoOHzCAD.d.mts +38 -0
- package/dist/route-runtime-DoOHzCAD.d.ts +38 -0
- package/dist/router.d.mts +36 -0
- package/dist/router.d.ts +36 -0
- package/dist/routes.d.mts +224 -0
- package/dist/routes.d.ts +224 -0
- package/dist/runtime-9nQjVM7X.d.mts +206 -0
- package/dist/runtime-Cxpq6xZN.d.mts +27 -0
- package/dist/runtime-DgeS2skB.d.ts +206 -0
- package/dist/runtime-bv63eUiO.d.ts +27 -0
- package/dist/server-action-security.d.mts +43 -0
- package/dist/server-action-security.d.ts +43 -0
- package/dist/server-fn-client.d.mts +32 -0
- package/dist/server-fn-client.d.ts +32 -0
- package/dist/server-fn.d.mts +93 -0
- package/dist/server-fn.d.ts +93 -0
- package/dist/server-plugins.d.mts +55 -0
- package/dist/server-plugins.d.ts +55 -0
- package/dist/server-query-client.d.mts +50 -0
- package/dist/server-query-client.d.ts +50 -0
- package/dist/server-query.d.mts +36 -0
- package/dist/server-query.d.ts +36 -0
- package/dist/server.cjs +731 -447
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.mts +48 -0
- package/dist/server.d.ts +48 -0
- package/dist/server.mjs +9 -8
- package/dist/server.mjs.map +1 -1
- package/dist/storage.d.mts +52 -0
- package/dist/storage.d.ts +52 -0
- package/dist/testing.d.mts +101 -0
- package/dist/testing.d.ts +101 -0
- package/dist/transport-BmbGTXA5.d.mts +49 -0
- package/dist/transport-BmbGTXA5.d.ts +49 -0
- package/dist/types-BMxWr97v.d.mts +81 -0
- package/dist/types-BMxWr97v.d.ts +81 -0
- package/dist/types-C9N-nk5R.d.mts +53 -0
- package/dist/types-C9N-nk5R.d.ts +53 -0
- package/dist/types-D1A6-XvH.d.mts +73 -0
- package/dist/types-D1A6-XvH.d.ts +73 -0
- package/dist/utils-B-cUHwoK.d.ts +23 -0
- package/dist/utils-Cm41AefV.d.mts +23 -0
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.d.mts +3 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +682 -437
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.mts +22 -0
- package/dist/vite.d.ts +22 -0
- package/dist/vite.mjs +6 -5
- package/dist/workflows.d.mts +110 -0
- package/dist/workflows.d.ts +110 -0
- package/package.json +3 -2
- package/types/client.d.ts +1 -1
- package/types/image.d.ts +4 -0
- package/types/images.d.ts +59 -0
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
import { p as ClientOptions, g as APIResult } from './client-Nn0q4eO4.js';
|
|
2
|
+
export { r as APIClient, h as APIClientError, b as APIClientOptions, i as APIClientSystemError, c as APIClientWithoutIntegrationsOptions, X as InferIntegrationOperationBody, Y as InferIntegrationOperationQuery, Z as InferIntegrationOperationResponse, T as IntegrationAPI, L as IntegrationClient, M as IntegrationClientAliases, V as IntegrationClientData, y as IntegrationClientError, P as IntegrationClientOptions, Q as IntegrationClientRequestOptions, N as IntegrationClientRoot, U as IntegrationClients, W as IntegrationOperationResult, _ as IntegrationServerClient, $ as IntegrationServerClientAliases, a0 as IntegrationServerClientOptions, a1 as IntegrationServerClientRequestOptions, a2 as IntegrationServerClientRoot, a3 as IntegrationServerRequestLike, q as RouteAPIClient, s as ServerAPIClient, S as ServerAPIClientOptions, d as ServerAPIClientWithoutIntegrationsOptions, t as createAPIClient, z as createIntegrationApi, x as createIntegrationClient, B as createIntegrationClients, E as createIntegrationServerClient, D as createIntegrations, w as createServerAPIClient, G as getIntegrationAPIManifest, H as integrationClients, J as integrationsClient, K as integrationsServer } from './client-Nn0q4eO4.js';
|
|
3
|
+
export { F as FarmAPIStream } from './transport-BmbGTXA5.js';
|
|
4
|
+
import React__default, { ComponentType, FormHTMLAttributes, FormEvent, AnchorHTMLAttributes, RefObject } from 'react';
|
|
5
|
+
export { ServerQueryFetchOptions, UseServerQueryOptions, UseServerQueryResult, fetchServerQuery, prefetchServerQuery, useServerQuery } from './server-query-client.js';
|
|
6
|
+
export { F as FarmIntegrationAPI, e as FarmIntegrationAPIBodyFormat, f as FarmIntegrationAPIMethod, a as FarmIntegrationAPIOperation, g as FarmIntegrationAPIResponseFormat, b as api, d as defineIntegrationAPI, c as defineIntegrationAPIOperation, i as endpoint } from './integration-api-CHT2OKAf.js';
|
|
7
|
+
import { FarmRouterPathParams, FarmRouterPathParam, FarmRouterBuildOptions, FarmRouterRouteInput } from './router.js';
|
|
8
|
+
import { F as FarmClientPluginManager } from './plugin-BJDf43dc.js';
|
|
9
|
+
export { a as FarmClientHydrationCompleteEvent, b as FarmClientHydrationEvent, d as FarmClientHydrationMode, e as FarmClientHydrationSession, f as FarmClientLocation, g as FarmClientNavigationAction, h as FarmClientNavigationErrorEvent, i as FarmClientNavigationEvent, j as FarmClientNavigationLoadedEvent, k as FarmClientNavigationResolvedEvent, l as FarmClientNavigationSession, m as FarmClientPerformanceEvent, n as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './plugin-BJDf43dc.js';
|
|
10
|
+
import { a as FarmI18nClientSnapshot, c as FarmI18nLocale } from './types-BMxWr97v.js';
|
|
11
|
+
export { F as FarmChunkRecoveryOptions, i as installChunkErrorRecovery, a as isChunkLoadError } from './production-runtime-DDEM1D2q.js';
|
|
12
|
+
import './client-cache-CIlyBlmx.js';
|
|
13
|
+
import './cache.js';
|
|
14
|
+
import './server-query.js';
|
|
15
|
+
import './server-fn.js';
|
|
16
|
+
|
|
17
|
+
type MutationStatus = "idle" | "pending" | "success" | "error";
|
|
18
|
+
type AnyMutationTarget = (...args: any[]) => Promise<any>;
|
|
19
|
+
type InferMutationVariables<TTarget extends AnyMutationTarget> = Parameters<TTarget> extends [] ? undefined : Parameters<TTarget>[0];
|
|
20
|
+
type InferMutationData<TTarget extends AnyMutationTarget> = TTarget extends {
|
|
21
|
+
readonly __farmRouteData: infer TData;
|
|
22
|
+
} ? TData : Awaited<ReturnType<TTarget>>;
|
|
23
|
+
type InferMutationError<TTarget extends AnyMutationTarget> = TTarget extends (...args: any[]) => Promise<APIResult<any, infer TError>> ? TError : Error;
|
|
24
|
+
type MutationOptimisticContext<TVariables, TData> = {
|
|
25
|
+
variables: TVariables | undefined;
|
|
26
|
+
current: TData | null;
|
|
27
|
+
};
|
|
28
|
+
type UseMutationOptions<TVariables, TData, TError = Error> = {
|
|
29
|
+
initialData?: TData | null;
|
|
30
|
+
resetOnMutate?: boolean;
|
|
31
|
+
optimistic?: (context: MutationOptimisticContext<TVariables, TData>) => TData | null | undefined;
|
|
32
|
+
rollbackOnError?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Options forwarded to generated `api.route.method` clients.
|
|
35
|
+
* Server functions ignore this field.
|
|
36
|
+
*/
|
|
37
|
+
request?: ClientOptions<TData, TError>;
|
|
38
|
+
onSuccess?: (data: TData, variables: TVariables | undefined) => void;
|
|
39
|
+
onError?: (error: TError, variables: TVariables | undefined) => void;
|
|
40
|
+
onSettled?: (data: TData | null, error: TError | null, variables: TVariables | undefined) => void;
|
|
41
|
+
};
|
|
42
|
+
type MutationInput<TTarget extends AnyMutationTarget> = InferMutationVariables<TTarget>;
|
|
43
|
+
type MutationData<TTarget extends AnyMutationTarget> = InferMutationData<TTarget>;
|
|
44
|
+
type MutationError<TTarget extends AnyMutationTarget> = InferMutationError<TTarget>;
|
|
45
|
+
type MutationAsync<TTarget extends AnyMutationTarget, TData = MutationData<TTarget>> = [
|
|
46
|
+
] extends Parameters<TTarget> ? (variables?: MutationInput<TTarget>) => Promise<TData> : (variables: MutationInput<TTarget>) => Promise<TData>;
|
|
47
|
+
type MutationTrigger<TTarget extends AnyMutationTarget> = [
|
|
48
|
+
] extends Parameters<TTarget> ? (variables?: MutationInput<TTarget>) => void : (variables: MutationInput<TTarget>) => void;
|
|
49
|
+
type UseMutationReturn<TTarget extends AnyMutationTarget, TData = MutationData<TTarget>, TError = MutationError<TTarget>> = {
|
|
50
|
+
pending: boolean;
|
|
51
|
+
status: MutationStatus;
|
|
52
|
+
data: TData | null;
|
|
53
|
+
error: TError | null;
|
|
54
|
+
variables: MutationInput<TTarget> | undefined;
|
|
55
|
+
mutate: MutationTrigger<TTarget>;
|
|
56
|
+
mutateAsync: MutationAsync<TTarget, TData>;
|
|
57
|
+
reset: () => void;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Track a generated API route mutation or a Farm server function with one
|
|
61
|
+
* React lifecycle.
|
|
62
|
+
*
|
|
63
|
+
* API routes keep using their existing fetch transport and request options.
|
|
64
|
+
* Server functions keep using their configured server-function transport.
|
|
65
|
+
*/
|
|
66
|
+
declare function useMutation<TTarget extends AnyMutationTarget>(target: TTarget, options?: UseMutationOptions<MutationInput<TTarget>, MutationData<TTarget>, MutationError<TTarget>>): UseMutationReturn<TTarget>;
|
|
67
|
+
|
|
68
|
+
type FetcherState = "idle" | "submitting";
|
|
69
|
+
type FetcherFormDataContext = {
|
|
70
|
+
form: HTMLFormElement | null;
|
|
71
|
+
submitter: HTMLElement | null;
|
|
72
|
+
};
|
|
73
|
+
type UseFetcherOptions<TTarget extends AnyMutationTarget> = UseMutationOptions<InferMutationVariables<TTarget>, InferMutationData<TTarget>, InferMutationError<TTarget>> & {
|
|
74
|
+
/**
|
|
75
|
+
* Convert browser FormData into the target's typed variables.
|
|
76
|
+
*
|
|
77
|
+
* Generated API routes default to `{ body: Object.fromEntries(formData) }`
|
|
78
|
+
* (or `{ query: ... }` for GET/HEAD). Server functions receive FormData
|
|
79
|
+
* directly so their input schema remains authoritative.
|
|
80
|
+
*/
|
|
81
|
+
mapFormData?: (formData: FormData, context: FetcherFormDataContext) => InferMutationVariables<TTarget>;
|
|
82
|
+
};
|
|
83
|
+
type FetcherFormProps = Omit<FormHTMLAttributes<HTMLFormElement>, "action" | "onSubmit"> & {
|
|
84
|
+
/**
|
|
85
|
+
* Override the native form fallback. By default server functions remain the
|
|
86
|
+
* action and generated GET/POST API routes use their real URL.
|
|
87
|
+
*/
|
|
88
|
+
action?: string | ((formData: FormData) => void | Promise<void>);
|
|
89
|
+
onSubmit?: (event: FormEvent<HTMLFormElement>) => void;
|
|
90
|
+
};
|
|
91
|
+
type FetcherInput<TTarget extends AnyMutationTarget> = InferMutationVariables<TTarget> | FormData;
|
|
92
|
+
type FetcherSubmitAsync<TTarget extends AnyMutationTarget> = [
|
|
93
|
+
] extends Parameters<TTarget> ? (input?: FetcherInput<TTarget>) => Promise<InferMutationData<TTarget>> : (input: FetcherInput<TTarget>) => Promise<InferMutationData<TTarget>>;
|
|
94
|
+
type FetcherSubmit<TTarget extends AnyMutationTarget> = [
|
|
95
|
+
] extends Parameters<TTarget> ? (input?: FetcherInput<TTarget>) => void : (input: FetcherInput<TTarget>) => void;
|
|
96
|
+
type UseFetcherReturn<TTarget extends AnyMutationTarget> = {
|
|
97
|
+
state: FetcherState;
|
|
98
|
+
status: MutationStatus;
|
|
99
|
+
pending: boolean;
|
|
100
|
+
data: InferMutationData<TTarget> | null;
|
|
101
|
+
error: InferMutationError<TTarget> | null;
|
|
102
|
+
variables: InferMutationVariables<TTarget> | undefined;
|
|
103
|
+
formData: FormData | null;
|
|
104
|
+
submit: FetcherSubmit<TTarget>;
|
|
105
|
+
submitAsync: FetcherSubmitAsync<TTarget>;
|
|
106
|
+
Form: ComponentType<FetcherFormProps>;
|
|
107
|
+
reset: () => void;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Run a typed server function or generated API operation without navigating.
|
|
111
|
+
*
|
|
112
|
+
* `fetcher.Form` progressively keeps a server function as the native form
|
|
113
|
+
* action, while hydration intercepts submissions into this fetcher lifecycle.
|
|
114
|
+
*/
|
|
115
|
+
declare function useFetcher<TTarget extends AnyMutationTarget>(target: TTarget, options?: UseFetcherOptions<TTarget>): UseFetcherReturn<TTarget>;
|
|
116
|
+
|
|
117
|
+
type StoreState = Record<string, any>;
|
|
118
|
+
type StoreValueUpdater<T> = T | ((previous: T) => T);
|
|
119
|
+
type StorePatch<T extends StoreState> = Partial<T> | ((state: T) => Partial<T>);
|
|
120
|
+
type StoreListener<T extends StoreState> = (state: T, previousState: T) => void;
|
|
121
|
+
type StoreKeyListener<T extends StoreState, K extends keyof T> = (value: T[K], previousValue: T[K]) => void;
|
|
122
|
+
type StoreKeysListener<T extends StoreState, K extends keyof T> = (value: Pick<T, K>, previousValue: Pick<T, K>) => void;
|
|
123
|
+
type FieldAccessor<T extends StoreState, K extends keyof T> = {
|
|
124
|
+
(): T[K];
|
|
125
|
+
get(): T[K];
|
|
126
|
+
set(value: StoreValueUpdater<T[K]>): T[K];
|
|
127
|
+
subscribe(listener: StoreKeyListener<T, K>): () => void;
|
|
128
|
+
};
|
|
129
|
+
type StoreFields<T extends StoreState> = {
|
|
130
|
+
[K in keyof T]: FieldAccessor<T, K>;
|
|
131
|
+
};
|
|
132
|
+
interface StoreApi<T extends StoreState> {
|
|
133
|
+
use(): T;
|
|
134
|
+
use<K extends keyof T>(key: K): T[K];
|
|
135
|
+
use<K extends keyof T>(keys: readonly K[]): Pick<T, K>;
|
|
136
|
+
get(): T;
|
|
137
|
+
get<K extends keyof T>(key: K): T[K];
|
|
138
|
+
set<K extends keyof T>(key: K, value: StoreValueUpdater<T[K]>): T[K];
|
|
139
|
+
set(patch: StorePatch<T>): T;
|
|
140
|
+
replace(nextState: T | ((state: T) => T)): T;
|
|
141
|
+
reset(): T;
|
|
142
|
+
subscribe(listener: StoreListener<T>): () => void;
|
|
143
|
+
subscribe<K extends keyof T>(key: K, listener: StoreKeyListener<T, K>): () => void;
|
|
144
|
+
subscribe<K extends keyof T>(keys: readonly K[], listener: StoreKeysListener<T, K>): () => void;
|
|
145
|
+
}
|
|
146
|
+
type Store<T extends StoreState, TMethods extends Record<string, any> = {}> = StoreApi<T> & StoreFields<T> & TMethods;
|
|
147
|
+
declare function createStore<T extends StoreState, TMethods extends Record<string, any> = {}>(initialState: T, extend?: (store: Store<T>) => TMethods): Store<T, TMethods>;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Farm.js SPA Router
|
|
151
|
+
*
|
|
152
|
+
* Provides client-side navigation without full page reloads.
|
|
153
|
+
* Features:
|
|
154
|
+
* - Prefetch on viewport intersection
|
|
155
|
+
* - Prefetch on hover
|
|
156
|
+
* - Page caching
|
|
157
|
+
* - History API integration
|
|
158
|
+
* - Scroll restoration
|
|
159
|
+
*/
|
|
160
|
+
interface PageData {
|
|
161
|
+
props: Record<string, any>;
|
|
162
|
+
modulePath: string;
|
|
163
|
+
canonicalPath?: string;
|
|
164
|
+
isClientComponent?: boolean;
|
|
165
|
+
shouldHydrate?: boolean;
|
|
166
|
+
metadata?: {
|
|
167
|
+
title?: string;
|
|
168
|
+
description?: string;
|
|
169
|
+
};
|
|
170
|
+
layoutModules?: string[];
|
|
171
|
+
routeSlots?: RouteSlotPageData[];
|
|
172
|
+
interception?: {
|
|
173
|
+
from?: string;
|
|
174
|
+
slots: string[];
|
|
175
|
+
};
|
|
176
|
+
i18n?: FarmI18nClientSnapshot;
|
|
177
|
+
}
|
|
178
|
+
interface RouteSlotPageData {
|
|
179
|
+
name: string;
|
|
180
|
+
ownerPattern: string;
|
|
181
|
+
containerId: string;
|
|
182
|
+
interception: boolean;
|
|
183
|
+
fallback: boolean;
|
|
184
|
+
modulePath: string;
|
|
185
|
+
isClientComponent: boolean;
|
|
186
|
+
shouldHydrate: boolean;
|
|
187
|
+
props: Record<string, any>;
|
|
188
|
+
}
|
|
189
|
+
interface RouterOptions {
|
|
190
|
+
prefetchTimeout?: number;
|
|
191
|
+
cacheMaxAge?: number;
|
|
192
|
+
scrollRestoration?: boolean;
|
|
193
|
+
shouldUseDocumentNavigation?: (pathname: string) => boolean;
|
|
194
|
+
deploymentId?: string;
|
|
195
|
+
}
|
|
196
|
+
interface FarmNavigationBlockerContext {
|
|
197
|
+
from: string;
|
|
198
|
+
to: string;
|
|
199
|
+
action: "push" | "replace" | "pop";
|
|
200
|
+
}
|
|
201
|
+
type FarmNavigationBlocker = (context: FarmNavigationBlockerContext) => boolean | void | Promise<boolean | void>;
|
|
202
|
+
type FarmViewTransitionMode = boolean | "auto";
|
|
203
|
+
interface FarmNavigateOptions {
|
|
204
|
+
replace?: boolean;
|
|
205
|
+
scroll?: boolean;
|
|
206
|
+
state?: unknown;
|
|
207
|
+
viewTransition?: FarmViewTransitionMode;
|
|
208
|
+
}
|
|
209
|
+
interface FarmNavigationLocation {
|
|
210
|
+
href: string;
|
|
211
|
+
pathname: string;
|
|
212
|
+
search: string;
|
|
213
|
+
hash: string;
|
|
214
|
+
}
|
|
215
|
+
interface FarmNavigationState {
|
|
216
|
+
state: "idle" | "loading";
|
|
217
|
+
pending: boolean;
|
|
218
|
+
from: string | null;
|
|
219
|
+
to: FarmNavigationLocation | null;
|
|
220
|
+
action: FarmNavigationBlockerContext["action"] | null;
|
|
221
|
+
startedAt: number | null;
|
|
222
|
+
}
|
|
223
|
+
type FarmNavigationListener = (state: FarmNavigationState) => void;
|
|
224
|
+
declare class SPARouter {
|
|
225
|
+
private cache;
|
|
226
|
+
private prefetchingUrls;
|
|
227
|
+
private observers;
|
|
228
|
+
private blockers;
|
|
229
|
+
private navigationListeners;
|
|
230
|
+
private navigationState;
|
|
231
|
+
private scrollElements;
|
|
232
|
+
private options;
|
|
233
|
+
private onNavigate?;
|
|
234
|
+
private clientPlugins?;
|
|
235
|
+
constructor(options?: RouterOptions);
|
|
236
|
+
/**
|
|
237
|
+
* Set the navigation handler that updates React
|
|
238
|
+
*/
|
|
239
|
+
setNavigationHandler(handler: (data: PageData) => Promise<void>): void;
|
|
240
|
+
/**
|
|
241
|
+
* Connect Farm's browser plugin lifecycle to SPA navigation.
|
|
242
|
+
*/
|
|
243
|
+
setClientPluginManager(manager: FarmClientPluginManager): void;
|
|
244
|
+
/**
|
|
245
|
+
* Navigate to a new URL
|
|
246
|
+
*/
|
|
247
|
+
navigate(href: string, options?: FarmNavigateOptions): Promise<void>;
|
|
248
|
+
/**
|
|
249
|
+
* Prefetch a URL
|
|
250
|
+
*/
|
|
251
|
+
prefetch(href: string): Promise<void>;
|
|
252
|
+
/**
|
|
253
|
+
* Observe an element for viewport intersection (prefetch when visible)
|
|
254
|
+
*/
|
|
255
|
+
observeForPrefetch(element: HTMLAnchorElement): void;
|
|
256
|
+
/**
|
|
257
|
+
* Stop observing an element
|
|
258
|
+
*/
|
|
259
|
+
unobserveForPrefetch(element: HTMLAnchorElement): void;
|
|
260
|
+
addBlocker(blocker: FarmNavigationBlocker): () => void;
|
|
261
|
+
getNavigationState(): FarmNavigationState;
|
|
262
|
+
subscribeNavigation(listener: FarmNavigationListener): () => void;
|
|
263
|
+
registerScrollElement(key: string, element: HTMLElement): () => void;
|
|
264
|
+
pushState(state: unknown, href?: string): void;
|
|
265
|
+
replaceState(state: unknown, href?: string): void;
|
|
266
|
+
private commitNavigation;
|
|
267
|
+
private runViewTransition;
|
|
268
|
+
/**
|
|
269
|
+
* Fetch page data from cache or server
|
|
270
|
+
*/
|
|
271
|
+
private fetchPageData;
|
|
272
|
+
/**
|
|
273
|
+
* Handle browser back/forward navigation
|
|
274
|
+
*/
|
|
275
|
+
private handlePopState;
|
|
276
|
+
/**
|
|
277
|
+
* Check if URL is cached
|
|
278
|
+
*/
|
|
279
|
+
private isCached;
|
|
280
|
+
/**
|
|
281
|
+
* Check if URL is external
|
|
282
|
+
*/
|
|
283
|
+
private isExternalUrl;
|
|
284
|
+
private shouldBlockNavigation;
|
|
285
|
+
private startNavigation;
|
|
286
|
+
private finishNavigation;
|
|
287
|
+
private setNavigationState;
|
|
288
|
+
private writePageState;
|
|
289
|
+
/**
|
|
290
|
+
* Save scroll position for a path
|
|
291
|
+
*/
|
|
292
|
+
private saveScrollPosition;
|
|
293
|
+
/**
|
|
294
|
+
* Restore scroll position for a path
|
|
295
|
+
*/
|
|
296
|
+
private restoreScrollPosition;
|
|
297
|
+
private restoreScrollElement;
|
|
298
|
+
/**
|
|
299
|
+
* Clear the page cache
|
|
300
|
+
*/
|
|
301
|
+
clearCache(): void;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Get or create the global router instance
|
|
305
|
+
*/
|
|
306
|
+
declare function getRouter(): SPARouter;
|
|
307
|
+
/**
|
|
308
|
+
* Navigate to a URL using the SPA router
|
|
309
|
+
*/
|
|
310
|
+
declare function navigateTo(href: string, options?: FarmNavigateOptions): Promise<void>;
|
|
311
|
+
/**
|
|
312
|
+
* Prefetch a URL
|
|
313
|
+
*/
|
|
314
|
+
declare function prefetch(href: string): Promise<void>;
|
|
315
|
+
declare function pushState(state: unknown, href?: string): void;
|
|
316
|
+
declare function replaceState(state: unknown, href?: string): void;
|
|
317
|
+
declare function readPageState<TState = unknown>(): TState | null;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Prefetch strategy (TanStack Router–style):
|
|
321
|
+
* - "intent": prefetch on hover and touchstart (with prefetchDelay)
|
|
322
|
+
* - "viewport": prefetch when link enters viewport (IntersectionObserver)
|
|
323
|
+
* - "render": prefetch as soon as the link is mounted
|
|
324
|
+
* - "none" | false: no prefetch
|
|
325
|
+
*/
|
|
326
|
+
type PrefetchBehavior = false | "intent" | "viewport" | "render" | "none";
|
|
327
|
+
/** @internal Legacy prefetch mode for backward compatibility */
|
|
328
|
+
type PrefetchLegacy = boolean | "hover" | "viewport" | "none";
|
|
329
|
+
/**
|
|
330
|
+
* Augment this interface via the generated farm.d.ts so Link href is typed
|
|
331
|
+
* without passing a generic. Defaults to string when not augmented.
|
|
332
|
+
*/
|
|
333
|
+
interface LinkDefaultRoute {
|
|
334
|
+
}
|
|
335
|
+
type DefaultRoutePath = LinkDefaultRoute extends {
|
|
336
|
+
_: infer TRoute extends string;
|
|
337
|
+
} ? TRoute : string;
|
|
338
|
+
type DefaultRoutePattern = LinkDefaultRoute extends {
|
|
339
|
+
pattern: infer TRoute extends string;
|
|
340
|
+
} ? TRoute : DefaultRoutePath;
|
|
341
|
+
type DefaultRouteHref = DefaultRoutePath | DefaultRoutePattern;
|
|
342
|
+
type RouteHref<TRoute extends string> = TRoute | `${TRoute}?${string}` | `${TRoute}#${string}` | `${TRoute}?${string}#${string}`;
|
|
343
|
+
type RouteParamValue = Exclude<FarmRouterPathParam, null | undefined>;
|
|
344
|
+
type RouteOptionalParamValue = FarmRouterPathParam;
|
|
345
|
+
type RouteParams<TRoute extends string> = string extends TRoute ? FarmRouterPathParams : ExtractRouteParams<StripRouteSuffix<TRoute>>;
|
|
346
|
+
/** External URLs; these are never type-checked as routes. */
|
|
347
|
+
type ExternalHref = `http://${string}` | `https://${string}` | `//${string}` | `mailto:${string}`;
|
|
348
|
+
type StripRouteSuffix<TRoute extends string> = TRoute extends `${infer Path}?${string}` ? StripRouteSuffix<Path> : TRoute extends `${infer Path}#${string}` ? StripRouteSuffix<Path> : TRoute;
|
|
349
|
+
type ExtractRouteParams<TRoute extends string> = Simplify<ExtractOptionalCatchAllParams<TRoute> & ExtractCatchAllParams<TRoute> & ExtractDynamicParams<TRoute>>;
|
|
350
|
+
type ExtractOptionalCatchAllParams<TRoute extends string> = TRoute extends `${string}[[...${infer Param}]]${infer Rest}` ? {
|
|
351
|
+
[Key in Param]?: RouteOptionalParamValue;
|
|
352
|
+
} & ExtractOptionalCatchAllParams<Rest> : {};
|
|
353
|
+
type ExtractCatchAllParams<TRoute extends string> = TRoute extends `${string}[...${infer Param}]${infer Rest}` ? Param extends `[...${string}` ? ExtractCatchAllParams<Rest> : {
|
|
354
|
+
[Key in Param]: RouteParamValue;
|
|
355
|
+
} & ExtractCatchAllParams<Rest> : {};
|
|
356
|
+
type ExtractDynamicParams<TRoute extends string> = TRoute extends `${string}[${infer Param}]${infer Rest}` ? Param extends `...${string}` | `[...${string}` ? ExtractDynamicParams<Rest> : {
|
|
357
|
+
[Key in Param]: RouteParamValue;
|
|
358
|
+
} & ExtractDynamicParams<Rest> : {};
|
|
359
|
+
type Simplify<T> = {
|
|
360
|
+
[Key in keyof T]: T[Key];
|
|
361
|
+
} & {};
|
|
362
|
+
type HasRouteParams<TRoute extends string> = keyof RouteParams<TRoute> extends never ? false : true;
|
|
363
|
+
type RoutesWithRequiredParams<TRoute extends string> = TRoute extends string ? HasRouteParams<TRoute> extends true ? TRoute : never : never;
|
|
364
|
+
type LinkRouteParamsProps<TRoute extends string> = string extends TRoute ? {
|
|
365
|
+
params?: FarmRouterPathParams;
|
|
366
|
+
} : HasRouteParams<TRoute> extends true ? {
|
|
367
|
+
params: RouteParams<TRoute>;
|
|
368
|
+
} : {
|
|
369
|
+
params?: FarmRouterPathParams;
|
|
370
|
+
};
|
|
371
|
+
type LinkRouteTargetProps<TRoute extends string> = [RoutesWithRequiredParams<TRoute>] extends [
|
|
372
|
+
never
|
|
373
|
+
] ? {
|
|
374
|
+
/** Internal route path with all params already resolved. */
|
|
375
|
+
href: RouteHref<TRoute>;
|
|
376
|
+
params?: FarmRouterPathParams;
|
|
377
|
+
} : TRoute extends string ? {
|
|
378
|
+
/** Internal route path or route pattern. */
|
|
379
|
+
href: RouteHref<TRoute>;
|
|
380
|
+
} & LinkRouteParamsProps<TRoute> : never;
|
|
381
|
+
type LinkExternalTargetProps = {
|
|
382
|
+
/** External URL; these are never type-checked as app routes. */
|
|
383
|
+
href: ExternalHref;
|
|
384
|
+
params?: never;
|
|
385
|
+
};
|
|
386
|
+
type LinkTargetProps<TRoute extends string> = LinkExternalTargetProps | LinkRouteTargetProps<TRoute>;
|
|
387
|
+
type LinkProps<TRoute extends string = DefaultRouteHref> = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & LinkTargetProps<TRoute> & {
|
|
388
|
+
/**
|
|
389
|
+
* When to prefetch. TanStack-style: "intent" (hover+touch), "viewport", "render", or "none".
|
|
390
|
+
* Legacy: true (intent+viewport), "hover" (intent), "viewport", false/"none".
|
|
391
|
+
*/
|
|
392
|
+
prefetch?: PrefetchBehavior | PrefetchLegacy;
|
|
393
|
+
/** Search params appended after route params are resolved. */
|
|
394
|
+
query?: FarmRouterBuildOptions["query"];
|
|
395
|
+
/** Hash appended after route params and search params are resolved. */
|
|
396
|
+
hash?: string;
|
|
397
|
+
/** Add a trailing slash to the generated internal href. */
|
|
398
|
+
trailingSlash?: boolean;
|
|
399
|
+
/** Delay in ms before intent-based prefetch (hover/touch). Default 50. */
|
|
400
|
+
prefetchDelay?: number;
|
|
401
|
+
/** Replace current history entry instead of pushing */
|
|
402
|
+
replace?: boolean;
|
|
403
|
+
/** Scroll to top after navigation (default: true) */
|
|
404
|
+
scroll?: boolean;
|
|
405
|
+
/** Wrap this SPA navigation in a browser View Transition when supported. */
|
|
406
|
+
viewTransition?: FarmViewTransitionMode;
|
|
407
|
+
/** Preserve the active locale by default, or navigate using this locale. */
|
|
408
|
+
locale?: FarmI18nLocale;
|
|
409
|
+
};
|
|
410
|
+
type LinkComponentType = <TRoute extends string = DefaultRouteHref>(props: LinkProps<TRoute> & {
|
|
411
|
+
ref?: React__default.ForwardedRef<HTMLAnchorElement>;
|
|
412
|
+
}) => React__default.ReactElement;
|
|
413
|
+
declare const Link: LinkComponentType;
|
|
414
|
+
|
|
415
|
+
interface UseRouterOptions {
|
|
416
|
+
basePath?: string;
|
|
417
|
+
routes?: FarmRouterRouteInput[];
|
|
418
|
+
}
|
|
419
|
+
interface UseBlockerOptions {
|
|
420
|
+
when: boolean | ((context: FarmNavigationBlockerContext) => boolean);
|
|
421
|
+
message?: string;
|
|
422
|
+
shouldBlock?: (context: FarmNavigationBlockerContext) => boolean | Promise<boolean>;
|
|
423
|
+
}
|
|
424
|
+
interface UseBlockerReturn {
|
|
425
|
+
active: boolean;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Hook for accessing router state and navigation
|
|
429
|
+
*/
|
|
430
|
+
declare function useRouter(options?: UseRouterOptions): {
|
|
431
|
+
push: (href: string) => void;
|
|
432
|
+
replace: (href: string) => void;
|
|
433
|
+
pushState: <TState>(pageState: TState, href?: string) => void;
|
|
434
|
+
replaceState: <TState>(pageState: TState, href?: string) => void;
|
|
435
|
+
back: () => void;
|
|
436
|
+
forward: () => void;
|
|
437
|
+
pathname: string;
|
|
438
|
+
searchParams: URLSearchParams;
|
|
439
|
+
params: Record<string, string>;
|
|
440
|
+
pageState: unknown;
|
|
441
|
+
};
|
|
442
|
+
declare function usePageState<TState = unknown>(): TState | null;
|
|
443
|
+
declare function useNavigation(): FarmNavigationState;
|
|
444
|
+
declare function useBlocker(options: UseBlockerOptions): UseBlockerReturn;
|
|
445
|
+
declare function useScrollRestoration<TElement extends HTMLElement = HTMLElement>(key: string): RefObject<TElement | null>;
|
|
446
|
+
|
|
447
|
+
export { type AnyMutationTarget, type DefaultRouteHref, type DefaultRoutePath, type DefaultRoutePattern, type ExternalHref, FarmClientPluginManager, type FarmNavigateOptions, type FarmNavigationBlocker, type FarmNavigationBlockerContext, type FarmNavigationListener, type FarmNavigationLocation, type FarmNavigationState, type FarmViewTransitionMode, type FetcherFormDataContext, type FetcherFormProps, type FetcherState, type FetcherSubmit, type FetcherSubmitAsync, type InferMutationData, type InferMutationError, type InferMutationVariables, Link, type LinkDefaultRoute, type LinkProps, type MutationAsync, type MutationOptimisticContext, type MutationStatus, type MutationTrigger, type PrefetchBehavior, type RouteHref, type RouteOptionalParamValue, type RouteParamValue, type RouteParams, SPARouter, type Store, type StoreApi, type StoreFields, type StoreKeyListener, type StoreKeysListener, type StoreListener, type StorePatch, type StoreState, type StoreValueUpdater, type UseBlockerOptions, type UseBlockerReturn, type UseFetcherOptions, type UseFetcherReturn, type UseMutationOptions, type UseMutationReturn, type UseRouterOptions, createStore, getRouter, navigateTo, prefetch, pushState, readPageState, replaceState, useBlocker, useFetcher, useMutation, useNavigation, usePageState, useRouter, useScrollRestoration };
|
package/dist/client.mjs
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Link,
|
|
3
|
+
createStore,
|
|
4
|
+
useFetcher,
|
|
5
|
+
useMutation
|
|
6
|
+
} from "./chunk-WDU6QXNK.mjs";
|
|
7
|
+
import {
|
|
8
|
+
installChunkErrorRecovery,
|
|
9
|
+
isChunkLoadError
|
|
10
|
+
} from "./chunk-ZZ57EH5Z.mjs";
|
|
11
|
+
import {
|
|
12
|
+
fetchServerQuery,
|
|
13
|
+
prefetchServerQuery,
|
|
14
|
+
useServerQuery
|
|
15
|
+
} from "./chunk-J5YWQVI5.mjs";
|
|
16
|
+
import {
|
|
17
|
+
APIClientError,
|
|
18
|
+
IntegrationClientError,
|
|
19
|
+
createAPIClient,
|
|
20
|
+
createIntegrationApi,
|
|
21
|
+
createIntegrationClient,
|
|
22
|
+
createIntegrationClients,
|
|
23
|
+
createIntegrationServerClient,
|
|
24
|
+
createIntegrations,
|
|
25
|
+
createServerAPIClient,
|
|
26
|
+
getIntegrationAPIManifest,
|
|
27
|
+
integrationClients,
|
|
28
|
+
integrationsClient,
|
|
29
|
+
integrationsServer
|
|
30
|
+
} from "./chunk-W2CRQFF6.mjs";
|
|
31
|
+
import "./chunk-TQAEEJB4.mjs";
|
|
32
|
+
import "./chunk-SCFX4UTD.mjs";
|
|
33
|
+
import {
|
|
34
|
+
SPARouter,
|
|
35
|
+
getRouter,
|
|
36
|
+
navigateTo,
|
|
37
|
+
prefetch,
|
|
38
|
+
pushState,
|
|
39
|
+
readPageState,
|
|
40
|
+
replaceState,
|
|
41
|
+
useBlocker,
|
|
42
|
+
useNavigation,
|
|
43
|
+
usePageState,
|
|
44
|
+
useRouter,
|
|
45
|
+
useScrollRestoration
|
|
46
|
+
} from "./chunk-QTZZ2ISQ.mjs";
|
|
47
|
+
import "./chunk-ITN462YM.mjs";
|
|
48
|
+
import "./chunk-B232I2GP.mjs";
|
|
49
|
+
import {
|
|
50
|
+
api,
|
|
51
|
+
defineIntegrationAPI,
|
|
52
|
+
defineIntegrationAPIOperation,
|
|
53
|
+
endpoint
|
|
54
|
+
} from "./chunk-JK25YEN6.mjs";
|
|
55
|
+
import "./chunk-GS6K5OCM.mjs";
|
|
56
|
+
import "./chunk-44ZCFSKE.mjs";
|
|
57
|
+
import "./chunk-ALCLXXTY.mjs";
|
|
58
|
+
import "./chunk-V3XURYJO.mjs";
|
|
59
|
+
import "./chunk-WZ5QFROO.mjs";
|
|
60
|
+
import "./chunk-RBRLLZL5.mjs";
|
|
61
|
+
import "./chunk-7ZY5AIJO.mjs";
|
|
62
|
+
import "./chunk-ZBE6MLHL.mjs";
|
|
63
|
+
import {
|
|
64
|
+
FarmClientPluginManager,
|
|
65
|
+
createClientPluginManager
|
|
66
|
+
} from "./chunk-NNLCAVB6.mjs";
|
|
67
|
+
import "./chunk-CGILA3WO.mjs";
|
|
68
|
+
export {
|
|
69
|
+
APIClientError,
|
|
70
|
+
FarmClientPluginManager,
|
|
71
|
+
IntegrationClientError,
|
|
72
|
+
Link,
|
|
73
|
+
SPARouter,
|
|
74
|
+
api,
|
|
75
|
+
createAPIClient,
|
|
76
|
+
createClientPluginManager,
|
|
77
|
+
createIntegrationApi,
|
|
78
|
+
createIntegrationClient,
|
|
79
|
+
createIntegrationClients,
|
|
80
|
+
createIntegrationServerClient,
|
|
81
|
+
createIntegrations,
|
|
82
|
+
createServerAPIClient,
|
|
83
|
+
createStore,
|
|
84
|
+
defineIntegrationAPI,
|
|
85
|
+
defineIntegrationAPIOperation,
|
|
86
|
+
endpoint,
|
|
87
|
+
fetchServerQuery,
|
|
88
|
+
getIntegrationAPIManifest,
|
|
89
|
+
getRouter,
|
|
90
|
+
installChunkErrorRecovery,
|
|
91
|
+
integrationClients,
|
|
92
|
+
integrationsClient,
|
|
93
|
+
integrationsServer,
|
|
94
|
+
isChunkLoadError,
|
|
95
|
+
navigateTo,
|
|
96
|
+
prefetch,
|
|
97
|
+
prefetchServerQuery,
|
|
98
|
+
pushState,
|
|
99
|
+
readPageState,
|
|
100
|
+
replaceState,
|
|
101
|
+
useBlocker,
|
|
102
|
+
useFetcher,
|
|
103
|
+
useMutation,
|
|
104
|
+
useNavigation,
|
|
105
|
+
usePageState,
|
|
106
|
+
useRouter,
|
|
107
|
+
useScrollRestoration,
|
|
108
|
+
useServerQuery
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=client.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/config.cjs
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/config-entry.ts
|
|
22
|
+
var config_entry_exports = {};
|
|
23
|
+
__export(config_entry_exports, {
|
|
24
|
+
defineConfig: () => defineConfig,
|
|
25
|
+
defineFarmConfig: () => defineFarmConfig
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(config_entry_exports);
|
|
28
|
+
function defineConfig(config) {
|
|
29
|
+
return config;
|
|
30
|
+
}
|
|
31
|
+
__name(defineConfig, "defineConfig");
|
|
32
|
+
var defineFarmConfig = defineConfig;
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
defineConfig,
|
|
36
|
+
defineFarmConfig
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=config.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config-entry.ts"],"sourcesContent":["import type { FarmUserConfig } from \"./config\";\n\n/** Define a Farm application config while preserving literal types. */\nexport function defineConfig<const TConfig extends FarmUserConfig>(config: TConfig): TConfig {\n return config;\n}\n\n/** @deprecated Use {@link defineConfig}. */\nexport const defineFarmConfig = defineConfig;\n\nexport type { FarmUserConfig };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,SAAS,aAAmD,QAA0B;AAC3F,SAAO;AACT;AAFgB;AAKT,IAAM,mBAAmB;","names":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { T as FarmUserConfig } from './client-plugins-BI2R6Eae.mjs';
|
|
2
|
+
import './plugin-BJDf43dc.mjs';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'http';
|
|
5
|
+
import './types-D1A6-XvH.mjs';
|
|
6
|
+
import 'db0';
|
|
7
|
+
import 'unstorage';
|
|
8
|
+
import './integration-api-CHT2OKAf.mjs';
|
|
9
|
+
import '@farming-labs/orm';
|
|
10
|
+
import './types-C9N-nk5R.mjs';
|
|
11
|
+
import '@farming-labs/docs';
|
|
12
|
+
import './markdown.mjs';
|
|
13
|
+
import './observability.mjs';
|
|
14
|
+
import 'vite';
|
|
15
|
+
import './workflows.mjs';
|
|
16
|
+
import './cron.mjs';
|
|
17
|
+
import './env.mjs';
|
|
18
|
+
import './server-action-security.mjs';
|
|
19
|
+
import './image-config-Duob7wER.mjs';
|
|
20
|
+
import './types-BMxWr97v.mjs';
|
|
21
|
+
import './cache.mjs';
|
|
22
|
+
import './route-runtime-DoOHzCAD.mjs';
|
|
23
|
+
|
|
24
|
+
/** Define a Farm application config while preserving literal types. */
|
|
25
|
+
declare function defineConfig<const TConfig extends FarmUserConfig>(config: TConfig): TConfig;
|
|
26
|
+
/** @deprecated Use {@link defineConfig}. */
|
|
27
|
+
declare const defineFarmConfig: typeof defineConfig;
|
|
28
|
+
|
|
29
|
+
export { FarmUserConfig, defineConfig, defineFarmConfig };
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { T as FarmUserConfig } from './client-plugins-DU9oMspX.js';
|
|
2
|
+
import './plugin-BJDf43dc.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'http';
|
|
5
|
+
import './types-D1A6-XvH.js';
|
|
6
|
+
import 'db0';
|
|
7
|
+
import 'unstorage';
|
|
8
|
+
import './integration-api-CHT2OKAf.js';
|
|
9
|
+
import '@farming-labs/orm';
|
|
10
|
+
import './types-C9N-nk5R.js';
|
|
11
|
+
import '@farming-labs/docs';
|
|
12
|
+
import './markdown.js';
|
|
13
|
+
import './observability.js';
|
|
14
|
+
import 'vite';
|
|
15
|
+
import './workflows.js';
|
|
16
|
+
import './cron.js';
|
|
17
|
+
import './env.js';
|
|
18
|
+
import './server-action-security.js';
|
|
19
|
+
import './image-config-Duob7wER.js';
|
|
20
|
+
import './types-BMxWr97v.js';
|
|
21
|
+
import './cache.js';
|
|
22
|
+
import './route-runtime-DoOHzCAD.js';
|
|
23
|
+
|
|
24
|
+
/** Define a Farm application config while preserving literal types. */
|
|
25
|
+
declare function defineConfig<const TConfig extends FarmUserConfig>(config: TConfig): TConfig;
|
|
26
|
+
/** @deprecated Use {@link defineConfig}. */
|
|
27
|
+
declare const defineFarmConfig: typeof defineConfig;
|
|
28
|
+
|
|
29
|
+
export { FarmUserConfig, defineConfig, defineFarmConfig };
|
package/dist/config.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|