@farm.js/core 0.1.80 → 0.1.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-mcp.d-BPa5n0ld.d.ts → agent-mcp.d-C2Su3x4D.d.ts} +1 -1
- package/dist/{agent-mcp.d-DOP95Jxm.d.mts → agent-mcp.d-Yak-LqRd.d.mts} +1 -1
- package/dist/agent-runtime.cjs +4 -3
- package/dist/agent-runtime.d.mts +2 -1
- package/dist/agent-runtime.d.ts +2 -1
- package/dist/agent-runtime.mjs +3 -2
- package/dist/analyzer-LV23T6QN.cjs +17 -0
- package/dist/{analyzer-F7CWE5VA.mjs → analyzer-RPU2KG4J.mjs} +3 -2
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.mjs +1 -1
- package/dist/api/client.native.cjs +1 -1
- package/dist/api/client.native.mjs +1 -1
- package/dist/api/node.cjs +6 -5
- package/dist/api/node.d.mts +4 -3
- package/dist/api/node.d.ts +4 -3
- package/dist/api/node.mjs +5 -4
- package/dist/api/route-manager.cjs +7 -6
- package/dist/api/route-manager.d.mts +4 -3
- package/dist/api/route-manager.d.ts +4 -3
- package/dist/api/route-manager.mjs +6 -5
- package/dist/api/runtime.cjs +5 -4
- package/dist/api/runtime.d.mts +3 -2
- package/dist/api/runtime.d.ts +3 -2
- package/dist/api/runtime.mjs +4 -3
- package/dist/api.cjs +9 -8
- package/dist/api.d.mts +5 -4
- package/dist/api.d.ts +5 -4
- package/dist/api.mjs +8 -7
- package/dist/{app-manifest.d-9UD6BznX.d.mts → app-manifest.d-BcyOFMrg.d.mts} +1 -1
- package/dist/{app-manifest.d-CO6Iu0Hx.d.ts → app-manifest.d-DZyXaICz.d.ts} +1 -1
- package/dist/app-markdown.cjs +3 -3
- package/dist/app-markdown.d.mts +5 -4
- package/dist/app-markdown.d.ts +5 -4
- package/dist/app-markdown.mjs +2 -2
- package/dist/{app.d-DXeRWZK7.d.mts → app.d-C0ePpuaG.d.mts} +30 -4
- package/dist/{app.d-DwX1ePhs.d.ts → app.d-CIoXsAbN.d.ts} +30 -4
- package/dist/{chunk-Q4TRGTO7.cjs → chunk-26WP75W5.cjs} +32 -16
- package/dist/{chunk-7KDCVSTR.mjs → chunk-2PFGA6PB.mjs} +2 -2
- package/dist/chunk-2UYYXSUS.mjs +401 -0
- package/dist/{chunk-PL7MCYYD.mjs → chunk-3AV4DCXY.mjs} +58 -358
- package/dist/{chunk-3GNHJ3RN.cjs → chunk-3BTN3NP7.cjs} +2 -2
- package/dist/chunk-3DE6RK7K.cjs +36 -0
- package/dist/{chunk-GBW5DU7V.mjs → chunk-47I2MYIR.mjs} +487 -304
- package/dist/{chunk-RQBGHHOQ.mjs → chunk-4X7LSGM6.mjs} +1 -1
- package/dist/{chunk-QMR2TUVZ.cjs → chunk-52Q4OB4A.cjs} +4 -4
- package/dist/{chunk-BPWTSPK6.mjs → chunk-5AL2GXAU.mjs} +1 -1
- package/dist/{chunk-GAWSWJJ2.cjs → chunk-5GFTMTX3.cjs} +2 -2
- package/dist/chunk-5MMKNW7Q.cjs +54 -0
- package/dist/{chunk-AXA2BSX3.cjs → chunk-5MUFW5UU.cjs} +22 -21
- package/dist/{chunk-MQOHYV6L.cjs → chunk-5P65LXGU.cjs} +11 -11
- package/dist/{chunk-KEU55O2D.mjs → chunk-63ZE6B6M.mjs} +7 -6
- package/dist/{chunk-TS3ZHJN5.cjs → chunk-6BPFIYGY.cjs} +3 -3
- package/dist/{chunk-NJ4OASLP.mjs → chunk-6QYPP5KC.mjs} +2 -2
- package/dist/{chunk-ATISIC6G.mjs → chunk-7VJXYB6S.mjs} +7 -1
- package/dist/{chunk-G4SZC2WH.cjs → chunk-AIPZDBP6.cjs} +557 -374
- package/dist/{chunk-X4TSMQWF.cjs → chunk-ARORZ3MH.cjs} +548 -397
- package/dist/{chunk-K3XKEZR6.mjs → chunk-AUFEM3FB.mjs} +1 -1
- package/dist/{chunk-MGKWYPE3.mjs → chunk-AYDVUCXD.mjs} +1 -0
- package/dist/{chunk-5OAN7BG5.cjs → chunk-B2PGVHBG.cjs} +4 -4
- package/dist/{chunk-WGWWRV2M.cjs → chunk-B3HQTGXS.cjs} +6 -4
- package/dist/chunk-B7L24VPX.cjs +401 -0
- package/dist/{chunk-5VDJEKGK.cjs → chunk-BBVLOEND.cjs} +1 -1
- package/dist/{chunk-XF7MJSUS.mjs → chunk-BCQIXH7L.mjs} +1 -1
- package/dist/{chunk-67MZTLTF.cjs → chunk-BCTHOQPP.cjs} +37 -9
- package/dist/{chunk-GBESKA76.cjs → chunk-BSX5OGSD.cjs} +1 -1
- package/dist/{chunk-CNDBLUKI.mjs → chunk-BVJUFVCU.mjs} +1 -1
- package/dist/{chunk-QHAISITM.mjs → chunk-C3VCYOU4.mjs} +1 -1
- package/dist/chunk-C5QHZ626.cjs +85 -0
- package/dist/{chunk-3K2E55BJ.mjs → chunk-CA2HBLXP.mjs} +13 -3
- package/dist/{chunk-ANZLZNNX.cjs → chunk-CD5Z7RR5.cjs} +155 -20
- package/dist/{chunk-4MIDUSIX.mjs → chunk-CJDBTTLB.mjs} +17 -17
- package/dist/{chunk-RLCOWWE5.cjs → chunk-CN2JOTRO.cjs} +7 -7
- package/dist/chunk-D2VAANBS.mjs +48 -0
- package/dist/{chunk-XZBBKZGW.mjs → chunk-DAXU2NBE.mjs} +128 -41
- package/dist/{chunk-4H4ZXUNB.cjs → chunk-DJ3PVHTW.cjs} +3 -3
- package/dist/{chunk-Z5BANEQD.cjs → chunk-DMSXZNQR.cjs} +2 -2
- package/dist/{chunk-ZVSQN7NC.cjs → chunk-DRO3NXA3.cjs} +40 -43
- package/dist/{chunk-4OFWG4IK.cjs → chunk-EACD6ND7.cjs} +8 -2
- package/dist/{chunk-Q4YEAWUK.mjs → chunk-ECVSRE4Y.mjs} +3 -2
- package/dist/{chunk-MDEFTF63.mjs → chunk-EL2Z6YFZ.mjs} +25 -28
- package/dist/chunk-EZYKV24V.mjs +385 -0
- package/dist/{chunk-TVCFY3KK.cjs → chunk-FB4CWSC2.cjs} +12 -12
- package/dist/{chunk-IYFBLWXU.cjs → chunk-FULX5RYX.cjs} +61 -361
- package/dist/{chunk-V73Y4UBL.mjs → chunk-GXLNARPO.mjs} +151 -16
- package/dist/{chunk-ZPEZXQTM.cjs → chunk-HHQEKLZL.cjs} +2 -2
- package/dist/{chunk-HNUBRUFQ.cjs → chunk-HQEYZSF3.cjs} +4 -3
- package/dist/{chunk-5ZHC6QGD.cjs → chunk-HQKCSJEH.cjs} +8 -2
- package/dist/{chunk-RHI67C2V.cjs → chunk-HUGPJFOC.cjs} +1 -35
- package/dist/{chunk-44G4XHEL.mjs → chunk-I4DR3HCH.mjs} +11 -11
- package/dist/chunk-I4WZRG73.mjs +54 -0
- package/dist/{chunk-MUZHULW2.mjs → chunk-ICOJ2BC6.mjs} +23 -7
- package/dist/{chunk-MNIR7I7B.mjs → chunk-INKVDO42.mjs} +1 -1
- package/dist/{chunk-C2OLXVUC.mjs → chunk-IVP5Q4BX.mjs} +10 -3
- package/dist/{chunk-HEDGTXXB.cjs → chunk-JB4BHRFK.cjs} +17 -17
- package/dist/{chunk-XKUKWMGX.cjs → chunk-JCYDWJVO.cjs} +3 -3
- package/dist/{chunk-CCMP4JD2.cjs → chunk-JK26IMT7.cjs} +1 -1
- package/dist/{chunk-WIZRYFB2.cjs → chunk-JYQ6DGPW.cjs} +8 -6
- package/dist/{chunk-SVCUSOEF.mjs → chunk-KR5DF7WK.mjs} +1 -1
- package/dist/{chunk-TYHWZOA2.mjs → chunk-KWI3SQFX.mjs} +4 -2
- package/dist/{chunk-POVHO46S.mjs → chunk-L3RDECA5.mjs} +1 -1
- package/dist/{chunk-LVGB5PYK.cjs → chunk-LM2ZDNDD.cjs} +28 -28
- package/dist/{chunk-COTFX4GT.mjs → chunk-LTOT5KVJ.mjs} +1 -1
- package/dist/{chunk-RPA45OQS.mjs → chunk-MO4UTDQ6.mjs} +1 -1
- package/dist/{chunk-DVHFIETW.cjs → chunk-N2EFMN2K.cjs} +18 -18
- package/dist/{chunk-MZ5QGWRW.mjs → chunk-N3VMHPIY.mjs} +2 -2
- package/dist/{chunk-KKVRWNDH.mjs → chunk-NAHDG6UX.mjs} +4 -4
- package/dist/{chunk-UWOCYINY.cjs → chunk-NEKO3HM2.cjs} +12 -2
- package/dist/{chunk-SLEHAGGV.mjs → chunk-NQ3Y6E2T.mjs} +7 -1
- package/dist/{chunk-ZDYYZX73.mjs → chunk-NRCKBDYP.mjs} +266 -115
- package/dist/{chunk-EG5YBYHO.mjs → chunk-OMB7UGVW.mjs} +1 -1
- package/dist/{chunk-JGEN2FIT.mjs → chunk-OP5VI4TP.mjs} +1 -1
- package/dist/{chunk-7VCLTNED.mjs → chunk-PNMAD3OS.mjs} +1 -35
- package/dist/{chunk-3XTRT3MB.mjs → chunk-PO5MZIWK.mjs} +1 -1
- package/dist/{chunk-ASYOWPSR.cjs → chunk-PWDBWXQI.cjs} +2 -1
- package/dist/{chunk-WJ2O2MPP.cjs → chunk-Q2VOT3K2.cjs} +494 -407
- package/dist/{chunk-7YLDUB4R.cjs → chunk-QCKSYYXK.cjs} +7 -7
- package/dist/{chunk-57QAQU4F.mjs → chunk-QRNYSISP.mjs} +1 -1
- package/dist/{chunk-3JQBQG7K.mjs → chunk-QSMUMK7Y.mjs} +2 -2
- package/dist/{chunk-PRL7FXG4.cjs → chunk-RDNKQ5MK.cjs} +12 -13
- package/dist/{chunk-GCRT6GJG.mjs → chunk-RMLR5RMH.mjs} +30 -2
- package/dist/{chunk-XY5OZQF6.cjs → chunk-RMPUEH5T.cjs} +2 -2
- package/dist/{chunk-7DD5TNPS.cjs → chunk-S7WZUK3B.cjs} +2 -2
- package/dist/{chunk-EGHPFXPZ.cjs → chunk-SAPG45RA.cjs} +23 -23
- package/dist/{chunk-Z4SMFUZ7.cjs → chunk-U54REWMJ.cjs} +23 -23
- package/dist/chunk-U6XYBTUT.mjs +36 -0
- package/dist/chunk-UDMBUTJD.mjs +85 -0
- package/dist/{chunk-WHEQJN4G.cjs → chunk-UGD53SNO.cjs} +2 -2
- package/dist/{chunk-TCMRLW3K.cjs → chunk-VACYUMXW.cjs} +10 -3
- package/dist/{chunk-SDICLSQU.cjs → chunk-VMBIKDKW.cjs} +10 -10
- package/dist/{chunk-WBPVLCNE.mjs → chunk-VPGEYX5Y.mjs} +4 -4
- package/dist/chunk-VS7HLH4S.cjs +385 -0
- package/dist/{chunk-UGLTOLTJ.cjs → chunk-W76C7TCW.cjs} +2 -2
- package/dist/chunk-WMRGIQTA.cjs +48 -0
- package/dist/{chunk-52LTENRE.cjs → chunk-WOAXQ5MZ.cjs} +9 -9
- package/dist/{chunk-C6HGUTXB.mjs → chunk-XBSIGZ4J.mjs} +2 -3
- package/dist/{chunk-6JWXHPVR.mjs → chunk-XRSNW4IU.mjs} +4 -2
- package/dist/{chunk-2RRTOKRZ.mjs → chunk-YHM4PXJY.mjs} +1 -1
- package/dist/{chunk-A5D3UMLJ.mjs → chunk-YSU3WCW6.mjs} +1 -1
- package/dist/{chunk-4STJ6LGR.mjs → chunk-Z3RM3VA2.mjs} +1 -1
- package/dist/{chunk-YN3YMSKD.mjs → chunk-ZIZRIZLP.mjs} +3 -3
- package/dist/{cli-runtime.d-DPNTN-JV.d.mts → cli-runtime.d-Hnvvadz7.d.mts} +5 -5
- package/dist/{cli-runtime.d-8BhZy_wr.d.ts → cli-runtime.d-I0MphTbc.d.ts} +5 -5
- package/dist/{client-component.d-CkDcob6D.d.ts → client-component.d-5QEvtJsg.d.ts} +1 -1
- package/dist/{client-component.d-CMCdyAr8.d.mts → client-component.d-DapRqtSC.d.mts} +1 -1
- package/dist/{client-plugins.d-WcMwOZGZ.d.mts → client-plugins.d-C1WM3ieD.d.mts} +7 -13
- package/dist/{client-plugins.d-BYIovYqX.d.ts → client-plugins.d-DcmDzcSC.d.ts} +7 -13
- package/dist/client-plugins.d.mts +2 -1
- package/dist/client-plugins.d.ts +2 -1
- package/dist/client.cjs +9 -8
- package/dist/client.d.mts +20 -151
- package/dist/client.d.ts +20 -151
- package/dist/client.mjs +8 -7
- package/dist/config.d.mts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/cron.cjs +2 -2
- package/dist/cron.mjs +1 -1
- package/dist/desktop.d.mts +3 -2
- package/dist/desktop.d.ts +3 -2
- package/dist/{devtools-JJOYTIMS.cjs → devtools-5B7NZE6F.cjs} +15 -14
- package/dist/{devtools-F3FDFV26.mjs → devtools-C5GXZZ7E.mjs} +12 -11
- package/dist/docs.cjs +14 -13
- package/dist/docs.d.mts +4 -3
- package/dist/docs.d.ts +4 -3
- package/dist/docs.mjs +13 -12
- package/dist/environment/vite.cjs +7 -6
- package/dist/environment/vite.mjs +6 -5
- package/dist/{handler.d-s3IM6pbJ.d.mts → handler.d-B8bPCBzl.d.mts} +1 -1
- package/dist/{handler.d-BwdOyc9x.d.ts → handler.d-Cliwo6Nu.d.ts} +1 -1
- package/dist/{headers.d-BR-OXrqQ.d.mts → headers.d-CVwSpSGX.d.mts} +1 -1
- package/dist/{headers.d-CAW4wPey.d.ts → headers.d-C_btqjV6.d.ts} +1 -1
- package/dist/index.cjs +68 -65
- package/dist/{index.d-BEVK61zS.d.mts → index.d-DFuMZk9-.d.mts} +1 -1
- package/dist/{index.d-ah2c89Wu.d.ts → index.d-hOEbMcLk.d.ts} +1 -1
- package/dist/index.d.mts +25 -23
- package/dist/index.d.ts +25 -23
- package/dist/index.mjs +72 -69
- package/dist/instrumentation.cjs +3 -3
- package/dist/instrumentation.mjs +2 -2
- package/dist/integrations/orm.d.mts +2 -1
- package/dist/integrations/orm.d.ts +2 -1
- package/dist/integrations.cjs +4 -3
- package/dist/integrations.d.mts +2 -1
- package/dist/integrations.d.ts +2 -1
- package/dist/integrations.mjs +3 -2
- package/dist/internal/app-markdown-runtime.cjs +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +12 -5
- package/dist/internal/app-markdown-runtime.d.ts +12 -5
- package/dist/internal/app-markdown-runtime.mjs +1 -1
- package/dist/internal/build-runtime.cjs +49 -47
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +48 -46
- package/dist/internal/cli-runtime.cjs +25 -24
- package/dist/internal/cli-runtime.d.mts +8 -7
- package/dist/internal/cli-runtime.d.ts +8 -7
- package/dist/internal/cli-runtime.mjs +26 -25
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +76 -15
- package/dist/internal/client-runtime.d.mts +18 -7
- package/dist/internal/client-runtime.d.ts +18 -7
- package/dist/internal/client-runtime.mjs +67 -6
- package/dist/internal/compression-runtime.d.mts +2 -1
- package/dist/internal/compression-runtime.d.ts +2 -1
- package/dist/internal/config-runtime.cjs +14 -13
- package/dist/internal/config-runtime.d.mts +4 -3
- package/dist/internal/config-runtime.d.ts +4 -3
- package/dist/internal/config-runtime.mjs +13 -12
- package/dist/internal/docs-precompiled-runtime.cjs +1 -1
- package/dist/internal/docs-precompiled-runtime.mjs +1 -1
- package/dist/internal/form-actions.cjs +3 -3
- package/dist/internal/form-actions.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +9 -7
- package/dist/internal/infra-analytics-runtime.d.mts +8 -2
- package/dist/internal/infra-analytics-runtime.d.ts +8 -2
- package/dist/internal/infra-analytics-runtime.mjs +9 -7
- package/dist/internal/island-codec.cjs +3 -3
- package/dist/internal/island-codec.mjs +2 -2
- package/dist/internal/island-value-store.d.mts +1 -1
- package/dist/internal/island-value-store.d.ts +1 -1
- package/dist/internal/islands-boot.cjs +63 -23
- package/dist/internal/islands-boot.d.mts +5 -3
- package/dist/internal/islands-boot.d.ts +5 -3
- package/dist/internal/islands-boot.mjs +58 -18
- package/dist/internal/islands-runtime.cjs +10 -56
- package/dist/internal/islands-runtime.mjs +6 -52
- package/dist/internal/islands-server.cjs +4 -4
- package/dist/internal/islands-server.mjs +3 -3
- package/dist/internal/islx-actions-client.cjs +36 -0
- package/dist/internal/islx-actions-client.d.mts +13 -0
- package/dist/internal/islx-actions-client.d.ts +13 -0
- package/dist/internal/islx-actions-client.mjs +36 -0
- package/dist/internal/islx-actions-server.cjs +8 -0
- package/dist/internal/islx-actions-server.d.mts +6 -0
- package/dist/internal/islx-actions-server.d.ts +6 -0
- package/dist/internal/islx-actions-server.mjs +8 -0
- package/dist/internal/islx-client.d.mts +0 -4
- package/dist/internal/islx-client.d.ts +0 -4
- package/dist/internal/isolated-boundary.cjs +3 -3
- package/dist/internal/isolated-boundary.d.mts +1 -1
- package/dist/internal/isolated-boundary.d.ts +1 -1
- package/dist/internal/isolated-boundary.mjs +2 -2
- package/dist/internal/metadata-image-runtime.cjs +4 -2
- package/dist/internal/metadata-image-runtime.d.mts +18 -2
- package/dist/internal/metadata-image-runtime.d.ts +18 -2
- package/dist/internal/metadata-image-runtime.mjs +5 -3
- package/dist/internal/native-server-fns.cjs +5 -4
- package/dist/internal/native-server-fns.mjs +4 -3
- package/dist/internal/navigation-neutral.cjs +36 -0
- package/dist/internal/navigation-neutral.d.mts +14 -0
- package/dist/internal/navigation-neutral.d.ts +14 -0
- package/dist/internal/navigation-neutral.mjs +36 -0
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +30 -25
- package/dist/internal/production-runtime.d.mts +14 -11
- package/dist/internal/production-runtime.d.ts +14 -11
- package/dist/internal/production-runtime.mjs +35 -30
- package/dist/internal/server-tree.cjs +5 -4
- package/dist/internal/server-tree.d.mts +3 -4
- package/dist/internal/server-tree.d.ts +3 -4
- package/dist/internal/server-tree.mjs +4 -3
- package/dist/internal/spa-router.cjs +3 -3
- package/dist/internal/spa-router.d.mts +4 -3
- package/dist/internal/spa-router.d.ts +4 -3
- package/dist/internal/spa-router.mjs +2 -2
- package/dist/internal/start-manifest.d.mts +2 -1
- package/dist/internal/start-manifest.d.ts +2 -1
- package/dist/internal/vercel-edge-middleware.cjs +1 -1
- package/dist/internal/vercel-edge-middleware.mjs +1 -1
- package/dist/island-value-protocol.d-fEoc1m8e.d.mts +27 -0
- package/dist/island-value-protocol.d-fEoc1m8e.d.ts +27 -0
- package/dist/{layers-5ZD4764G.mjs → layers-744BBUY5.mjs} +2 -2
- package/dist/layers-XLOMMQP7.cjs +21 -0
- package/dist/markdown.d.mts +2 -1
- package/dist/markdown.d.ts +2 -1
- package/dist/middleware.cjs +5 -5
- package/dist/middleware.d.mts +2 -1
- package/dist/middleware.d.ts +2 -1
- package/dist/middleware.mjs +4 -4
- package/dist/{mount.d-DcoPFqv5.d.ts → mount.d-CAovYKfs.d.ts} +1 -1
- package/dist/{mount.d-Ylo-CmzK.d.mts → mount.d-DLeYxeRR.d.mts} +1 -1
- package/dist/{native-server-fn-handler-TNVFEQW3.cjs → native-server-fn-handler-57TCQPSM.cjs} +4 -4
- package/dist/{native-server-fn-handler-OXFTI6V5.mjs → native-server-fn-handler-PYK65A46.mjs} +3 -3
- package/dist/{navigation-delegate.d-2MK4YSlL.d.ts → navigation-delegate.d-BLM-8Q3Z.d.ts} +1 -1
- package/dist/{navigation-delegate.d-BA5h0fbE.d.mts → navigation-delegate.d-Chv93QS6.d.mts} +1 -1
- package/dist/navigation-errors.d-DwHtoMyR.d.mts +13 -0
- package/dist/navigation-errors.d-DwHtoMyR.d.ts +13 -0
- package/dist/navigation.cjs +6 -6
- package/dist/navigation.d.mts +7 -6
- package/dist/navigation.d.ts +7 -6
- package/dist/navigation.mjs +5 -5
- package/dist/{nitro-C3MYDX7V.mjs → nitro-FK3SZM4H.mjs} +2 -2
- package/dist/{nitro-6UOJXJZ6.cjs → nitro-YDFMH5PY.cjs} +6 -6
- package/dist/node-module-bundle-TNSY5PAC.cjs +15 -0
- package/dist/{node-module-bundle-XPLBMXRD.mjs → node-module-bundle-ZWCQJCKA.mjs} +3 -1
- package/dist/{plugin-LN3JBZRR.cjs → plugin-3PT7I26P.cjs} +2 -2
- package/dist/{plugin-33I3V42N.mjs → plugin-QOTAPTVV.mjs} +1 -1
- package/dist/plugin.cjs +41 -37
- package/dist/plugin.d.mts +6 -5
- package/dist/plugin.d.ts +6 -5
- package/dist/plugin.mjs +40 -36
- package/dist/query/client.cjs +10 -10
- package/dist/query/client.mjs +5 -5
- package/dist/{render-plan.d-2o-AG-ot.d.ts → render-plan.d-BSTjTH8h.d.ts} +1 -1
- package/dist/{render-plan.d-ChYBMhLu.d.mts → render-plan.d-CK5Lggyb.d.mts} +1 -1
- package/dist/renderer/none/server.cjs +5 -1
- package/dist/renderer/none/server.d.mts +3 -1
- package/dist/renderer/none/server.d.ts +3 -1
- package/dist/renderer/none/server.mjs +4 -0
- package/dist/renderer/react/server.cjs +6 -6
- package/dist/renderer/react/server.mjs +3 -3
- package/dist/renderer-client.cjs +79 -17
- package/dist/renderer-client.d.mts +13 -97
- package/dist/renderer-client.d.ts +13 -97
- package/dist/renderer-client.mjs +69 -7
- package/dist/renderer.cjs +4 -2
- package/dist/renderer.d.mts +43 -5
- package/dist/renderer.d.ts +43 -5
- package/dist/renderer.mjs +3 -1
- package/dist/{request.d-RCnCBuWq.d.mts → request.d-BhggxQf3.d.mts} +1 -1
- package/dist/{request.d-CE0FIkiM.d.ts → request.d-CyJS9bjm.d.ts} +1 -1
- package/dist/request.d.mts +3 -2
- package/dist/request.d.ts +3 -2
- package/dist/{route-rendering.d-BTPOM2nU.d.ts → route-rendering.d-BLPPmI5I.d.ts} +1 -1
- package/dist/{route-rendering.d-BZJnfKsp.d.mts → route-rendering.d-CUpG2mZJ.d.mts} +1 -1
- package/dist/{router.d-BU_WE6Ol.d.ts → router.d-0X2Ki6rf.d.ts} +1 -1
- package/dist/{router.d-D8Vvwl4i.d.mts → router.d-2NQM1Kgw.d.mts} +1 -1
- package/dist/routes.cjs +1 -1
- package/dist/routes.d.mts +2 -1
- package/dist/routes.d.ts +2 -1
- package/dist/routes.mjs +1 -1
- package/dist/{rsc-pipeline-A3R4U26C.cjs → rsc-pipeline-5AOF64FL.cjs} +19 -18
- package/dist/{rsc-pipeline-JZWVSHOR.mjs → rsc-pipeline-DNRLYOJ7.mjs} +18 -17
- package/dist/{runtime-SQFRHRGJ.mjs → runtime-EHG2FRXZ.mjs} +18 -17
- package/dist/{runtime-WZ3CHHGJ.cjs → runtime-ZVHG5SRB.cjs} +20 -19
- package/dist/{runtime.d-DJ6IIKcF.d.ts → runtime.d-CXuwkUgr.d.ts} +1 -1
- package/dist/{runtime.d-BnmuOXVD.d.mts → runtime.d-CaFXcu_Q.d.mts} +1 -1
- package/dist/server-action-security.cjs +1 -1
- package/dist/server-action-security.mjs +1 -1
- package/dist/{server-components-status.d-BeqSXcjM.d.ts → server-components-status.d-BdeFD8ZH.d.ts} +1 -1
- package/dist/{server-components-status.d-BzOg9M8g.d.mts → server-components-status.d-Cp7zvBm5.d.mts} +1 -1
- package/dist/server-fn.cjs +3 -3
- package/dist/server-fn.mjs +2 -2
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +4 -3
- package/dist/server-plugins.d.ts +4 -3
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query.cjs +4 -4
- package/dist/server-query.mjs +3 -3
- package/dist/server.cjs +82 -71
- package/dist/server.d.mts +12 -11
- package/dist/server.d.ts +12 -11
- package/dist/server.mjs +61 -50
- package/dist/{spa-router.d-BOwuVkMl.d.ts → spa-router.d-Bjgl-Osi.d.ts} +3 -3
- package/dist/{spa-router.d-CDpftSsk.d.mts → spa-router.d-l3G38xHa.d.mts} +3 -3
- package/dist/{ssg.d-BTVqyq8T.d.ts → ssg.d-DDca17Lc.d.ts} +2 -2
- package/dist/{ssg.d-Bx_WFuwg.d.mts → ssg.d-RnlHOqUL.d.mts} +2 -2
- package/dist/store-core.d-BZjuC6Zc.d.mts +309 -0
- package/dist/store-core.d-BaOUOPf7.d.ts +309 -0
- package/dist/testing.cjs +7 -6
- package/dist/testing.d.mts +2 -1
- package/dist/testing.d.ts +2 -1
- package/dist/testing.mjs +6 -5
- package/dist/{utils.d-_dvevm5s.d.ts → utils.d-D8TWmpWo.d.ts} +1 -1
- package/dist/{utils.d-JkrpS-NJ.d.mts → utils.d-tdzw0_zQ.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +43 -37
- package/dist/vite.d.mts +18 -7
- package/dist/vite.d.ts +18 -7
- package/dist/vite.mjs +42 -36
- package/dist/workflows.cjs +2 -2
- package/dist/workflows.mjs +1 -1
- package/package.json +17 -2
- package/dist/analyzer-I7RBBQ65.cjs +0 -16
- package/dist/chunk-CQL5ZGFU.cjs +0 -50
- package/dist/chunk-HONTCUK6.mjs +0 -203
- package/dist/chunk-K6PGK7DC.cjs +0 -203
- package/dist/chunk-NBIVGHAT.mjs +0 -50
- package/dist/island-value-protocol.d-BRayRghM.d.mts +0 -12
- package/dist/island-value-protocol.d-BRayRghM.d.ts +0 -12
- package/dist/layers-HMEGUEXM.cjs +0 -21
- package/dist/node-module-bundle-M6BISE2P.cjs +0 -13
- package/dist/{chunk-EY7ED5UW.mjs → chunk-3RVLJTFZ.mjs} +3 -3
- package/dist/{chunk-UJPE75GF.mjs → chunk-J2VUPCCR.mjs} +3 -3
- package/dist/{chunk-PBJ7MEOV.cjs → chunk-OZUINP2P.cjs} +2 -2
- package/dist/{chunk-7FQFK3OA.mjs → chunk-V7HNYR76.mjs} +3 -3
- package/dist/{chunk-2FK47RRZ.cjs → chunk-VGHDPEPQ.cjs} +2 -2
- package/dist/{chunk-CGIVCGH5.cjs → chunk-XOFJUSWC.cjs} +2 -2
package/dist/query/client.cjs
CHANGED
|
@@ -19,13 +19,13 @@ var _chunkSXCL2MINcjs = require('../chunk-SXCL2MIN.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkUGD53SNOcjs = require('../chunk-UGD53SNO.cjs');
|
|
23
23
|
require('../chunk-JIBEFLQ7.cjs');
|
|
24
24
|
require('../chunk-2PJVEL56.cjs');
|
|
25
25
|
require('../chunk-PENBZAHJ.cjs');
|
|
26
26
|
require('../chunk-RWR7SMD7.cjs');
|
|
27
27
|
require('../chunk-Y3DO7BIJ.cjs');
|
|
28
|
-
require('../chunk-
|
|
28
|
+
require('../chunk-C5QHZ626.cjs');
|
|
29
29
|
require('../chunk-6FXBJPF5.cjs');
|
|
30
30
|
require('../chunk-DBYNZIIQ.cjs');
|
|
31
31
|
require('../chunk-NLBHLPEO.cjs');
|
|
@@ -33,12 +33,12 @@ require('../chunk-7Q2YWZF7.cjs');
|
|
|
33
33
|
require('../chunk-DVJM55D2.cjs');
|
|
34
34
|
require('../chunk-AOKXITZ6.cjs');
|
|
35
35
|
require('../chunk-R5U7OIPI.cjs');
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var _chunk3BIASUGRcjs = require('../chunk-3BIASUGR.cjs');
|
|
39
36
|
require('../chunk-7JUIK547.cjs');
|
|
40
37
|
require('../chunk-GYJT2U7J.cjs');
|
|
41
38
|
require('../chunk-D22BUQKW.cjs');
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
var _chunk3BIASUGRcjs = require('../chunk-3BIASUGR.cjs');
|
|
42
42
|
require('../chunk-UZM3PDKK.cjs');
|
|
43
43
|
|
|
44
44
|
// src/query/client.ts
|
|
@@ -216,14 +216,14 @@ var commitURLUpdate = (updates, options, emitUpdate) => {
|
|
|
216
216
|
if (newUrl === currentUrl) return;
|
|
217
217
|
const historyAction = history === "replaceState" ? "replace" : "push";
|
|
218
218
|
if (!shallow) {
|
|
219
|
-
const navigation =
|
|
219
|
+
const navigation = _chunkUGD53SNOcjs.navigateFarmURLSearch.call(void 0, historyAction, newUrl, scroll);
|
|
220
220
|
if (navigation) {
|
|
221
221
|
const resync = () => emitter.emitUpdate(getCurrentSearchParams());
|
|
222
222
|
void navigation.then(resync, resync);
|
|
223
223
|
return;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
if (!
|
|
226
|
+
if (!_chunkUGD53SNOcjs.writeFarmURLSearchHistory.call(void 0, historyAction, newUrl)) {
|
|
227
227
|
const historyState = window.history.state;
|
|
228
228
|
const nextHistoryState = historyState && typeof historyState === "object" && "path" in historyState ? { ...historyState, path: newUrl } : historyState;
|
|
229
229
|
window.history[history](nextHistoryState, "", newUrl);
|
|
@@ -234,7 +234,7 @@ var commitURLUpdate = (updates, options, emitUpdate) => {
|
|
|
234
234
|
}
|
|
235
235
|
emitter.emitUpdate(getCurrentSearchParams());
|
|
236
236
|
}
|
|
237
|
-
if (shallow)
|
|
237
|
+
if (shallow) _chunkUGD53SNOcjs.notifyHistoryChange.call(void 0, "url-search");
|
|
238
238
|
if (scroll) {
|
|
239
239
|
window.scrollTo(0, 0);
|
|
240
240
|
}
|
|
@@ -318,7 +318,7 @@ function useQueryState(key, parser, options) {
|
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
320
|
onPopState();
|
|
321
|
-
const unsubscribeHistory =
|
|
321
|
+
const unsubscribeHistory = _chunkUGD53SNOcjs.subscribeHistoryChange.call(void 0, onPopState);
|
|
322
322
|
emitter.on("update", onEmitterUpdate);
|
|
323
323
|
emitter.onKey(key, onKeyUpdate);
|
|
324
324
|
return () => {
|
|
@@ -411,7 +411,7 @@ function useQueryStates(parsers, options = {}) {
|
|
|
411
411
|
applyChange2(searchParams);
|
|
412
412
|
};
|
|
413
413
|
applyChange2(getCurrentSearchParams());
|
|
414
|
-
const unsubscribeHistory =
|
|
414
|
+
const unsubscribeHistory = _chunkUGD53SNOcjs.subscribeHistoryChange.call(void 0, onPopState);
|
|
415
415
|
emitter.on("update", onEmitterUpdate);
|
|
416
416
|
const unsubscribeKeys = Object.entries(parsers).map(([key, parser]) => {
|
|
417
417
|
const onKeyUpdate = (payload) => {
|
package/dist/query/client.mjs
CHANGED
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
notifyHistoryChange,
|
|
20
20
|
subscribeHistoryChange,
|
|
21
21
|
writeFarmURLSearchHistory
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-PO5MZIWK.mjs";
|
|
23
23
|
import "../chunk-RSEAX5MW.mjs";
|
|
24
24
|
import "../chunk-FLMALEY2.mjs";
|
|
25
25
|
import "../chunk-H227LYHT.mjs";
|
|
26
26
|
import "../chunk-SD6JGJOM.mjs";
|
|
27
27
|
import "../chunk-AG27TI6Q.mjs";
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-UDMBUTJD.mjs";
|
|
29
29
|
import "../chunk-WCLLPR6H.mjs";
|
|
30
30
|
import "../chunk-7BIW7VCW.mjs";
|
|
31
31
|
import "../chunk-IWJONXPF.mjs";
|
|
@@ -33,12 +33,12 @@ import "../chunk-UJIBSFUE.mjs";
|
|
|
33
33
|
import "../chunk-4O26BPUY.mjs";
|
|
34
34
|
import "../chunk-M25IONJP.mjs";
|
|
35
35
|
import "../chunk-AY2YD5ZX.mjs";
|
|
36
|
-
import {
|
|
37
|
-
_peekCurrentRequest
|
|
38
|
-
} from "../chunk-VIXTAVEA.mjs";
|
|
39
36
|
import "../chunk-JNYFXL7X.mjs";
|
|
40
37
|
import "../chunk-4QBFYEDC.mjs";
|
|
41
38
|
import "../chunk-SF3JB56B.mjs";
|
|
39
|
+
import {
|
|
40
|
+
_peekCurrentRequest
|
|
41
|
+
} from "../chunk-VIXTAVEA.mjs";
|
|
42
42
|
import "../chunk-TIZJYHB7.mjs";
|
|
43
43
|
|
|
44
44
|
// src/query/client.ts
|
|
@@ -5,7 +5,9 @@ var FARM_NO_RENDERER_MESSAGE = "This app sets `renderer: false`, so it cannot re
|
|
|
5
5
|
function throwNoRenderer() {
|
|
6
6
|
throw new Error(FARM_NO_RENDERER_MESSAGE);
|
|
7
7
|
}
|
|
8
|
+
var name = "none";
|
|
8
9
|
var Fragment = /* @__PURE__ */ Symbol.for("farm.no-renderer.fragment");
|
|
10
|
+
var Suspense = Fragment;
|
|
9
11
|
function createElement() {
|
|
10
12
|
return throwNoRenderer();
|
|
11
13
|
}
|
|
@@ -32,4 +34,6 @@ var server_default = { Fragment, createElement, isValidElement };
|
|
|
32
34
|
|
|
33
35
|
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
exports.Fragment = Fragment; exports.Suspense = Suspense; exports.capabilities = capabilities; exports.createElement = createElement; exports.default = server_default; exports.generateHydrationScript = generateHydrationScript; exports.isValidElement = isValidElement; exports.name = name; exports.renderToPipeableStream = renderToPipeableStream; exports.renderToReadableStream = renderToReadableStream; exports.renderToString = renderToString; exports.renderToStringWithHead = renderToStringWithHead;
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* never renders a component; this module only satisfies the renderer contract without loading
|
|
4
4
|
* React or another UI runtime. Any attempt to render explains how to add pages back.
|
|
5
5
|
*/
|
|
6
|
+
declare const name = "none";
|
|
6
7
|
declare const Fragment: unique symbol;
|
|
8
|
+
declare const Suspense: symbol;
|
|
7
9
|
declare function createElement(): never;
|
|
8
10
|
declare function isValidElement(): boolean;
|
|
9
11
|
declare function renderToString(): never;
|
|
@@ -18,4 +20,4 @@ declare const _default: {
|
|
|
18
20
|
isValidElement: typeof isValidElement;
|
|
19
21
|
};
|
|
20
22
|
|
|
21
|
-
export { Fragment, capabilities, createElement, _default as default, generateHydrationScript, isValidElement, renderToPipeableStream, renderToReadableStream, renderToString, renderToStringWithHead };
|
|
23
|
+
export { Fragment, Suspense, capabilities, createElement, _default as default, generateHydrationScript, isValidElement, name, renderToPipeableStream, renderToReadableStream, renderToString, renderToStringWithHead };
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* never renders a component; this module only satisfies the renderer contract without loading
|
|
4
4
|
* React or another UI runtime. Any attempt to render explains how to add pages back.
|
|
5
5
|
*/
|
|
6
|
+
declare const name = "none";
|
|
6
7
|
declare const Fragment: unique symbol;
|
|
8
|
+
declare const Suspense: symbol;
|
|
7
9
|
declare function createElement(): never;
|
|
8
10
|
declare function isValidElement(): boolean;
|
|
9
11
|
declare function renderToString(): never;
|
|
@@ -18,4 +20,4 @@ declare const _default: {
|
|
|
18
20
|
isValidElement: typeof isValidElement;
|
|
19
21
|
};
|
|
20
22
|
|
|
21
|
-
export { Fragment, capabilities, createElement, _default as default, generateHydrationScript, isValidElement, renderToPipeableStream, renderToReadableStream, renderToString, renderToStringWithHead };
|
|
23
|
+
export { Fragment, Suspense, capabilities, createElement, _default as default, generateHydrationScript, isValidElement, name, renderToPipeableStream, renderToReadableStream, renderToString, renderToStringWithHead };
|
|
@@ -5,7 +5,9 @@ var FARM_NO_RENDERER_MESSAGE = "This app sets `renderer: false`, so it cannot re
|
|
|
5
5
|
function throwNoRenderer() {
|
|
6
6
|
throw new Error(FARM_NO_RENDERER_MESSAGE);
|
|
7
7
|
}
|
|
8
|
+
var name = "none";
|
|
8
9
|
var Fragment = /* @__PURE__ */ Symbol.for("farm.no-renderer.fragment");
|
|
10
|
+
var Suspense = Fragment;
|
|
9
11
|
function createElement() {
|
|
10
12
|
return throwNoRenderer();
|
|
11
13
|
}
|
|
@@ -23,11 +25,13 @@ var renderToStringWithHead = void 0;
|
|
|
23
25
|
var server_default = { Fragment, createElement, isValidElement };
|
|
24
26
|
export {
|
|
25
27
|
Fragment,
|
|
28
|
+
Suspense,
|
|
26
29
|
capabilities,
|
|
27
30
|
createElement,
|
|
28
31
|
server_default as default,
|
|
29
32
|
generateHydrationScript,
|
|
30
33
|
isValidElement,
|
|
34
|
+
name,
|
|
31
35
|
renderToPipeableStream,
|
|
32
36
|
renderToReadableStream,
|
|
33
37
|
renderToString,
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunkSAPG45RAcjs = require('../../chunk-SAPG45RA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkRDNKQ5MKcjs = require('../../chunk-RDNKQ5MK.cjs');
|
|
8
8
|
require('../../chunk-ATYTLVSI.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkUNOXV37Vcjs = require('../../chunk-UNOXV37V.cjs');
|
|
13
|
-
require('../../chunk-
|
|
13
|
+
require('../../chunk-C5QHZ626.cjs');
|
|
14
14
|
require('../../chunk-UZM3PDKK.cjs');
|
|
15
15
|
|
|
16
16
|
// src/renderer/react/server.ts
|
|
@@ -49,9 +49,9 @@ var Fragment = _react2.default.Fragment;
|
|
|
49
49
|
var Suspense = _react2.default.Suspense;
|
|
50
50
|
var createElement = _react2.default.createElement;
|
|
51
51
|
var isValidElement = _react2.default.isValidElement;
|
|
52
|
-
var wrapClientGraph = (element) =>
|
|
53
|
-
var isolateServerPageGraph = (element) =>
|
|
54
|
-
var renderServerTreePage = (element, options = {}) =>
|
|
52
|
+
var wrapClientGraph = (element) => _chunkSAPG45RAcjs.wrapFarmIsolatedClientGraph.call(void 0, _react2.default, element);
|
|
53
|
+
var isolateServerPageGraph = (element) => _chunkSAPG45RAcjs.isolateFarmServerPageGraph.call(void 0, _react2.default, element);
|
|
54
|
+
var renderServerTreePage = (element, options = {}) => _chunkRDNKQ5MKcjs.renderFarmServerTreePage.call(void 0, _react2.default, element, { isolate: isolateServerPageGraph, ...options });
|
|
55
55
|
var renderToString = _server.renderToString;
|
|
56
56
|
var renderToPipeableStream = _server.renderToPipeableStream;
|
|
57
57
|
var server_default = _react2.default;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isolateFarmServerPageGraph,
|
|
3
3
|
wrapFarmIsolatedClientGraph
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-KR5DF7WK.mjs";
|
|
5
5
|
import {
|
|
6
6
|
renderFarmServerTreePage
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-XBSIGZ4J.mjs";
|
|
8
8
|
import "../../chunk-FHURJABM.mjs";
|
|
9
9
|
import {
|
|
10
10
|
markLayoutPosition,
|
|
11
11
|
markPagePosition
|
|
12
12
|
} from "../../chunk-NUWUEXUD.mjs";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-UDMBUTJD.mjs";
|
|
14
14
|
import "../../chunk-TIZJYHB7.mjs";
|
|
15
15
|
|
|
16
16
|
// src/renderer/react/server.ts
|
package/dist/renderer-client.cjs
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
var _chunkYBXIVQCEcjs = require('./chunk-YBXIVQCE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkB7L24VPXcjs = require('./chunk-B7L24VPX.cjs');
|
|
10
|
+
require('./chunk-RK3YYUX6.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
7
13
|
var _chunkN4AQNEXRcjs = require('./chunk-N4AQNEXR.cjs');
|
|
8
14
|
|
|
9
15
|
|
|
@@ -23,7 +29,7 @@ var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
|
|
|
23
29
|
|
|
24
30
|
|
|
25
31
|
|
|
26
|
-
var
|
|
32
|
+
var _chunkUGD53SNOcjs = require('./chunk-UGD53SNO.cjs');
|
|
27
33
|
|
|
28
34
|
|
|
29
35
|
var _chunkJIBEFLQ7cjs = require('./chunk-JIBEFLQ7.cjs');
|
|
@@ -36,10 +42,11 @@ var _chunk2PJVEL56cjs = require('./chunk-2PJVEL56.cjs');
|
|
|
36
42
|
var _chunkI2BYNELAcjs = require('./chunk-I2BYNELA.cjs');
|
|
37
43
|
require('./chunk-PENBZAHJ.cjs');
|
|
38
44
|
require('./chunk-MPU5DOXX.cjs');
|
|
45
|
+
require('./chunk-WKVYF2B5.cjs');
|
|
39
46
|
require('./chunk-CIY74JLV.cjs');
|
|
40
47
|
require('./chunk-RWR7SMD7.cjs');
|
|
41
48
|
require('./chunk-Y3DO7BIJ.cjs');
|
|
42
|
-
require('./chunk-
|
|
49
|
+
require('./chunk-C5QHZ626.cjs');
|
|
43
50
|
require('./chunk-6FXBJPF5.cjs');
|
|
44
51
|
require('./chunk-DBYNZIIQ.cjs');
|
|
45
52
|
require('./chunk-NLBHLPEO.cjs');
|
|
@@ -63,13 +70,16 @@ var _chunkGYJT2U7Jcjs = require('./chunk-GYJT2U7J.cjs');
|
|
|
63
70
|
|
|
64
71
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
65
72
|
require('./chunk-ML4TOUZP.cjs');
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
var _chunk3BIASUGRcjs = require('./chunk-3BIASUGR.cjs');
|
|
66
76
|
require('./chunk-UZM3PDKK.cjs');
|
|
67
77
|
|
|
68
78
|
// src/renderer-client.ts
|
|
69
79
|
function createRendererRouter(options = {}) {
|
|
70
80
|
const basePath = options.basePath === void 0 ? _chunkD22BUQKWcjs.getFarmBasePath.call(void 0, ) : _chunkD22BUQKWcjs.normalizeFarmBasePath.call(void 0, options.basePath);
|
|
71
81
|
const matcher = _optionalChain([options, 'access', _ => _.routes, 'optionalAccess', _2 => _2.length]) ? _chunkO4JYMU5Ncjs.createFarmRouter.call(void 0, [...options.routes]) : null;
|
|
72
|
-
const router =
|
|
82
|
+
const router = _chunkUGD53SNOcjs.getRouter.call(void 0, );
|
|
73
83
|
let snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
|
|
74
84
|
const read = () => {
|
|
75
85
|
snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
|
|
@@ -85,7 +95,7 @@ function createRendererRouter(options = {}) {
|
|
|
85
95
|
listener();
|
|
86
96
|
};
|
|
87
97
|
const unsubscribeNavigation = router.subscribeNavigation(notify);
|
|
88
|
-
const unsubscribeHistory =
|
|
98
|
+
const unsubscribeHistory = _chunkUGD53SNOcjs.subscribeHistoryChange.call(void 0, notify);
|
|
89
99
|
read();
|
|
90
100
|
return () => {
|
|
91
101
|
unsubscribeNavigation();
|
|
@@ -203,6 +213,36 @@ function createRendererAction(target, options = {}) {
|
|
|
203
213
|
}
|
|
204
214
|
};
|
|
205
215
|
}
|
|
216
|
+
async function submitRendererActionForm(action, event) {
|
|
217
|
+
const form = event.target;
|
|
218
|
+
if (event.defaultPrevented || !isFormElement(form)) return;
|
|
219
|
+
event.preventDefault();
|
|
220
|
+
const submitter = _nullishCoalesce(event.submitter, () => ( null));
|
|
221
|
+
try {
|
|
222
|
+
await action.submit(createSubmittedFormData(form, submitter));
|
|
223
|
+
} catch (e) {
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
form.reset();
|
|
227
|
+
}
|
|
228
|
+
function isFormElement(value) {
|
|
229
|
+
return typeof HTMLFormElement !== "undefined" && value instanceof HTMLFormElement;
|
|
230
|
+
}
|
|
231
|
+
function createSubmittedFormData(form, submitter) {
|
|
232
|
+
if (submitter) {
|
|
233
|
+
try {
|
|
234
|
+
const data2 = new FormData(form, submitter);
|
|
235
|
+
const name = submitter.getAttribute("name");
|
|
236
|
+
if (!name || data2.has(name)) return data2;
|
|
237
|
+
} catch (e2) {
|
|
238
|
+
return new FormData(form);
|
|
239
|
+
}
|
|
240
|
+
const data = new FormData(form);
|
|
241
|
+
data.append(submitter.getAttribute("name"), _nullishCoalesce(submitter.getAttribute("value"), () => ( "")));
|
|
242
|
+
return data;
|
|
243
|
+
}
|
|
244
|
+
return new FormData(form);
|
|
245
|
+
}
|
|
206
246
|
function createRendererQuery(query, input, options = {}) {
|
|
207
247
|
if (!_chunkEX6ZSN5Pcjs.isFarmServerQueryBrowserRuntime.call(void 0, )) {
|
|
208
248
|
const snapshot = {
|
|
@@ -228,9 +268,17 @@ function createRendererQuery(query, input, options = {}) {
|
|
|
228
268
|
let unsubscribeCache;
|
|
229
269
|
let cleanupBrowser;
|
|
230
270
|
const run = (force = false) => _chunkEX6ZSN5Pcjs.fetchServerQuery.call(void 0, query, input, { ...options, force });
|
|
271
|
+
let pendingInvalidation = false;
|
|
231
272
|
const ensureStarted = () => {
|
|
232
273
|
if (options.enabled === false || unsubscribeCache) return;
|
|
233
|
-
unsubscribeCache = cache.subscribe(key, () => {
|
|
274
|
+
unsubscribeCache = cache.subscribe(key, (event) => {
|
|
275
|
+
const entry = cache.get(key);
|
|
276
|
+
if (event === "invalidate") pendingInvalidation = true;
|
|
277
|
+
else if (_optionalChain([entry, 'optionalAccess', _13 => _13.fetching])) pendingInvalidation = false;
|
|
278
|
+
if (pendingInvalidation && _optionalChain([entry, 'optionalAccess', _14 => _14.invalidatedAt]) !== void 0 && !entry.fetching) {
|
|
279
|
+
pendingInvalidation = false;
|
|
280
|
+
void run().catch(() => void 0);
|
|
281
|
+
}
|
|
234
282
|
for (const listener of listeners) listener();
|
|
235
283
|
});
|
|
236
284
|
if (!cache.get(key) || cache.isStale(key)) void run().catch(() => void 0);
|
|
@@ -247,13 +295,13 @@ function createRendererQuery(query, input, options = {}) {
|
|
|
247
295
|
return {
|
|
248
296
|
getSnapshot() {
|
|
249
297
|
const entry = cache.get(key);
|
|
250
|
-
const status = _nullishCoalesce(_optionalChain([entry, 'optionalAccess',
|
|
298
|
+
const status = _nullishCoalesce(_optionalChain([entry, 'optionalAccess', _15 => _15.status]), () => ( (entry ? "success" : "idle")));
|
|
251
299
|
return {
|
|
252
|
-
data: _optionalChain([entry, 'optionalAccess',
|
|
253
|
-
error: _nullishCoalesce(_optionalChain([entry, 'optionalAccess',
|
|
300
|
+
data: _optionalChain([entry, 'optionalAccess', _16 => _16.data]),
|
|
301
|
+
error: _nullishCoalesce(_optionalChain([entry, 'optionalAccess', _17 => _17.error]), () => ( null)),
|
|
254
302
|
status,
|
|
255
|
-
pending: status === "pending" && (_nullishCoalesce(_optionalChain([entry, 'optionalAccess',
|
|
256
|
-
fetching: _nullishCoalesce(_optionalChain([entry, 'optionalAccess',
|
|
303
|
+
pending: status === "pending" && (_nullishCoalesce(_optionalChain([entry, 'optionalAccess', _18 => _18.updatedAt]), () => ( 0))) === 0,
|
|
304
|
+
fetching: _nullishCoalesce(_optionalChain([entry, 'optionalAccess', _19 => _19.fetching]), () => ( false)),
|
|
257
305
|
stale: cache.isStale(key)
|
|
258
306
|
};
|
|
259
307
|
},
|
|
@@ -264,8 +312,8 @@ function createRendererQuery(query, input, options = {}) {
|
|
|
264
312
|
},
|
|
265
313
|
refetch: () => run(true),
|
|
266
314
|
dispose() {
|
|
267
|
-
_optionalChain([unsubscribeCache, 'optionalCall',
|
|
268
|
-
_optionalChain([cleanupBrowser, 'optionalCall',
|
|
315
|
+
_optionalChain([unsubscribeCache, 'optionalCall', _20 => _20()]);
|
|
316
|
+
_optionalChain([cleanupBrowser, 'optionalCall', _21 => _21()]);
|
|
269
317
|
unsubscribeCache = void 0;
|
|
270
318
|
cleanupBrowser = void 0;
|
|
271
319
|
listeners.clear();
|
|
@@ -299,7 +347,8 @@ function createRendererI18n() {
|
|
|
299
347
|
};
|
|
300
348
|
}
|
|
301
349
|
function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
302
|
-
|
|
350
|
+
const url = readRendererCurrentUrl();
|
|
351
|
+
if (!url) {
|
|
303
352
|
return {
|
|
304
353
|
pathname: "/",
|
|
305
354
|
searchParams: new URLSearchParams(),
|
|
@@ -308,18 +357,27 @@ function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
|
308
357
|
navigation
|
|
309
358
|
};
|
|
310
359
|
}
|
|
311
|
-
const url = new URL(window.location.href);
|
|
312
360
|
const pathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, url.pathname, basePath);
|
|
313
361
|
const i18n = _chunk2PJVEL56cjs.getFarmI18nClientState.call(void 0, );
|
|
314
362
|
const routePathname = i18n ? _chunkGYJT2U7Jcjs.stripFarmLocaleFromPathname.call(void 0, pathname, { ...i18n, basePath: "/" }) : pathname;
|
|
315
363
|
return {
|
|
316
364
|
pathname,
|
|
317
365
|
searchParams: url.searchParams,
|
|
318
|
-
params: _optionalChain([matcher, 'optionalAccess',
|
|
319
|
-
pageState:
|
|
366
|
+
params: _optionalChain([matcher, 'optionalAccess', _22 => _22.match, 'call', _23 => _23(routePathname), 'optionalAccess', _24 => _24.params]) || {},
|
|
367
|
+
pageState: typeof window === "undefined" ? null : _chunkUGD53SNOcjs.readPageState.call(void 0, ),
|
|
320
368
|
navigation
|
|
321
369
|
};
|
|
322
370
|
}
|
|
371
|
+
function readRendererCurrentUrl() {
|
|
372
|
+
if (typeof window !== "undefined") return new URL(window.location.href);
|
|
373
|
+
const request = _chunk3BIASUGRcjs._peekCurrentRequest.call(void 0, );
|
|
374
|
+
if (!request) return void 0;
|
|
375
|
+
try {
|
|
376
|
+
return new URL(request.url);
|
|
377
|
+
} catch (e3) {
|
|
378
|
+
return void 0;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
323
381
|
function resolveRendererHref(href, basePath) {
|
|
324
382
|
return _chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href, basePath);
|
|
325
383
|
}
|
|
@@ -346,4 +404,8 @@ function isRendererFormData(value) {
|
|
|
346
404
|
|
|
347
405
|
|
|
348
406
|
|
|
349
|
-
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
exports.FARM_LINK_OPTION_KEYS = _chunkB7L24VPXcjs.FARM_LINK_OPTION_KEYS; exports.createRendererAction = createRendererAction; exports.createRendererI18n = createRendererI18n; exports.createRendererQuery = createRendererQuery; exports.createRendererRouter = createRendererRouter; exports.createRendererTheme = createRendererTheme; exports.createStore = _chunkB7L24VPXcjs.createStore; exports.delegateNavigation = _chunkJIBEFLQ7cjs.delegateNavigation; exports.resolveLinkAttributes = _chunkB7L24VPXcjs.resolveLinkAttributes; exports.submitRendererActionForm = submitRendererActionForm;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
export { F as
|
|
10
|
-
|
|
1
|
+
import './router.mjs';
|
|
2
|
+
export { b as FarmViewTransitionMode } from './spa-router.d-l3G38xHa.mjs';
|
|
3
|
+
import './client-cache.d-di_Nasxa.mjs';
|
|
4
|
+
import './server-fn.mjs';
|
|
5
|
+
import './server-query.mjs';
|
|
6
|
+
import './server-query-runtime.d-aP52iuL5.mjs';
|
|
7
|
+
import './types.d-DQnyD3VD.mjs';
|
|
8
|
+
export { b as FarmI18nClientSnapshot, f as FarmI18nLocale, o as FarmTranslator } from './types.d-euATAbE4.mjs';
|
|
9
|
+
export { D as DefaultRouteHref, m as FARM_LINK_OPTION_KEYS, n as FarmAction, o as FarmActionOptions, p as FarmActionSnapshot, q as FarmActionStatus, r as FarmActionSubmit, s as FarmClientStore, t as FarmLinkAttributes, F as FarmLinkOptions, u as FarmRendererI18n, v as FarmRendererQuery, w as FarmRendererQueryOptions, x as FarmRendererQuerySnapshot, y as FarmRendererRouter, z as FarmRendererRouterOptions, A as FarmRendererRouterSnapshot, B as FarmRendererTheme, C as FarmRouteActionTarget, L as LinkDefaultRoute, G as Store, l as StoreApi, H as StoreFields, S as StoreKeyListener, g as StoreKeysListener, h as StoreListener, i as StorePatch, j as StoreState, k as StoreValueUpdater, I as createRendererAction, J as createRendererI18n, K as createRendererQuery, M as createRendererRouter, N as createRendererTheme, O as createStore, Q as resolveLinkAttributes, T as submitRendererActionForm } from './store-core.d-BZjuC6Zc.mjs';
|
|
10
|
+
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-Chv93QS6.mjs';
|
|
11
|
+
import './client-plugins.d-C1WM3ieD.mjs';
|
|
11
12
|
import './lifecycle.d-OtGWAvJT.mjs';
|
|
12
13
|
import './route.d-ShmtqqVQ.mjs';
|
|
13
14
|
import './endpoint.d-BXbBpKoh.mjs';
|
|
@@ -33,6 +34,7 @@ import './workflows.mjs';
|
|
|
33
34
|
import './server-http.d-rAe7lAQc.mjs';
|
|
34
35
|
import './cron.mjs';
|
|
35
36
|
import './env.mjs';
|
|
37
|
+
import './navigation-errors.d-DwHtoMyR.mjs';
|
|
36
38
|
import './server-action-security.mjs';
|
|
37
39
|
import './server-fn-error.d-DrcH9cc1.mjs';
|
|
38
40
|
import './layers.d-CH0bC4QL.mjs';
|
|
@@ -42,90 +44,4 @@ import './image-config.d-ByhQ0TT7.mjs';
|
|
|
42
44
|
import './config.d-BKIhJtmr.mjs';
|
|
43
45
|
import './font.mjs';
|
|
44
46
|
import './island.d-CfGru1MO.mjs';
|
|
45
|
-
import './render-plan.d-
|
|
46
|
-
|
|
47
|
-
interface FarmClientStore<TSnapshot> {
|
|
48
|
-
getSnapshot(): TSnapshot;
|
|
49
|
-
subscribe(listener: () => void): () => void;
|
|
50
|
-
}
|
|
51
|
-
interface FarmRendererRouterOptions {
|
|
52
|
-
basePath?: string;
|
|
53
|
-
routes?: readonly FarmRouterRouteInput[];
|
|
54
|
-
}
|
|
55
|
-
interface FarmRendererRouterSnapshot {
|
|
56
|
-
pathname: string;
|
|
57
|
-
searchParams: URLSearchParams;
|
|
58
|
-
params: Record<string, string>;
|
|
59
|
-
pageState: unknown;
|
|
60
|
-
navigation: FarmNavigationState;
|
|
61
|
-
}
|
|
62
|
-
interface FarmRendererRouter extends FarmClientStore<FarmRendererRouterSnapshot> {
|
|
63
|
-
push(href: string, options?: Omit<FarmNavigateOptions, "replace">): Promise<void>;
|
|
64
|
-
replace(href: string, options?: Omit<FarmNavigateOptions, "replace">): Promise<void>;
|
|
65
|
-
refresh(options?: Omit<FarmNavigateOptions, "replace" | "refresh">): Promise<void>;
|
|
66
|
-
prefetch(href: string): Promise<void>;
|
|
67
|
-
back(): void;
|
|
68
|
-
forward(): void;
|
|
69
|
-
pushState<TState>(state: TState, href?: string): void;
|
|
70
|
-
replaceState<TState>(state: TState, href?: string): void;
|
|
71
|
-
}
|
|
72
|
-
declare function createRendererRouter(options?: FarmRendererRouterOptions): FarmRendererRouter;
|
|
73
|
-
type FarmActionStatus = "idle" | "pending" | "success" | "error";
|
|
74
|
-
interface FarmActionSnapshot<TResult, TError extends Error = Error> {
|
|
75
|
-
pending: boolean;
|
|
76
|
-
status: FarmActionStatus;
|
|
77
|
-
data: TResult | null;
|
|
78
|
-
error: TError | null;
|
|
79
|
-
}
|
|
80
|
-
interface FarmActionOptions<TInput, TResult, TError extends Error = Error> {
|
|
81
|
-
initialResult?: TResult | null;
|
|
82
|
-
resetOnSubmit?: boolean;
|
|
83
|
-
optimistic?: (context: {
|
|
84
|
-
input: TInput | FormData | undefined;
|
|
85
|
-
formData?: FormData;
|
|
86
|
-
current: TResult | null;
|
|
87
|
-
}) => TResult | null | undefined;
|
|
88
|
-
rollbackOnError?: boolean;
|
|
89
|
-
onSuccess?: (result: TResult) => void;
|
|
90
|
-
onError?: (error: TError) => void;
|
|
91
|
-
onSettled?: (result: TResult | null, error: TError | null) => void;
|
|
92
|
-
}
|
|
93
|
-
type FarmActionSubmit<TInput, TResult> = [unknown] extends [TInput] ? (input?: TInput | FormData) => Promise<TResult> : (input: TInput | FormData) => Promise<TResult>;
|
|
94
|
-
type FarmAction<TInput, TResult, TError extends Error = Error> = FarmClientStore<FarmActionSnapshot<TResult, TError>> & {
|
|
95
|
-
submit: FarmActionSubmit<TInput, TResult>;
|
|
96
|
-
reset(): void;
|
|
97
|
-
};
|
|
98
|
-
type FarmRouteActionTarget<TServerFn extends ServerFn<any, any, any>> = {
|
|
99
|
-
readonly action: TServerFn;
|
|
100
|
-
};
|
|
101
|
-
declare function createRendererAction<TInput, TResult, TError extends Error = Error>(target: ServerFn<TInput, TResult, TError> | FarmRouteActionTarget<ServerFn<TInput, TResult, TError>>, options?: FarmActionOptions<TInput, TResult, TError>): FarmAction<TInput, TResult, TError>;
|
|
102
|
-
interface FarmRendererQueryOptions extends ServerQueryFetchOptions {
|
|
103
|
-
enabled?: boolean;
|
|
104
|
-
refetchOnWindowFocus?: boolean;
|
|
105
|
-
refetchOnReconnect?: boolean;
|
|
106
|
-
}
|
|
107
|
-
interface FarmRendererQuerySnapshot<TData> {
|
|
108
|
-
data: TData | undefined;
|
|
109
|
-
error: Error | null;
|
|
110
|
-
status: FarmClientCacheStatus;
|
|
111
|
-
pending: boolean;
|
|
112
|
-
fetching: boolean;
|
|
113
|
-
stale: boolean;
|
|
114
|
-
}
|
|
115
|
-
interface FarmRendererQuery<TData> extends FarmClientStore<FarmRendererQuerySnapshot<TData>> {
|
|
116
|
-
refetch(): Promise<TData>;
|
|
117
|
-
dispose(): void;
|
|
118
|
-
}
|
|
119
|
-
declare function createRendererQuery<TInput, TData>(query: ServerQuery<TInput, TData>, input: TInput, options?: FarmRendererQueryOptions): FarmRendererQuery<TData>;
|
|
120
|
-
interface FarmRendererTheme extends FarmClientStore<FarmThemeSnapshot> {
|
|
121
|
-
setTheme(theme: FarmThemePreference): void;
|
|
122
|
-
toggleTheme(): FarmThemeSnapshot["resolvedTheme"];
|
|
123
|
-
}
|
|
124
|
-
declare function createRendererTheme(): FarmRendererTheme;
|
|
125
|
-
interface FarmRendererI18n extends FarmClientStore<FarmI18nClientSnapshot | undefined> {
|
|
126
|
-
readonly t: FarmTranslator;
|
|
127
|
-
setLocale(locale: FarmI18nLocale): void;
|
|
128
|
-
}
|
|
129
|
-
declare function createRendererI18n(): FarmRendererI18n;
|
|
130
|
-
|
|
131
|
-
export { type FarmAction, type FarmActionOptions, type FarmActionSnapshot, type FarmActionStatus, type FarmActionSubmit, type FarmClientStore, FarmI18nClientSnapshot, FarmI18nLocale, type FarmRendererI18n, type FarmRendererQuery, type FarmRendererQueryOptions, type FarmRendererQuerySnapshot, type FarmRendererRouter, type FarmRendererRouterOptions, type FarmRendererRouterSnapshot, type FarmRendererTheme, type FarmRouteActionTarget, FarmTranslator, createRendererAction, createRendererI18n, createRendererQuery, createRendererRouter, createRendererTheme };
|
|
47
|
+
import './render-plan.d-CK5Lggyb.mjs';
|