@farm.js/core 0.1.0-beta.21 → 0.1.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/after.d.mts +25 -0
- package/dist/after.d.ts +25 -0
- package/dist/agent-runtime.d.mts +97 -0
- package/dist/agent-runtime.d.ts +97 -0
- package/dist/api/route-manager.d.mts +68 -0
- package/dist/api/route-manager.d.ts +68 -0
- package/dist/api/runtime.d.mts +3 -0
- package/dist/api/runtime.d.ts +3 -0
- package/dist/api.cjs +22 -19
- package/dist/api.cjs.map +1 -1
- package/dist/api.d.mts +50 -0
- package/dist/api.d.ts +50 -0
- package/dist/api.mjs +2 -1
- package/dist/app-CTFnOJaI.d.ts +308 -0
- package/dist/app-DA6ospIq.d.mts +308 -0
- package/dist/app-markdown.d.mts +25 -0
- package/dist/app-markdown.d.ts +25 -0
- package/dist/cache.d.mts +192 -0
- package/dist/cache.d.ts +192 -0
- package/dist/{chunk-MIUW47JX.mjs → chunk-2PEJGY5V.mjs} +15 -20
- package/dist/chunk-2PEJGY5V.mjs.map +1 -0
- package/dist/{chunk-RIXKJPGI.mjs → chunk-42325TLU.mjs} +2 -2
- package/dist/chunk-4IVNW5QD.mjs +82 -0
- package/dist/chunk-4IVNW5QD.mjs.map +1 -0
- package/dist/{chunk-I3UWA2P2.mjs → chunk-5NOVWCFL.mjs} +2 -2
- package/dist/chunk-5NOVWCFL.mjs.map +1 -0
- package/dist/chunk-D42BNPZH.mjs +79 -0
- package/dist/chunk-D42BNPZH.mjs.map +1 -0
- package/dist/{chunk-LLPN5SEZ.mjs → chunk-DVPRBMU2.mjs} +2 -2
- package/dist/{chunk-VIC7NJ77.mjs → chunk-FJGTYLCO.mjs} +67 -20
- package/dist/chunk-FJGTYLCO.mjs.map +1 -0
- package/dist/chunk-GIELMNBG.mjs +15 -0
- package/dist/chunk-GIELMNBG.mjs.map +1 -0
- package/dist/chunk-GQVQESLY.mjs +25 -0
- package/dist/chunk-GQVQESLY.mjs.map +1 -0
- package/dist/chunk-H53KVQUU.mjs +48 -0
- package/dist/chunk-H53KVQUU.mjs.map +1 -0
- package/dist/chunk-HCGQYYHI.mjs +1 -0
- package/dist/chunk-HCGQYYHI.mjs.map +1 -0
- package/dist/{chunk-4EATUJFO.mjs → chunk-ICTGDDV4.mjs} +20 -22
- package/dist/chunk-ICTGDDV4.mjs.map +1 -0
- package/dist/{chunk-UCYWGN2P.mjs → chunk-OHNSROHS.mjs} +1 -1
- package/dist/{chunk-FRPWCMMG.mjs → chunk-SBWOTAX4.mjs} +63 -2
- package/dist/chunk-SBWOTAX4.mjs.map +1 -0
- package/dist/{chunk-FKKM7HVF.mjs → chunk-TX54PXAJ.mjs} +109 -58
- package/dist/chunk-TX54PXAJ.mjs.map +1 -0
- package/dist/{chunk-CEVMYGDL.mjs → chunk-YD5IRKVS.mjs} +13 -9
- package/dist/chunk-YD5IRKVS.mjs.map +1 -0
- package/dist/chunk-recovery-lnQFzcQP.d.mts +26 -0
- package/dist/chunk-recovery-lnQFzcQP.d.ts +26 -0
- package/dist/client-BT1mFQas.d.mts +447 -0
- package/dist/client-Nn0q4eO4.d.ts +447 -0
- package/dist/client-cache-CIlyBlmx.d.ts +6 -0
- package/dist/client-cache-D-EZ7XVW.d.mts +6 -0
- package/dist/client-plugins-CCilIb_G.d.mts +2092 -0
- package/dist/client-plugins-DuuleQKk.d.ts +2092 -0
- package/dist/client-plugins.d.mts +25 -0
- package/dist/client-plugins.d.ts +25 -0
- package/dist/client.cjs +122 -35
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.mts +454 -0
- package/dist/client.d.ts +454 -0
- package/dist/client.mjs +13 -2
- package/dist/config.d.mts +32 -0
- package/dist/config.d.ts +32 -0
- package/dist/cron.d.mts +78 -0
- package/dist/cron.d.ts +78 -0
- package/dist/deferred.d.mts +42 -0
- package/dist/deferred.d.ts +42 -0
- package/dist/deployment.d.mts +36 -0
- package/dist/deployment.d.ts +36 -0
- package/dist/{devtools-52FYXIEK.mjs → devtools-326RBQCN.mjs} +7 -6
- package/dist/{devtools-52FYXIEK.mjs.map → devtools-326RBQCN.mjs.map} +1 -1
- package/dist/docs.cjs.map +1 -1
- package/dist/docs.d.mts +80 -0
- package/dist/docs.d.ts +80 -0
- package/dist/docs.mjs +6 -5
- package/dist/env-types.d.mts +12 -0
- package/dist/env-types.d.ts +12 -0
- package/dist/env.d.mts +45 -0
- package/dist/env.d.ts +45 -0
- package/dist/environment/vite.d.mts +22 -0
- package/dist/environment/vite.d.ts +22 -0
- package/dist/environment.d.mts +18 -0
- package/dist/environment.d.ts +18 -0
- package/dist/font.d.mts +95 -0
- package/dist/font.d.ts +95 -0
- package/dist/headers.d.mts +22 -0
- package/dist/headers.d.ts +22 -0
- package/dist/i18n/client.d.mts +32 -0
- package/dist/i18n/client.d.ts +32 -0
- package/dist/i18n/index.d.mts +20 -0
- package/dist/i18n/index.d.ts +20 -0
- package/dist/i18n/server.d.mts +30 -0
- package/dist/i18n/server.d.ts +30 -0
- package/dist/image/server.d.mts +37 -0
- package/dist/image/server.d.ts +37 -0
- package/dist/image/sharp.d.mts +7 -0
- package/dist/image/sharp.d.ts +7 -0
- package/dist/image-config-Duob7wER.d.mts +50 -0
- package/dist/image-config-Duob7wER.d.ts +50 -0
- package/dist/image.d.mts +39 -0
- package/dist/image.d.ts +39 -0
- package/dist/index.cjs +496 -123
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +480 -0
- package/dist/index.d.ts +480 -0
- package/dist/index.mjs +70 -52
- package/dist/index.mjs.map +1 -1
- package/dist/integration-api-CHT2OKAf.d.mts +93 -0
- package/dist/integration-api-CHT2OKAf.d.ts +93 -0
- package/dist/integrations.d.mts +25 -0
- package/dist/integrations.d.ts +25 -0
- package/dist/internal/build-runtime.cjs +386 -83
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.d.mts +42 -0
- package/dist/internal/build-runtime.d.ts +42 -0
- package/dist/internal/build-runtime.mjs +17 -13
- package/dist/internal/client-runtime.d.mts +17 -0
- package/dist/internal/client-runtime.d.ts +17 -0
- package/dist/internal/config-runtime.cjs +41 -0
- package/dist/internal/config-runtime.cjs.map +1 -1
- package/dist/internal/config-runtime.d.mts +42 -0
- package/dist/internal/config-runtime.d.ts +42 -0
- package/dist/internal/config-runtime.mjs +5 -4
- package/dist/internal/metadata-image-runtime.d.mts +25 -0
- package/dist/internal/metadata-image-runtime.d.ts +25 -0
- package/dist/internal/production-node-env.d.mts +12 -0
- package/dist/internal/production-node-env.d.ts +12 -0
- package/dist/internal/production-runtime.cjs +178 -0
- package/dist/internal/production-runtime.cjs.map +1 -1
- package/dist/internal/production-runtime.d.mts +80 -0
- package/dist/internal/production-runtime.d.ts +80 -0
- package/dist/internal/production-runtime.mjs +13 -1
- package/dist/internal/production-runtime.mjs.map +1 -1
- package/dist/island-CfGru1MO.d.mts +9 -0
- package/dist/island-CfGru1MO.d.ts +9 -0
- package/dist/markdown.d.mts +60 -0
- package/dist/markdown.d.ts +60 -0
- package/dist/metadata-DyPRG0wX.d.ts +22 -0
- package/dist/metadata-_GHcAySx.d.mts +22 -0
- package/dist/middleware.cjs +17 -17
- package/dist/middleware.cjs.map +1 -1
- package/dist/middleware.d.mts +172 -0
- package/dist/middleware.d.ts +172 -0
- package/dist/middleware.mjs +3 -2
- package/dist/navigation-errors-Dvwpzaer.d.mts +13 -0
- package/dist/navigation-errors-Dvwpzaer.d.ts +13 -0
- package/dist/navigation.d.mts +14 -0
- package/dist/navigation.d.ts +14 -0
- package/dist/observability.d.mts +335 -0
- package/dist/observability.d.ts +335 -0
- package/dist/params-BALtrRim.d.ts +15 -0
- package/dist/params-ry-lxqmy.d.mts +15 -0
- package/dist/plugin-BJDf43dc.d.mts +165 -0
- package/dist/plugin-BJDf43dc.d.ts +165 -0
- package/dist/plugin.cjs +261 -62
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.mts +25 -0
- package/dist/plugin.d.ts +25 -0
- package/dist/plugin.mjs +13 -9
- package/dist/production-runtime-C4cO3esK.d.mts +81 -0
- package/dist/production-runtime-DrEy8kBO.d.ts +81 -0
- package/dist/query/client.d.mts +61 -0
- package/dist/query/client.d.ts +61 -0
- package/dist/query/index.d.mts +90 -0
- package/dist/query/index.d.ts +90 -0
- package/dist/query/parsers.d.mts +25 -0
- package/dist/query/parsers.d.ts +25 -0
- package/dist/query/server.d.mts +55 -0
- package/dist/query/server.d.ts +55 -0
- package/dist/request-B2PpOxYK.d.mts +6 -0
- package/dist/request-D40lt6aN.d.ts +6 -0
- package/dist/request.d.mts +26 -0
- package/dist/request.d.ts +26 -0
- package/dist/resolver-DJqjLMg_.d.mts +14 -0
- package/dist/resolver-IH4RmPEl.d.ts +14 -0
- package/dist/route-runtime-DoOHzCAD.d.mts +38 -0
- package/dist/route-runtime-DoOHzCAD.d.ts +38 -0
- package/dist/router.d.mts +36 -0
- package/dist/router.d.ts +36 -0
- package/dist/routes.d.mts +227 -0
- package/dist/routes.d.ts +227 -0
- package/dist/runtime-Bpp-c28k.d.ts +231 -0
- package/dist/runtime-Cxpq6xZN.d.mts +27 -0
- package/dist/runtime-Q3u74Nbq.d.mts +231 -0
- package/dist/runtime-bv63eUiO.d.ts +27 -0
- package/dist/server-action-security.d.mts +45 -0
- package/dist/server-action-security.d.ts +45 -0
- package/dist/server-fn-client.d.mts +33 -0
- package/dist/server-fn-client.d.ts +33 -0
- package/dist/server-fn-error-DDh14a0V.d.mts +26 -0
- package/dist/server-fn-error-DDh14a0V.d.ts +26 -0
- package/dist/server-fn.d.mts +121 -0
- package/dist/server-fn.d.ts +121 -0
- package/dist/server-plugins.d.mts +58 -0
- package/dist/server-plugins.d.ts +58 -0
- package/dist/server-query-client.d.mts +51 -0
- package/dist/server-query-client.d.ts +51 -0
- package/dist/server-query.d.mts +37 -0
- package/dist/server-query.d.ts +37 -0
- package/dist/server.cjs +285 -85
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.mts +53 -0
- package/dist/server.d.ts +53 -0
- package/dist/server.mjs +26 -31
- package/dist/server.mjs.map +1 -1
- package/dist/storage.d.mts +52 -0
- package/dist/storage.d.ts +52 -0
- package/dist/testing.d.mts +104 -0
- package/dist/testing.d.ts +104 -0
- package/dist/theme/client.cjs +115 -0
- package/dist/theme/client.cjs.map +1 -0
- package/dist/theme/client.d.mts +17 -0
- package/dist/theme/client.d.ts +17 -0
- package/dist/theme/client.mjs +16 -0
- package/dist/theme/client.mjs.map +1 -0
- package/dist/theme/index.cjs +71 -0
- package/dist/theme/index.cjs.map +1 -0
- package/dist/theme/index.d.mts +6 -0
- package/dist/theme/index.d.ts +6 -0
- package/dist/theme/index.mjs +9 -0
- package/dist/theme/index.mjs.map +1 -0
- package/dist/theme/server.cjs +191 -0
- package/dist/theme/server.cjs.map +1 -0
- package/dist/theme/server.d.mts +8 -0
- package/dist/theme/server.d.ts +8 -0
- package/dist/theme/server.mjs +18 -0
- package/dist/theme/server.mjs.map +1 -0
- package/dist/transport-BmbGTXA5.d.mts +49 -0
- package/dist/transport-BmbGTXA5.d.ts +49 -0
- package/dist/types-BMxWr97v.d.mts +81 -0
- package/dist/types-BMxWr97v.d.ts +81 -0
- package/dist/types-CsR8fpgF.d.mts +30 -0
- package/dist/types-CsR8fpgF.d.ts +30 -0
- package/dist/types-D1A6-XvH.d.mts +73 -0
- package/dist/types-D1A6-XvH.d.ts +73 -0
- package/dist/types-DTzm4TCl.d.mts +78 -0
- package/dist/types-DTzm4TCl.d.ts +78 -0
- package/dist/utils-3sQgfkya.d.ts +23 -0
- package/dist/utils-Bop7bly-.d.mts +23 -0
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.d.mts +3 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +285 -64
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.mts +25 -0
- package/dist/vite.d.ts +25 -0
- package/dist/vite.mjs +13 -9
- package/dist/workflows-CusFV6mn.d.mts +153 -0
- package/dist/workflows-CusFV6mn.d.ts +153 -0
- package/dist/workflows.d.mts +1 -0
- package/dist/workflows.d.ts +1 -0
- package/package.json +25 -1
- package/dist/chunk-4EATUJFO.mjs.map +0 -1
- package/dist/chunk-CEVMYGDL.mjs.map +0 -1
- package/dist/chunk-FKKM7HVF.mjs.map +0 -1
- package/dist/chunk-FRPWCMMG.mjs.map +0 -1
- package/dist/chunk-I3UWA2P2.mjs.map +0 -1
- package/dist/chunk-MIUW47JX.mjs.map +0 -1
- package/dist/chunk-VIC7NJ77.mjs.map +0 -1
- /package/dist/{chunk-RIXKJPGI.mjs.map → chunk-42325TLU.mjs.map} +0 -0
- /package/dist/{chunk-LLPN5SEZ.mjs.map → chunk-DVPRBMU2.mjs.map} +0 -0
- /package/dist/{chunk-UCYWGN2P.mjs.map → chunk-OHNSROHS.mjs.map} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { bh as ResolvedFarmConfig } from '../client-plugins-CCilIb_G.mjs';
|
|
2
|
+
export { ai as loadConfig, ah as resolveConfig, aj as resolveDeployConfig } from '../client-plugins-CCilIb_G.mjs';
|
|
3
|
+
import { FarmProductionViteRuntime } from './config-runtime.mjs';
|
|
4
|
+
export { l as logger } from '../utils-Bop7bly-.mjs';
|
|
5
|
+
import '../plugin-BJDf43dc.mjs';
|
|
6
|
+
import 'react';
|
|
7
|
+
import 'http';
|
|
8
|
+
import '../types-D1A6-XvH.mjs';
|
|
9
|
+
import 'db0';
|
|
10
|
+
import 'unstorage';
|
|
11
|
+
import '../integration-api-CHT2OKAf.mjs';
|
|
12
|
+
import '@farming-labs/orm';
|
|
13
|
+
import '../types-DTzm4TCl.mjs';
|
|
14
|
+
import '@farming-labs/docs';
|
|
15
|
+
import '../markdown.mjs';
|
|
16
|
+
import '../observability.mjs';
|
|
17
|
+
import 'vite';
|
|
18
|
+
import '../workflows-CusFV6mn.mjs';
|
|
19
|
+
import '../cron.mjs';
|
|
20
|
+
import '../env.mjs';
|
|
21
|
+
import '../server-action-security.mjs';
|
|
22
|
+
import '../server-fn-error-DDh14a0V.mjs';
|
|
23
|
+
import '../image-config-Duob7wER.mjs';
|
|
24
|
+
import '../types-BMxWr97v.mjs';
|
|
25
|
+
import '../cache.mjs';
|
|
26
|
+
import '../types-CsR8fpgF.mjs';
|
|
27
|
+
import '../route-runtime-DoOHzCAD.mjs';
|
|
28
|
+
import '../font.mjs';
|
|
29
|
+
|
|
30
|
+
interface BuildOptions {
|
|
31
|
+
preset?: string;
|
|
32
|
+
root?: string;
|
|
33
|
+
universal?: boolean;
|
|
34
|
+
/** @internal Production Vite preload started by the CLI. */
|
|
35
|
+
productionVite?: FarmProductionViteRuntime | Promise<FarmProductionViteRuntime>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Build Farm.js application for production
|
|
39
|
+
*/
|
|
40
|
+
declare function build(config: ResolvedFarmConfig, options?: BuildOptions): Promise<void>;
|
|
41
|
+
|
|
42
|
+
export { build };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { bh as ResolvedFarmConfig } from '../client-plugins-DuuleQKk.js';
|
|
2
|
+
export { ai as loadConfig, ah as resolveConfig, aj as resolveDeployConfig } from '../client-plugins-DuuleQKk.js';
|
|
3
|
+
import { FarmProductionViteRuntime } from './config-runtime.js';
|
|
4
|
+
export { l as logger } from '../utils-3sQgfkya.js';
|
|
5
|
+
import '../plugin-BJDf43dc.js';
|
|
6
|
+
import 'react';
|
|
7
|
+
import 'http';
|
|
8
|
+
import '../types-D1A6-XvH.js';
|
|
9
|
+
import 'db0';
|
|
10
|
+
import 'unstorage';
|
|
11
|
+
import '../integration-api-CHT2OKAf.js';
|
|
12
|
+
import '@farming-labs/orm';
|
|
13
|
+
import '../types-DTzm4TCl.js';
|
|
14
|
+
import '@farming-labs/docs';
|
|
15
|
+
import '../markdown.js';
|
|
16
|
+
import '../observability.js';
|
|
17
|
+
import 'vite';
|
|
18
|
+
import '../workflows-CusFV6mn.js';
|
|
19
|
+
import '../cron.js';
|
|
20
|
+
import '../env.js';
|
|
21
|
+
import '../server-action-security.js';
|
|
22
|
+
import '../server-fn-error-DDh14a0V.js';
|
|
23
|
+
import '../image-config-Duob7wER.js';
|
|
24
|
+
import '../types-BMxWr97v.js';
|
|
25
|
+
import '../cache.js';
|
|
26
|
+
import '../types-CsR8fpgF.js';
|
|
27
|
+
import '../route-runtime-DoOHzCAD.js';
|
|
28
|
+
import '../font.js';
|
|
29
|
+
|
|
30
|
+
interface BuildOptions {
|
|
31
|
+
preset?: string;
|
|
32
|
+
root?: string;
|
|
33
|
+
universal?: boolean;
|
|
34
|
+
/** @internal Production Vite preload started by the CLI. */
|
|
35
|
+
productionVite?: FarmProductionViteRuntime | Promise<FarmProductionViteRuntime>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Build Farm.js application for production
|
|
39
|
+
*/
|
|
40
|
+
declare function build(config: ResolvedFarmConfig, options?: BuildOptions): Promise<void>;
|
|
41
|
+
|
|
42
|
+
export { build };
|
|
@@ -1,46 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-4S3ORGFA.mjs";
|
|
3
|
+
} from "../chunk-FJGTYLCO.mjs";
|
|
5
4
|
import "../chunk-SL6HTIOK.mjs";
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-4S3ORGFA.mjs";
|
|
6
|
+
import "../chunk-DVPRBMU2.mjs";
|
|
7
7
|
import "../chunk-V7RBCSDJ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
loadConfig,
|
|
10
10
|
resolveConfig,
|
|
11
11
|
resolveDeployConfig
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-YD5IRKVS.mjs";
|
|
13
13
|
import "../chunk-UVCIEUJC.mjs";
|
|
14
14
|
import "../chunk-A53LP5QG.mjs";
|
|
15
15
|
import "../chunk-RQ633A5I.mjs";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-TX54PXAJ.mjs";
|
|
17
17
|
import "../chunk-LGHEOHBU.mjs";
|
|
18
|
-
import "../chunk-FRPWCMMG.mjs";
|
|
19
18
|
import "../chunk-53MVSX3R.mjs";
|
|
20
|
-
import "../chunk-6ZXIQSXE.mjs";
|
|
21
|
-
import "../chunk-V6WE6JSZ.mjs";
|
|
22
19
|
import "../chunk-3XNTL3FQ.mjs";
|
|
20
|
+
import "../chunk-SBWOTAX4.mjs";
|
|
23
21
|
import "../chunk-CGIXMLSY.mjs";
|
|
24
22
|
import "../chunk-USWZZUEH.mjs";
|
|
23
|
+
import "../chunk-6ZXIQSXE.mjs";
|
|
24
|
+
import "../chunk-V6WE6JSZ.mjs";
|
|
25
25
|
import "../chunk-XMFTIVJH.mjs";
|
|
26
26
|
import "../chunk-7HO6AEOP.mjs";
|
|
27
|
+
import "../chunk-4IVNW5QD.mjs";
|
|
27
28
|
import "../chunk-USLFXFFH.mjs";
|
|
28
29
|
import "../chunk-E257KFBU.mjs";
|
|
29
30
|
import "../chunk-7MABZJIM.mjs";
|
|
30
31
|
import "../chunk-YW7OBE6Q.mjs";
|
|
31
32
|
import "../chunk-74YTBPTY.mjs";
|
|
32
|
-
import "../chunk-7ZVN3YZI.mjs";
|
|
33
33
|
import "../chunk-GY2STC2S.mjs";
|
|
34
|
+
import "../chunk-7ZVN3YZI.mjs";
|
|
35
|
+
import "../chunk-4E6VRJ6P.mjs";
|
|
36
|
+
import "../chunk-GXASWWJU.mjs";
|
|
34
37
|
import "../chunk-WORFTBLU.mjs";
|
|
38
|
+
import "../chunk-H53KVQUU.mjs";
|
|
35
39
|
import "../chunk-ZVWA4ZQ3.mjs";
|
|
36
40
|
import "../chunk-7FBJLMQH.mjs";
|
|
37
|
-
import "../chunk-4E6VRJ6P.mjs";
|
|
38
|
-
import "../chunk-GXASWWJU.mjs";
|
|
39
41
|
import "../chunk-CRN3AH35.mjs";
|
|
40
42
|
import "../chunk-T4QJQK76.mjs";
|
|
41
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-2PEJGY5V.mjs";
|
|
42
44
|
import "../chunk-P7QDS5AT.mjs";
|
|
43
45
|
import "../chunk-E6EPN5BT.mjs";
|
|
46
|
+
import "../chunk-GIELMNBG.mjs";
|
|
44
47
|
import "../chunk-QGOHVJ6J.mjs";
|
|
45
48
|
import "../chunk-KALXVY5L.mjs";
|
|
46
49
|
import "../chunk-2ED5Q2GH.mjs";
|
|
@@ -56,9 +59,10 @@ import "../chunk-KQCOGTU7.mjs";
|
|
|
56
59
|
import "../chunk-YTMDIHQN.mjs";
|
|
57
60
|
import "../chunk-RHIFZZUI.mjs";
|
|
58
61
|
import "../chunk-LM2YNO4U.mjs";
|
|
59
|
-
import "../chunk-
|
|
62
|
+
import "../chunk-5NOVWCFL.mjs";
|
|
60
63
|
import "../chunk-B3FFOIWS.mjs";
|
|
61
64
|
import "../chunk-ITN462YM.mjs";
|
|
65
|
+
import "../chunk-GQVQESLY.mjs";
|
|
62
66
|
import "../chunk-3HIVDX7J.mjs";
|
|
63
67
|
import "../chunk-JK25YEN6.mjs";
|
|
64
68
|
import "../chunk-GS6K5OCM.mjs";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { i as installChunkErrorRecovery } from '../chunk-recovery-lnQFzcQP.mjs';
|
|
2
|
+
import { F as FarmIslandStrategy } from '../island-CfGru1MO.mjs';
|
|
3
|
+
export { c as createClientPluginManager } from '../plugin-BJDf43dc.mjs';
|
|
4
|
+
|
|
5
|
+
interface ScheduleFarmIslandHydrationOptions<T> {
|
|
6
|
+
container: Element;
|
|
7
|
+
strategy?: FarmIslandStrategy | null;
|
|
8
|
+
signal?: AbortSignal;
|
|
9
|
+
hydrate: () => T | Promise<T>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Defer importing and hydrating a server-rendered client boundary until its
|
|
13
|
+
* configured trigger. The returned promise resolves with the hydration result.
|
|
14
|
+
*/
|
|
15
|
+
declare function scheduleFarmIslandHydration<T>({ container, strategy, signal, hydrate, }: ScheduleFarmIslandHydrationOptions<T>): Promise<T | undefined>;
|
|
16
|
+
|
|
17
|
+
export { scheduleFarmIslandHydration };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { i as installChunkErrorRecovery } from '../chunk-recovery-lnQFzcQP.js';
|
|
2
|
+
import { F as FarmIslandStrategy } from '../island-CfGru1MO.js';
|
|
3
|
+
export { c as createClientPluginManager } from '../plugin-BJDf43dc.js';
|
|
4
|
+
|
|
5
|
+
interface ScheduleFarmIslandHydrationOptions<T> {
|
|
6
|
+
container: Element;
|
|
7
|
+
strategy?: FarmIslandStrategy | null;
|
|
8
|
+
signal?: AbortSignal;
|
|
9
|
+
hydrate: () => T | Promise<T>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Defer importing and hydrating a server-rendered client boundary until its
|
|
13
|
+
* configured trigger. The returned promise resolves with the hydration result.
|
|
14
|
+
*/
|
|
15
|
+
declare function scheduleFarmIslandHydration<T>({ container, strategy, signal, hydrate, }: ScheduleFarmIslandHydrationOptions<T>): Promise<T | undefined>;
|
|
16
|
+
|
|
17
|
+
export { scheduleFarmIslandHydration };
|
|
@@ -4271,6 +4271,46 @@ function isPlainRecord(value) {
|
|
|
4271
4271
|
}
|
|
4272
4272
|
__name(isPlainRecord, "isPlainRecord");
|
|
4273
4273
|
|
|
4274
|
+
// src/theme/config.ts
|
|
4275
|
+
var DEFAULT_FARM_THEME_STORAGE_KEY = "farm-theme";
|
|
4276
|
+
var STORAGE_KEY_PATTERN = /^[A-Za-z0-9._-]+$/;
|
|
4277
|
+
function resolveFarmThemeConfig(config, basePath = "/") {
|
|
4278
|
+
if (config && "enabled" in config) {
|
|
4279
|
+
return config;
|
|
4280
|
+
}
|
|
4281
|
+
if (!config) {
|
|
4282
|
+
return {
|
|
4283
|
+
enabled: false,
|
|
4284
|
+
default: "system",
|
|
4285
|
+
storageKey: DEFAULT_FARM_THEME_STORAGE_KEY,
|
|
4286
|
+
cookiePath: normalizeCookiePath(basePath)
|
|
4287
|
+
};
|
|
4288
|
+
}
|
|
4289
|
+
const storageKey = config.storageKey?.trim() || DEFAULT_FARM_THEME_STORAGE_KEY;
|
|
4290
|
+
if (!STORAGE_KEY_PATTERN.test(storageKey)) {
|
|
4291
|
+
throw new Error(
|
|
4292
|
+
"theme.storageKey may only contain letters, numbers, dots, underscores, and hyphens."
|
|
4293
|
+
);
|
|
4294
|
+
}
|
|
4295
|
+
const defaultTheme = config.default ?? "system";
|
|
4296
|
+
if (defaultTheme !== "light" && defaultTheme !== "dark" && defaultTheme !== "system") {
|
|
4297
|
+
throw new Error('theme.default must be "light", "dark", or "system".');
|
|
4298
|
+
}
|
|
4299
|
+
return {
|
|
4300
|
+
enabled: true,
|
|
4301
|
+
default: defaultTheme,
|
|
4302
|
+
storageKey,
|
|
4303
|
+
cookiePath: normalizeCookiePath(basePath)
|
|
4304
|
+
};
|
|
4305
|
+
}
|
|
4306
|
+
__name(resolveFarmThemeConfig, "resolveFarmThemeConfig");
|
|
4307
|
+
function normalizeCookiePath(basePath) {
|
|
4308
|
+
const normalized = `/${basePath}`.replace(/\/{2,}/g, "/");
|
|
4309
|
+
if (normalized === "/") return normalized;
|
|
4310
|
+
return normalized.replace(/\/$/, "");
|
|
4311
|
+
}
|
|
4312
|
+
__name(normalizeCookiePath, "normalizeCookiePath");
|
|
4313
|
+
|
|
4274
4314
|
// src/config.ts
|
|
4275
4315
|
var FARM_RESOLVED_CUSTOM_CONTEXT = /* @__PURE__ */ Symbol.for("farm.resolvedCustomContext");
|
|
4276
4316
|
function normalizeDeployTarget(target) {
|
|
@@ -4611,6 +4651,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
4611
4651
|
routeRules,
|
|
4612
4652
|
images: resolveFarmImageConfig(userConfig.images),
|
|
4613
4653
|
performance: resolveFarmPerformanceConfig(userConfig.performance),
|
|
4654
|
+
theme: resolveFarmThemeConfig(userConfig.theme, userConfig.basePath || "/"),
|
|
4614
4655
|
publicDir: userConfig.publicDir || "public",
|
|
4615
4656
|
i18n: resolveFarmI18nConfig(userConfig.i18n, { root, mode }),
|
|
4616
4657
|
openapi: {
|