@farm.js/core 0.1.44 → 0.1.46
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-EnzWYv_X.d.ts → agent-mcp-BtK_KZ1m.d.ts} +2 -2
- package/dist/{agent-mcp-CWI-awqd.d.mts → agent-mcp-Cc-ypyNi.d.mts} +2 -2
- package/dist/agent-runtime.d.mts +10 -10
- package/dist/agent-runtime.d.ts +10 -10
- package/dist/api/client.d.mts +3 -3
- package/dist/api/client.d.ts +3 -3
- package/dist/api/route-manager.d.mts +16 -16
- package/dist/api/route-manager.d.ts +16 -16
- package/dist/api/runtime.d.mts +12 -12
- package/dist/api/runtime.d.ts +12 -12
- package/dist/{api-client-Dk9QOLwr.d.mts → api-client-CFdv-Xgh.d.mts} +3 -3
- package/dist/{api-client-BJv9mTbO.d.ts → api-client-CvI5oOBE.d.ts} +3 -3
- package/dist/api.d.mts +17 -17
- package/dist/api.d.ts +17 -17
- package/dist/{app-DG3dE8v5.d.mts → app-2SBLAaNq.d.mts} +8 -8
- package/dist/{app-CAN_2Cqo.d.ts → app-BlXGEpdA.d.ts} +8 -8
- package/dist/{app-manifest-DazjgQya.d.ts → app-manifest-D1Tgp8ya.d.ts} +1 -1
- package/dist/{app-manifest-8x5VjZ0L.d.mts → app-manifest-nZHIvS3a.d.mts} +1 -1
- package/dist/app-markdown.d.mts +11 -11
- package/dist/app-markdown.d.ts +11 -11
- package/dist/{base-path-BU16ETmo.d.mts → base-path-leyrqXbX.d.mts} +1 -1
- package/dist/{base-path-BU16ETmo.d.ts → base-path-leyrqXbX.d.ts} +1 -1
- package/dist/{chunk-YFLBG2W3.mjs → chunk-4GRLJURM.mjs} +1 -1
- package/dist/{chunk-GA6JM4L6.cjs → chunk-A7XJHKRK.cjs} +43 -43
- package/dist/{chunk-T44ECMEP.cjs → chunk-DQNWI2PV.cjs} +6 -6
- package/dist/{chunk-5GBL2LKD.cjs → chunk-E6Z63WDR.cjs} +237 -135
- package/dist/{chunk-3YJMBQ27.cjs → chunk-F6KWRHF5.cjs} +1 -1
- package/dist/{chunk-AI3WVJNP.cjs → chunk-HDFNAUSG.cjs} +50 -50
- package/dist/{chunk-R4J2UOV4.mjs → chunk-HNGR7CTG.mjs} +1 -1
- package/dist/{chunk-2MKTHHEU.mjs → chunk-JBL546U4.mjs} +3 -3
- package/dist/{chunk-QGFKXYC7.mjs → chunk-KLDBRGD5.mjs} +2 -2
- package/dist/{chunk-XUHIRBXY.mjs → chunk-TUGIZGTH.mjs} +1 -1
- package/dist/{chunk-ERA5RP3L.mjs → chunk-YLPEGQDE.mjs} +175 -73
- package/dist/{chunk-XPSGGECF.cjs → chunk-ZM6U54TC.cjs} +2 -2
- package/dist/{client-plugins-nQ0tYt4l.d.mts → client-plugins-DEmIQo5R.d.mts} +1438 -1438
- package/dist/{client-plugins-BGS0wqzc.d.ts → client-plugins-br48Hpmk.d.ts} +1438 -1438
- package/dist/client-plugins.d.mts +10 -10
- package/dist/client-plugins.d.ts +10 -10
- package/dist/client.d.mts +17 -17
- package/dist/client.d.ts +17 -17
- package/dist/config.d.mts +10 -10
- package/dist/config.d.ts +10 -10
- package/dist/docs.d.mts +11 -11
- package/dist/docs.d.ts +11 -11
- package/dist/{endpoint-BOE0IAaG.d.ts → endpoint-BgHn0lhl.d.ts} +1 -1
- package/dist/{endpoint-DGZRZHux.d.mts → endpoint-BkMSCRf6.d.mts} +1 -1
- package/dist/environment/vite.d.mts +1 -1
- package/dist/environment/vite.d.ts +1 -1
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/image/server.d.mts +1 -1
- package/dist/image/server.d.ts +1 -1
- package/dist/image/sharp.d.mts +1 -1
- package/dist/image/sharp.d.ts +1 -1
- package/dist/{image-config-BpH1q5R8.d.ts → image-config-CeDgNyX4.d.mts} +1 -1
- package/dist/{image-config-BpH1q5R8.d.mts → image-config-CeDgNyX4.d.ts} +1 -1
- package/dist/image.d.mts +1 -1
- package/dist/image.d.ts +1 -1
- package/dist/{index-BJJfLxJo.d.mts → index-Cl3akY5U.d.mts} +2 -2
- package/dist/{index-Cy26isrh.d.ts → index-CyD9Rfso.d.ts} +2 -2
- package/dist/{index-CwoOP-MW.d.ts → index-MocnSP3a.d.ts} +2 -2
- package/dist/{index-y1jgR74U.d.mts → index-_nhUt_dh.d.mts} +2 -2
- package/dist/index.cjs +6 -6
- package/dist/index.d.mts +32 -32
- package/dist/index.d.ts +32 -32
- package/dist/index.mjs +5 -5
- package/dist/{instrumentation-runtime-CE06JLHZ.d.mts → instrumentation-runtime-CX9Zh-16.d.mts} +1 -1
- package/dist/{instrumentation-runtime-CE06JLHZ.d.ts → instrumentation-runtime-CX9Zh-16.d.ts} +1 -1
- package/dist/instrumentation.d.mts +2 -2
- package/dist/instrumentation.d.ts +2 -2
- package/dist/integrations.d.mts +10 -10
- package/dist/integrations.d.ts +10 -10
- package/dist/internal/app-markdown-runtime.d.mts +11 -11
- package/dist/internal/app-markdown-runtime.d.ts +11 -11
- package/dist/internal/build-runtime.cjs +6 -6
- package/dist/internal/build-runtime.d.mts +12 -12
- package/dist/internal/build-runtime.d.ts +12 -12
- package/dist/internal/build-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 +1 -1
- package/dist/internal/client-runtime.d.ts +1 -1
- package/dist/internal/compression-runtime.d.mts +10 -10
- package/dist/internal/compression-runtime.d.ts +10 -10
- package/dist/internal/config-runtime.d.mts +11 -11
- package/dist/internal/config-runtime.d.ts +11 -11
- package/dist/internal/form-actions.d.mts +1 -1
- package/dist/internal/form-actions.d.ts +1 -1
- package/dist/internal/islx-client.d.mts +4 -0
- package/dist/internal/islx-client.d.ts +4 -0
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +4 -4
- package/dist/internal/production-runtime.d.mts +25 -25
- package/dist/internal/production-runtime.d.ts +25 -25
- package/dist/internal/production-runtime.mjs +3 -3
- package/dist/{layers-CM5i6T7z.d.mts → layers-D9fbe-rz.d.mts} +1 -1
- package/dist/{layers-CM5i6T7z.d.ts → layers-D9fbe-rz.d.ts} +1 -1
- package/dist/markdown.d.mts +10 -10
- package/dist/markdown.d.ts +10 -10
- package/dist/middleware.d.mts +12 -12
- package/dist/middleware.d.ts +12 -12
- package/dist/navigation.d.mts +13 -13
- package/dist/navigation.d.ts +13 -13
- package/dist/{observability-CoXunYhS.d.mts → observability-B2363jB6.d.mts} +1 -1
- package/dist/{observability-CoXunYhS.d.ts → observability-B2363jB6.d.ts} +1 -1
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/og.d.mts +0 -5
- package/dist/og.d.ts +0 -5
- package/dist/plugin.cjs +5 -5
- package/dist/plugin.d.mts +12 -12
- package/dist/plugin.d.ts +12 -12
- package/dist/plugin.mjs +4 -4
- package/dist/{production-runtime-ClFA_1KQ.d.mts → production-runtime-BEbIyIUe.d.mts} +4 -4
- package/dist/{production-runtime-BVMDgHrA.d.ts → production-runtime-DsHjccVI.d.ts} +4 -4
- package/dist/{ssg-XnMHCyEc.d.ts → programmatic-routes-client-DlMKstmL.d.ts} +57 -57
- package/dist/{ssg-ByrOVYdM.d.mts → programmatic-routes-client-Dqr6tHND.d.mts} +57 -57
- package/dist/{render-plan-CoSovy_O.d.mts → render-plan-Bu6XOxNg.d.mts} +1 -1
- package/dist/{render-plan-y2DefWf8.d.ts → render-plan-MefW_fLC.d.ts} +1 -1
- package/dist/renderer/react/server.d.mts +1 -1
- package/dist/renderer/react/server.d.ts +1 -1
- package/dist/renderer-client.d.mts +12 -12
- package/dist/renderer-client.d.ts +12 -12
- package/dist/{request-cNM09Q7e.d.mts → request-BBe1B8Bk.d.mts} +1 -1
- package/dist/{request-aG5Wovm5.d.ts → request-CMsRJQK3.d.ts} +1 -1
- package/dist/request.d.mts +11 -11
- package/dist/request.d.ts +11 -11
- package/dist/{resolver-khasx3fU.d.mts → resolver-C2G-3Tm6.d.mts} +1 -1
- package/dist/{resolver-DadfRL6F.d.ts → resolver-DC57A4vz.d.ts} +1 -1
- package/dist/{integration-api-DWyMmvrR.d.mts → route-2_yXC6gv.d.mts} +100 -100
- package/dist/{integration-api-BuPHMeKz.d.ts → route-DFhZj6jN.d.ts} +100 -100
- package/dist/{route-pattern-W-SsJGSp.d.mts → route-pattern-CVsVbq5n.d.mts} +1 -1
- package/dist/{route-pattern-W-SsJGSp.d.ts → route-pattern-CVsVbq5n.d.ts} +1 -1
- package/dist/{route-rendering-EyInfsjI.d.mts → route-rendering-DTLNruPw.d.ts} +1 -1
- package/dist/{route-rendering-B3uQmCWX.d.ts → route-rendering-Do8tuYgh.d.mts} +1 -1
- package/dist/{router-DNUf-Bg1.d.ts → router-BJreOZ-k.d.ts} +2 -2
- package/dist/{router-Devibh4r.d.mts → router-o2mZB9Y4.d.mts} +2 -2
- package/dist/routes.d.mts +11 -11
- package/dist/routes.d.ts +11 -11
- package/dist/{runtime-BgDQzBiu.d.ts → runtime-B9HmxiZc.d.ts} +2 -2
- package/dist/{runtime-CV2UCV-5.d.mts → runtime-CCxTmGuf.d.mts} +2 -2
- package/dist/{runtime-CLr9P5kn.d.ts → runtime-Cp5YZNz4.d.mts} +5 -5
- package/dist/{runtime-9KZb8AI5.d.mts → runtime-Da57KD8F.d.ts} +5 -5
- package/dist/server-action-security.d.mts +1 -1
- package/dist/server-action-security.d.ts +1 -1
- package/dist/server-fn-client.d.mts +4 -4
- package/dist/server-fn-client.d.ts +4 -4
- package/dist/{server-fn-error-DDh14a0V.d.mts → server-fn-error-DrcH9cc1.d.mts} +1 -1
- package/dist/{server-fn-error-DDh14a0V.d.ts → server-fn-error-DrcH9cc1.d.ts} +1 -1
- package/dist/server-fn.d.mts +3 -3
- package/dist/server-fn.d.ts +3 -3
- package/dist/server-plugins.d.mts +11 -11
- package/dist/server-plugins.d.ts +11 -11
- package/dist/server-query-client.d.mts +2 -2
- package/dist/server-query-client.d.ts +2 -2
- package/dist/server-query.d.mts +2 -2
- package/dist/server-query.d.ts +2 -2
- package/dist/server.cjs +14 -14
- package/dist/server.d.mts +20 -20
- package/dist/server.d.ts +20 -20
- package/dist/server.mjs +4 -4
- package/dist/{spa-router-Ds6R_oe-.d.ts → spa-router-CN2vc0GY.d.ts} +4 -4
- package/dist/{spa-router-BIxh4IY-.d.mts → spa-router-COZLIB7k.d.mts} +4 -4
- package/dist/storage.d.mts +3 -3
- package/dist/storage.d.ts +3 -3
- package/dist/testing.d.mts +12 -12
- package/dist/testing.d.ts +12 -12
- package/dist/theme/server.d.mts +1 -1
- package/dist/theme/server.d.ts +1 -1
- package/dist/{types-CnH8DOqo.d.mts → types--Wh02r5_.d.mts} +1 -1
- package/dist/{types-CnH8DOqo.d.ts → types--Wh02r5_.d.ts} +1 -1
- package/dist/{types-Cc8l9IqS.d.ts → types-BnIqOn9w.d.mts} +1 -1
- package/dist/{types-Cc8l9IqS.d.mts → types-BnIqOn9w.d.ts} +1 -1
- package/dist/{utils-BN70ueSN.d.ts → utils-BAtVIHfw.d.mts} +2 -2
- package/dist/{utils-BrjR5xRs.d.mts → utils-Y8MZrj4b.d.ts} +2 -2
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +5 -5
- package/dist/vite.d.mts +14 -14
- package/dist/vite.d.ts +14 -14
- package/dist/vite.mjs +4 -4
- package/dist/{workflows-IWP1ddBm.d.mts → workflows-Df1C_7OG.d.mts} +1 -1
- package/dist/{workflows-IWP1ddBm.d.ts → workflows-Df1C_7OG.d.ts} +1 -1
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { F as FarmWorkflowsResolvedConfig } from './workflows-
|
|
1
|
+
import { aP as FarmConfig, P as ParsedRoute, bp as ResolvedFarmRouteRuntimeConfig, bq as ApplicationMetadataRouteKind, R as RouteModule, b2 as LayoutModule, aK as SSGCollectionResult, m as FarmRequest, n as FarmResponse, br as ResolvedFarmAPIConfig, bs as FarmDocsResolvedConfig, aO as FarmMarkdownResolvedConfig, d as FarmMdxResolvedConfig, ar as ResolvedFarmDevtoolsConfig, bt as ResolvedFarmDevIndicatorsConfig, bu as ResolvedFarmAuthConfig, bv as ResolvedFarmPerformanceConfig, bw as ResolvedFarmSecurityConfig } from './client-plugins-br48Hpmk.js';
|
|
2
|
+
import { F as FarmWorkflowsResolvedConfig } from './workflows-Df1C_7OG.js';
|
|
3
3
|
import { FarmCronResolvedConfig } from './cron.js';
|
|
4
|
-
import { R as ResolvedFarmImageConfig } from './image-config-
|
|
4
|
+
import { R as ResolvedFarmImageConfig } from './image-config-CeDgNyX4.js';
|
|
5
5
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.js';
|
|
6
|
-
import { P as ProgrammaticClientRoutes } from './
|
|
6
|
+
import { P as ProgrammaticClientRoutes } from './programmatic-routes-client-DlMKstmL.js';
|
|
7
7
|
import { ViteDevServer } from 'vite';
|
|
8
8
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.js';
|
|
9
|
-
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp-
|
|
9
|
+
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp-BtK_KZ1m.js';
|
|
10
10
|
import { FarmServerRendererRuntime, FarmRenderer } from './renderer.js';
|
|
11
|
-
import { F as FarmRouteRenderPlan } from './render-plan-
|
|
12
|
-
import { R as ResolvedFarmI18nConfig } from './types
|
|
13
|
-
import { F as FarmI18nRuntime } from './runtime-
|
|
11
|
+
import { F as FarmRouteRenderPlan } from './render-plan-MefW_fLC.js';
|
|
12
|
+
import { R as ResolvedFarmI18nConfig } from './types--Wh02r5_.js';
|
|
13
|
+
import { F as FarmI18nRuntime } from './runtime-B9HmxiZc.js';
|
|
14
14
|
import { R as ResolvedFarmThemeConfig } from './types-DQnyD3VD.js';
|
|
15
15
|
|
|
16
16
|
interface IsolatedClientBoundaryReference {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aB as FarmMCPCatalogDetails, aC as ResolvedFarmAppManifestConfig } from './client-plugins-br48Hpmk.js';
|
|
2
2
|
|
|
3
3
|
interface FarmAppManifestWebMCPTool {
|
|
4
4
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aB as FarmMCPCatalogDetails, aC as ResolvedFarmAppManifestConfig } from './client-plugins-DEmIQo5R.mjs';
|
|
2
2
|
|
|
3
3
|
interface FarmAppManifestWebMCPTool {
|
|
4
4
|
name: string;
|
package/dist/app-markdown.d.mts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { c as FarmMdxComponents, d as FarmMdxResolvedConfig, R as RouteModule } from './client-plugins-DEmIQo5R.mjs';
|
|
2
|
+
export { e as FARM_MARKDOWN_CONTENT_TYPE, h as FarmMdxComponent, i as FarmMdxUserConfig, f as createFarmMarkdownErrorBody, g as farmRequestWantsMarkdown, r as resolveFarmMdxComponentsModulePath, j as resolveMdxConfig } from './client-plugins-DEmIQo5R.mjs';
|
|
3
3
|
export { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, FarmMarkdownPageModuleInput, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, titleFromMarkdown } from './internal/app-markdown-runtime.mjs';
|
|
4
4
|
import './lifecycle-DK06VuKP.mjs';
|
|
5
|
-
import './
|
|
6
|
-
import './endpoint-
|
|
5
|
+
import './route-2_yXC6gv.mjs';
|
|
6
|
+
import './endpoint-BkMSCRf6.mjs';
|
|
7
7
|
import './cache.mjs';
|
|
8
8
|
import './cache-invalidation-BD0z_lfu.mjs';
|
|
9
9
|
import './renderer.mjs';
|
|
10
10
|
import './deployment.mjs';
|
|
11
11
|
import 'http';
|
|
12
12
|
import './server-fn.mjs';
|
|
13
|
-
import './server-fn-error-
|
|
13
|
+
import './server-fn-error-DrcH9cc1.mjs';
|
|
14
14
|
import './server-query.mjs';
|
|
15
|
-
import './types-
|
|
15
|
+
import './types-BnIqOn9w.mjs';
|
|
16
16
|
import 'db0';
|
|
17
17
|
import 'unstorage';
|
|
18
18
|
import './schema.mjs';
|
|
19
19
|
import 'react';
|
|
20
20
|
import '@farming-labs/orm';
|
|
21
21
|
import '@farming-labs/docs';
|
|
22
|
-
import './observability-
|
|
22
|
+
import './observability-B2363jB6.mjs';
|
|
23
23
|
import '@opentelemetry/api';
|
|
24
24
|
import 'vite';
|
|
25
|
-
import './workflows-
|
|
25
|
+
import './workflows-Df1C_7OG.mjs';
|
|
26
26
|
import './cron.mjs';
|
|
27
27
|
import './env.mjs';
|
|
28
28
|
import './server-action-security.mjs';
|
|
29
|
-
import './layers-
|
|
29
|
+
import './layers-D9fbe-rz.mjs';
|
|
30
30
|
import 'rolldown/utils';
|
|
31
31
|
import 'rolldown';
|
|
32
|
-
import './image-config-
|
|
33
|
-
import './types
|
|
32
|
+
import './image-config-CeDgNyX4.mjs';
|
|
33
|
+
import './types--Wh02r5_.mjs';
|
|
34
34
|
import './types-DQnyD3VD.mjs';
|
|
35
35
|
import './font.mjs';
|
|
36
36
|
|
package/dist/app-markdown.d.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { c as FarmMdxComponents, d as FarmMdxResolvedConfig, R as RouteModule } from './client-plugins-br48Hpmk.js';
|
|
2
|
+
export { e as FARM_MARKDOWN_CONTENT_TYPE, h as FarmMdxComponent, i as FarmMdxUserConfig, f as createFarmMarkdownErrorBody, g as farmRequestWantsMarkdown, r as resolveFarmMdxComponentsModulePath, j as resolveMdxConfig } from './client-plugins-br48Hpmk.js';
|
|
3
3
|
export { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, FarmMarkdownPageModuleInput, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, titleFromMarkdown } from './internal/app-markdown-runtime.js';
|
|
4
4
|
import './lifecycle-DK06VuKP.js';
|
|
5
|
-
import './
|
|
6
|
-
import './endpoint-
|
|
5
|
+
import './route-DFhZj6jN.js';
|
|
6
|
+
import './endpoint-BgHn0lhl.js';
|
|
7
7
|
import './cache.js';
|
|
8
8
|
import './cache-invalidation-BD0z_lfu.js';
|
|
9
9
|
import './renderer.js';
|
|
10
10
|
import './deployment.js';
|
|
11
11
|
import 'http';
|
|
12
12
|
import './server-fn.js';
|
|
13
|
-
import './server-fn-error-
|
|
13
|
+
import './server-fn-error-DrcH9cc1.js';
|
|
14
14
|
import './server-query.js';
|
|
15
|
-
import './types-
|
|
15
|
+
import './types-BnIqOn9w.js';
|
|
16
16
|
import 'db0';
|
|
17
17
|
import 'unstorage';
|
|
18
18
|
import './schema.js';
|
|
19
19
|
import 'react';
|
|
20
20
|
import '@farming-labs/orm';
|
|
21
21
|
import '@farming-labs/docs';
|
|
22
|
-
import './observability-
|
|
22
|
+
import './observability-B2363jB6.js';
|
|
23
23
|
import '@opentelemetry/api';
|
|
24
24
|
import 'vite';
|
|
25
|
-
import './workflows-
|
|
25
|
+
import './workflows-Df1C_7OG.js';
|
|
26
26
|
import './cron.js';
|
|
27
27
|
import './env.js';
|
|
28
28
|
import './server-action-security.js';
|
|
29
|
-
import './layers-
|
|
29
|
+
import './layers-D9fbe-rz.js';
|
|
30
30
|
import 'rolldown/utils';
|
|
31
31
|
import 'rolldown';
|
|
32
|
-
import './image-config-
|
|
33
|
-
import './types
|
|
32
|
+
import './image-config-CeDgNyX4.js';
|
|
33
|
+
import './types--Wh02r5_.js';
|
|
34
34
|
import './types-DQnyD3VD.js';
|
|
35
35
|
import './font.js';
|
|
36
36
|
|
|
@@ -16,4 +16,4 @@ declare function setFarmBasePath(basePath: string | undefined): void;
|
|
|
16
16
|
declare function applyFarmBasePath(href: string, basePath?: string): string;
|
|
17
17
|
declare function stripFarmBasePath(pathname: string, basePath?: string): string;
|
|
18
18
|
|
|
19
|
-
export {
|
|
19
|
+
export { setFarmBasePath as a, setFarmTrailingSlashPreference as b, stripFarmBasePath as c, applyFarmBasePath as d, resolveFarmTrailingSlashRedirect as r, searchParamsToObject as s };
|
|
@@ -16,4 +16,4 @@ declare function setFarmBasePath(basePath: string | undefined): void;
|
|
|
16
16
|
declare function applyFarmBasePath(href: string, basePath?: string): string;
|
|
17
17
|
declare function stripFarmBasePath(pathname: string, basePath?: string): string;
|
|
18
18
|
|
|
19
|
-
export {
|
|
19
|
+
export { setFarmBasePath as a, setFarmTrailingSlashPreference as b, stripFarmBasePath as c, applyFarmBasePath as d, resolveFarmTrailingSlashRedirect as r, searchParamsToObject as s };
|
|
@@ -25,7 +25,7 @@ var _chunk3XEMGDBFcjs = require('./chunk-3XEMGDBF.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkZM6U54TCcjs = require('./chunk-ZM6U54TC.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
@@ -244,7 +244,7 @@ var _chunk5NAVKJCZcjs = require('./chunk-5NAVKJCZ.cjs');
|
|
|
244
244
|
var _chunk4TLUFAIPcjs = require('./chunk-4TLUFAIP.cjs');
|
|
245
245
|
|
|
246
246
|
|
|
247
|
-
var
|
|
247
|
+
var _chunkF6KWRHF5cjs = require('./chunk-F6KWRHF5.cjs');
|
|
248
248
|
|
|
249
249
|
|
|
250
250
|
|
|
@@ -1913,8 +1913,8 @@ var _RouteManager = class _RouteManager {
|
|
|
1913
1913
|
)
|
|
1914
1914
|
);
|
|
1915
1915
|
this.orderedLayouts = Array.from(this.layouts.values()).sort(
|
|
1916
|
-
(left, right) =>
|
|
1917
|
-
).map((entry) => ({ entry, groupScope:
|
|
1916
|
+
(left, right) => _chunkZM6U54TCcjs.getRouteDirectoryDepth.call(void 0, left.pattern) - _chunkZM6U54TCcjs.getRouteDirectoryDepth.call(void 0, right.pattern)
|
|
1917
|
+
).map((entry) => ({ entry, groupScope: _chunkZM6U54TCcjs.getRouteGroupScope.call(void 0, entry.pattern) }));
|
|
1918
1918
|
for (const slot of this.routeSlots.values()) {
|
|
1919
1919
|
if (!this.routeSlotOwnerSegments.has(slot.ownerPattern)) {
|
|
1920
1920
|
this.routeSlotOwnerSegments.set(
|
|
@@ -2225,15 +2225,15 @@ var _RouteManager = class _RouteManager {
|
|
|
2225
2225
|
enforceFarmIsolatedHydrationRouteBudget(
|
|
2226
2226
|
layoutEntries.map(({ entry, metadata }) => ({
|
|
2227
2227
|
pattern: entry.pattern,
|
|
2228
|
-
depth:
|
|
2228
|
+
depth: _chunkZM6U54TCcjs.getRouteDirectoryDepth.call(void 0, entry.pattern),
|
|
2229
2229
|
metadata
|
|
2230
2230
|
})),
|
|
2231
2231
|
routeEntries.map(({ entry, metadata }) => ({
|
|
2232
2232
|
pattern: getRouteEntryDirectory(entry),
|
|
2233
|
-
depth:
|
|
2233
|
+
depth: _chunkZM6U54TCcjs.getRouteDirectoryDepth.call(void 0, getRouteEntryDirectory(entry)),
|
|
2234
2234
|
metadata
|
|
2235
2235
|
})),
|
|
2236
|
-
|
|
2236
|
+
_chunkZM6U54TCcjs.routeBoundaryCoversDirectory
|
|
2237
2237
|
);
|
|
2238
2238
|
for (const { entry, metadata } of [...layoutEntries, ...routeEntries]) {
|
|
2239
2239
|
if (!metadata.costGuardExceeded) continue;
|
|
@@ -2252,7 +2252,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2252
2252
|
const routes = routeEntries.map(({ entry, metadata }) => {
|
|
2253
2253
|
const programmaticPage = this.programmaticPages.get(entry.modulePath);
|
|
2254
2254
|
const layoutShouldHydrate = layoutEntries.some(
|
|
2255
|
-
({ entry: layout, metadata: layoutMetadata }) => layoutMetadata.shouldHydrate &&
|
|
2255
|
+
({ entry: layout, metadata: layoutMetadata }) => layoutMetadata.shouldHydrate && _chunkZM6U54TCcjs.routeBoundaryCoversDirectory.call(void 0, layout.pattern, getRouteEntryDirectory(entry))
|
|
2256
2256
|
);
|
|
2257
2257
|
return {
|
|
2258
2258
|
pattern: entry.pattern,
|
|
@@ -2269,7 +2269,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2269
2269
|
}))
|
|
2270
2270
|
} : {},
|
|
2271
2271
|
...usesFarmServerTree(metadata) ? { serverTree: true } : {},
|
|
2272
|
-
renderPlan:
|
|
2272
|
+
renderPlan: _chunkZM6U54TCcjs.createFarmRouteRenderPlan.call(void 0, {
|
|
2273
2273
|
pageShouldHydrate: metadata.shouldHydrate,
|
|
2274
2274
|
layoutShouldHydrate,
|
|
2275
2275
|
islandStrategy: metadata.islandStrategy
|
|
@@ -2434,7 +2434,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2434
2434
|
*/
|
|
2435
2435
|
createRoutePattern(route) {
|
|
2436
2436
|
if (route.segments.length === 0) return "/";
|
|
2437
|
-
return "/" + route.segments.map(
|
|
2437
|
+
return "/" + route.segments.map(_chunkZM6U54TCcjs.formatRouteSegment).join("/");
|
|
2438
2438
|
}
|
|
2439
2439
|
registerPageRoute(entry) {
|
|
2440
2440
|
_chunkNO3WWW3Ncjs.assertUniqueRouteParameters.call(void 0, entry.pattern);
|
|
@@ -2528,7 +2528,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2528
2528
|
for (const file of files) {
|
|
2529
2529
|
const route = _chunk5QIKR7RRcjs.parseRoutePath.call(void 0, file);
|
|
2530
2530
|
const modulePath = path4.default.join(appDir, file);
|
|
2531
|
-
const pattern =
|
|
2531
|
+
const pattern = _chunkZM6U54TCcjs.createRouteDirectoryPattern.call(void 0, route);
|
|
2532
2532
|
const existing = target.get(pattern);
|
|
2533
2533
|
if (_optionalChain([existing, 'optionalAccess', _131 => _131.sourceRoot]) === source.root) {
|
|
2534
2534
|
throw new Error(
|
|
@@ -2550,7 +2550,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2550
2550
|
const modulePath = path4.default.join(appDir, file);
|
|
2551
2551
|
const pattern = this.createRoutePattern(slot.route);
|
|
2552
2552
|
const ownerPattern = this.createRoutePattern(slot.ownerRoute);
|
|
2553
|
-
const ownerDirectory =
|
|
2553
|
+
const ownerDirectory = _chunkZM6U54TCcjs.createRouteDirectoryPattern.call(void 0, slot.ownerRoute);
|
|
2554
2554
|
const key = `${ownerPattern}:${slot.name}:${slot.interception ? "intercept" : "slot"}:${slot.fallback ? "default" : pattern}`;
|
|
2555
2555
|
const existing = this.routeSlots.get(key);
|
|
2556
2556
|
if (_optionalChain([existing, 'optionalAccess', _132 => _132.sourceRoot]) === source.root) {
|
|
@@ -2667,7 +2667,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2667
2667
|
}
|
|
2668
2668
|
if (definition.kind === "layout") {
|
|
2669
2669
|
const route = _chunkCGVPXIRNcjs.parseProgrammaticRoutePath.call(void 0, definition.path, "layout");
|
|
2670
|
-
const pattern =
|
|
2670
|
+
const pattern = _chunkZM6U54TCcjs.createRouteDirectoryPattern.call(void 0, route);
|
|
2671
2671
|
const existing = this.layouts.get(pattern);
|
|
2672
2672
|
if (_optionalChain([existing, 'optionalAccess', _136 => _136.sourceRoot]) === source.root) {
|
|
2673
2673
|
throw new Error(
|
|
@@ -2714,7 +2714,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2714
2714
|
const matchingLayouts = [];
|
|
2715
2715
|
for (const { entry, groupScope } of this.orderedLayouts) {
|
|
2716
2716
|
if (!_chunk5QIKR7RRcjs.matchRoutePrefixParts.call(void 0, pathnameParts, entry.route.segments)) continue;
|
|
2717
|
-
if (groupScope !== null && !
|
|
2717
|
+
if (groupScope !== null && !_chunkZM6U54TCcjs.isInRouteGroupScope.call(void 0, route && getRouteEntryDirectory(route), groupScope)) {
|
|
2718
2718
|
continue;
|
|
2719
2719
|
}
|
|
2720
2720
|
matchingLayouts.push(entry);
|
|
@@ -2795,14 +2795,14 @@ var _RouteManager = class _RouteManager {
|
|
|
2795
2795
|
let page = route;
|
|
2796
2796
|
for (const boundaryEntry of boundaries.values()) {
|
|
2797
2797
|
if (!_chunk5QIKR7RRcjs.matchRoutePrefix.call(void 0, normalizedPath, boundaryEntry.route.segments)) continue;
|
|
2798
|
-
const groupScope =
|
|
2798
|
+
const groupScope = _chunkZM6U54TCcjs.getRouteGroupScope.call(void 0, boundaryEntry.pattern);
|
|
2799
2799
|
if (groupScope !== null) {
|
|
2800
2800
|
if (page === void 0) page = this.matchPageRoute(_chunk5QIKR7RRcjs.splitRoutePath.call(void 0, normalizedPath));
|
|
2801
|
-
if (!
|
|
2801
|
+
if (!_chunkZM6U54TCcjs.isInRouteGroupScope.call(void 0, page && getRouteEntryDirectory(page), groupScope)) continue;
|
|
2802
2802
|
}
|
|
2803
2803
|
const depth = boundaryEntry.route.segments.length;
|
|
2804
2804
|
const bestDepth = _nullishCoalesce(_optionalChain([bestMatch, 'optionalAccess', _140 => _140.route, 'access', _141 => _141.segments, 'access', _142 => _142.length]), () => ( -1));
|
|
2805
|
-
if (!bestMatch || depth > bestDepth || depth === bestDepth &&
|
|
2805
|
+
if (!bestMatch || depth > bestDepth || depth === bestDepth && _chunkZM6U54TCcjs.getRouteDirectoryDepth.call(void 0, boundaryEntry.pattern) > _chunkZM6U54TCcjs.getRouteDirectoryDepth.call(void 0, bestMatch.pattern)) {
|
|
2806
2806
|
bestMatch = boundaryEntry;
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
@@ -2918,7 +2918,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2918
2918
|
_chunkS3JO3N4Hcjs.__name.call(void 0, _RouteManager, "RouteManager");
|
|
2919
2919
|
var RouteManager = _RouteManager;
|
|
2920
2920
|
function getPageDirectoryField(route, pattern) {
|
|
2921
|
-
const directory =
|
|
2921
|
+
const directory = _chunkZM6U54TCcjs.createRouteDirectoryPattern.call(void 0, route);
|
|
2922
2922
|
return directory === pattern ? {} : { directory };
|
|
2923
2923
|
}
|
|
2924
2924
|
_chunkS3JO3N4Hcjs.__name.call(void 0, getPageDirectoryField, "getPageDirectoryField");
|
|
@@ -4588,7 +4588,7 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, appendResponseVary, "appendResponseVary");
|
|
|
4588
4588
|
function renderI18nAlternateLinks(requestPath, snapshot, options) {
|
|
4589
4589
|
if (snapshot.routing === "none") return "";
|
|
4590
4590
|
const url = new URL(requestPath, "http://farm.local");
|
|
4591
|
-
return
|
|
4591
|
+
return _chunkZM6U54TCcjs.renderFarmLocaleAlternateLinks.call(void 0, url.pathname, snapshot, options);
|
|
4592
4592
|
}
|
|
4593
4593
|
_chunkS3JO3N4Hcjs.__name.call(void 0, renderI18nAlternateLinks, "renderI18nAlternateLinks");
|
|
4594
4594
|
var PPR_REFRESH_MAX_ATTEMPTS = 3;
|
|
@@ -5919,7 +5919,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
5919
5919
|
}
|
|
5920
5920
|
}
|
|
5921
5921
|
_chunkGS3WR5HXcjs.emitFarmEvent.call(void 0, { type: "render.error", route: pathname, error });
|
|
5922
|
-
const errorStatus =
|
|
5922
|
+
const errorStatus = _chunkZM6U54TCcjs.resolveDefaultErrorStatus.call(void 0, error);
|
|
5923
5923
|
if (pprRefreshRoute) {
|
|
5924
5924
|
_chunkGS3WR5HXcjs.emitFarmEvent.call(void 0, {
|
|
5925
5925
|
type: "ppr.refresh.error",
|
|
@@ -6147,7 +6147,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6147
6147
|
origin: url.origin,
|
|
6148
6148
|
readMarkdown: llmsContext.markdown
|
|
6149
6149
|
}) : value;
|
|
6150
|
-
const response =
|
|
6150
|
+
const response = _chunkZM6U54TCcjs.createFarmMetadataRouteResponse.call(void 0, match.metadata.kind, body, routeModule, {
|
|
6151
6151
|
method,
|
|
6152
6152
|
request: request2
|
|
6153
6153
|
});
|
|
@@ -6183,7 +6183,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6183
6183
|
}) : context.defaults;
|
|
6184
6184
|
await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0,
|
|
6185
6185
|
res,
|
|
6186
|
-
|
|
6186
|
+
_chunkZM6U54TCcjs.createFarmMetadataRouteResponse.call(void 0,
|
|
6187
6187
|
kind,
|
|
6188
6188
|
body,
|
|
6189
6189
|
{ revalidate: config.revalidate },
|
|
@@ -6218,7 +6218,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6218
6218
|
});
|
|
6219
6219
|
await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0,
|
|
6220
6220
|
res,
|
|
6221
|
-
|
|
6221
|
+
_chunkZM6U54TCcjs.createFarmMetadataRouteResponse.call(void 0, "robots", robots, {}, { method: req.method })
|
|
6222
6222
|
);
|
|
6223
6223
|
} catch (error) {
|
|
6224
6224
|
_chunk5QIKR7RRcjs.logger.error(`Generated robots.txt failed: ${error}`);
|
|
@@ -6262,7 +6262,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6262
6262
|
});
|
|
6263
6263
|
await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0,
|
|
6264
6264
|
res,
|
|
6265
|
-
|
|
6265
|
+
_chunkZM6U54TCcjs.createFarmMetadataRouteResponse.call(void 0, "sitemap", sitemap, {}, { method: req.method })
|
|
6266
6266
|
);
|
|
6267
6267
|
} catch (error) {
|
|
6268
6268
|
_chunk5QIKR7RRcjs.logger.error(`Generated sitemap.xml failed: ${error}`);
|
|
@@ -6291,7 +6291,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6291
6291
|
getAgentListedRoutes() {
|
|
6292
6292
|
const guards = { config: this.config, middlewareRoutes: _nullishCoalesce(_optionalChain([this, 'access', _244 => _244.middlewareRoutes, 'optionalCall', _245 => _245()]), () => ( [])) };
|
|
6293
6293
|
return [...this.routeManager.getRoutes()].filter(
|
|
6294
|
-
([pattern]) => !pattern.includes("[") && !
|
|
6294
|
+
([pattern]) => !pattern.includes("[") && !_chunkZM6U54TCcjs.farmPathGuardCoversPage.call(void 0, guards, pattern)
|
|
6295
6295
|
);
|
|
6296
6296
|
}
|
|
6297
6297
|
/**
|
|
@@ -6305,7 +6305,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6305
6305
|
if (this.routeManager.matchRoute(_chunkBMOBTMDRcjs.FARM_DEFAULT_MCP_PATH).route) return void 0;
|
|
6306
6306
|
_nullishCoalesce(this.defaultMCPServer, () => ( (this.defaultMCPServer = _chunkBMOBTMDRcjs.createFarmDefaultMCPServer.call(void 0,
|
|
6307
6307
|
readAppPackageIdentity(this.config.root),
|
|
6308
|
-
|
|
6308
|
+
_chunkF6KWRHF5cjs.FARM_VERSION
|
|
6309
6309
|
))));
|
|
6310
6310
|
return _chunkBMOBTMDRcjs.resolveFarmDefaultMCPServer.call(void 0, this.defaultMCPServer);
|
|
6311
6311
|
}
|
|
@@ -6387,7 +6387,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6387
6387
|
pages,
|
|
6388
6388
|
config,
|
|
6389
6389
|
rootMetadata,
|
|
6390
|
-
mcp: _optionalChain([this, 'access', _257 => _257.config, 'access', _258 => _258.agent, 'optionalAccess', _259 => _259.aiCatalog]) === false ? [] :
|
|
6390
|
+
mcp: _optionalChain([this, 'access', _257 => _257.config, 'access', _258 => _258.agent, 'optionalAccess', _259 => _259.aiCatalog]) === false ? [] : _chunkZM6U54TCcjs.listFarmMCPLlmsTxtLinks.call(void 0, origin, {
|
|
6391
6391
|
basePath: this.config.basePath,
|
|
6392
6392
|
apiServerBasePath: _chunkKNBBQHO2cjs.resolveFarmAPIServerBasePath.call(void 0,
|
|
6393
6393
|
_chunkS3A45T7Fcjs.normalizeFarmAPIConfig.call(void 0,
|
|
@@ -6686,19 +6686,19 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
6686
6686
|
i18nSnapshot,
|
|
6687
6687
|
this.getI18nAlternateOptions(req, req.__FARM_METADATA__)
|
|
6688
6688
|
) : "";
|
|
6689
|
-
const themeDocument =
|
|
6689
|
+
const themeDocument = _chunkZM6U54TCcjs.createFarmThemeDocumentParts.call(void 0,
|
|
6690
6690
|
this.config.theme,
|
|
6691
6691
|
this.config.basePath,
|
|
6692
6692
|
_chunk2FUIT2G2cjs.getTheme.call(void 0, )
|
|
6693
6693
|
);
|
|
6694
6694
|
themeDocument.head = farmScripts(themeDocument.head);
|
|
6695
|
-
const fullDocument =
|
|
6695
|
+
const fullDocument = _chunkZM6U54TCcjs.extractFarmFullDocument.call(void 0, content);
|
|
6696
6696
|
let html;
|
|
6697
6697
|
if (fullDocument) {
|
|
6698
6698
|
const shouldReplaceLayoutTitle = hasExplicitTitle || rendererHasTitle;
|
|
6699
|
-
const documentHtml = shouldReplaceLayoutTitle ?
|
|
6700
|
-
const effectiveRendererHead = hasExplicitTitle ?
|
|
6701
|
-
html =
|
|
6699
|
+
const documentHtml = shouldReplaceLayoutTitle ? _chunkZM6U54TCcjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument;
|
|
6700
|
+
const effectiveRendererHead = hasExplicitTitle ? _chunkZM6U54TCcjs.removeFarmDocumentTitles.call(void 0, rendererHead) : rendererHead;
|
|
6701
|
+
html = _chunkZM6U54TCcjs.composeFarmFullDocument.call(void 0, documentHtml, {
|
|
6702
6702
|
fallbackIcon: !hasFavicon,
|
|
6703
6703
|
viewport: viewportTags,
|
|
6704
6704
|
htmlAttributes: `${i18nSnapshot ? ` lang="${escapeHtmlAttribute2(i18nSnapshot.locale)}" dir="${escapeHtmlAttribute2(i18nSnapshot.direction)}"` : ""}${themeDocument.attributes}`,
|
|
@@ -6926,7 +6926,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
6926
6926
|
this.getI18nAlternateOptions(req, req.__FARM_METADATA__)
|
|
6927
6927
|
) : "";
|
|
6928
6928
|
const fontHead = renderFarmFontDevHead(this.config.root || process.cwd());
|
|
6929
|
-
const themeDocument =
|
|
6929
|
+
const themeDocument = _chunkZM6U54TCcjs.createFarmThemeDocumentParts.call(void 0,
|
|
6930
6930
|
this.config.theme,
|
|
6931
6931
|
this.config.basePath,
|
|
6932
6932
|
_chunk2FUIT2G2cjs.getTheme.call(void 0, )
|
|
@@ -6989,7 +6989,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
6989
6989
|
if (!chunkText) return;
|
|
6990
6990
|
if (!checkedFullDocument) {
|
|
6991
6991
|
documentPrefix += chunkText;
|
|
6992
|
-
const prefix =
|
|
6992
|
+
const prefix = _chunkZM6U54TCcjs.classifyFarmDocumentPrefix.call(void 0, documentPrefix);
|
|
6993
6993
|
if (prefix !== "pending") {
|
|
6994
6994
|
checkedFullDocument = true;
|
|
6995
6995
|
documentPrefix = "";
|
|
@@ -7186,7 +7186,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7186
7186
|
*/
|
|
7187
7187
|
async createLateNavigationRecoveryHTML(req, error) {
|
|
7188
7188
|
if (_chunkOX6O6WVAcjs.isFarmRedirectError.call(void 0, error)) {
|
|
7189
|
-
return
|
|
7189
|
+
return _chunkZM6U54TCcjs.createLateRedirectRecovery.call(void 0,
|
|
7190
7190
|
this.localizeRedirectUrl(_chunkOX6O6WVAcjs.getFarmRedirectError.call(void 0, error).url),
|
|
7191
7191
|
this.getCspNonce(req) || ""
|
|
7192
7192
|
);
|
|
@@ -7208,7 +7208,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7208
7208
|
_chunk5QIKR7RRcjs.logger.warn(`not-found page could not render outside its layout, using Farm's: ${error2}`);
|
|
7209
7209
|
}
|
|
7210
7210
|
}
|
|
7211
|
-
return
|
|
7211
|
+
return _chunkZM6U54TCcjs.createLateNotFoundRecovery.call(void 0, content, this.getCspNonce(req) || "");
|
|
7212
7212
|
}
|
|
7213
7213
|
async render404(req, res) {
|
|
7214
7214
|
res.statusCode = 404;
|
|
@@ -7286,10 +7286,10 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7286
7286
|
trustProxy: _optionalChain([this, 'access', _304 => _304.config, 'access', _305 => _305.server, 'optionalAccess', _306 => _306.trustProxy])
|
|
7287
7287
|
});
|
|
7288
7288
|
const diagnostics = isDev ? createDefaultErrorDiagnostics(error, this.config.root || process.cwd()) : void 0;
|
|
7289
|
-
const statusText =
|
|
7289
|
+
const statusText = _chunkZM6U54TCcjs.getDefaultErrorStatusText.call(void 0, statusCode);
|
|
7290
7290
|
const content = this.stampFarmScripts(
|
|
7291
7291
|
req,
|
|
7292
|
-
|
|
7292
|
+
_chunkZM6U54TCcjs.createDefaultErrorMarkup.call(void 0, {
|
|
7293
7293
|
statusCode,
|
|
7294
7294
|
statusText,
|
|
7295
7295
|
requestPath: requestUrl.pathname,
|
|
@@ -7299,7 +7299,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7299
7299
|
stack: _optionalChain([diagnostics, 'optionalAccess', _309 => _309.stack]),
|
|
7300
7300
|
sourceFrame: _optionalChain([diagnostics, 'optionalAccess', _310 => _310.sourceFrame]),
|
|
7301
7301
|
development: isDev,
|
|
7302
|
-
farmVersion:
|
|
7302
|
+
farmVersion: _chunkF6KWRHF5cjs.FARM_VERSION,
|
|
7303
7303
|
nodeVersion: process.version,
|
|
7304
7304
|
mode: isDev ? "development" : "production"
|
|
7305
7305
|
})
|
|
@@ -7345,7 +7345,7 @@ ${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};`
|
|
|
7345
7345
|
this.getI18nAlternateOptions(alternates.req, alternates.metadata)
|
|
7346
7346
|
) : "";
|
|
7347
7347
|
const fontHead = renderFarmFontDevHead(this.config.root || process.cwd());
|
|
7348
|
-
const themeDocument =
|
|
7348
|
+
const themeDocument = _chunkZM6U54TCcjs.createFarmThemeDocumentParts.call(void 0,
|
|
7349
7349
|
this.config.theme,
|
|
7350
7350
|
this.config.basePath,
|
|
7351
7351
|
_chunk2FUIT2G2cjs.getTheme.call(void 0, )
|
|
@@ -7355,10 +7355,10 @@ ${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};`
|
|
|
7355
7355
|
_optionalChain([this, 'access', _315 => _315.rendererRuntime, 'access', _316 => _316.generateHydrationScript, 'optionalCall', _317 => _317()]) || ""
|
|
7356
7356
|
);
|
|
7357
7357
|
const viewportTags = _chunkLZESP4IRcjs.renderViewportHead.call(void 0, _optionalChain([alternates, 'access', _318 => _318.metadata, 'optionalAccess', _319 => _319.viewport]));
|
|
7358
|
-
const fullDocument =
|
|
7358
|
+
const fullDocument = _chunkZM6U54TCcjs.extractFarmFullDocument.call(void 0, content);
|
|
7359
7359
|
if (fullDocument) {
|
|
7360
|
-
return
|
|
7361
|
-
metadataHead ?
|
|
7360
|
+
return _chunkZM6U54TCcjs.composeFarmFullDocument.call(void 0,
|
|
7361
|
+
metadataHead ? _chunkZM6U54TCcjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument,
|
|
7362
7362
|
{
|
|
7363
7363
|
fallbackIcon: !metadataHead,
|
|
7364
7364
|
viewport: viewportTags,
|
|
@@ -7,7 +7,7 @@ var _chunkPCOTGFSMcjs = require('./chunk-PCOTGFSM.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkZM6U54TCcjs = require('./chunk-ZM6U54TC.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -59,7 +59,7 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
|
|
|
59
59
|
return {
|
|
60
60
|
layout,
|
|
61
61
|
segments: segments.length === 0 ? null : segments,
|
|
62
|
-
groupScope:
|
|
62
|
+
groupScope: _chunkZM6U54TCcjs.getRouteGroupScope.call(void 0, layout.pattern)
|
|
63
63
|
};
|
|
64
64
|
});
|
|
65
65
|
return (pathname, routeDirectory) => {
|
|
@@ -73,7 +73,7 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
|
|
|
73
73
|
}
|
|
74
74
|
if (groupScope !== null) {
|
|
75
75
|
if (directory === void 0) directory = _nullishCoalesce(_optionalChain([resolveRouteDirectory, 'optionalCall', _2 => _2(pathname)]), () => ( null));
|
|
76
|
-
if (!
|
|
76
|
+
if (!_chunkZM6U54TCcjs.isInRouteGroupScope.call(void 0, directory, groupScope)) continue;
|
|
77
77
|
}
|
|
78
78
|
applicable.push(layout);
|
|
79
79
|
}
|
|
@@ -82,9 +82,9 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
|
|
|
82
82
|
}
|
|
83
83
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createFarmLayoutSelector, "createFarmLayoutSelector");
|
|
84
84
|
function layoutsCanCoverSamePage(a, b) {
|
|
85
|
-
const scopeA =
|
|
86
|
-
const scopeB =
|
|
87
|
-
if (scopeA !== null && scopeB !== null && !
|
|
85
|
+
const scopeA = _chunkZM6U54TCcjs.getRouteGroupScope.call(void 0, a);
|
|
86
|
+
const scopeB = _chunkZM6U54TCcjs.getRouteGroupScope.call(void 0, b);
|
|
87
|
+
if (scopeA !== null && scopeB !== null && !_chunkZM6U54TCcjs.isInRouteGroupScope.call(void 0, scopeA, scopeB) && !_chunkZM6U54TCcjs.isInRouteGroupScope.call(void 0, scopeB, scopeA)) {
|
|
88
88
|
return false;
|
|
89
89
|
}
|
|
90
90
|
const segmentsA = a === "/" ? [] : _chunkPCOTGFSMcjs.parseRoutePattern.call(void 0, a);
|