@farm.js/core 0.1.35 → 0.1.37
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/{metadata-BnLDsUOS.d.ts → agent-mcp-BC0bAGVF.d.mts} +45 -2
- package/dist/agent-mcp-handler-LPJ2CADR.mjs +19 -0
- package/dist/agent-mcp-handler-SJAHFSPI.cjs +19 -0
- package/dist/{metadata-WGpBYcGn.d.mts → agent-mcp-jyDHbQKe.d.ts} +45 -2
- package/dist/agent-runtime.cjs +6 -4
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/agent-runtime.mjs +5 -3
- package/dist/api/client.cjs +3 -3
- package/dist/api/client.mjs +2 -2
- package/dist/api/route-manager.cjs +9 -9
- package/dist/api/route-manager.d.mts +10 -4
- package/dist/api/route-manager.d.ts +10 -4
- package/dist/api/route-manager.mjs +8 -8
- package/dist/api/runtime.cjs +6 -6
- package/dist/api/runtime.d.mts +4 -62
- package/dist/api/runtime.d.ts +4 -62
- package/dist/api/runtime.mjs +5 -5
- package/dist/api.cjs +13 -12
- package/dist/api.d.mts +3 -3
- package/dist/api.d.ts +3 -3
- package/dist/api.mjs +12 -11
- package/dist/{app-BXB3JZYc.d.ts → app-CKO3iN1c.d.ts} +17 -3
- package/dist/{app-D_j9AAVL.d.mts → app-Cbkj9ufe.d.mts} +17 -3
- package/dist/app-markdown.cjs +6 -4
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/app-markdown.mjs +5 -3
- package/dist/{chunk-F7JZENPF.cjs → chunk-3A4KGQYI.cjs} +38 -30
- package/dist/{chunk-4MMGO7YW.cjs → chunk-3IP27TCG.cjs} +43 -32
- package/dist/{chunk-FDR64H6B.mjs → chunk-3KGDJLJK.mjs} +41 -2
- package/dist/{chunk-UJD4PHYB.mjs → chunk-4E5WBPEG.mjs} +72 -354
- package/dist/{chunk-KXWRO25S.cjs → chunk-4GPOC4LN.cjs} +3 -3
- package/dist/{chunk-Z2HLU4IX.cjs → chunk-4GWRFP22.cjs} +23 -2
- package/dist/{chunk-4KU5Q7C2.mjs → chunk-4P6ULFMD.mjs} +253 -67
- package/dist/chunk-4WQ6PGSJ.cjs +367 -0
- package/dist/{chunk-SMHH4VDG.mjs → chunk-4WVJLURN.mjs} +1 -1
- package/dist/{chunk-2F2ER724.cjs → chunk-5BXGGEC7.cjs} +27 -22
- package/dist/{chunk-3BHT4WMP.cjs → chunk-5D2JIPLH.cjs} +8 -8
- package/dist/{chunk-AHGECQEW.mjs → chunk-666CKENS.mjs} +1 -1
- package/dist/{chunk-GFHLGIYC.cjs → chunk-6LGFV2CQ.cjs} +8 -8
- package/dist/chunk-6SJ2KJTA.mjs +314 -0
- package/dist/{chunk-PFQKNERH.cjs → chunk-6TJITR2B.cjs} +457 -218
- package/dist/{chunk-73MC7ZL6.cjs → chunk-75X755YZ.cjs} +2 -2
- package/dist/{chunk-3UH7MRCP.cjs → chunk-7DWNJI73.cjs} +13 -13
- package/dist/{chunk-7L5V3KQO.cjs → chunk-7O5M4UKW.cjs} +2 -2
- package/dist/{chunk-BJPBQNIE.cjs → chunk-7SQ5SGYZ.cjs} +2 -2
- package/dist/{chunk-27ZWSI3W.cjs → chunk-ADOAUDQ6.cjs} +2 -2
- package/dist/{chunk-CP6X4AEU.mjs → chunk-AJQTP4OO.mjs} +1 -1
- package/dist/{chunk-YKX5BK66.cjs → chunk-ATWHHSY2.cjs} +7 -7
- package/dist/{chunk-EFCQPQMG.cjs → chunk-B5PFZLKV.cjs} +89 -8
- package/dist/{chunk-FNO7A7CM.cjs → chunk-BHY547NB.cjs} +34 -16
- package/dist/{chunk-JHWOVJ3M.mjs → chunk-BUGNQIHC.mjs} +5 -0
- package/dist/{chunk-7GLPRTTF.cjs → chunk-CGBDNNSM.cjs} +2 -2
- package/dist/chunk-CI6E3UOH.cjs +314 -0
- package/dist/{chunk-2G2NNLE2.mjs → chunk-CQMVIOYP.mjs} +5 -5
- package/dist/{chunk-X6W5FFH6.cjs → chunk-CVH2BXPY.cjs} +8 -8
- package/dist/{chunk-TKSCR644.cjs → chunk-D3C5LBQY.cjs} +2 -2
- package/dist/{chunk-PZNL3WEG.mjs → chunk-DMEPTZTI.mjs} +22 -11
- package/dist/chunk-DTSROJ5J.mjs +367 -0
- package/dist/{chunk-DBNKI4NF.cjs → chunk-ECKF2BAM.cjs} +6 -2
- package/dist/{chunk-GQ3Z3IZI.cjs → chunk-EMMQ64QW.cjs} +18 -18
- package/dist/{chunk-6DU6UFUE.mjs → chunk-EXG5LD6B.mjs} +16 -8
- package/dist/{chunk-HUMR6LSU.mjs → chunk-F5QO4FNE.mjs} +1 -1
- package/dist/{chunk-YULD7ICZ.mjs → chunk-FBOJ55OM.mjs} +1 -1
- package/dist/{chunk-IHNMMXHV.mjs → chunk-FGRYBX5X.mjs} +15 -10
- package/dist/{chunk-D227TIEN.cjs → chunk-FWE7LEQC.cjs} +13 -13
- package/dist/{chunk-3BU22U3M.cjs → chunk-G2TEB74S.cjs} +5 -2
- package/dist/{chunk-G5RT7EXW.mjs → chunk-HEVMCTSR.mjs} +21 -6
- package/dist/{chunk-W7LF2J2S.mjs → chunk-HMRSWN47.mjs} +1 -1
- package/dist/{chunk-JG6DJF5A.mjs → chunk-HZFM2LWQ.mjs} +22 -1
- package/dist/{chunk-UAORZ7QA.mjs → chunk-IAIYV4RZ.mjs} +2 -2
- package/dist/{chunk-F2SE2VDO.mjs → chunk-IHQIOZLC.mjs} +1 -1
- package/dist/{chunk-2NNMOPDN.mjs → chunk-J3ANCZKA.mjs} +4 -1
- package/dist/{chunk-C4SPBWFM.cjs → chunk-JEZO6VUR.cjs} +10 -1
- package/dist/{chunk-SC2WYWPF.mjs → chunk-JPNFPAZ4.mjs} +3 -3
- package/dist/{chunk-F6Z3Y5KL.mjs → chunk-K3SAEIM3.mjs} +5 -2
- package/dist/{chunk-QAU5JD57.mjs → chunk-K4I4O5TS.mjs} +289 -50
- package/dist/{chunk-KN7K4VQN.mjs → chunk-KDTBF3UU.mjs} +1 -1
- package/dist/{chunk-OMVAU7NT.cjs → chunk-KIIMAWOJ.cjs} +11 -1
- package/dist/{chunk-43FMW62B.mjs → chunk-KMTGADN3.mjs} +28 -0
- package/dist/{chunk-QORUJDIV.mjs → chunk-KPFKMDM7.mjs} +2 -2
- package/dist/{chunk-YSCV4SJF.cjs → chunk-L5H2GSUC.cjs} +4 -4
- package/dist/{chunk-YDQZGSDS.mjs → chunk-LBDP3YT3.mjs} +1 -1
- package/dist/{chunk-6ETPZTJI.mjs → chunk-LBGILORX.mjs} +116 -55
- package/dist/{chunk-IPXLADVO.cjs → chunk-LOFKRKO7.cjs} +122 -61
- package/dist/{chunk-ULAWS2PA.cjs → chunk-LPFV45AY.cjs} +29 -26
- package/dist/{chunk-3KZS4SUS.mjs → chunk-MCIZVNOQ.mjs} +1 -1
- package/dist/{chunk-RU3M2FIK.cjs → chunk-MRMI32SN.cjs} +87 -369
- package/dist/{chunk-XCMCS4DA.mjs → chunk-ND2CWPOD.mjs} +2 -2
- package/dist/{chunk-XCACDAZZ.cjs → chunk-NDILNQ4L.cjs} +25 -10
- package/dist/{chunk-6TJOML4E.mjs → chunk-NFMDCAOS.mjs} +14 -11
- package/dist/{chunk-UXFQ3UDA.cjs → chunk-NICDYKBS.cjs} +42 -3
- package/dist/{chunk-EZDQRNQ7.mjs → chunk-NNSAQX3U.mjs} +23 -5
- package/dist/{chunk-YC6V7PWE.cjs → chunk-NQ6QFZWD.cjs} +1 -1
- package/dist/{chunk-PDOCJ6RY.mjs → chunk-O6WAEAX3.mjs} +1 -1
- package/dist/{chunk-U4KT7QP3.cjs → chunk-OW67PDDS.cjs} +14 -1
- package/dist/{chunk-77GNHH2Z.cjs → chunk-PMQHMWZU.cjs} +3 -3
- package/dist/chunk-PTZ2TVNE.cjs +178 -0
- package/dist/{chunk-6WCPV6G2.mjs → chunk-Q2KB32T4.mjs} +1 -1
- package/dist/{chunk-ICUQICNC.cjs → chunk-Q5FYSK45.cjs} +718 -532
- package/dist/{chunk-5SJWVY6R.mjs → chunk-QHSH7IH4.mjs} +9 -0
- package/dist/{chunk-Q3VLETLE.mjs → chunk-RRMVL6CJ.mjs} +4 -4
- package/dist/{chunk-IZY3V5XW.mjs → chunk-S3VWVTVA.mjs} +14 -1
- package/dist/{chunk-FFFW3OQ7.cjs → chunk-S6FJO323.cjs} +2 -2
- package/dist/{chunk-VFQT3LAO.cjs → chunk-SDOTRX3V.cjs} +5 -5
- package/dist/chunk-SGBZPZUW.mjs +75 -0
- package/dist/{chunk-BMWDEBXO.cjs → chunk-SHLXACIO.cjs} +31 -3
- package/dist/{chunk-ZXGAFZDO.cjs → chunk-T5OJPTVN.cjs} +2 -2
- package/dist/{chunk-2ELDTQRN.mjs → chunk-TDNWPAVR.mjs} +1 -1
- package/dist/{chunk-VZJR7UTG.cjs → chunk-TE2G5ION.cjs} +2 -2
- package/dist/{chunk-IHNIDL6H.cjs → chunk-TO4GJ56K.cjs} +22 -11
- package/dist/{chunk-4JHOT46A.mjs → chunk-TPLJVC7E.mjs} +86 -5
- package/dist/{chunk-NRSN7G7E.mjs → chunk-TW4GYDBJ.mjs} +1 -1
- package/dist/{chunk-XBML5KMG.cjs → chunk-U6MPZ35Q.cjs} +24 -14
- package/dist/chunk-UH6QN5NL.mjs +178 -0
- package/dist/{chunk-FTFYRMQQ.cjs → chunk-UJZLSXUB.cjs} +53 -28
- package/dist/chunk-UXHS27O6.cjs +75 -0
- package/dist/{chunk-DQQOKWYA.cjs → chunk-VR4GD5I3.cjs} +3 -3
- package/dist/{chunk-22LTEMGQ.mjs → chunk-VXAWRDK7.mjs} +14 -4
- package/dist/{chunk-62XKI4Z3.cjs → chunk-W2YDNK66.cjs} +6 -3
- package/dist/{chunk-VPTDD5XF.cjs → chunk-WBKEZXWE.cjs} +5 -0
- package/dist/{chunk-EJQT6KZN.cjs → chunk-WC5UV2HQ.cjs} +2 -2
- package/dist/{chunk-SAZVVAJH.mjs → chunk-WQ7T2263.mjs} +18 -7
- package/dist/chunk-WRPHYQVY.mjs +109 -0
- package/dist/chunk-WT4TGLXT.cjs +109 -0
- package/dist/{chunk-SOMHP6GF.mjs → chunk-XOPOIFTJ.mjs} +2 -2
- package/dist/{chunk-3PXS2MHU.mjs → chunk-YCKO6FRS.mjs} +1 -1
- package/dist/{chunk-C35ZBVRD.mjs → chunk-YWMZUGIS.mjs} +6 -2
- package/dist/{chunk-HMIJDL7S.mjs → chunk-Z5BEWYVO.mjs} +31 -6
- package/dist/{chunk-OKZUAXHF.mjs → chunk-Z7LA7MHQ.mjs} +1 -1
- package/dist/{chunk-Y7RKTKYI.mjs → chunk-ZMMBIVQM.mjs} +10 -0
- package/dist/{client-plugins-HIyulDym.d.ts → client-plugins-C8DjftDF.d.ts} +112 -5
- package/dist/{client-plugins-CvIslxWi.d.mts → client-plugins-CV4eJ9De.d.mts} +112 -5
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.cjs +8 -8
- package/dist/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +7 -7
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{devtools-EAUY43BS.cjs → devtools-JXFQNWSH.cjs} +11 -10
- package/dist/{devtools-EE5RIBTH.mjs → devtools-KVOY2TCZ.mjs} +10 -9
- package/dist/docs.cjs +13 -12
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +12 -11
- package/dist/headers.cjs +4 -4
- package/dist/headers.mjs +3 -3
- package/dist/i18n/client.cjs +11 -11
- package/dist/i18n/client.mjs +3 -3
- 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.cjs +61 -54
- package/dist/index.d.mts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.mjs +60 -53
- package/dist/integrations.cjs +8 -4
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/integrations.mjs +7 -3
- package/dist/internal/app-markdown-runtime.cjs +5 -3
- package/dist/internal/app-markdown-runtime.d.mts +19 -5
- package/dist/internal/app-markdown-runtime.d.ts +19 -5
- package/dist/internal/app-markdown-runtime.mjs +4 -2
- package/dist/internal/build-runtime.cjs +38 -34
- package/dist/internal/build-runtime.d.mts +3 -3
- package/dist/internal/build-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.mjs +37 -33
- package/dist/internal/cli-runtime.cjs +17 -16
- 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 +2 -2
- package/dist/internal/client-runtime.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +11 -10
- package/dist/internal/config-runtime.d.mts +2 -2
- package/dist/internal/config-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.mjs +10 -9
- package/dist/internal/infra-analytics-runtime.cjs +5 -5
- package/dist/internal/infra-analytics-runtime.mjs +3 -3
- package/dist/internal/isolated-boundary.cjs +2 -2
- package/dist/internal/isolated-boundary.d.mts +0 -1
- package/dist/internal/isolated-boundary.d.ts +0 -1
- package/dist/internal/isolated-boundary.mjs +1 -1
- 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 +27 -48
- package/dist/internal/production-runtime.d.mts +67 -27
- package/dist/internal/production-runtime.d.ts +67 -27
- package/dist/internal/production-runtime.mjs +34 -55
- package/dist/{layers-BRQF5ETU.mjs → layers-UTB43B7A.mjs} +1 -1
- package/dist/layers-VUWIOFEO.cjs +18 -0
- package/dist/markdown.cjs +1 -1
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/middleware.cjs +10 -10
- package/dist/middleware.d.mts +6 -4
- package/dist/middleware.d.ts +6 -4
- package/dist/middleware.mjs +9 -9
- package/dist/navigation.cjs +7 -7
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/navigation.mjs +6 -6
- package/dist/{nitro-OVPLKPE2.cjs → nitro-7F65EZZS.cjs} +3 -3
- package/dist/{nitro-MXRDCXWZ.mjs → nitro-MPZJGPXK.mjs} +2 -2
- package/dist/plugin.cjs +31 -28
- package/dist/plugin.d.mts +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.mjs +30 -27
- package/dist/{production-runtime-Crq6CJ-2.d.ts → production-runtime-C2kkrPVZ.d.ts} +1 -1
- package/dist/{production-runtime-0sRnuYc-.d.mts → production-runtime-Du_FHb2-.d.mts} +1 -1
- package/dist/query/client.cjs +9 -9
- package/dist/query/client.mjs +4 -4
- package/dist/{render-plan-8ozZh2Qv.d.ts → render-plan-BnnPTpus.d.ts} +1 -1
- package/dist/{render-plan-gs9GGPzw.d.mts → render-plan-Cgx7v8tJ.d.mts} +1 -1
- package/dist/renderer/react/server.cjs +3 -3
- package/dist/renderer/react/server.mjs +1 -1
- package/dist/renderer-client.cjs +12 -12
- package/dist/renderer-client.d.mts +3 -3
- package/dist/renderer-client.d.ts +3 -3
- package/dist/renderer-client.mjs +4 -4
- package/dist/{request-B5G8rLBH.d.ts → request-BNWr7r5e.d.ts} +1 -1
- package/dist/{request-fkhiynXe.d.mts → request-sKayKcop.d.mts} +1 -1
- package/dist/request.cjs +3 -3
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/request.mjs +2 -2
- package/dist/{route-rendering-lS5nUMua.d.ts → route-rendering-Bx4Auw6Q.d.ts} +1 -1
- package/dist/{route-rendering-CLnS7AZj.d.mts → route-rendering-DWFp3Yq4.d.mts} +1 -1
- package/dist/{router-ifU8Dui1.d.mts → router-BK6K42Ij.d.mts} +1 -1
- package/dist/{router-4iuiYnOW.d.ts → router-DnW_2tQi.d.ts} +1 -1
- package/dist/routes.cjs +2 -2
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/routes.mjs +1 -1
- package/dist/runtime-CA3Ei5k_.d.ts +69 -0
- package/dist/runtime-DJDaCMd_.d.mts +69 -0
- package/dist/server-action-security.cjs +3 -3
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn.cjs +5 -5
- package/dist/server-fn.mjs +4 -4
- package/dist/server-plugins.cjs +5 -5
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server-plugins.mjs +4 -4
- package/dist/server-query.cjs +6 -6
- package/dist/server-query.mjs +5 -5
- package/dist/server.cjs +57 -54
- package/dist/server.d.mts +7 -7
- package/dist/server.d.ts +7 -7
- package/dist/server.mjs +35 -32
- package/dist/{spa-router-Bq7VCOwx.d.mts → spa-router-D6fUA4Rn.d.mts} +2 -2
- package/dist/{spa-router-DaJk5Re4.d.ts → spa-router-Mwbd7g2L.d.ts} +2 -2
- package/dist/testing.cjs +13 -13
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.mjs +10 -10
- package/dist/theme/server.cjs +4 -4
- package/dist/theme/server.mjs +3 -3
- package/dist/{utils-BXLmFsVR.d.ts → utils-BwVcAfUR.d.ts} +1 -1
- package/dist/{utils-XJn0c9bj.d.mts → utils-p9Hs-jCc.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +31 -28
- package/dist/vite.d.mts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.mjs +30 -27
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +1 -1
- package/types/middleware.d.ts +5 -1
- package/dist/chunk-FXEF4PPL.mjs +0 -47
- package/dist/chunk-XD32KALF.cjs +0 -47
- package/dist/layers-4PNE2HOY.cjs +0 -18
- /package/dist/{chunk-SJNMVDDF.cjs → chunk-FUCSUGDM.cjs} +0 -0
- /package/dist/{chunk-UDNPLXW7.mjs → chunk-MYIZXDZA.mjs} +0 -0
package/dist/query/client.cjs
CHANGED
|
@@ -18,10 +18,10 @@ var _chunkWMOGFOUJcjs = require('../chunk-WMOGFOUJ.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
22
|
-
require('../chunk-
|
|
21
|
+
var _chunkFWE7LEQCcjs = require('../chunk-FWE7LEQC.cjs');
|
|
22
|
+
require('../chunk-S6FJO323.cjs');
|
|
23
23
|
require('../chunk-R5A5KNVX.cjs');
|
|
24
|
-
require('../chunk-
|
|
24
|
+
require('../chunk-JEZO6VUR.cjs');
|
|
25
25
|
require('../chunk-J7FSKED3.cjs');
|
|
26
26
|
require('../chunk-EK4QAEFZ.cjs');
|
|
27
27
|
require('../chunk-R5JIFR6B.cjs');
|
|
@@ -30,7 +30,7 @@ require('../chunk-QBK2AA4U.cjs');
|
|
|
30
30
|
require('../chunk-LIUGYUX3.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkOW67PDDScjs = require('../chunk-OW67PDDS.cjs');
|
|
34
34
|
require('../chunk-BIDYX3SL.cjs');
|
|
35
35
|
require('../chunk-I57LW5VZ.cjs');
|
|
36
36
|
|
|
@@ -111,7 +111,7 @@ var getCurrentSearchParams = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void
|
|
|
111
111
|
}
|
|
112
112
|
return params;
|
|
113
113
|
}
|
|
114
|
-
const request =
|
|
114
|
+
const request = _chunkOW67PDDScjs._resolveCurrentRequest.call(void 0, );
|
|
115
115
|
if (!request) return new URLSearchParams();
|
|
116
116
|
try {
|
|
117
117
|
return new URL(request.url).searchParams;
|
|
@@ -216,7 +216,7 @@ var commitURLUpdate = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (upd
|
|
|
216
216
|
const currentUrl = url.pathname + url.search + url.hash;
|
|
217
217
|
if (newUrl === currentUrl) return;
|
|
218
218
|
const historyAction = history === "replaceState" ? "replace" : "push";
|
|
219
|
-
if (!
|
|
219
|
+
if (!_chunkFWE7LEQCcjs.writeFarmURLSearchHistory.call(void 0, historyAction, newUrl)) {
|
|
220
220
|
const historyState = window.history.state;
|
|
221
221
|
const nextHistoryState = historyState && typeof historyState === "object" && "path" in historyState ? { ...historyState, path: newUrl } : historyState;
|
|
222
222
|
window.history[history](nextHistoryState, "", newUrl);
|
|
@@ -227,7 +227,7 @@ var commitURLUpdate = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (upd
|
|
|
227
227
|
}
|
|
228
228
|
emitter.emitUpdate(getCurrentSearchParams());
|
|
229
229
|
}
|
|
230
|
-
if (shallow)
|
|
230
|
+
if (shallow) _chunkFWE7LEQCcjs.notifyHistoryChange.call(void 0, "url-search");
|
|
231
231
|
if (scroll) {
|
|
232
232
|
window.scrollTo(0, 0);
|
|
233
233
|
}
|
|
@@ -311,7 +311,7 @@ function useQueryState(key, parser, options) {
|
|
|
311
311
|
}
|
|
312
312
|
}, "onKeyUpdate");
|
|
313
313
|
onPopState();
|
|
314
|
-
const unsubscribeHistory =
|
|
314
|
+
const unsubscribeHistory = _chunkFWE7LEQCcjs.subscribeHistoryChange.call(void 0, onPopState);
|
|
315
315
|
emitter.on("update", onEmitterUpdate);
|
|
316
316
|
emitter.onKey(key, onKeyUpdate);
|
|
317
317
|
return () => {
|
|
@@ -405,7 +405,7 @@ function useQueryStates(parsers, options = {}) {
|
|
|
405
405
|
applyChange2(searchParams);
|
|
406
406
|
}, "onEmitterUpdate");
|
|
407
407
|
applyChange2(getCurrentSearchParams());
|
|
408
|
-
const unsubscribeHistory =
|
|
408
|
+
const unsubscribeHistory = _chunkFWE7LEQCcjs.subscribeHistoryChange.call(void 0, onPopState);
|
|
409
409
|
emitter.on("update", onEmitterUpdate);
|
|
410
410
|
const unsubscribeKeys = Object.entries(parsers).map(([key, parser]) => {
|
|
411
411
|
const onKeyUpdate = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (payload) => {
|
package/dist/query/client.mjs
CHANGED
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
notifyHistoryChange,
|
|
19
19
|
subscribeHistoryChange,
|
|
20
20
|
writeFarmURLSearchHistory
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-ND2CWPOD.mjs";
|
|
22
|
+
import "../chunk-IHQIOZLC.mjs";
|
|
23
23
|
import "../chunk-2PQNJXFM.mjs";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-QHSH7IH4.mjs";
|
|
25
25
|
import "../chunk-QVYLBY73.mjs";
|
|
26
26
|
import "../chunk-CXEN47J3.mjs";
|
|
27
27
|
import "../chunk-SKNL7VA2.mjs";
|
|
@@ -30,7 +30,7 @@ import "../chunk-JNZ4TDWM.mjs";
|
|
|
30
30
|
import "../chunk-C4NCTZLM.mjs";
|
|
31
31
|
import {
|
|
32
32
|
_resolveCurrentRequest
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-S3VWVTVA.mjs";
|
|
34
34
|
import "../chunk-L3KT7IXV.mjs";
|
|
35
35
|
import "../chunk-4RB44K6Z.mjs";
|
|
36
36
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkECKF2BAMcjs = require('../../chunk-ECKF2BAM.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkYSLWRWWPcjs = require('../../chunk-YSLWRWWP.cjs');
|
|
@@ -46,8 +46,8 @@ var Fragment = _react2.default.Fragment;
|
|
|
46
46
|
var Suspense = _react2.default.Suspense;
|
|
47
47
|
var createElement = _react2.default.createElement;
|
|
48
48
|
var isValidElement = _react2.default.isValidElement;
|
|
49
|
-
var wrapClientGraph = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (element) =>
|
|
50
|
-
var isolateServerPageGraph = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (element) =>
|
|
49
|
+
var wrapClientGraph = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (element) => _chunkECKF2BAMcjs.wrapFarmIsolatedClientGraph.call(void 0, _react2.default, element), "wrapClientGraph");
|
|
50
|
+
var isolateServerPageGraph = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (element) => _chunkECKF2BAMcjs.isolateFarmServerPageGraph.call(void 0, _react2.default, element), "isolateServerPageGraph");
|
|
51
51
|
var renderServerTreePage = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (element) => _chunkYSLWRWWPcjs.renderFarmServerTreePage.call(void 0, _react2.default, element, { isolate: isolateServerPageGraph }), "renderServerTreePage");
|
|
52
52
|
var renderToString = _server.renderToString;
|
|
53
53
|
var renderToPipeableStream = _server.renderToPipeableStream;
|
package/dist/renderer-client.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkL5H2GSUCcjs = require('./chunk-L5H2GSUC.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -22,13 +22,13 @@ require('./chunk-PCOTGFSM.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkFWE7LEQCcjs = require('./chunk-FWE7LEQC.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkS6FJO323cjs = require('./chunk-S6FJO323.cjs');
|
|
30
30
|
require('./chunk-R5A5KNVX.cjs');
|
|
31
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-JEZO6VUR.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunk63H6BKXGcjs = require('./chunk-63H6BKXG.cjs');
|
|
@@ -64,7 +64,7 @@ var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
|
64
64
|
function createRendererRouter(options = {}) {
|
|
65
65
|
const basePath = options.basePath === void 0 ? _chunkI57LW5VZcjs.getFarmBasePath.call(void 0, ) : _chunkI57LW5VZcjs.normalizeFarmBasePath.call(void 0, options.basePath);
|
|
66
66
|
const matcher = _optionalChain([options, 'access', _ => _.routes, 'optionalAccess', _2 => _2.length]) ? _chunkSU7MH53Pcjs.createFarmRouter.call(void 0, [...options.routes]) : null;
|
|
67
|
-
const router =
|
|
67
|
+
const router = _chunkFWE7LEQCcjs.getRouter.call(void 0, );
|
|
68
68
|
let snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
|
|
69
69
|
const read = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => {
|
|
70
70
|
snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
|
|
@@ -80,7 +80,7 @@ function createRendererRouter(options = {}) {
|
|
|
80
80
|
listener();
|
|
81
81
|
}, "notify");
|
|
82
82
|
const unsubscribeNavigation = router.subscribeNavigation(notify);
|
|
83
|
-
const unsubscribeHistory =
|
|
83
|
+
const unsubscribeHistory = _chunkFWE7LEQCcjs.subscribeHistoryChange.call(void 0, notify);
|
|
84
84
|
read();
|
|
85
85
|
return () => {
|
|
86
86
|
unsubscribeNavigation();
|
|
@@ -281,11 +281,11 @@ function createRendererTheme() {
|
|
|
281
281
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createRendererTheme, "createRendererTheme");
|
|
282
282
|
function createRendererI18n() {
|
|
283
283
|
return {
|
|
284
|
-
getSnapshot:
|
|
285
|
-
subscribe:
|
|
286
|
-
t:
|
|
284
|
+
getSnapshot: _chunkS6FJO323cjs.getFarmI18nClientState,
|
|
285
|
+
subscribe: _chunkS6FJO323cjs.subscribeFarmI18n,
|
|
286
|
+
t: _chunkL5H2GSUCcjs.createFarmClientTranslator.call(void 0, ),
|
|
287
287
|
setLocale(locale) {
|
|
288
|
-
const snapshot =
|
|
288
|
+
const snapshot = _chunkS6FJO323cjs.getFarmI18nClientState.call(void 0, );
|
|
289
289
|
if (!snapshot) throw new Error("Farm i18n is not configured or has not been hydrated.");
|
|
290
290
|
if (!snapshot.locales.includes(locale)) {
|
|
291
291
|
throw new Error(`Unsupported Farm i18n locale "${locale}".`);
|
|
@@ -310,13 +310,13 @@ function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
|
310
310
|
}
|
|
311
311
|
const url = new URL(window.location.href);
|
|
312
312
|
const pathname = _chunkI57LW5VZcjs.stripFarmBasePath.call(void 0, url.pathname, basePath);
|
|
313
|
-
const i18n =
|
|
313
|
+
const i18n = _chunkS6FJO323cjs.getFarmI18nClientState.call(void 0, );
|
|
314
314
|
const routePathname = i18n ? _chunkBIDYX3SLcjs.stripFarmLocaleFromPathname.call(void 0, pathname, { ...i18n, basePath: "/" }) : pathname;
|
|
315
315
|
return {
|
|
316
316
|
pathname,
|
|
317
317
|
searchParams: url.searchParams,
|
|
318
318
|
params: _optionalChain([matcher, 'optionalAccess', _20 => _20.match, 'call', _21 => _21(routePathname), 'optionalAccess', _22 => _22.params]) || {},
|
|
319
|
-
pageState:
|
|
319
|
+
pageState: _chunkFWE7LEQCcjs.readPageState.call(void 0, ),
|
|
320
320
|
navigation
|
|
321
321
|
};
|
|
322
322
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FarmRouterRouteInput } from './router.mjs';
|
|
2
|
-
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-
|
|
2
|
+
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-D6fUA4Rn.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
8
|
import { F as FarmI18nClientSnapshot, a as FarmTranslator, b as FarmI18nLocale } from './types-CnH8DOqo.mjs';
|
|
9
|
-
import './client-plugins-
|
|
9
|
+
import './client-plugins-CV4eJ9De.mjs';
|
|
10
10
|
import './lifecycle-DK06VuKP.mjs';
|
|
11
11
|
import './integration-api-0y4FXJpC.mjs';
|
|
12
12
|
import './endpoint-CCHFqyTE.mjs';
|
|
@@ -37,7 +37,7 @@ import './font.mjs';
|
|
|
37
37
|
import './after.mjs';
|
|
38
38
|
import 'node:http';
|
|
39
39
|
import './island-CfGru1MO.mjs';
|
|
40
|
-
import './render-plan-
|
|
40
|
+
import './render-plan-Cgx7v8tJ.mjs';
|
|
41
41
|
|
|
42
42
|
interface FarmClientStore<TSnapshot> {
|
|
43
43
|
getSnapshot(): TSnapshot;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FarmRouterRouteInput } from './router.js';
|
|
2
|
-
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-
|
|
2
|
+
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-Mwbd7g2L.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
8
|
import { F as FarmI18nClientSnapshot, a as FarmTranslator, b as FarmI18nLocale } from './types-CnH8DOqo.js';
|
|
9
|
-
import './client-plugins-
|
|
9
|
+
import './client-plugins-C8DjftDF.js';
|
|
10
10
|
import './lifecycle-DK06VuKP.js';
|
|
11
11
|
import './integration-api-BPJo5oXb.js';
|
|
12
12
|
import './endpoint-CA-TNX60.js';
|
|
@@ -37,7 +37,7 @@ import './font.js';
|
|
|
37
37
|
import './after.js';
|
|
38
38
|
import 'node:http';
|
|
39
39
|
import './island-CfGru1MO.js';
|
|
40
|
-
import './render-plan-
|
|
40
|
+
import './render-plan-BnnPTpus.js';
|
|
41
41
|
|
|
42
42
|
interface FarmClientStore<TSnapshot> {
|
|
43
43
|
getSnapshot(): TSnapshot;
|
package/dist/renderer-client.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createFarmClientTranslator
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-666CKENS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
attachRevalidationListeners,
|
|
7
7
|
createServerQueryCallKey,
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
getRouter,
|
|
23
23
|
readPageState,
|
|
24
24
|
subscribeHistoryChange
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ND2CWPOD.mjs";
|
|
26
26
|
import {
|
|
27
27
|
getFarmI18nClientState,
|
|
28
28
|
subscribeFarmI18n
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-IHQIOZLC.mjs";
|
|
30
30
|
import "./chunk-2PQNJXFM.mjs";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-QHSH7IH4.mjs";
|
|
32
32
|
import {
|
|
33
33
|
getFarmClientDataCache
|
|
34
34
|
} from "./chunk-XNPDONUH.mjs";
|
package/dist/request.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkNICDYKBScjs = require('./chunk-NICDYKBS.cjs');
|
|
4
|
+
require('./chunk-OW67PDDS.cjs');
|
|
5
5
|
require('./chunk-S3JO3N4H.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.getCurrentRequest =
|
|
8
|
+
exports.getCurrentRequest = _chunkNICDYKBScjs.getCurrentRequest;
|
package/dist/request.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { g as getCurrentRequest } from './request-
|
|
2
|
-
import './client-plugins-
|
|
1
|
+
export { g as getCurrentRequest } from './request-sKayKcop.mjs';
|
|
2
|
+
import './client-plugins-CV4eJ9De.mjs';
|
|
3
3
|
import './lifecycle-DK06VuKP.mjs';
|
|
4
4
|
import './integration-api-0y4FXJpC.mjs';
|
|
5
5
|
import './endpoint-CCHFqyTE.mjs';
|
package/dist/request.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { g as getCurrentRequest } from './request-
|
|
2
|
-
import './client-plugins-
|
|
1
|
+
export { g as getCurrentRequest } from './request-BNWr7r5e.js';
|
|
2
|
+
import './client-plugins-C8DjftDF.js';
|
|
3
3
|
import './lifecycle-DK06VuKP.js';
|
|
4
4
|
import './integration-api-BPJo5oXb.js';
|
|
5
5
|
import './endpoint-CA-TNX60.js';
|
package/dist/request.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { FarmRouterRouteInput } from './router.mjs';
|
|
3
|
-
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-
|
|
3
|
+
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-D6fUA4Rn.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 { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-
|
|
3
|
+
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-Mwbd7g2L.js';
|
|
4
4
|
|
|
5
5
|
interface UseRouterOptions {
|
|
6
6
|
basePath?: string;
|
package/dist/routes.cjs
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkTO4GJ56Kcjs = require('./chunk-TO4GJ56K.cjs');
|
|
23
23
|
require('./chunk-6QQDAAAZ.cjs');
|
|
24
24
|
require('./chunk-6V4TDWEC.cjs');
|
|
25
25
|
require('./chunk-SOR334EB.cjs');
|
|
@@ -51,4 +51,4 @@ require('./chunk-S3JO3N4H.cjs');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
exports.PROGRAMMATIC_ROUTE_FILE_NAMES =
|
|
54
|
+
exports.PROGRAMMATIC_ROUTE_FILE_NAMES = _chunkTO4GJ56Kcjs.PROGRAMMATIC_ROUTE_FILE_NAMES; exports.api = _chunkTO4GJ56Kcjs.api; exports.createLayoutModuleFromProgrammaticLayout = _chunkTO4GJ56Kcjs.createLayoutModuleFromProgrammaticLayout; exports.createProgrammaticRouteModuleId = _chunkTO4GJ56Kcjs.createProgrammaticRouteModuleId; exports.createRoute = _chunkTO4GJ56Kcjs.createRoute; exports.createRouteModuleFromProgrammaticPage = _chunkTO4GJ56Kcjs.createRouteModuleFromProgrammaticPage; exports.defineRoutes = _chunkTO4GJ56Kcjs.defineRoutes; exports.getProgrammaticRouteManifest = _chunkTO4GJ56Kcjs.getProgrammaticRouteManifest; exports.getProgrammaticRouteSearchClientOptions = _chunkTO4GJ56Kcjs.getProgrammaticRouteSearchClientOptions; exports.getProgrammaticRouteSearchSchema = _chunkTO4GJ56Kcjs.getProgrammaticRouteSearchSchema; exports.isProgrammaticRouteDefinition = _chunkTO4GJ56Kcjs.isProgrammaticRouteDefinition; exports.isProgrammaticRouteManifest = _chunkTO4GJ56Kcjs.isProgrammaticRouteManifest; exports.isProgrammaticRoutesFileName = _chunkTO4GJ56Kcjs.isProgrammaticRoutesFileName; exports.layout = _chunkTO4GJ56Kcjs.layout; exports.page = _chunkTO4GJ56Kcjs.page; exports.parseProgrammaticRouteModuleId = _chunkTO4GJ56Kcjs.parseProgrammaticRouteModuleId; exports.parseProgrammaticRoutePath = _chunkTO4GJ56Kcjs.parseProgrammaticRoutePath; exports.redirect = _chunkTO4GJ56Kcjs.redirect; exports.routesBuilder = _chunkTO4GJ56Kcjs.routesBuilder; exports.scanProgrammaticPagePaths = _chunkTO4GJ56Kcjs.scanProgrammaticPagePaths;
|
package/dist/routes.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-
|
|
1
|
+
import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-CV4eJ9De.mjs';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { RouteDataCacheKey } from './cache.mjs';
|
|
4
4
|
import { ServerFn } from './server-fn.mjs';
|
package/dist/routes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-
|
|
1
|
+
import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-C8DjftDF.js';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { RouteDataCacheKey } from './cache.js';
|
|
4
4
|
import { ServerFn } from './server-fn.js';
|
package/dist/routes.mjs
CHANGED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { e as EndpointFailure } from './endpoint-CA-TNX60.js';
|
|
2
|
+
import { P as PluginRoutesFactory } from './integration-api-BPJo5oXb.js';
|
|
3
|
+
import { a as APIRouteParams, A as APIRouteMatch } from './route-pattern-W-SsJGSp.js';
|
|
4
|
+
import './client-plugins-C8DjftDF.js';
|
|
5
|
+
|
|
6
|
+
interface MountedRoute {
|
|
7
|
+
path: string;
|
|
8
|
+
methods: string[];
|
|
9
|
+
endpoints: Record<string, any>;
|
|
10
|
+
filePath?: string;
|
|
11
|
+
pluginMethods?: string[];
|
|
12
|
+
}
|
|
13
|
+
/** The same registration step is used by dev discovery and the production bundle. */
|
|
14
|
+
declare function mergePluginAPIRoutes(existing: readonly MountedRoute[], plugins: readonly {
|
|
15
|
+
name: string;
|
|
16
|
+
routes?: PluginRoutesFactory;
|
|
17
|
+
}[], expected?: readonly {
|
|
18
|
+
path: string;
|
|
19
|
+
methods: readonly string[];
|
|
20
|
+
}[], options?: {
|
|
21
|
+
bodySizeLimit?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Sends a plugin's `api.get(...).invoke()` call through the app's request pipeline, so the
|
|
24
|
+
* endpoint's middleware, integration guards and route rules run for its own path as they do
|
|
25
|
+
* for a direct request. Without it the endpoint is called directly.
|
|
26
|
+
*/
|
|
27
|
+
dispatch?: PluginAPIDispatch;
|
|
28
|
+
}): Array<MountedRoute & {
|
|
29
|
+
filePath: string;
|
|
30
|
+
}>;
|
|
31
|
+
/** Runs a request for an app endpoint through the app's own request pipeline. */
|
|
32
|
+
type PluginAPIDispatch = (request: Request) => Response | Promise<Response>;
|
|
33
|
+
|
|
34
|
+
interface APIRouteShapeSource<TSource> {
|
|
35
|
+
routePath: string;
|
|
36
|
+
source: TSource;
|
|
37
|
+
filePath: string;
|
|
38
|
+
}
|
|
39
|
+
/** Validate API URL shapes and return the lower-priority route replaced by this source. */
|
|
40
|
+
declare function registerAPIRouteShape<TSource>(shapes: Map<string, APIRouteShapeSource<TSource>>, routePath: string, filePath: string, source: TSource): string | undefined;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Every method an API route module can export. Route discovery in core and in
|
|
44
|
+
* the plain-Vite plugin reads this list, so a handler exported under any of
|
|
45
|
+
* these names is served wherever the route is.
|
|
46
|
+
*/
|
|
47
|
+
declare const API_ROUTE_METHODS: readonly ["GET", "HEAD", "QUERY", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"];
|
|
48
|
+
interface APIRouteMethodTable {
|
|
49
|
+
methods: string[];
|
|
50
|
+
endpoints: Record<string, any>;
|
|
51
|
+
}
|
|
52
|
+
declare function resolveAPIRouteEndpoint(route: APIRouteMethodTable, method: string): any | undefined;
|
|
53
|
+
declare function getAllowedAPIRouteMethods(route: APIRouteMethodTable): string[];
|
|
54
|
+
/** Match canonical routes through a configurable same-origin public API path. */
|
|
55
|
+
declare function matchAPIRouteAtBasePath<T extends {
|
|
56
|
+
path: string;
|
|
57
|
+
}>(routes: Map<string, T>, pathname: string, serverBasePath?: string): APIRouteMatch<T> | null;
|
|
58
|
+
/** @internal Prepare the fixed API table owned by a generated production bundle. */
|
|
59
|
+
declare function createStaticAPIRouteMatcherAtBasePath<T extends {
|
|
60
|
+
path: string;
|
|
61
|
+
}>(routes: readonly T[], serverBasePath?: string): (pathname: string) => APIRouteMatch<T> | null;
|
|
62
|
+
/** Test whether a pathname belongs to the configured local API surface. */
|
|
63
|
+
declare function isFarmAPIPathname(pathname: string, serverBasePath?: string): boolean;
|
|
64
|
+
declare function invokeAPIRouteEndpoint(endpoint: any, request: Request, params?: APIRouteParams, bodySizeLimit?: number): Promise<Response>;
|
|
65
|
+
declare function normalizeRouteResponse(result: unknown): Response;
|
|
66
|
+
declare function isWebResponse(value: unknown): value is Response;
|
|
67
|
+
declare function createEndpointFailureResponse(failure: EndpointFailure<string, unknown>): Response;
|
|
68
|
+
|
|
69
|
+
export { API_ROUTE_METHODS as A, type PluginAPIDispatch as P, isWebResponse as a, isFarmAPIPathname as b, createStaticAPIRouteMatcherAtBasePath as c, createEndpointFailureResponse as d, registerAPIRouteShape as e, type APIRouteShapeSource as f, getAllowedAPIRouteMethods as g, mergePluginAPIRoutes as h, invokeAPIRouteEndpoint as i, matchAPIRouteAtBasePath as m, normalizeRouteResponse as n, resolveAPIRouteEndpoint as r };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { e as EndpointFailure } from './endpoint-CCHFqyTE.mjs';
|
|
2
|
+
import { P as PluginRoutesFactory } from './integration-api-0y4FXJpC.mjs';
|
|
3
|
+
import { a as APIRouteParams, A as APIRouteMatch } from './route-pattern-W-SsJGSp.mjs';
|
|
4
|
+
import './client-plugins-CV4eJ9De.mjs';
|
|
5
|
+
|
|
6
|
+
interface MountedRoute {
|
|
7
|
+
path: string;
|
|
8
|
+
methods: string[];
|
|
9
|
+
endpoints: Record<string, any>;
|
|
10
|
+
filePath?: string;
|
|
11
|
+
pluginMethods?: string[];
|
|
12
|
+
}
|
|
13
|
+
/** The same registration step is used by dev discovery and the production bundle. */
|
|
14
|
+
declare function mergePluginAPIRoutes(existing: readonly MountedRoute[], plugins: readonly {
|
|
15
|
+
name: string;
|
|
16
|
+
routes?: PluginRoutesFactory;
|
|
17
|
+
}[], expected?: readonly {
|
|
18
|
+
path: string;
|
|
19
|
+
methods: readonly string[];
|
|
20
|
+
}[], options?: {
|
|
21
|
+
bodySizeLimit?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Sends a plugin's `api.get(...).invoke()` call through the app's request pipeline, so the
|
|
24
|
+
* endpoint's middleware, integration guards and route rules run for its own path as they do
|
|
25
|
+
* for a direct request. Without it the endpoint is called directly.
|
|
26
|
+
*/
|
|
27
|
+
dispatch?: PluginAPIDispatch;
|
|
28
|
+
}): Array<MountedRoute & {
|
|
29
|
+
filePath: string;
|
|
30
|
+
}>;
|
|
31
|
+
/** Runs a request for an app endpoint through the app's own request pipeline. */
|
|
32
|
+
type PluginAPIDispatch = (request: Request) => Response | Promise<Response>;
|
|
33
|
+
|
|
34
|
+
interface APIRouteShapeSource<TSource> {
|
|
35
|
+
routePath: string;
|
|
36
|
+
source: TSource;
|
|
37
|
+
filePath: string;
|
|
38
|
+
}
|
|
39
|
+
/** Validate API URL shapes and return the lower-priority route replaced by this source. */
|
|
40
|
+
declare function registerAPIRouteShape<TSource>(shapes: Map<string, APIRouteShapeSource<TSource>>, routePath: string, filePath: string, source: TSource): string | undefined;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Every method an API route module can export. Route discovery in core and in
|
|
44
|
+
* the plain-Vite plugin reads this list, so a handler exported under any of
|
|
45
|
+
* these names is served wherever the route is.
|
|
46
|
+
*/
|
|
47
|
+
declare const API_ROUTE_METHODS: readonly ["GET", "HEAD", "QUERY", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"];
|
|
48
|
+
interface APIRouteMethodTable {
|
|
49
|
+
methods: string[];
|
|
50
|
+
endpoints: Record<string, any>;
|
|
51
|
+
}
|
|
52
|
+
declare function resolveAPIRouteEndpoint(route: APIRouteMethodTable, method: string): any | undefined;
|
|
53
|
+
declare function getAllowedAPIRouteMethods(route: APIRouteMethodTable): string[];
|
|
54
|
+
/** Match canonical routes through a configurable same-origin public API path. */
|
|
55
|
+
declare function matchAPIRouteAtBasePath<T extends {
|
|
56
|
+
path: string;
|
|
57
|
+
}>(routes: Map<string, T>, pathname: string, serverBasePath?: string): APIRouteMatch<T> | null;
|
|
58
|
+
/** @internal Prepare the fixed API table owned by a generated production bundle. */
|
|
59
|
+
declare function createStaticAPIRouteMatcherAtBasePath<T extends {
|
|
60
|
+
path: string;
|
|
61
|
+
}>(routes: readonly T[], serverBasePath?: string): (pathname: string) => APIRouteMatch<T> | null;
|
|
62
|
+
/** Test whether a pathname belongs to the configured local API surface. */
|
|
63
|
+
declare function isFarmAPIPathname(pathname: string, serverBasePath?: string): boolean;
|
|
64
|
+
declare function invokeAPIRouteEndpoint(endpoint: any, request: Request, params?: APIRouteParams, bodySizeLimit?: number): Promise<Response>;
|
|
65
|
+
declare function normalizeRouteResponse(result: unknown): Response;
|
|
66
|
+
declare function isWebResponse(value: unknown): value is Response;
|
|
67
|
+
declare function createEndpointFailureResponse(failure: EndpointFailure<string, unknown>): Response;
|
|
68
|
+
|
|
69
|
+
export { API_ROUTE_METHODS as A, type PluginAPIDispatch as P, isWebResponse as a, isFarmAPIPathname as b, createStaticAPIRouteMatcherAtBasePath as c, createEndpointFailureResponse as d, registerAPIRouteShape as e, type APIRouteShapeSource as f, getAllowedAPIRouteMethods as g, mergePluginAPIRoutes as h, invokeAPIRouteEndpoint as i, matchAPIRouteAtBasePath as m, normalizeRouteResponse as n, resolveAPIRouteEndpoint as r };
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkT5OJPTVNcjs = require('./chunk-T5OJPTVN.cjs');
|
|
14
14
|
require('./chunk-SVRTJOUF.cjs');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-KIIMAWOJ.cjs');
|
|
16
16
|
require('./chunk-ZEG3OPIB.cjs');
|
|
17
17
|
require('./chunk-NO3WWW3N.cjs');
|
|
18
18
|
require('./chunk-S3JO3N4H.cjs');
|
|
@@ -28,4 +28,4 @@ require('./chunk-S3JO3N4H.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT =
|
|
31
|
+
exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunkT5OJPTVNcjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.ServerActionRequestError = _chunkT5OJPTVNcjs.ServerActionRequestError; exports.createServerActionRequestErrorResponse = _chunkT5OJPTVNcjs.createServerActionRequestErrorResponse; exports.getServerActionExecutionContext = _chunkT5OJPTVNcjs.getServerActionExecutionContext; exports.getServerActionInvalidations = _chunkT5OJPTVNcjs.getServerActionInvalidations; exports.getServerActionSignal = _chunkT5OJPTVNcjs.getServerActionSignal; exports.prepareServerActionRequest = _chunkT5OJPTVNcjs.prepareServerActionRequest; exports.resolveServerActionsConfig = _chunkT5OJPTVNcjs.resolveServerActionsConfig; exports.runWithServerActionRequest = _chunkT5OJPTVNcjs.runWithServerActionRequest; exports.sanitizeServerActionError = _chunkT5OJPTVNcjs.sanitizeServerActionError; exports.validateServerActionRequest = _chunkT5OJPTVNcjs.validateServerActionRequest;
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
runWithServerActionRequest,
|
|
11
11
|
sanitizeServerActionError,
|
|
12
12
|
validateServerActionRequest
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4WVJLURN.mjs";
|
|
14
14
|
import "./chunk-FP2INE7H.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-ZMMBIVQM.mjs";
|
|
16
16
|
import "./chunk-4SIYUGRY.mjs";
|
|
17
17
|
import "./chunk-55YI3RRB.mjs";
|
|
18
18
|
import "./chunk-LPEX4YW6.mjs";
|