@farm.js/core 0.1.82 → 0.1.83
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-C2Su3x4D.d.ts → agent-mcp.d-7uKdOttc.d.ts} +1 -1
- package/dist/{agent-mcp.d-Yak-LqRd.d.mts → agent-mcp.d-LChlR2au.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +2 -1
- package/dist/agent-runtime.d.ts +2 -1
- package/dist/analyzer-WGH6J2HN.cjs +17 -0
- package/dist/{analyzer-RPU2KG4J.mjs → analyzer-Y6IY26HI.mjs} +2 -2
- package/dist/api/node.d.mts +4 -3
- package/dist/api/node.d.ts +4 -3
- package/dist/api/route-manager.d.mts +4 -3
- package/dist/api/route-manager.d.ts +4 -3
- package/dist/api/runtime.d.mts +3 -2
- package/dist/api/runtime.d.ts +3 -2
- package/dist/api.d.mts +5 -4
- package/dist/api.d.ts +5 -4
- package/dist/{app-manifest.d-DZyXaICz.d.ts → app-manifest.d-CRp21oAz.d.ts} +1 -1
- package/dist/{app-manifest.d-BcyOFMrg.d.mts → app-manifest.d-QMdmqqCr.d.mts} +1 -1
- package/dist/app-markdown.d.mts +3 -2
- package/dist/app-markdown.d.ts +3 -2
- package/dist/{app.d-CIoXsAbN.d.ts → app.d-CVPu_hoD.d.ts} +34 -4
- package/dist/{app.d-C0ePpuaG.d.mts → app.d-eSm7jgoc.d.mts} +34 -4
- package/dist/{chunk-JK26IMT7.cjs → chunk-3CZ4MJHW.cjs} +1 -1
- package/dist/{chunk-5MUFW5UU.cjs → chunk-3DAJXBSL.cjs} +2 -2
- package/dist/{chunk-XMHERKSE.mjs → chunk-42IBGQTN.mjs} +5 -12
- package/dist/{chunk-4X7LSGM6.mjs → chunk-43N3X6OO.mjs} +1 -1
- package/dist/{chunk-LM2ZDNDD.cjs → chunk-55UJGUBP.cjs} +24 -19
- package/dist/{chunk-TPA2PV5J.mjs → chunk-5V6HSJFG.mjs} +24 -1
- package/dist/chunk-5X5GJU5A.cjs +426 -0
- package/dist/{chunk-Q2VOT3K2.cjs → chunk-7X2CYE66.cjs} +316 -310
- package/dist/{chunk-6BPFIYGY.cjs → chunk-A5BHJHDF.cjs} +3 -3
- package/dist/{chunk-EL2Z6YFZ.mjs → chunk-B5SJYXJK.mjs} +177 -67
- package/dist/chunk-BUQR7KKO.mjs +17 -0
- package/dist/{chunk-724WT3NI.mjs → chunk-CRE642TW.mjs} +1 -1
- package/dist/{chunk-NRCKBDYP.mjs → chunk-DPUZVGXH.mjs} +130 -27
- package/dist/{chunk-N2EFMN2K.cjs → chunk-DZTWUEBB.cjs} +2 -2
- package/dist/{chunk-DRO3NXA3.cjs → chunk-EFI6QWBQ.cjs} +200 -90
- package/dist/chunk-ELNRKD4V.mjs +426 -0
- package/dist/{chunk-63ZE6B6M.mjs → chunk-FFWSER54.mjs} +1 -1
- package/dist/chunk-FZ7OUN5M.cjs +30 -0
- package/dist/{chunk-5MMKNW7Q.cjs → chunk-H7REG7OX.cjs} +15 -8
- package/dist/{chunk-VMBIKDKW.cjs → chunk-HRH7OKBQ.cjs} +6 -4
- package/dist/{chunk-RMPUEH5T.cjs → chunk-IABI62FH.cjs} +2 -2
- package/dist/{chunk-ZIZRIZLP.mjs → chunk-IAIRQAHA.mjs} +3 -1
- package/dist/{chunk-EX6ZSN5P.cjs → chunk-IZYFP7IN.cjs} +17 -24
- package/dist/chunk-J6RFB324.cjs +17 -0
- package/dist/{chunk-ARORZ3MH.cjs → chunk-JHRJ5V2F.cjs} +366 -263
- package/dist/{chunk-OMB7UGVW.mjs → chunk-K3GHY7GY.mjs} +14 -9
- package/dist/{chunk-UVV3I5QA.cjs → chunk-L2GUEYHR.cjs} +29 -6
- package/dist/{chunk-HHQEKLZL.cjs → chunk-LN6FAYNB.cjs} +36 -31
- package/dist/chunk-M6AJZ4XR.mjs +30 -0
- package/dist/{chunk-47I2MYIR.mjs → chunk-NDWI6FDH.mjs} +442 -180
- package/dist/{chunk-BCTHOQPP.cjs → chunk-NGTZHWBG.cjs} +68 -1
- package/dist/{chunk-OP5VI4TP.mjs → chunk-NKVBWPXR.mjs} +1 -1
- package/dist/{chunk-CD5Z7RR5.cjs → chunk-OM6JIIJU.cjs} +4 -4
- package/dist/{chunk-C3VCYOU4.mjs → chunk-ORBBAA7B.mjs} +1 -1
- package/dist/{chunk-I4DR3HCH.mjs → chunk-R3VLM2MW.mjs} +1 -1
- package/dist/{chunk-I4WZRG73.mjs → chunk-RB5IGN3N.mjs} +13 -6
- package/dist/{chunk-RMLR5RMH.mjs → chunk-RGTZAM6Y.mjs} +67 -0
- package/dist/{chunk-GXLNARPO.mjs → chunk-RNJX3MD6.mjs} +1 -1
- package/dist/{chunk-EJCVG25Z.mjs → chunk-S3R4JDRO.mjs} +17 -9
- package/dist/{chunk-AIPZDBP6.cjs → chunk-SLIXHUMS.cjs} +780 -518
- package/dist/{chunk-WFVSAT7Y.cjs → chunk-T7HGXF7D.cjs} +3 -3
- package/dist/{chunk-CJDBTTLB.mjs → chunk-U56Z3755.mjs} +10 -5
- package/dist/{chunk-QSMUMK7Y.mjs → chunk-VQ6IXALL.mjs} +2 -2
- package/dist/{chunk-B2PGVHBG.cjs → chunk-WCSBYQOT.cjs} +4 -4
- package/dist/{chunk-DAXU2NBE.mjs → chunk-WZV2G2A6.mjs} +30 -24
- package/dist/{chunk-SM2SYWAR.cjs → chunk-XJDB564A.cjs} +18 -10
- package/dist/{cli-runtime.d-Hnvvadz7.d.mts → cli-runtime.d-C7aMfoTq.d.mts} +8 -6
- package/dist/{cli-runtime.d-I0MphTbc.d.ts → cli-runtime.d-DaElKjaL.d.ts} +8 -6
- package/dist/{client-component.d-DapRqtSC.d.mts → client-component.d-DLMCzmUx.d.mts} +1 -1
- package/dist/{client-component.d-5QEvtJsg.d.ts → client-component.d-DLknFP8l.d.ts} +1 -1
- package/dist/{client-plugins.d-DcmDzcSC.d.ts → client-plugins.d-BVXjyIkY.d.ts} +14 -0
- package/dist/{client-plugins.d-C1WM3ieD.d.mts → client-plugins.d-BwKwuO_0.d.mts} +14 -0
- package/dist/client-plugins.d.mts +2 -1
- package/dist/client-plugins.d.ts +2 -1
- package/dist/client.cjs +4 -3
- package/dist/client.d.mts +10 -9
- package/dist/client.d.ts +10 -9
- package/dist/client.mjs +3 -2
- package/dist/config.d.mts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/desktop.d.mts +3 -2
- package/dist/desktop.d.ts +3 -2
- package/dist/{devtools-C5GXZZ7E.mjs → devtools-OI52TCSD.mjs} +3 -3
- package/dist/{devtools-5B7NZE6F.cjs → devtools-ZM2AR36W.cjs} +5 -5
- package/dist/docs.cjs +8 -7
- package/dist/docs.d.mts +15 -6
- package/dist/docs.d.ts +15 -6
- package/dist/docs.mjs +7 -6
- package/dist/environment/vite.cjs +4 -4
- package/dist/environment/vite.d.mts +1 -0
- package/dist/environment/vite.d.ts +1 -0
- package/dist/environment/vite.mjs +3 -3
- package/dist/{generate-route-types.d-CaGMIaNI.d.mts → generate-route-types.d-BFOMM8Ef.d.mts} +3 -0
- package/dist/{generate-route-types.d-B76M5R11.d.ts → generate-route-types.d-C2m8myHb.d.ts} +3 -0
- package/dist/{handler.d-B8bPCBzl.d.mts → handler.d-BKTWzzNA.d.mts} +1 -1
- package/dist/{handler.d-Cliwo6Nu.d.ts → handler.d-Dzpyg3-N.d.ts} +1 -1
- package/dist/{headers.d-CVwSpSGX.d.mts → headers.d-5opjyhXw.d.mts} +1 -1
- package/dist/{headers.d-C_btqjV6.d.ts → headers.d-PZyXcDAH.d.ts} +1 -1
- package/dist/index.cjs +25 -23
- package/dist/{index.d-DFuMZk9-.d.mts → index.d-C0Mie66f.d.mts} +1 -1
- package/dist/{index.d-hOEbMcLk.d.ts → index.d-DV2q-0mE.d.ts} +1 -1
- package/dist/index.d.mts +26 -25
- package/dist/index.d.ts +26 -25
- package/dist/index.mjs +25 -23
- package/dist/integrations/orm.d.mts +2 -1
- package/dist/integrations/orm.d.ts +2 -1
- package/dist/integrations.d.mts +2 -1
- package/dist/integrations.d.ts +2 -1
- package/dist/internal/app-markdown-runtime.d.mts +3 -2
- package/dist/internal/app-markdown-runtime.d.ts +3 -2
- package/dist/internal/build-runtime.cjs +21 -21
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +20 -20
- package/dist/internal/cli-runtime.cjs +6 -6
- package/dist/internal/cli-runtime.d.mts +8 -7
- package/dist/internal/cli-runtime.d.ts +8 -7
- package/dist/internal/cli-runtime.mjs +5 -5
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/compression-runtime.d.mts +2 -1
- package/dist/internal/compression-runtime.d.ts +2 -1
- package/dist/internal/config-runtime.cjs +5 -5
- package/dist/internal/config-runtime.d.mts +6 -5
- package/dist/internal/config-runtime.d.ts +6 -5
- package/dist/internal/config-runtime.mjs +4 -4
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/islands-action-client.cjs +18 -0
- package/dist/internal/islands-action-client.d.mts +18 -0
- package/dist/internal/islands-action-client.d.ts +18 -0
- package/dist/internal/islands-action-client.mjs +18 -0
- package/dist/internal/islands-runtime.cjs +3 -8
- package/dist/internal/islands-runtime.mjs +4 -9
- package/dist/internal/islx-actions-client.cjs +4 -3
- package/dist/internal/islx-actions-client.mjs +3 -2
- package/dist/internal/islx-actions-server.d.mts +0 -2
- package/dist/internal/islx-actions-server.d.ts +0 -2
- package/dist/internal/islx-client.cjs +13 -1
- package/dist/internal/islx-client.d.mts +11 -0
- package/dist/internal/islx-client.d.ts +11 -0
- package/dist/internal/islx-client.mjs +14 -0
- package/dist/internal/metadata-image-runtime.d.mts +1 -0
- package/dist/internal/metadata-image-runtime.d.ts +1 -0
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +5 -5
- package/dist/internal/production-runtime.d.mts +11 -11
- package/dist/internal/production-runtime.d.ts +11 -11
- package/dist/internal/production-runtime.mjs +4 -4
- package/dist/internal/spa-router.d.mts +3 -3
- package/dist/internal/spa-router.d.ts +3 -3
- package/dist/internal/start-manifest.d.mts +2 -1
- package/dist/internal/start-manifest.d.ts +2 -1
- package/dist/markdown.d.mts +2 -1
- package/dist/markdown.d.ts +2 -1
- package/dist/middleware.d.mts +2 -1
- package/dist/middleware.d.ts +2 -1
- package/dist/mobile.d.mts +6 -3
- package/dist/mobile.d.ts +6 -3
- package/dist/{mount.d-DLeYxeRR.d.mts → mount.d-CZ_qL1iS.d.mts} +1 -1
- package/dist/{mount.d-CAovYKfs.d.ts → mount.d-gWul1GA1.d.ts} +1 -1
- package/dist/{navigation-delegate.d-Chv93QS6.d.mts → navigation-delegate.d-BBTzhJLj.d.mts} +1 -1
- package/dist/{navigation-delegate.d-BLM-8Q3Z.d.ts → navigation-delegate.d-BZsYEAet.d.ts} +1 -1
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/plugin.cjs +15 -15
- package/dist/plugin.d.mts +6 -6
- package/dist/plugin.d.ts +6 -6
- package/dist/plugin.mjs +14 -14
- package/dist/{render-plan.d-BSTjTH8h.d.ts → render-plan.d-AaJsYPX-.d.ts} +1 -1
- package/dist/{render-plan.d-CK5Lggyb.d.mts → render-plan.d-bnWxS12w.d.mts} +1 -1
- package/dist/renderer-client.cjs +6 -5
- package/dist/renderer-client.d.mts +8 -7
- package/dist/renderer-client.d.ts +8 -7
- package/dist/renderer-client.mjs +2 -1
- package/dist/renderer.cjs +6 -2
- package/dist/renderer.d.mts +87 -4
- package/dist/renderer.d.ts +87 -4
- package/dist/renderer.mjs +5 -1
- package/dist/{request.d-BhggxQf3.d.mts → request.d-C2HOn3Hi.d.mts} +1 -1
- package/dist/{request.d-CyJS9bjm.d.ts → request.d-CAeitOG1.d.ts} +1 -1
- package/dist/request.d.mts +3 -2
- package/dist/request.d.ts +3 -2
- package/dist/{route-rendering.d-BLPPmI5I.d.ts → route-rendering.d-A1dIkUK5.d.ts} +1 -1
- package/dist/{route-rendering.d-CUpG2mZJ.d.mts → route-rendering.d-CYA-ulnX.d.mts} +1 -1
- package/dist/{router.d-2NQM1Kgw.d.mts → router.d-8lxnzlkr.d.mts} +1 -1
- package/dist/{router.d-0X2Ki6rf.d.ts → router.d-A_Yt6jYz.d.ts} +1 -1
- package/dist/{routes.d-CCccJRrp.d.mts → routes.d-BWvpUoYu.d.mts} +1 -1
- package/dist/{routes.d-b7khoRoU.d.ts → routes.d-D7RWvfqL.d.ts} +1 -1
- package/dist/routes.d.mts +2 -1
- package/dist/routes.d.ts +2 -1
- package/dist/{rsc-pipeline-5AOF64FL.cjs → rsc-pipeline-MFJZGDPE.cjs} +5 -5
- package/dist/{rsc-pipeline-DNRLYOJ7.mjs → rsc-pipeline-TRZVFCBX.mjs} +4 -4
- package/dist/{runtime-ZVHG5SRB.cjs → runtime-MJUG2HGR.cjs} +10 -9
- package/dist/{runtime-EHG2FRXZ.mjs → runtime-O4Y3Z6V3.mjs} +6 -5
- package/dist/{runtime.d-CXuwkUgr.d.ts → runtime.d-BPyvWrgQ.d.ts} +1 -1
- package/dist/{runtime.d-CaFXcu_Q.d.mts → runtime.d-C_rZ9_DD.d.mts} +1 -1
- package/dist/{server-components-status.d-Cp7zvBm5.d.mts → server-components-status.d-BpxiEMQE.d.mts} +1 -1
- package/dist/{server-components-status.d-BdeFD8ZH.d.ts → server-components-status.d-C2UEKJn7.d.ts} +1 -1
- package/dist/server-plugins.d.mts +4 -3
- package/dist/server-plugins.d.ts +4 -3
- package/dist/server-query-call.d-rVM_lsYk.d.mts +15 -0
- package/dist/server-query-call.d-rVM_lsYk.d.ts +15 -0
- package/dist/server-query-client.cjs +5 -3
- package/dist/server-query-client.d.mts +3 -2
- package/dist/server-query-client.d.ts +3 -2
- package/dist/server-query-client.mjs +5 -3
- package/dist/{server-query-runtime.d-DXRNhX_3.d.ts → server-query-runtime.d-BlHd90D0.d.ts} +2 -8
- package/dist/{server-query-runtime.d-aP52iuL5.d.mts → server-query-runtime.d-CCLGkQtE.d.mts} +2 -8
- package/dist/server.cjs +39 -39
- package/dist/server.d.mts +12 -12
- package/dist/server.d.ts +12 -12
- package/dist/server.mjs +16 -16
- package/dist/{spa-router.d-l3G38xHa.d.mts → spa-router.d-BD-6WX1R.d.mts} +2 -2
- package/dist/{spa-router.d-Bjgl-Osi.d.ts → spa-router.d-Cw5i_15e.d.ts} +2 -2
- package/dist/{ssg.d-DDca17Lc.d.ts → ssg.d-Bifiq0EL.d.ts} +2 -2
- package/dist/{ssg.d-RnlHOqUL.d.mts → ssg.d-CCE9aob5.d.mts} +2 -2
- package/dist/{store-core.d-BaOUOPf7.d.ts → store-core.d-5tVn5vi1.d.ts} +3 -3
- package/dist/{store-core.d-BZjuC6Zc.d.mts → store-core.d-BN2MxSG9.d.mts} +3 -3
- package/dist/testing.d.mts +2 -1
- package/dist/testing.d.ts +2 -1
- package/dist/{utils.d-D8TWmpWo.d.ts → utils.d-BUjpSNIO.d.ts} +1 -1
- package/dist/{utils.d-tdzw0_zQ.d.mts → utils.d-wGPLeVbq.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +15 -15
- package/dist/vite.d.mts +6 -6
- package/dist/vite.d.ts +6 -6
- package/dist/vite.mjs +14 -14
- package/package.json +6 -1
- package/dist/analyzer-LV23T6QN.cjs +0 -17
- package/dist/chunk-AUFEM3FB.mjs +0 -229
- package/dist/chunk-S7WZUK3B.cjs +0 -229
|
@@ -4,7 +4,7 @@ var _chunkN4AQNEXRcjs = require('./chunk-N4AQNEXR.cjs');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIZYFP7INcjs = require('./chunk-IZYFP7IN.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkI2BYNELAcjs = require('./chunk-I2BYNELA.cjs');
|
|
@@ -13,7 +13,7 @@ var _chunkI2BYNELAcjs = require('./chunk-I2BYNELA.cjs');
|
|
|
13
13
|
var _react = require('react');
|
|
14
14
|
function useServerQuery(query, input, options = {}) {
|
|
15
15
|
const cache = _chunkI2BYNELAcjs.getFarmClientDataCache.call(void 0, );
|
|
16
|
-
const key =
|
|
16
|
+
const key = _chunkIZYFP7INcjs.createServerQueryCallKey.call(void 0, query, input);
|
|
17
17
|
const inputRef = _react.useRef.call(void 0, input);
|
|
18
18
|
const optionsRef = _react.useRef.call(void 0, options);
|
|
19
19
|
const mountedKeyRef = _react.useRef.call(void 0, void 0);
|
|
@@ -35,7 +35,7 @@ function useServerQuery(query, input, options = {}) {
|
|
|
35
35
|
const run = _react.useCallback.call(void 0,
|
|
36
36
|
(force = false) => {
|
|
37
37
|
pendingInvalidationRef.current = false;
|
|
38
|
-
return
|
|
38
|
+
return _chunkIZYFP7INcjs.fetchServerQuery.call(void 0, query, inputRef.current, {
|
|
39
39
|
...optionsRef.current,
|
|
40
40
|
force
|
|
41
41
|
});
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
+
assertFarmDocsAdapterRenderer,
|
|
3
|
+
getFarmDocsAdapterUIModule,
|
|
2
4
|
resolveFarmAuthConfig,
|
|
3
5
|
resolveFarmAuthIntegration,
|
|
4
6
|
resolveFarmDevIndicatorsConfig
|
|
5
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5V6HSJFG.mjs";
|
|
6
8
|
import {
|
|
7
9
|
normalizeRouteRules,
|
|
8
10
|
routeRulesToHeaders,
|
|
@@ -43,7 +45,7 @@ import {
|
|
|
43
45
|
isFarmRendererDisabled,
|
|
44
46
|
isReactRenderer,
|
|
45
47
|
resolveFarmRenderer
|
|
46
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-RGTZAM6Y.mjs";
|
|
47
49
|
import {
|
|
48
50
|
resolveFarmImageConfig
|
|
49
51
|
} from "./chunk-AOIUYHPH.mjs";
|
|
@@ -477,7 +479,7 @@ function docsWantsFrameworkDetection(docs) {
|
|
|
477
479
|
function isSupportedAdapterDescriptor(value) {
|
|
478
480
|
if (!value || typeof value !== "object") return false;
|
|
479
481
|
const descriptor = value;
|
|
480
|
-
return descriptor.protocol === SUPPORTED_ADAPTER_PROTOCOL && typeof descriptor.server === "string" && descriptor.server.length > 0 && typeof descriptor
|
|
482
|
+
return descriptor.protocol === SUPPORTED_ADAPTER_PROTOCOL && typeof descriptor.server === "string" && descriptor.server.length > 0 && typeof getFarmDocsAdapterUIModule(descriptor) === "string";
|
|
481
483
|
}
|
|
482
484
|
async function applyFarmDocsFrameworkAutoDetection(userConfig, options) {
|
|
483
485
|
if (!docsWantsFrameworkDetection(userConfig.docs)) return userConfig;
|
|
@@ -912,7 +914,8 @@ async function resolveDocsConfig(userDocs, options = {}) {
|
|
|
912
914
|
configOverrides
|
|
913
915
|
}
|
|
914
916
|
);
|
|
915
|
-
|
|
917
|
+
const adapter = docsOptions.adapter || void 0;
|
|
918
|
+
if (roots.length > 0 && !(adapter?.server && getFarmDocsAdapterUIModule(adapter))) {
|
|
916
919
|
throw new Error(
|
|
917
920
|
`Docs roots require a docs adapter such as @farming-labs/farmjs; Farm's built-in docs renderer serves a single docs root. Install the adapter, or remove the roots from ${configFileName} and docs.roots.`
|
|
918
921
|
);
|
|
@@ -1091,6 +1094,8 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1091
1094
|
const srcDir = userConfig.srcDir || "src";
|
|
1092
1095
|
setFarmProjectSourceDir(root, srcDir);
|
|
1093
1096
|
const docs = await resolveDocsConfig(userConfig.docs, { root, srcDir });
|
|
1097
|
+
const renderer = resolveFarmRenderer(userConfig.renderer);
|
|
1098
|
+
assertFarmDocsAdapterRenderer(docs, renderer.name);
|
|
1094
1099
|
const md = resolveMarkdownConfig(userConfig.md);
|
|
1095
1100
|
const mdx = resolveMdxConfig(userConfig.mdx);
|
|
1096
1101
|
const env = resolveEnv(userConfig.env, process.env);
|
|
@@ -1149,7 +1154,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1149
1154
|
layers: layerResolution.layers,
|
|
1150
1155
|
outDir: userConfig.outDir || "dist",
|
|
1151
1156
|
basePath,
|
|
1152
|
-
renderer
|
|
1157
|
+
renderer,
|
|
1153
1158
|
preset: deploy.preset || "node-server",
|
|
1154
1159
|
deploy,
|
|
1155
1160
|
docs,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-HR4N2K4V.mjs";
|
|
5
5
|
import {
|
|
6
6
|
normalizeFarmProductionSiteOrigin
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-43N3X6OO.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveFarmAppManifestConfig
|
|
10
10
|
} from "./chunk-SQ5O7I3L.mjs";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-YT2ZMLXK.mjs";
|
|
30
30
|
import {
|
|
31
31
|
FARM_VERSION
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NKVBWPXR.mjs";
|
|
33
33
|
import {
|
|
34
34
|
applyFarmBasePath
|
|
35
35
|
} from "./chunk-SF3JB56B.mjs";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkW53Z4WDIcjs = require('./chunk-W53Z4WDI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIABI62FHcjs = require('./chunk-IABI62FH.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkBTVDYS4Bcjs = require('./chunk-BTVDYS4B.cjs');
|
|
@@ -29,7 +29,7 @@ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
|
|
|
29
29
|
var _chunk7Q7UB4TLcjs = require('./chunk-7Q7UB4TL.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk3CZ4MJHWcjs = require('./chunk-3CZ4MJHW.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
@@ -288,7 +288,7 @@ function createFarmAppManifest(input, registered = []) {
|
|
|
288
288
|
return {
|
|
289
289
|
schemaVersion: 1,
|
|
290
290
|
app: app ? {
|
|
291
|
-
...app.version ? { farm:
|
|
291
|
+
...app.version ? { farm: _chunk3CZ4MJHWcjs.FARM_VERSION } : {},
|
|
292
292
|
...app.renderer ? { renderer: input.renderer } : {},
|
|
293
293
|
basePath: input.basePath,
|
|
294
294
|
...app.build ? { build: input.build } : {}
|
|
@@ -319,7 +319,7 @@ function resolveFarmSiteUrl() {
|
|
|
319
319
|
asUrl(read("RAILWAY_PUBLIC_DOMAIN"))
|
|
320
320
|
];
|
|
321
321
|
for (const candidate of candidates) {
|
|
322
|
-
const origin = candidate ?
|
|
322
|
+
const origin = candidate ? _chunkIABI62FHcjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
|
|
323
323
|
if (origin) return origin;
|
|
324
324
|
}
|
|
325
325
|
return null;
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
resolveFarmIslxActionsMode,
|
|
44
44
|
resolveFarmRouteRootStrategy,
|
|
45
45
|
toBakedMarkdownSourcePath
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-DPUZVGXH.mjs";
|
|
47
47
|
import {
|
|
48
48
|
generateFarmClientPluginEntryCode,
|
|
49
49
|
hasFarmServerRuntimePlugins,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
import {
|
|
56
56
|
generateFarmTypeArtifacts,
|
|
57
57
|
resolveRouteRenderingConfig
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-IAIRQAHA.mjs";
|
|
59
59
|
import {
|
|
60
60
|
resolveFarmPlatform
|
|
61
61
|
} from "./chunk-SMUW7UST.mjs";
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
} from "./chunk-LLZSYFOM.mjs";
|
|
74
74
|
import {
|
|
75
75
|
_setFarmInfraAnalyticsWebMCPRoute
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-RNJX3MD6.mjs";
|
|
77
77
|
import {
|
|
78
78
|
FARM_API_CATALOG_PATH,
|
|
79
79
|
createFarmAiCatalogResponse,
|
|
@@ -88,13 +88,13 @@ import {
|
|
|
88
88
|
resolveFarmMCPRouteLabel,
|
|
89
89
|
resolveFarmMarkdownRouteLabel,
|
|
90
90
|
setFarmRouteLabel
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-VQ6IXALL.mjs";
|
|
92
92
|
import {
|
|
93
93
|
FARM_DEFAULT_MCP_PATH
|
|
94
94
|
} from "./chunk-HR4N2K4V.mjs";
|
|
95
95
|
import {
|
|
96
96
|
isFarmPreviewDeploymentEnvironment
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-43N3X6OO.mjs";
|
|
98
98
|
import {
|
|
99
99
|
createFarmServerFnBoundaryModule,
|
|
100
100
|
isFarmServerFnBoundaryId,
|
|
@@ -145,18 +145,20 @@ import {
|
|
|
145
145
|
usePackageScanCacheFile,
|
|
146
146
|
withFarmSourceSnapshotOf,
|
|
147
147
|
wrapFarmIslandContainers
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-B5SJYXJK.mjs";
|
|
149
149
|
import {
|
|
150
150
|
generateFarmDocsAdapterClientRuntime,
|
|
151
151
|
getFarmDocsAdapterConfigModule
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-S3R4JDRO.mjs";
|
|
153
153
|
import {
|
|
154
154
|
resolveFarmDocsFontAssets,
|
|
155
155
|
toFarmDocsPublicFontAssets
|
|
156
156
|
} from "./chunk-NRNAHZ57.mjs";
|
|
157
157
|
import {
|
|
158
|
-
generateFarmDevIndicatorsClientRuntime
|
|
159
|
-
|
|
158
|
+
generateFarmDevIndicatorsClientRuntime,
|
|
159
|
+
getFarmDocsAdapterUIModule,
|
|
160
|
+
hasFarmDocsRuntimeAdapter
|
|
161
|
+
} from "./chunk-5V6HSJFG.mjs";
|
|
160
162
|
import {
|
|
161
163
|
resolveRouteRuleCorsPreflightHeaders
|
|
162
164
|
} from "./chunk-YVVY276M.mjs";
|
|
@@ -190,7 +192,7 @@ import {
|
|
|
190
192
|
resolveFarmComponentExtensions,
|
|
191
193
|
resolveFarmRenderer,
|
|
192
194
|
resolveFarmRendererAppSetup
|
|
193
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-RGTZAM6Y.mjs";
|
|
194
196
|
import {
|
|
195
197
|
getPublicFarmImageConfig,
|
|
196
198
|
resolveFarmImageConfig
|
|
@@ -310,7 +312,7 @@ import {
|
|
|
310
312
|
} from "./chunk-EILUVBKS.mjs";
|
|
311
313
|
import {
|
|
312
314
|
FARM_VERSION
|
|
313
|
-
} from "./chunk-
|
|
315
|
+
} from "./chunk-NKVBWPXR.mjs";
|
|
314
316
|
import {
|
|
315
317
|
DEFAULT_FARM_API_BASE_PATH
|
|
316
318
|
} from "./chunk-W6QLRQ3V.mjs";
|
|
@@ -1285,7 +1287,7 @@ function loadFarmWorkflowsDevRuntime() {
|
|
|
1285
1287
|
return import("./workflows.mjs");
|
|
1286
1288
|
}
|
|
1287
1289
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
1288
|
-
return import("./devtools-
|
|
1290
|
+
return import("./devtools-OI52TCSD.mjs");
|
|
1289
1291
|
}
|
|
1290
1292
|
function loadFarmDevtoolsUIRuntime() {
|
|
1291
1293
|
return import("./devtools-ui-BOG33MT5.mjs");
|
|
@@ -2559,6 +2561,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2559
2561
|
extraRoutes: getExtraRouteTypes(),
|
|
2560
2562
|
suppressLintOnLink: farmConfig.suppressLintOnLink,
|
|
2561
2563
|
componentExtensions: farmConfig.renderer.componentExtensions,
|
|
2564
|
+
renderer: farmConfig.renderer,
|
|
2562
2565
|
i18nConfig: farmConfig.i18n,
|
|
2563
2566
|
...selection
|
|
2564
2567
|
});
|
|
@@ -2618,6 +2621,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2618
2621
|
);
|
|
2619
2622
|
};
|
|
2620
2623
|
const isAppRuntimeFile = (file) => isFarmAppRuntimeFile(file, appDirSlugs, routeModuleExtensions);
|
|
2624
|
+
const isRendererRouteFile = (file) => routeModuleExtensions.has(path6.extname(file).toLowerCase()) && farmApp?.getRouteManager().isRendererRouteFile(file) === true;
|
|
2621
2625
|
const isStaticMetadataImageFile = (file) => /\/(?:opengraph-image|twitter-image)(?:\.(?:png|jpg|jpeg|gif|webp)|\.alt\.txt)$/.test(
|
|
2622
2626
|
file.replace(/\\/g, "/")
|
|
2623
2627
|
);
|
|
@@ -2654,7 +2658,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2654
2658
|
const configChanged = isFarmConfigFile(file, farmConfig.root) || layerConfigFiles.has(normalizedFile);
|
|
2655
2659
|
const programmaticRouteChanged = isProgrammaticRouteFile(file) || isProgrammaticRouteSourceFile(file) && (ev === "unlink" || fileContainsProgrammaticPageRoute(file));
|
|
2656
2660
|
const typeArtifacts = configChanged ? ALL_TYPE_ARTIFACTS : {
|
|
2657
|
-
routes: ev !== "change" && isRouteModuleFile(file) || programmaticRouteChanged,
|
|
2661
|
+
routes: ev !== "change" && (isRouteModuleFile(file) || isRendererRouteFile(file)) || programmaticRouteChanged,
|
|
2658
2662
|
api: isApiRouteFile(file) || programmaticRouteChanged,
|
|
2659
2663
|
env: false,
|
|
2660
2664
|
images: false,
|
|
@@ -2666,7 +2670,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2666
2670
|
if (isI18nCatalogFile(file)) {
|
|
2667
2671
|
farmApp?.getI18nRuntime().reload().then(() => server.ws.send({ type: "full-reload", path: "*" })).catch((error) => logger.warn(`i18n catalog reload failed: ${error.message}`));
|
|
2668
2672
|
}
|
|
2669
|
-
const isRouteRefreshEvent = (ev !== "change" || isStaticMetadataImageFile(file)) && (isAppRuntimeFile(file) || isProgrammaticRouteFile(file) || isProgrammaticRouteSourceFile(file) && (ev === "unlink" || fileContainsProgrammaticPageRoute(file)));
|
|
2673
|
+
const isRouteRefreshEvent = (ev !== "change" || isStaticMetadataImageFile(file)) && (isAppRuntimeFile(file) || isRendererRouteFile(file) || isProgrammaticRouteFile(file) || isProgrammaticRouteSourceFile(file) && (ev === "unlink" || fileContainsProgrammaticPageRoute(file)));
|
|
2670
2674
|
if (isRouteRefreshEvent) {
|
|
2671
2675
|
if (!queuedRouteFiles) {
|
|
2672
2676
|
const files = /* @__PURE__ */ new Set();
|
|
@@ -2846,6 +2850,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2846
2850
|
root: farmConfig.root,
|
|
2847
2851
|
srcDir: farmConfig.srcDir,
|
|
2848
2852
|
clientEntry: "/@farm/client.js",
|
|
2853
|
+
rendererServer: farmConfig.renderer.server,
|
|
2849
2854
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2850
2855
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2851
2856
|
globalStylesheetHref: resolveDevGlobalStylesheetHref(
|
|
@@ -4887,9 +4892,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4887
4892
|
const integrations = resolvedConfig?.integrations || options.integrations;
|
|
4888
4893
|
const root = resolvedConfig?.root || server?.config.root || process.cwd();
|
|
4889
4894
|
const docs = resolvedConfig?.docs;
|
|
4890
|
-
const adapterOwnsDocsRuntime =
|
|
4891
|
-
isReactRenderer(renderer) && docs?.adapter?.server && docs.adapter.react
|
|
4892
|
-
);
|
|
4895
|
+
const adapterOwnsDocsRuntime = hasFarmDocsRuntimeAdapter(docs);
|
|
4893
4896
|
const devtools = resolvedConfig?.devtools ?? resolveFarmDevtoolsConfig(false, "production");
|
|
4894
4897
|
const [docsRuntime, docsSearchRuntime, devtoolsClientRuntime] = await Promise.all([
|
|
4895
4898
|
docs?.enabled ? loadFarmDocsDevRuntime() : null,
|
|
@@ -4924,7 +4927,7 @@ ${generatedDevIndicatorsClientRuntime}`,
|
|
|
4924
4927
|
root,
|
|
4925
4928
|
resolvedConfig?.srcDir || options.srcDir || "src",
|
|
4926
4929
|
resolvedConfig?.publicRuntimeConfig || options.publicRuntimeConfig,
|
|
4927
|
-
|
|
4930
|
+
adapterOwnsDocsRuntime ? getFarmDocsAdapterUIModule(docs?.adapter) : void 0,
|
|
4928
4931
|
renderer,
|
|
4929
4932
|
isolatedHydrationMode === "enabled" || isReactRenderer(renderer) && (options.isolatedClientBoundaryModules ?? farmApp?.getRouteManager().getIsolatedClientBoundaryModules(root))?.size > 0,
|
|
4930
4933
|
resolvedConfig?.trailingSlash ?? false,
|
|
@@ -4932,7 +4935,7 @@ ${generatedDevIndicatorsClientRuntime}`,
|
|
|
4932
4935
|
generateClientCachePersistenceCode(
|
|
4933
4936
|
resolveFarmClientCacheAdapterEntry(root, resolvedConfig?.cache)
|
|
4934
4937
|
),
|
|
4935
|
-
|
|
4938
|
+
adapterOwnsDocsRuntime ? getFarmDocsAdapterConfigModule(docs) : void 0,
|
|
4936
4939
|
resolveFarmServerComponentsMode(resolvedConfig?.experimental?.serverComponents) === "islands"
|
|
4937
4940
|
);
|
|
4938
4941
|
}
|
|
@@ -5452,7 +5455,8 @@ if (import.meta.hot) {
|
|
|
5452
5455
|
}
|
|
5453
5456
|
}
|
|
5454
5457
|
}
|
|
5455
|
-
|
|
5458
|
+
const rendererRouteFile = farmApp?.getRouteManager().isRendererRouteModule(normalizedFile) === true;
|
|
5459
|
+
if (normalizedFile.includes("/app/") || rendererRouteFile) {
|
|
5456
5460
|
if (normalizedFile.includes("middleware.")) {
|
|
5457
5461
|
if (middlewareManager) {
|
|
5458
5462
|
await middlewareManager.reload();
|
|
@@ -5474,7 +5478,7 @@ if (import.meta.hot) {
|
|
|
5474
5478
|
if (manifestModule) {
|
|
5475
5479
|
server2.moduleGraph.invalidateModule(manifestModule);
|
|
5476
5480
|
}
|
|
5477
|
-
if (normalizedFile.includes("page.") || normalizedFile.includes("layout.")) {
|
|
5481
|
+
if (normalizedFile.includes("page.") || normalizedFile.includes("layout.") || rendererRouteFile) {
|
|
5478
5482
|
const shortPath = normalizedFile.split("/app/")[1] || normalizedFile;
|
|
5479
5483
|
logUpdate("PAGE", `updated ${shortPath}`);
|
|
5480
5484
|
for (const mod of modules) {
|
|
@@ -6012,7 +6016,7 @@ function parseRouteModuleSchema(schema, value, label, routePath) {
|
|
|
6012
6016
|
throw new Error(`Invalid ${label} for route "${routePath}": ${message}`);
|
|
6013
6017
|
}
|
|
6014
6018
|
}
|
|
6015
|
-
function generateClientCode(integrationProviders = [], documentNavigationMatchers = [], docsSearchClientRuntime = EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME, devtoolsClientRuntime = "", plugins = [], root = process.cwd(), srcDir = "src", publicRuntimeConfig = void 0,
|
|
6019
|
+
function generateClientCode(integrationProviders = [], documentNavigationMatchers = [], docsSearchClientRuntime = EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME, devtoolsClientRuntime = "", plugins = [], root = process.cwd(), srcDir = "src", publicRuntimeConfig = void 0, docsAdapterUI, renderer = REACT_RENDERER, isolatedHydrationEnabled = false, trailingSlash = false, basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false) {
|
|
6016
6020
|
const providerClientCode = generateFarmIntegrationProviderClientCode(
|
|
6017
6021
|
integrationProviders,
|
|
6018
6022
|
root,
|
|
@@ -6041,8 +6045,10 @@ const React = { ...__farmRendererClient }`
|
|
|
6041
6045
|
);
|
|
6042
6046
|
const isolatedHydrationImport = isolatedHydrationEnabled ? `${islandValues ? "import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph, createFarmServerTreeElement, createFarmServerTreeLayout } from '@farm.js/core/internal/islands-runtime'" : "import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph } from '@farm.js/core/internal/isolated-boundary'\nimport { createFarmServerTreeElement } from '@farm.js/core/internal/server-tree'"}` : "";
|
|
6043
6047
|
const docsAdapterImportBlock = generateFarmDocsAdapterClientRuntime(
|
|
6044
|
-
|
|
6045
|
-
docsConfigModule
|
|
6048
|
+
docsAdapterUI,
|
|
6049
|
+
docsConfigModule,
|
|
6050
|
+
// Config resolution keeps an adapter to its UI's renderer, so this is the UI's renderer too.
|
|
6051
|
+
isReactRenderer(renderer) ? void 0 : renderer.client
|
|
6046
6052
|
);
|
|
6047
6053
|
const isolatedHydrationRuntime = isolatedHydrationEnabled ? `const farmIsolatedHydrationRuntime = createFarmIsolatedHydrationRuntime({
|
|
6048
6054
|
ReactRuntime: React,
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkL2GUEYHRcjs = require('./chunk-L2GUEYHR.cjs');
|
|
4
|
+
|
|
5
|
+
// src/docs/adapter-client.ts
|
|
2
6
|
function getFarmDocsAdapterConfigModule(docs) {
|
|
3
|
-
if (!_optionalChain([docs, 'optionalAccess', _ => _.enabled]) || !
|
|
7
|
+
if (!_optionalChain([docs, 'optionalAccess', _ => _.enabled]) || !_chunkL2GUEYHRcjs.getFarmDocsAdapterUIModule.call(void 0, docs.adapter) || !docs.configPath) {
|
|
8
|
+
return void 0;
|
|
9
|
+
}
|
|
4
10
|
return docs.configPath.endsWith(".json") ? void 0 : docs.configPath.replace(/\\/g, "/");
|
|
5
11
|
}
|
|
6
|
-
function generateFarmDocsAdapterClientRuntime(
|
|
7
|
-
if (!
|
|
12
|
+
function generateFarmDocsAdapterClientRuntime(uiModule, configModule, rendererClient) {
|
|
13
|
+
if (!uiModule) {
|
|
8
14
|
return `
|
|
9
15
|
async function hydrateFarmDocsAdapterRuntime() {
|
|
10
16
|
return false;
|
|
@@ -18,17 +24,19 @@ async function hydrateFarmDocsAdapterRuntime() {
|
|
|
18
24
|
// The docs server flags pages whose config holds what its JSON copy cannot (icons,
|
|
19
25
|
// MDX components, callbacks); the adapter restores those from the module itself.
|
|
20
26
|
// Fetch it alongside the adapter rather than after it: they don't depend on each other.
|
|
21
|
-
const [
|
|
22
|
-
import(${JSON.stringify(
|
|
23
|
-
runtime.configModule ? ${configModule ? `import(${JSON.stringify(configModule)})` : "undefined"} : undefined
|
|
27
|
+
const [FarmDocsAdapterUI, configModule${rendererClient ? ", renderer" : ""}] = await Promise.all([
|
|
28
|
+
import(${JSON.stringify(uiModule)}),
|
|
29
|
+
runtime.configModule ? ${configModule ? `import(${JSON.stringify(configModule)})` : "undefined"} : undefined,${rendererClient ? `
|
|
30
|
+
import(${JSON.stringify(rendererClient)}),` : ""}
|
|
24
31
|
]);
|
|
25
|
-
if (typeof
|
|
32
|
+
if (typeof FarmDocsAdapterUI.hydrateFarmDocs !== "function") {
|
|
26
33
|
throw new Error("The configured Farm docs adapter does not export hydrateFarmDocs().");
|
|
27
34
|
}
|
|
28
|
-
|
|
35
|
+
FarmDocsAdapterUI.hydrateFarmDocs({
|
|
29
36
|
config: runtime.config || {},
|
|
30
37
|
data: runtime.data,
|
|
31
|
-
...(configModule ? { configModule: configModule.default ?? configModule } : {})
|
|
38
|
+
...(configModule ? { configModule: configModule.default ?? configModule } : {}),${rendererClient ? `
|
|
39
|
+
renderer,` : ""}
|
|
32
40
|
});
|
|
33
41
|
return true;
|
|
34
42
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import './utils.d-
|
|
2
|
-
import { F as FarmPlugin } from './client-plugins.d-
|
|
1
|
+
import './utils.d-wGPLeVbq.mjs';
|
|
2
|
+
import { F as FarmPlugin } from './client-plugins.d-BwKwuO_0.mjs';
|
|
3
3
|
import { R as ResolvedFarmLayer } from './layers.d-CH0bC4QL.mjs';
|
|
4
|
-
import './renderer.mjs';
|
|
5
|
-
import './ssg.d-
|
|
4
|
+
import { FarmRenderer } from './renderer.mjs';
|
|
5
|
+
import './ssg.d-CCE9aob5.mjs';
|
|
6
6
|
import './deployment.mjs';
|
|
7
|
-
import './handler.d-
|
|
7
|
+
import './handler.d-BKTWzzNA.mjs';
|
|
8
8
|
import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.mjs';
|
|
9
9
|
import { F as FarmStorageUserConfig } from './types.d-C5hlNbHa.mjs';
|
|
10
10
|
import { d as FarmSchemaField, F as FarmSchema, R as ResolvedSchemaField, m as FarmSqlDialect, n as FarmSqlStatement, C as CollectedSchemaModel, f as FarmSchemaMigrationStep, k as FarmSchemaReference, l as FarmSchemaTablesDeclaration, j as FarmSchemaOwnerConfig } from './schema.d-BM-uVGpx.mjs';
|
|
11
11
|
import './routes.mjs';
|
|
12
|
-
import './server-components-status.d-
|
|
12
|
+
import './server-components-status.d-BpxiEMQE.mjs';
|
|
13
13
|
import './storage.mjs';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -67,6 +67,8 @@ interface GenerateFarmTypeArtifactsOptions {
|
|
|
67
67
|
layers?: readonly ResolvedFarmLayer[];
|
|
68
68
|
suppressLintOnLink?: boolean;
|
|
69
69
|
componentExtensions?: readonly string[];
|
|
70
|
+
/** The renderer, whose `routes()` (when it has one) decides which files are routes. */
|
|
71
|
+
renderer?: Pick<FarmRenderer, "name" | "routes" | "componentExtensions">;
|
|
70
72
|
routeTypesOutFile?: string;
|
|
71
73
|
apiTypesOutFile?: string;
|
|
72
74
|
envTypesOutFile?: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import './utils.d-
|
|
2
|
-
import { F as FarmPlugin } from './client-plugins.d-
|
|
1
|
+
import './utils.d-BUjpSNIO.js';
|
|
2
|
+
import { F as FarmPlugin } from './client-plugins.d-BVXjyIkY.js';
|
|
3
3
|
import { R as ResolvedFarmLayer } from './layers.d-CH0bC4QL.js';
|
|
4
|
-
import './renderer.js';
|
|
5
|
-
import './ssg.d-
|
|
4
|
+
import { FarmRenderer } from './renderer.js';
|
|
5
|
+
import './ssg.d-Bifiq0EL.js';
|
|
6
6
|
import './deployment.js';
|
|
7
|
-
import './handler.d-
|
|
7
|
+
import './handler.d-Dzpyg3-N.js';
|
|
8
8
|
import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.js';
|
|
9
9
|
import { F as FarmStorageUserConfig } from './types.d-C5hlNbHa.js';
|
|
10
10
|
import { d as FarmSchemaField, F as FarmSchema, R as ResolvedSchemaField, m as FarmSqlDialect, n as FarmSqlStatement, C as CollectedSchemaModel, f as FarmSchemaMigrationStep, k as FarmSchemaReference, l as FarmSchemaTablesDeclaration, j as FarmSchemaOwnerConfig } from './schema.d-BM-uVGpx.js';
|
|
11
11
|
import './routes.js';
|
|
12
|
-
import './server-components-status.d-
|
|
12
|
+
import './server-components-status.d-C2UEKJn7.js';
|
|
13
13
|
import './storage.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -67,6 +67,8 @@ interface GenerateFarmTypeArtifactsOptions {
|
|
|
67
67
|
layers?: readonly ResolvedFarmLayer[];
|
|
68
68
|
suppressLintOnLink?: boolean;
|
|
69
69
|
componentExtensions?: readonly string[];
|
|
70
|
+
/** The renderer, whose `routes()` (when it has one) decides which files are routes. */
|
|
71
|
+
renderer?: Pick<FarmRenderer, "name" | "routes" | "componentExtensions">;
|
|
70
72
|
routeTypesOutFile?: string;
|
|
71
73
|
apiTypesOutFile?: string;
|
|
72
74
|
envTypesOutFile?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
|
|
2
|
-
import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-
|
|
2
|
+
import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-BwKwuO_0.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The browser copy of a programmatic page or layout imports only the module that defines its
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.js';
|
|
2
|
-
import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-
|
|
2
|
+
import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-BVXjyIkY.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The browser copy of a programmatic page or layout imports only the module that defines its
|
|
@@ -1737,6 +1737,20 @@ interface FarmDocsAdapterDescriptor {
|
|
|
1737
1737
|
id: string;
|
|
1738
1738
|
protocol: number;
|
|
1739
1739
|
server: string;
|
|
1740
|
+
/**
|
|
1741
|
+
* The module with the docs UI. The adapter's server renders its pages with it, loaded through
|
|
1742
|
+
* `loadUIModule()`, and the browser calls its `hydrateFarmDocs()` on the docs pages it serves.
|
|
1743
|
+
*/
|
|
1744
|
+
ui?: string;
|
|
1745
|
+
/**
|
|
1746
|
+
* The Farm renderer `ui` is written for, by name: `"react"`, `"svelte"`, `"vue"`, or a custom
|
|
1747
|
+
* renderer's. Farm runs the adapter only in an app with that renderer. Defaults to `"react"`.
|
|
1748
|
+
*/
|
|
1749
|
+
renderer?: string;
|
|
1750
|
+
/**
|
|
1751
|
+
* @deprecated Use `ui` (and `renderer: "react"`). Farm reads it when `ui` is absent, as every
|
|
1752
|
+
* release before `ui` did.
|
|
1753
|
+
*/
|
|
1740
1754
|
react?: string;
|
|
1741
1755
|
vite?: string;
|
|
1742
1756
|
/**
|
|
@@ -1737,6 +1737,20 @@ interface FarmDocsAdapterDescriptor {
|
|
|
1737
1737
|
id: string;
|
|
1738
1738
|
protocol: number;
|
|
1739
1739
|
server: string;
|
|
1740
|
+
/**
|
|
1741
|
+
* The module with the docs UI. The adapter's server renders its pages with it, loaded through
|
|
1742
|
+
* `loadUIModule()`, and the browser calls its `hydrateFarmDocs()` on the docs pages it serves.
|
|
1743
|
+
*/
|
|
1744
|
+
ui?: string;
|
|
1745
|
+
/**
|
|
1746
|
+
* The Farm renderer `ui` is written for, by name: `"react"`, `"svelte"`, `"vue"`, or a custom
|
|
1747
|
+
* renderer's. Farm runs the adapter only in an app with that renderer. Defaults to `"react"`.
|
|
1748
|
+
*/
|
|
1749
|
+
renderer?: string;
|
|
1750
|
+
/**
|
|
1751
|
+
* @deprecated Use `ui` (and `renderer: "react"`). Farm reads it when `ui` is absent, as every
|
|
1752
|
+
* release before `ui` did.
|
|
1753
|
+
*/
|
|
1740
1754
|
react?: string;
|
|
1741
1755
|
vite?: string;
|
|
1742
1756
|
/**
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export { d as FarmClientHydrationCompleteEvent, e as FarmClientHydrationEvent, f as FarmClientHydrationMode, g as FarmClientHydrationSession, h as FarmClientLocation, i as FarmClientNavigationAction, j as FarmClientNavigationErrorEvent, k as FarmClientNavigationEvent, l as FarmClientNavigationLoadedEvent, m as FarmClientNavigationResolvedEvent, a as FarmClientNavigationSession, n as FarmClientPerformanceEvent, b as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle.d-OtGWAvJT.mjs';
|
|
2
|
-
export { F as FarmPlugin, I as FarmPluginContext, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-
|
|
2
|
+
export { F as FarmPlugin, I as FarmPluginContext, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-BwKwuO_0.mjs';
|
|
3
3
|
import './route.d-ShmtqqVQ.mjs';
|
|
4
4
|
import './endpoint.d-BXbBpKoh.mjs';
|
|
5
5
|
import './cache.mjs';
|
|
6
6
|
import './renderer.mjs';
|
|
7
7
|
import './deployment.mjs';
|
|
8
|
+
import './island.d-CfGru1MO.mjs';
|
|
8
9
|
import 'http';
|
|
9
10
|
import './routing.d-D67HQmnv.mjs';
|
|
10
11
|
import './types.d-euATAbE4.mjs';
|
package/dist/client-plugins.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export { d as FarmClientHydrationCompleteEvent, e as FarmClientHydrationEvent, f as FarmClientHydrationMode, g as FarmClientHydrationSession, h as FarmClientLocation, i as FarmClientNavigationAction, j as FarmClientNavigationErrorEvent, k as FarmClientNavigationEvent, l as FarmClientNavigationLoadedEvent, m as FarmClientNavigationResolvedEvent, a as FarmClientNavigationSession, n as FarmClientPerformanceEvent, b as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle.d-OtGWAvJT.js';
|
|
2
|
-
export { F as FarmPlugin, I as FarmPluginContext, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-
|
|
2
|
+
export { F as FarmPlugin, I as FarmPluginContext, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-BVXjyIkY.js';
|
|
3
3
|
import './route.d-Cd4Fi6BA.js';
|
|
4
4
|
import './endpoint.d-Dx_1k6Du.js';
|
|
5
5
|
import './cache.js';
|
|
6
6
|
import './renderer.js';
|
|
7
7
|
import './deployment.js';
|
|
8
|
+
import './island.d-CfGru1MO.js';
|
|
8
9
|
import 'http';
|
|
9
10
|
import './routing.d-BhPgtN_S.js';
|
|
10
11
|
import './types.d-euATAbE4.js';
|
package/dist/client.cjs
CHANGED
|
@@ -23,7 +23,7 @@ var _chunkIBEHVSU4cjs = require('./chunk-IBEHVSU4.cjs');
|
|
|
23
23
|
var _chunkPZXYAWYGcjs = require('./chunk-PZXYAWYG.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkT7HGXF7Dcjs = require('./chunk-T7HGXF7D.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -57,7 +57,8 @@ require('./chunk-N4AQNEXR.cjs');
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunkIZYFP7INcjs = require('./chunk-IZYFP7IN.cjs');
|
|
61
|
+
require('./chunk-J6RFB324.cjs');
|
|
61
62
|
|
|
62
63
|
|
|
63
64
|
|
|
@@ -178,4 +179,4 @@ require('./chunk-UZM3PDKK.cjs');
|
|
|
178
179
|
|
|
179
180
|
|
|
180
181
|
|
|
181
|
-
exports.APIClientError = _chunkZNXU4E6Acjs.APIClientError; exports.FARM_CACHE_INVALIDATION_CHANNEL = _chunkFULX5RYXcjs.FARM_CACHE_INVALIDATION_CHANNEL; exports.FARM_CLIENT_CACHE_PERSIST_VERSION = _chunkFULX5RYXcjs.FARM_CLIENT_CACHE_PERSIST_VERSION; exports.FarmClientPluginManager = _chunkOO7DYIJDcjs.FarmClientPluginManager; exports.FetcherInputError = _chunkFULX5RYXcjs.FetcherInputError; exports.IntegrationClientError = _chunkZNXU4E6Acjs.IntegrationClientError; exports.Link = _chunkFULX5RYXcjs.Link; exports.SPARouter = _chunkUGD53SNOcjs.SPARouter; exports.api = _chunkHA7YRO53cjs.api; exports.clearPersistedCache = _chunkFULX5RYXcjs.clearPersistedCache; exports.createAPIClient = _chunkZNXU4E6Acjs.createAPIClient; exports.createApiClients = _chunkZNXU4E6Acjs.createApiClients; exports.createClientPluginManager = _chunkOO7DYIJDcjs.createClientPluginManager; exports.createIntegrationApi = _chunkZNXU4E6Acjs.createIntegrationApi; exports.createIntegrationClient = _chunkZNXU4E6Acjs.createIntegrationClient; exports.createIntegrationClients = _chunkZNXU4E6Acjs.createIntegrationClients; exports.createIntegrationServerClient = _chunkZNXU4E6Acjs.createIntegrationServerClient; exports.createIntegrations = _chunkZNXU4E6Acjs.createIntegrations; exports.createServerAPIClient = _chunkZNXU4E6Acjs.createServerAPIClient; exports.createStore = _chunkFULX5RYXcjs.createStore; exports.defineClientCacheAdapter = _chunkFULX5RYXcjs.defineClientCacheAdapter; exports.defineIntegrationAPI = _chunkHA7YRO53cjs.defineIntegrationAPI; exports.defineIntegrationAPIOperation = _chunkHA7YRO53cjs.defineIntegrationAPIOperation; exports.delegateNavigation = _chunkJIBEFLQ7cjs.delegateNavigation; exports.enableCrossTabCacheInvalidation = _chunkFULX5RYXcjs.enableCrossTabCacheInvalidation; exports.enableLiveCacheInvalidation = _chunkFULX5RYXcjs.enableLiveCacheInvalidation; exports.endpoint = _chunkHA7YRO53cjs.endpoint; exports.fetchServerQuery =
|
|
182
|
+
exports.APIClientError = _chunkZNXU4E6Acjs.APIClientError; exports.FARM_CACHE_INVALIDATION_CHANNEL = _chunkFULX5RYXcjs.FARM_CACHE_INVALIDATION_CHANNEL; exports.FARM_CLIENT_CACHE_PERSIST_VERSION = _chunkFULX5RYXcjs.FARM_CLIENT_CACHE_PERSIST_VERSION; exports.FarmClientPluginManager = _chunkOO7DYIJDcjs.FarmClientPluginManager; exports.FetcherInputError = _chunkFULX5RYXcjs.FetcherInputError; exports.IntegrationClientError = _chunkZNXU4E6Acjs.IntegrationClientError; exports.Link = _chunkFULX5RYXcjs.Link; exports.SPARouter = _chunkUGD53SNOcjs.SPARouter; exports.api = _chunkHA7YRO53cjs.api; exports.clearPersistedCache = _chunkFULX5RYXcjs.clearPersistedCache; exports.createAPIClient = _chunkZNXU4E6Acjs.createAPIClient; exports.createApiClients = _chunkZNXU4E6Acjs.createApiClients; exports.createClientPluginManager = _chunkOO7DYIJDcjs.createClientPluginManager; exports.createIntegrationApi = _chunkZNXU4E6Acjs.createIntegrationApi; exports.createIntegrationClient = _chunkZNXU4E6Acjs.createIntegrationClient; exports.createIntegrationClients = _chunkZNXU4E6Acjs.createIntegrationClients; exports.createIntegrationServerClient = _chunkZNXU4E6Acjs.createIntegrationServerClient; exports.createIntegrations = _chunkZNXU4E6Acjs.createIntegrations; exports.createServerAPIClient = _chunkZNXU4E6Acjs.createServerAPIClient; exports.createStore = _chunkFULX5RYXcjs.createStore; exports.defineClientCacheAdapter = _chunkFULX5RYXcjs.defineClientCacheAdapter; exports.defineIntegrationAPI = _chunkHA7YRO53cjs.defineIntegrationAPI; exports.defineIntegrationAPIOperation = _chunkHA7YRO53cjs.defineIntegrationAPIOperation; exports.delegateNavigation = _chunkJIBEFLQ7cjs.delegateNavigation; exports.enableCrossTabCacheInvalidation = _chunkFULX5RYXcjs.enableCrossTabCacheInvalidation; exports.enableLiveCacheInvalidation = _chunkFULX5RYXcjs.enableLiveCacheInvalidation; exports.endpoint = _chunkHA7YRO53cjs.endpoint; exports.fetchServerQuery = _chunkIZYFP7INcjs.fetchServerQuery; exports.getFarmClientDataCache = _chunkI2BYNELAcjs.getFarmClientDataCache; exports.getIntegrationAPIManifest = _chunkZNXU4E6Acjs.getIntegrationAPIManifest; exports.getRouter = _chunkUGD53SNOcjs.getRouter; exports.getTheme = _chunkWEGAVN37cjs.getTheme; exports.initConfiguredClientCachePersistence = _chunkFULX5RYXcjs.initConfiguredClientCachePersistence; exports.initPersistedClientCache = _chunkFULX5RYXcjs.initPersistedClientCache; exports.installChunkErrorRecovery = _chunkIBEHVSU4cjs.installChunkErrorRecovery; exports.integrationClients = _chunkZNXU4E6Acjs.integrationClients; exports.integrationsClient = _chunkZNXU4E6Acjs.integrationsClient; exports.integrationsServer = _chunkZNXU4E6Acjs.integrationsServer; exports.isChunkLoadError = _chunkIBEHVSU4cjs.isChunkLoadError; exports.navigateTo = _chunkUGD53SNOcjs.navigateTo; exports.normalizeFarmClientCacheKey = _chunkI2BYNELAcjs.normalizeFarmClientCacheKey; exports.prefetch = _chunkUGD53SNOcjs.prefetch; exports.prefetchServerQuery = _chunkIZYFP7INcjs.prefetchServerQuery; exports.pushState = _chunkUGD53SNOcjs.pushState; exports.readPageState = _chunkUGD53SNOcjs.readPageState; exports.replaceState = _chunkUGD53SNOcjs.replaceState; exports.setTheme = _chunkWEGAVN37cjs.setTheme; exports.storageClientCacheAdapter = _chunkFULX5RYXcjs.storageClientCacheAdapter; exports.toggleTheme = _chunkWEGAVN37cjs.toggleTheme; exports.useAction = _chunkPZXYAWYGcjs.useAction; exports.useBlocker = _chunkJB4BHRFKcjs.useBlocker; exports.useFetcher = _chunkFULX5RYXcjs.useFetcher; exports.useMutation = _chunkFULX5RYXcjs.useMutation; exports.useNavigation = _chunkJB4BHRFKcjs.useNavigation; exports.usePageState = _chunkJB4BHRFKcjs.usePageState; exports.useRouter = _chunkJB4BHRFKcjs.useRouter; exports.useScrollRestoration = _chunkJB4BHRFKcjs.useScrollRestoration; exports.useServerQuery = _chunkT7HGXF7Dcjs.useServerQuery; exports.useTheme = _chunkC7LCTVJ2cjs.useTheme;
|
package/dist/client.d.mts
CHANGED
|
@@ -6,26 +6,28 @@ export { RouteActionTarget, UseActionFormProps, UseActionReturn, UseServerFnOpti
|
|
|
6
6
|
export { UseServerQueryOptions, UseServerQueryResult, useServerQuery } from './server-query-client.mjs';
|
|
7
7
|
export { a as FarmClientCacheEntry, b as FarmClientCacheKey, F as FarmClientCacheStatus, g as getFarmClientDataCache, n as normalizeFarmClientCacheKey } from './client-cache.d-di_Nasxa.mjs';
|
|
8
8
|
export { F as FarmIntegrationAPI, a as FarmIntegrationAPIBodyFormat, b as FarmIntegrationAPIMethod, c as FarmIntegrationAPIOperation, d as FarmIntegrationAPIResponseFormat, e as api, f as defineIntegrationAPI, g as defineIntegrationAPIOperation, h as endpoint } from './route.d-ShmtqqVQ.mjs';
|
|
9
|
-
import { j as StoreState, l as StoreApi$1, k as StoreValueUpdater, S as StoreKeyListener, D as DefaultRouteHref, F as FarmLinkOptions } from './store-core.d-
|
|
10
|
-
export { a as DefaultRoutePath, b as DefaultRoutePattern, E as ExternalHref, L as LinkDefaultRoute, c as LinkExternalUriSchemes, P as PrefetchBehavior, R as RouteHref, d as RouteOptionalParamValue, e as RouteParamValue, f as RouteParams, g as StoreKeysListener, h as StoreListener, i as StorePatch } from './store-core.d-
|
|
9
|
+
import { j as StoreState, l as StoreApi$1, k as StoreValueUpdater, S as StoreKeyListener, D as DefaultRouteHref, F as FarmLinkOptions } from './store-core.d-BN2MxSG9.mjs';
|
|
10
|
+
export { a as DefaultRoutePath, b as DefaultRoutePattern, E as ExternalHref, L as LinkDefaultRoute, c as LinkExternalUriSchemes, P as PrefetchBehavior, R as RouteHref, d as RouteOptionalParamValue, e as RouteParamValue, f as RouteParams, g as StoreKeysListener, h as StoreListener, i as StorePatch } from './store-core.d-BN2MxSG9.mjs';
|
|
11
11
|
export { UseThemeResult, useTheme } from './theme/client.mjs';
|
|
12
|
-
export { U as UseBlockerOptions, a as UseBlockerReturn, b as UseRouterOptions, u as useBlocker, c as useNavigation, d as usePageState, e as useRouter, f as useScrollRestoration } from './router.d-
|
|
13
|
-
export { c as FarmNavigateOptions, e as FarmNavigationBlocker, F as FarmNavigationBlockerContext, f as FarmNavigationListener, h as FarmNavigationLocation, a as FarmNavigationState, b as FarmViewTransitionMode, S as SPARouter, j as getRouter, n as navigateTo, p as prefetch, k as pushState, r as readPageState, l as replaceState } from './spa-router.d-
|
|
14
|
-
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-
|
|
12
|
+
export { U as UseBlockerOptions, a as UseBlockerReturn, b as UseRouterOptions, u as useBlocker, c as useNavigation, d as usePageState, e as useRouter, f as useScrollRestoration } from './router.d-8lxnzlkr.mjs';
|
|
13
|
+
export { c as FarmNavigateOptions, e as FarmNavigationBlocker, F as FarmNavigationBlockerContext, f as FarmNavigationListener, h as FarmNavigationLocation, a as FarmNavigationState, b as FarmViewTransitionMode, S as SPARouter, j as getRouter, n as navigateTo, p as prefetch, k as pushState, r as readPageState, l as replaceState } from './spa-router.d-BD-6WX1R.mjs';
|
|
14
|
+
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-BBTzhJLj.mjs';
|
|
15
15
|
export { F as FarmChunkRecoveryOptions, i as installChunkErrorRecovery, a as isChunkLoadError } from './chunk-recovery.d-lnQFzcQP.mjs';
|
|
16
16
|
export { d as FarmClientHydrationCompleteEvent, e as FarmClientHydrationEvent, f as FarmClientHydrationMode, g as FarmClientHydrationSession, h as FarmClientLocation, i as FarmClientNavigationAction, j as FarmClientNavigationErrorEvent, k as FarmClientNavigationEvent, l as FarmClientNavigationLoadedEvent, m as FarmClientNavigationResolvedEvent, a as FarmClientNavigationSession, n as FarmClientPerformanceEvent, b as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle.d-OtGWAvJT.mjs';
|
|
17
|
-
export { S as ServerQueryFetchOptions, f as fetchServerQuery, p as prefetchServerQuery } from './server-query-runtime.d-
|
|
17
|
+
export { S as ServerQueryFetchOptions, f as fetchServerQuery, p as prefetchServerQuery } from './server-query-runtime.d-CCLGkQtE.mjs';
|
|
18
18
|
export { getTheme, setTheme, toggleTheme } from './theme/runtime.mjs';
|
|
19
19
|
import './cache.mjs';
|
|
20
20
|
import './server-fn.mjs';
|
|
21
21
|
import './server-fn-error.d-DrcH9cc1.mjs';
|
|
22
22
|
import './server-query.mjs';
|
|
23
|
+
import './server-query-call.d-rVM_lsYk.mjs';
|
|
23
24
|
import './router.mjs';
|
|
24
25
|
import './types.d-DQnyD3VD.mjs';
|
|
25
26
|
import './types.d-euATAbE4.mjs';
|
|
26
|
-
import './client-plugins.d-
|
|
27
|
+
import './client-plugins.d-BwKwuO_0.mjs';
|
|
27
28
|
import './renderer.mjs';
|
|
28
29
|
import './deployment.mjs';
|
|
30
|
+
import './island.d-CfGru1MO.mjs';
|
|
29
31
|
import 'http';
|
|
30
32
|
import './routing.d-D67HQmnv.mjs';
|
|
31
33
|
import './types.d-C5hlNbHa.mjs';
|
|
@@ -52,8 +54,7 @@ import 'rolldown';
|
|
|
52
54
|
import './image-config.d-ByhQ0TT7.mjs';
|
|
53
55
|
import './config.d-BKIhJtmr.mjs';
|
|
54
56
|
import './font.mjs';
|
|
55
|
-
import './
|
|
56
|
-
import './render-plan.d-CK5Lggyb.mjs';
|
|
57
|
+
import './render-plan.d-bnWxS12w.mjs';
|
|
57
58
|
|
|
58
59
|
type MutationStatus = "idle" | "pending" | "success" | "error";
|
|
59
60
|
type AnyMutationTarget = (...args: any[]) => Promise<any>;
|