@farm.js/core 0.1.41 → 0.1.43
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-BOqIxJLI.d.mts → agent-mcp-3KDz4hr9.d.mts} +1 -1
- package/dist/{agent-mcp-D0eZKfci.d.ts → agent-mcp-6yRebHk7.d.ts} +1 -1
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/api/route-manager.d.mts +3 -3
- package/dist/api/route-manager.d.ts +3 -3
- package/dist/api/runtime.d.mts +2 -2
- package/dist/api/runtime.d.ts +2 -2
- package/dist/api.cjs +2 -2
- package/dist/api.d.mts +8 -3
- package/dist/api.d.ts +8 -3
- package/dist/api.mjs +1 -1
- package/dist/{app-DM8e1z3G.d.ts → app-8Db1zR-2.d.ts} +8 -4
- package/dist/{app-CzTSMJaf.d.mts → app-DlTWv4cn.d.mts} +8 -4
- package/dist/app-manifest-TRzS7ZZ9.d.mts +120 -0
- package/dist/app-manifest-cO2jkG1F.d.ts +120 -0
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/{chunk-ECKF2BAM.cjs → chunk-2GVF3C2F.cjs} +255 -42
- package/dist/chunk-2NXO5SBY.mjs +57 -0
- package/dist/chunk-3BROEWFY.cjs +39 -0
- package/dist/{chunk-ENOBPDKZ.mjs → chunk-4MRQ5OKQ.mjs} +14 -9
- package/dist/{chunk-R65GCA6A.mjs → chunk-4OCEMK72.mjs} +260 -49
- package/dist/{chunk-6PKXK4TY.mjs → chunk-53ZV6K65.mjs} +1 -1
- package/dist/{chunk-LYIZHJTK.cjs → chunk-5LPHJZSI.cjs} +14 -14
- package/dist/chunk-5NIWBWDD.mjs +97 -0
- package/dist/{chunk-NRDBW4MP.mjs → chunk-7IQQIPRZ.mjs} +10 -0
- package/dist/{chunk-FJGIVDA5.mjs → chunk-7SCCY6SI.mjs} +80 -177
- package/dist/chunk-APDGOKKE.cjs +148 -0
- package/dist/chunk-AZBSVLRM.cjs +132 -0
- package/dist/{chunk-PN676AZF.cjs → chunk-BKPXWRTT.cjs} +6 -6
- package/dist/chunk-CEDPEDNW.cjs +98 -0
- package/dist/chunk-D5RFPV2H.mjs +148 -0
- package/dist/{chunk-BYQVROIP.mjs → chunk-DMRPN25V.mjs} +69 -0
- package/dist/{chunk-724JLMS4.mjs → chunk-F646BZ4Y.mjs} +4 -2
- package/dist/{chunk-C5KVWHIH.cjs → chunk-G2Z5DGMS.cjs} +5 -3
- package/dist/{chunk-L6HYACBE.cjs → chunk-GVNCWSQV.cjs} +145 -127
- package/dist/{chunk-24SP5TGU.mjs → chunk-H4LXPWI2.mjs} +2 -2
- package/dist/chunk-H7BLEEAE.cjs +57 -0
- package/dist/{chunk-JOTUZIM4.cjs → chunk-HUMEHX24.cjs} +2 -2
- package/dist/{chunk-BD3D7EZV.cjs → chunk-IXFOBGLQ.cjs} +9 -3
- package/dist/{chunk-3TB5QGUW.cjs → chunk-JAXDRRRC.cjs} +70 -1
- package/dist/{chunk-32TZ3QTP.cjs → chunk-JDJAPCR2.cjs} +421 -210
- package/dist/{chunk-MHN4UR5U.cjs → chunk-KFZZFZ7J.cjs} +7 -7
- package/dist/chunk-LRJRXXQZ.cjs +109 -0
- package/dist/{chunk-EX4MKHXN.cjs → chunk-LVABUXLA.cjs} +22 -17
- package/dist/{chunk-HCSVR4YZ.mjs → chunk-M3BXTWJM.mjs} +18 -0
- package/dist/{chunk-PYHPXPSW.mjs → chunk-NXO75WY4.mjs} +1 -1
- package/dist/{chunk-BGGWKZ2V.mjs → chunk-OYSGGV6O.mjs} +137 -167
- package/dist/{chunk-JR4QCLJY.cjs → chunk-PDU4P2IC.cjs} +19 -1
- package/dist/chunk-PJEHUSHA.mjs +229 -0
- package/dist/chunk-QGH2RQVF.mjs +132 -0
- package/dist/{chunk-YWMZUGIS.mjs → chunk-R3ZFQJEF.mjs} +247 -34
- package/dist/{chunk-ROQ4C4LJ.cjs → chunk-RACQTC7K.cjs} +274 -371
- package/dist/{chunk-WSOBCAYO.cjs → chunk-RQYTOFQM.cjs} +23 -23
- package/dist/chunk-S34OBRMZ.mjs +109 -0
- package/dist/{chunk-TS4JHGUJ.mjs → chunk-S3ZEMCE6.mjs} +9 -3
- package/dist/{chunk-WWFTAUFG.cjs → chunk-SBH2JLLF.cjs} +12 -2
- package/dist/{chunk-YSLWRWWP.cjs → chunk-SKK6UF5P.cjs} +200 -46
- package/dist/chunk-T7J7E63D.cjs +144 -0
- package/dist/{chunk-SVPGWJZF.mjs → chunk-TESO7EFU.mjs} +125 -107
- package/dist/{chunk-OQ4YXWH4.cjs → chunk-VIVQERJ5.cjs} +320 -351
- package/dist/{chunk-JIYYX7WU.mjs → chunk-VLXNGUKO.mjs} +1 -1
- package/dist/{chunk-OFZUJMCU.mjs → chunk-WPJQN64R.mjs} +195 -41
- package/dist/chunk-XARSG2TG.mjs +144 -0
- package/dist/chunk-XUGFRFD2.mjs +39 -0
- package/dist/{chunk-EH3464KF.cjs → chunk-YBDSTNMH.cjs} +1 -1
- package/dist/{chunk-VLPII2JJ.mjs → chunk-YGZH4T2X.mjs} +1 -1
- package/dist/chunk-YKUEJ3MG.cjs +229 -0
- package/dist/{chunk-4C7KTKX7.mjs → chunk-ZYWJIPKQ.mjs} +1 -1
- package/dist/{client-plugins-CkYwvDJ0.d.mts → client-plugins-Cv0OJtnM.d.mts} +98 -7
- package/dist/{client-plugins-DfeKd0sD.d.ts → client-plugins-kwQuZcWq.d.ts} +98 -7
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.cjs +4 -3
- package/dist/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +3 -2
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{devtools-N3QLRIQU.mjs → devtools-M22FEFPK.mjs} +4 -4
- package/dist/{devtools-2YHAJYH6.cjs → devtools-MLB3JJMC.cjs} +5 -5
- package/dist/docs.cjs +6 -6
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +5 -5
- package/dist/index-CQOp8EmB.d.mts +48 -0
- package/dist/index-DAl0QTZS.d.ts +48 -0
- package/dist/index.cjs +41 -24
- package/dist/index.d.mts +15 -14
- package/dist/index.d.ts +15 -14
- package/dist/index.mjs +46 -29
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/build-runtime.cjs +29 -15
- package/dist/internal/build-runtime.d.mts +12 -16
- package/dist/internal/build-runtime.d.ts +12 -16
- package/dist/internal/build-runtime.mjs +28 -14
- package/dist/internal/cli-runtime.cjs +23 -11
- package/dist/internal/cli-runtime.mjs +23 -11
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +5 -1
- package/dist/internal/client-runtime.d.mts +1 -0
- package/dist/internal/client-runtime.d.ts +1 -0
- package/dist/internal/client-runtime.mjs +4 -0
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +5 -5
- package/dist/internal/config-runtime.d.mts +2 -2
- package/dist/internal/config-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.mjs +4 -4
- package/dist/internal/form-actions-client.cjs +18 -0
- package/dist/internal/form-actions-client.d.mts +5 -0
- package/dist/internal/form-actions-client.d.ts +5 -0
- package/dist/internal/form-actions-client.mjs +18 -0
- package/dist/internal/form-actions.cjs +18 -0
- package/dist/internal/form-actions.d.mts +14 -0
- package/dist/internal/form-actions.d.ts +14 -0
- package/dist/internal/form-actions.mjs +18 -0
- package/dist/internal/island-codec.cjs +22 -0
- package/dist/internal/island-codec.d.mts +29 -0
- package/dist/internal/island-codec.d.ts +29 -0
- package/dist/internal/island-codec.mjs +22 -0
- package/dist/internal/island-value-store.cjs +13 -0
- package/dist/internal/island-value-store.d.mts +6 -0
- package/dist/internal/island-value-store.d.ts +6 -0
- package/dist/internal/island-value-store.mjs +13 -0
- package/dist/internal/islands-runtime.cjs +77 -0
- package/dist/internal/islands-runtime.d.mts +57 -0
- package/dist/internal/islands-runtime.d.ts +57 -0
- package/dist/internal/islands-runtime.mjs +77 -0
- package/dist/internal/islands-server.cjs +19 -0
- package/dist/internal/islands-server.d.mts +3 -0
- package/dist/internal/islands-server.d.ts +3 -0
- package/dist/internal/islands-server.mjs +19 -0
- package/dist/internal/islx-client.cjs +5 -0
- package/dist/internal/islx-client.d.mts +2 -0
- package/dist/internal/islx-client.d.ts +2 -0
- package/dist/internal/islx-client.mjs +3 -0
- package/dist/internal/islx-react.cjs +4 -0
- package/dist/internal/islx-react.d.mts +1 -0
- package/dist/internal/islx-react.d.ts +1 -0
- package/dist/internal/islx-react.mjs +2 -0
- package/dist/internal/islx-server.cjs +5 -0
- package/dist/internal/islx-server.d.mts +2 -0
- package/dist/internal/islx-server.d.ts +2 -0
- package/dist/internal/islx-server.mjs +3 -0
- package/dist/internal/isolated-boundary.cjs +4 -3
- package/dist/internal/isolated-boundary.d.mts +13 -1
- package/dist/internal/isolated-boundary.d.ts +13 -1
- package/dist/internal/isolated-boundary.mjs +3 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +24 -7
- package/dist/internal/production-runtime.d.mts +20 -127
- package/dist/internal/production-runtime.d.ts +20 -127
- package/dist/internal/production-runtime.mjs +24 -7
- package/dist/internal/server-tree.cjs +6 -3
- package/dist/internal/server-tree.d.mts +25 -2
- package/dist/internal/server-tree.d.ts +25 -2
- package/dist/internal/server-tree.mjs +7 -4
- package/dist/island-value-protocol-BRayRghM.d.mts +12 -0
- package/dist/island-value-protocol-BRayRghM.d.ts +12 -0
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/middleware.d.mts +3 -3
- package/dist/middleware.d.ts +3 -3
- package/dist/navigation.cjs +5 -4
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/navigation.mjs +4 -3
- package/dist/og.d.mts +5 -0
- package/dist/og.d.ts +5 -0
- package/dist/plugin.cjs +18 -12
- package/dist/plugin.d.mts +3 -3
- package/dist/plugin.d.ts +3 -3
- package/dist/plugin.mjs +17 -11
- package/dist/{production-runtime-DFC7pgbp.d.ts → production-runtime-5nArjFpn.d.ts} +1 -1
- package/dist/{production-runtime-BTkXQdYy.d.mts → production-runtime-BzsF2z5F.d.mts} +1 -1
- package/dist/query/client.cjs +6 -5
- package/dist/query/client.mjs +2 -1
- package/dist/{render-plan-5rFeWmk7.d.mts → render-plan-B9yQorV4.d.mts} +4 -2
- package/dist/{render-plan-BoAK9xFC.d.ts → render-plan-fg6E_HvL.d.ts} +4 -2
- package/dist/renderer/react/server.cjs +7 -6
- package/dist/renderer/react/server.d.mts +3 -1
- package/dist/renderer/react/server.d.ts +3 -1
- package/dist/renderer/react/server.mjs +5 -4
- package/dist/renderer-client.cjs +5 -4
- package/dist/renderer-client.d.mts +3 -3
- package/dist/renderer-client.d.ts +3 -3
- package/dist/renderer-client.mjs +2 -1
- package/dist/renderer.d.mts +3 -1
- package/dist/renderer.d.ts +3 -1
- package/dist/{request-BxBWigtl.d.mts → request-C4j_g-BH.d.mts} +1 -1
- package/dist/{request-fciwmd3n.d.ts → request-gz8vFK0n.d.ts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering-BLZT0IP0.d.ts → route-rendering-DamyKVi3.d.ts} +1 -1
- package/dist/{route-rendering-BCM1QzEf.d.mts → route-rendering-iTTOwz1f.d.mts} +1 -1
- package/dist/{router-DyZJWc1_.d.mts → router-EoSzHlos.d.mts} +1 -1
- package/dist/{router-CkheNX3-.d.ts → router-OVjDqVo8.d.ts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/rsc-pipeline-LK4K5JFK.mjs +77 -0
- package/dist/rsc-pipeline-YCDRJME4.cjs +77 -0
- package/dist/{runtime-DfU4sKa5.d.ts → runtime-CwiuozLd.d.ts} +1 -1
- package/dist/{runtime-wexvUN5J.d.mts → runtime-DDH4tiuF.d.mts} +1 -1
- package/dist/{schema-dev-notice-5JPE67AI.cjs → schema-dev-notice-77ZL23PL.cjs} +4 -4
- package/dist/{schema-dev-notice-WLPZ6WKU.mjs → schema-dev-notice-BLXOS6U2.mjs} +2 -2
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server.cjs +56 -38
- package/dist/server.d.mts +15 -10
- package/dist/server.d.ts +15 -10
- package/dist/server.mjs +36 -18
- package/dist/{spa-router-DgsMXqfX.d.mts → spa-router-Br4qFCWf.d.mts} +8 -3
- package/dist/{spa-router-CcejECnG.d.ts → spa-router-BsWUKH73.d.ts} +8 -3
- package/dist/{ssg-1FGaFISl.d.ts → ssg-Csy2vwpi.d.ts} +2 -2
- package/dist/{ssg-Bg4bMMhM.d.mts → ssg-Donyfcxy.d.mts} +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{utils-Dxbh6Hgj.d.ts → utils-Luk72LXC.d.ts} +1 -1
- package/dist/{utils-8wtTYiH4.d.mts → utils-d_k1ZZw0.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +18 -12
- package/dist/vite.d.mts +6 -4
- package/dist/vite.d.ts +6 -4
- package/dist/vite.mjs +17 -11
- package/package.json +53 -1
- package/dist/{chunk-35WS7P2V.mjs → chunk-26CXZR6L.mjs} +3 -3
- package/dist/{chunk-QEILRWVV.cjs → chunk-3XEMGDBF.cjs} +2 -2
- package/dist/{chunk-BPOTSHDO.cjs → chunk-IOAUK4OI.cjs} +2 -2
- package/dist/{chunk-BYR3RQPB.mjs → chunk-T76H22WI.mjs} +4 -4
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
+
import { F as FarmIslandValueStore } from '../island-value-protocol-BRayRghM.mjs';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
/** The script type of a page's tree. */
|
|
5
|
+
declare const FARM_SERVER_TREE_SCRIPT_TYPE = "f/tree";
|
|
6
|
+
/**
|
|
7
|
+
* Marks a navigation response that carries only the page's payload. The browser rebuilds such a
|
|
8
|
+
* page in its layout's React root and never shows its HTML, so the server leaves the HTML out.
|
|
9
|
+
*/
|
|
10
|
+
declare const FARM_SERVER_TREE_PAYLOAD_ONLY_ATTRIBUTE = "partial";
|
|
4
11
|
interface FarmServerTreeRenderOptions {
|
|
5
12
|
/** Renders a subtree the resolver could not represent with its client components as islands. */
|
|
6
13
|
isolate(element: React__default.ReactNode): React__default.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Islands mode: large values in the payload travel once, keyed by content, and a navigation
|
|
16
|
+
* leaves out the ones the browser holds.
|
|
17
|
+
*/
|
|
18
|
+
values?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* A navigation the browser renders in its layout's React root: send the payload, the chunks it
|
|
21
|
+
* streams and the server HTML parts it cannot represent, without the page's rendered HTML.
|
|
22
|
+
*/
|
|
23
|
+
payloadOnly?: boolean;
|
|
7
24
|
}
|
|
8
25
|
/**
|
|
9
26
|
* @internal Resolves a server page and returns the page boundary's children: the resolved tree
|
|
@@ -17,6 +34,12 @@ interface FarmServerTreeElementOptions {
|
|
|
17
34
|
ServerHtml: React__default.ComponentType<any>;
|
|
18
35
|
/** Remounts the page's client components when it changes, as a navigation does. */
|
|
19
36
|
key?: string;
|
|
37
|
+
/** Islands mode's value store, for payloads that reference island values. */
|
|
38
|
+
values?: Pick<FarmIslandValueStore, "ingest" | "resolve">;
|
|
39
|
+
/** Islands mode: the function a server action reference stands for. */
|
|
40
|
+
actions?(id: string): (...args: unknown[]) => unknown;
|
|
41
|
+
/** Islands mode: decodes props JSON cannot hold (`decodeFarmTagged` in island-codec.ts). */
|
|
42
|
+
decode?(object: Record<string, unknown>, decodeChild: (value: unknown) => unknown): unknown;
|
|
20
43
|
}
|
|
21
44
|
/**
|
|
22
45
|
* @internal Rebuilds a server-tree page in the browser from its server HTML, an element or the
|
|
@@ -24,4 +47,4 @@ interface FarmServerTreeElementOptions {
|
|
|
24
47
|
*/
|
|
25
48
|
declare function createFarmServerTreeElement(ReactRuntime: typeof React__default, source: ParentNode | string, options: FarmServerTreeElementOptions): Promise<React__default.ReactElement | null>;
|
|
26
49
|
|
|
27
|
-
export {
|
|
50
|
+
export { FARM_SERVER_TREE_PAYLOAD_ONLY_ATTRIBUTE, FARM_SERVER_TREE_SCRIPT_TYPE, type FarmServerTreeElementOptions, type FarmServerTreeRenderOptions, createFarmServerTreeElement, renderFarmServerTreePage };
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
+
import { F as FarmIslandValueStore } from '../island-value-protocol-BRayRghM.js';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
/** The script type of a page's tree. */
|
|
5
|
+
declare const FARM_SERVER_TREE_SCRIPT_TYPE = "f/tree";
|
|
6
|
+
/**
|
|
7
|
+
* Marks a navigation response that carries only the page's payload. The browser rebuilds such a
|
|
8
|
+
* page in its layout's React root and never shows its HTML, so the server leaves the HTML out.
|
|
9
|
+
*/
|
|
10
|
+
declare const FARM_SERVER_TREE_PAYLOAD_ONLY_ATTRIBUTE = "partial";
|
|
4
11
|
interface FarmServerTreeRenderOptions {
|
|
5
12
|
/** Renders a subtree the resolver could not represent with its client components as islands. */
|
|
6
13
|
isolate(element: React__default.ReactNode): React__default.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Islands mode: large values in the payload travel once, keyed by content, and a navigation
|
|
16
|
+
* leaves out the ones the browser holds.
|
|
17
|
+
*/
|
|
18
|
+
values?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* A navigation the browser renders in its layout's React root: send the payload, the chunks it
|
|
21
|
+
* streams and the server HTML parts it cannot represent, without the page's rendered HTML.
|
|
22
|
+
*/
|
|
23
|
+
payloadOnly?: boolean;
|
|
7
24
|
}
|
|
8
25
|
/**
|
|
9
26
|
* @internal Resolves a server page and returns the page boundary's children: the resolved tree
|
|
@@ -17,6 +34,12 @@ interface FarmServerTreeElementOptions {
|
|
|
17
34
|
ServerHtml: React__default.ComponentType<any>;
|
|
18
35
|
/** Remounts the page's client components when it changes, as a navigation does. */
|
|
19
36
|
key?: string;
|
|
37
|
+
/** Islands mode's value store, for payloads that reference island values. */
|
|
38
|
+
values?: Pick<FarmIslandValueStore, "ingest" | "resolve">;
|
|
39
|
+
/** Islands mode: the function a server action reference stands for. */
|
|
40
|
+
actions?(id: string): (...args: unknown[]) => unknown;
|
|
41
|
+
/** Islands mode: decodes props JSON cannot hold (`decodeFarmTagged` in island-codec.ts). */
|
|
42
|
+
decode?(object: Record<string, unknown>, decodeChild: (value: unknown) => unknown): unknown;
|
|
20
43
|
}
|
|
21
44
|
/**
|
|
22
45
|
* @internal Rebuilds a server-tree page in the browser from its server HTML, an element or the
|
|
@@ -24,4 +47,4 @@ interface FarmServerTreeElementOptions {
|
|
|
24
47
|
*/
|
|
25
48
|
declare function createFarmServerTreeElement(ReactRuntime: typeof React__default, source: ParentNode | string, options: FarmServerTreeElementOptions): Promise<React__default.ReactElement | null>;
|
|
26
49
|
|
|
27
|
-
export {
|
|
50
|
+
export { FARM_SERVER_TREE_PAYLOAD_ONLY_ATTRIBUTE, FARM_SERVER_TREE_SCRIPT_TYPE, type FarmServerTreeElementOptions, type FarmServerTreeRenderOptions, createFarmServerTreeElement, renderFarmServerTreePage };
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
FARM_SERVER_TREE_PAYLOAD_ONLY_ATTRIBUTE,
|
|
3
|
+
FARM_SERVER_TREE_SCRIPT_TYPE,
|
|
3
4
|
createFarmServerTreeElement,
|
|
4
5
|
renderFarmServerTreePage
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-WPJQN64R.mjs";
|
|
7
|
+
import "../chunk-7IQQIPRZ.mjs";
|
|
8
|
+
import "../chunk-2NXO5SBY.mjs";
|
|
7
9
|
import "../chunk-LPEX4YW6.mjs";
|
|
8
10
|
export {
|
|
9
|
-
|
|
11
|
+
FARM_SERVER_TREE_PAYLOAD_ONLY_ATTRIBUTE,
|
|
12
|
+
FARM_SERVER_TREE_SCRIPT_TYPE,
|
|
10
13
|
createFarmServerTreeElement,
|
|
11
14
|
renderFarmServerTreePage
|
|
12
15
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface FarmIslandValueStore {
|
|
2
|
+
/** Reads the value scripts under `root` that the store does not hold yet. */
|
|
3
|
+
ingest(root: ParentNode): void;
|
|
4
|
+
/** Replaces value references in parsed props with the values they name. */
|
|
5
|
+
resolve(value: unknown): unknown;
|
|
6
|
+
/** The header value naming the keys the store holds, or undefined when it holds none. */
|
|
7
|
+
heldHeader(): string | undefined;
|
|
8
|
+
}
|
|
9
|
+
/** Headers a navigation sends so the server can leave out values the browser holds. */
|
|
10
|
+
declare function getFarmIslandValueHeaders(): Record<string, string>;
|
|
11
|
+
|
|
12
|
+
export { type FarmIslandValueStore as F, getFarmIslandValueHeaders as g };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface FarmIslandValueStore {
|
|
2
|
+
/** Reads the value scripts under `root` that the store does not hold yet. */
|
|
3
|
+
ingest(root: ParentNode): void;
|
|
4
|
+
/** Replaces value references in parsed props with the values they name. */
|
|
5
|
+
resolve(value: unknown): unknown;
|
|
6
|
+
/** The header value naming the keys the store holds, or undefined when it holds none. */
|
|
7
|
+
heldHeader(): string | undefined;
|
|
8
|
+
}
|
|
9
|
+
/** Headers a navigation sends so the server can leave out values the browser holds. */
|
|
10
|
+
declare function getFarmIslandValueHeaders(): Record<string, string>;
|
|
11
|
+
|
|
12
|
+
export { type FarmIslandValueStore as F, getFarmIslandValueHeaders as g };
|
package/dist/markdown.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { fl as ApplyMarkdownNegotiationHeadersOptions, fk as CreateMarkdownMirrorResponseOptions, ar as FARM_MARKDOWN_CONTENT_TYPE, fd as FARM_MARKDOWN_PAGE_CHECK_HEADER, fi as FarmMarkdownMirrorTarget, bl as FarmMarkdownResolvedConfig, fh as FarmMarkdownResolvedRoute, fg as FarmMarkdownRouteInput, cD as FarmMarkdownUserConfig, fA as FarmPageFormAction, fy as FarmPageFormField, fx as FarmPageFormOption, fz as FarmPageFormSubmit, fj as ResolveMarkdownMirrorTargetOptions, fe as _getFarmMarkdownPageCheckToken, ff as _isFarmMarkdownPageCheck, fp as applyMarkdownNegotiationHeaders, as as createFarmMarkdownErrorBody, fo as createMarkdownMirrorResponse, fB as extractFarmPageActions, fr as farmAcceptQuality, at as farmRequestWantsMarkdown, fu as getFarmMarkdownAlternatePath, ft as getFarmMarkdownMirrorPath, fq as htmlToMarkdown, fv as isFarmMarkdownMirrorExposed, fw as matchesFarmMarkdownRoutePattern, fs as requestAcceptsMarkdown, fm as resolveMarkdownConfig, fn as resolveMarkdownMirrorTarget } from './client-plugins-Cv0OJtnM.mjs';
|
|
2
2
|
import './lifecycle-DK06VuKP.mjs';
|
|
3
3
|
import './integration-api-DWyMmvrR.mjs';
|
|
4
4
|
import './endpoint-DGZRZHux.mjs';
|
package/dist/markdown.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { fl as ApplyMarkdownNegotiationHeadersOptions, fk as CreateMarkdownMirrorResponseOptions, ar as FARM_MARKDOWN_CONTENT_TYPE, fd as FARM_MARKDOWN_PAGE_CHECK_HEADER, fi as FarmMarkdownMirrorTarget, bl as FarmMarkdownResolvedConfig, fh as FarmMarkdownResolvedRoute, fg as FarmMarkdownRouteInput, cD as FarmMarkdownUserConfig, fA as FarmPageFormAction, fy as FarmPageFormField, fx as FarmPageFormOption, fz as FarmPageFormSubmit, fj as ResolveMarkdownMirrorTargetOptions, fe as _getFarmMarkdownPageCheckToken, ff as _isFarmMarkdownPageCheck, fp as applyMarkdownNegotiationHeaders, as as createFarmMarkdownErrorBody, fo as createMarkdownMirrorResponse, fB as extractFarmPageActions, fr as farmAcceptQuality, at as farmRequestWantsMarkdown, fu as getFarmMarkdownAlternatePath, ft as getFarmMarkdownMirrorPath, fq as htmlToMarkdown, fv as isFarmMarkdownMirrorExposed, fw as matchesFarmMarkdownRoutePattern, fs as requestAcceptsMarkdown, fm as resolveMarkdownConfig, fn as resolveMarkdownMirrorTarget } from './client-plugins-kwQuZcWq.js';
|
|
2
2
|
import './lifecycle-DK06VuKP.js';
|
|
3
3
|
import './integration-api-BuPHMeKz.js';
|
|
4
4
|
import './endpoint-BOE0IAaG.js';
|
package/dist/middleware.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { eF as MiddlewareChain, eK as RateLimitStorage, eL as RateLimitStatus, eM as MemoryRateLimitStorageOptions, bg as MiddlewareContext, bd as FarmMiddlewareConfig, eB as MiddlewareFunction, bf as MiddlewareConfig, aw as MiddlewareProps, eH as CookieOptions } from './client-plugins-Cv0OJtnM.mjs';
|
|
2
|
+
export { eG as CookieJar, eO as MiddlewareResult, eE as MiddlewareStore, eN as NextFunction, eI as RateLimitConfig, eJ as RateLimitIncrementResult, bc as ReadonlyMiddlewareStore, eC as RequestMiddleware, eD as RequestMiddlewareContext } from './client-plugins-Cv0OJtnM.mjs';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
4
|
import { ViteDevServer, Plugin } from 'vite';
|
|
5
5
|
import { a as FarmServerConfig, R as ResolvedFarmServerConfig } from './workflows-IWP1ddBm.mjs';
|
|
6
6
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.mjs';
|
|
7
|
-
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner, g as getMiddlewareContext, a as getMiddlewareData, b as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime-
|
|
7
|
+
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner, g as getMiddlewareContext, a as getMiddlewareData, b as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime-BzsF2z5F.mjs';
|
|
8
8
|
import './lifecycle-DK06VuKP.mjs';
|
|
9
9
|
import './integration-api-DWyMmvrR.mjs';
|
|
10
10
|
import './endpoint-DGZRZHux.mjs';
|
package/dist/middleware.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { eF as MiddlewareChain, eK as RateLimitStorage, eL as RateLimitStatus, eM as MemoryRateLimitStorageOptions, bg as MiddlewareContext, bd as FarmMiddlewareConfig, eB as MiddlewareFunction, bf as MiddlewareConfig, aw as MiddlewareProps, eH as CookieOptions } from './client-plugins-kwQuZcWq.js';
|
|
2
|
+
export { eG as CookieJar, eO as MiddlewareResult, eE as MiddlewareStore, eN as NextFunction, eI as RateLimitConfig, eJ as RateLimitIncrementResult, bc as ReadonlyMiddlewareStore, eC as RequestMiddleware, eD as RequestMiddlewareContext } from './client-plugins-kwQuZcWq.js';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
4
|
import { ViteDevServer, Plugin } from 'vite';
|
|
5
5
|
import { a as FarmServerConfig, R as ResolvedFarmServerConfig } from './workflows-IWP1ddBm.js';
|
|
6
6
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.js';
|
|
7
|
-
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner, g as getMiddlewareContext, a as getMiddlewareData, b as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime-
|
|
7
|
+
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner, g as getMiddlewareContext, a as getMiddlewareData, b as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime-5nArjFpn.js';
|
|
8
8
|
import './lifecycle-DK06VuKP.js';
|
|
9
9
|
import './integration-api-BuPHMeKz.js';
|
|
10
10
|
import './endpoint-BOE0IAaG.js';
|
package/dist/navigation.cjs
CHANGED
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var _chunkKFZZFZ7Jcjs = require('./chunk-KFZZFZ7J.cjs');
|
|
6
|
+
require('./chunk-5LPHJZSI.cjs');
|
|
7
7
|
require('./chunk-SU7MH53P.cjs');
|
|
8
8
|
require('./chunk-PCOTGFSM.cjs');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-IXFOBGLQ.cjs');
|
|
10
10
|
require('./chunk-S6FJO323.cjs');
|
|
11
11
|
require('./chunk-R5A5KNVX.cjs');
|
|
12
12
|
require('./chunk-JEZO6VUR.cjs');
|
|
13
13
|
require('./chunk-J7FSKED3.cjs');
|
|
14
14
|
require('./chunk-LZESP4IR.cjs');
|
|
15
|
+
require('./chunk-H7BLEEAE.cjs');
|
|
15
16
|
require('./chunk-R5JIFR6B.cjs');
|
|
16
17
|
require('./chunk-C5GUTBZK.cjs');
|
|
17
18
|
require('./chunk-QBK2AA4U.cjs');
|
|
@@ -39,4 +40,4 @@ require('./chunk-S3JO3N4H.cjs');
|
|
|
39
40
|
|
|
40
41
|
|
|
41
42
|
|
|
42
|
-
exports.getFarmRedirectError = _chunkOX6O6WVAcjs.getFarmRedirectError; exports.isFarmNotFoundError = _chunkOX6O6WVAcjs.isFarmNotFoundError; exports.isFarmRedirectError = _chunkOX6O6WVAcjs.isFarmRedirectError; exports.notFound = _chunkOX6O6WVAcjs.notFound; exports.permanentRedirect = _chunkOX6O6WVAcjs.permanentRedirect; exports.redirect = _chunkOX6O6WVAcjs.redirect; exports.usePathname =
|
|
43
|
+
exports.getFarmRedirectError = _chunkOX6O6WVAcjs.getFarmRedirectError; exports.isFarmNotFoundError = _chunkOX6O6WVAcjs.isFarmNotFoundError; exports.isFarmRedirectError = _chunkOX6O6WVAcjs.isFarmRedirectError; exports.notFound = _chunkOX6O6WVAcjs.notFound; exports.permanentRedirect = _chunkOX6O6WVAcjs.permanentRedirect; exports.redirect = _chunkOX6O6WVAcjs.redirect; exports.usePathname = _chunkKFZZFZ7Jcjs.usePathname; exports.useRouter = _chunkKFZZFZ7Jcjs.useRouter; exports.useSearchParams = _chunkKFZZFZ7Jcjs.useSearchParams;
|
package/dist/navigation.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { F as FarmRouterNavigateOptions } from './router-
|
|
2
|
-
export { a6 as FarmRedirectSignal, a7 as FarmRedirectStatus, a0 as getFarmRedirectError, a1 as isFarmNotFoundError, a2 as isFarmRedirectError, a3 as notFound, a4 as permanentRedirect, a5 as redirect } from './client-plugins-
|
|
1
|
+
import { F as FarmRouterNavigateOptions } from './router-EoSzHlos.mjs';
|
|
2
|
+
export { a6 as FarmRedirectSignal, a7 as FarmRedirectStatus, a0 as getFarmRedirectError, a1 as isFarmNotFoundError, a2 as isFarmRedirectError, a3 as notFound, a4 as permanentRedirect, a5 as redirect } from './client-plugins-Cv0OJtnM.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './router.mjs';
|
|
5
|
-
import './spa-router-
|
|
5
|
+
import './spa-router-Br4qFCWf.mjs';
|
|
6
6
|
import './lifecycle-DK06VuKP.mjs';
|
|
7
7
|
import './types-CnH8DOqo.mjs';
|
|
8
8
|
import './island-CfGru1MO.mjs';
|
|
9
|
-
import './render-plan-
|
|
9
|
+
import './render-plan-B9yQorV4.mjs';
|
|
10
10
|
import './integration-api-DWyMmvrR.mjs';
|
|
11
11
|
import './endpoint-DGZRZHux.mjs';
|
|
12
12
|
import './cache.mjs';
|
package/dist/navigation.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { F as FarmRouterNavigateOptions } from './router-
|
|
2
|
-
export { a6 as FarmRedirectSignal, a7 as FarmRedirectStatus, a0 as getFarmRedirectError, a1 as isFarmNotFoundError, a2 as isFarmRedirectError, a3 as notFound, a4 as permanentRedirect, a5 as redirect } from './client-plugins-
|
|
1
|
+
import { F as FarmRouterNavigateOptions } from './router-OVjDqVo8.js';
|
|
2
|
+
export { a6 as FarmRedirectSignal, a7 as FarmRedirectStatus, a0 as getFarmRedirectError, a1 as isFarmNotFoundError, a2 as isFarmRedirectError, a3 as notFound, a4 as permanentRedirect, a5 as redirect } from './client-plugins-kwQuZcWq.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './router.js';
|
|
5
|
-
import './spa-router-
|
|
5
|
+
import './spa-router-BsWUKH73.js';
|
|
6
6
|
import './lifecycle-DK06VuKP.js';
|
|
7
7
|
import './types-CnH8DOqo.js';
|
|
8
8
|
import './island-CfGru1MO.js';
|
|
9
|
-
import './render-plan-
|
|
9
|
+
import './render-plan-fg6E_HvL.js';
|
|
10
10
|
import './integration-api-BuPHMeKz.js';
|
|
11
11
|
import './endpoint-BOE0IAaG.js';
|
|
12
12
|
import './cache.js';
|
package/dist/navigation.mjs
CHANGED
|
@@ -2,16 +2,17 @@ import {
|
|
|
2
2
|
usePathname,
|
|
3
3
|
useRouter,
|
|
4
4
|
useSearchParams
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-H4LXPWI2.mjs";
|
|
6
|
+
import "./chunk-53ZV6K65.mjs";
|
|
7
7
|
import "./chunk-6NT6S2VQ.mjs";
|
|
8
8
|
import "./chunk-OT6ZEW74.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-S3ZEMCE6.mjs";
|
|
10
10
|
import "./chunk-IHQIOZLC.mjs";
|
|
11
11
|
import "./chunk-2PQNJXFM.mjs";
|
|
12
12
|
import "./chunk-QHSH7IH4.mjs";
|
|
13
13
|
import "./chunk-QVYLBY73.mjs";
|
|
14
14
|
import "./chunk-73WX6PRY.mjs";
|
|
15
|
+
import "./chunk-2NXO5SBY.mjs";
|
|
15
16
|
import "./chunk-SKNL7VA2.mjs";
|
|
16
17
|
import "./chunk-2A3EQHXX.mjs";
|
|
17
18
|
import "./chunk-JNZ4TDWM.mjs";
|
package/dist/og.d.mts
CHANGED
package/dist/og.d.ts
CHANGED
package/dist/plugin.cjs
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVIVQERJ5cjs = require('./chunk-VIVQERJ5.cjs');
|
|
4
|
+
require('./chunk-CEDPEDNW.cjs');
|
|
4
5
|
require('./chunk-KEXK442I.cjs');
|
|
5
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-RACQTC7K.cjs');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
var _chunk45QJHGZMcjs = require('./chunk-45QJHGZM.cjs');
|
|
12
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-LRJRXXQZ.cjs');
|
|
14
|
+
require('./chunk-3XEMGDBF.cjs');
|
|
15
|
+
require('./chunk-IOAUK4OI.cjs');
|
|
16
|
+
require('./chunk-4U5XZDLG.cjs');
|
|
13
17
|
require('./chunk-XSIRSMAS.cjs');
|
|
14
|
-
require('./chunk-BPOTSHDO.cjs');
|
|
15
18
|
require('./chunk-ZQRCSUSB.cjs');
|
|
16
|
-
require('./chunk-4U5XZDLG.cjs');
|
|
17
19
|
require('./chunk-6D24SDKO.cjs');
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-BMOBTMDR.cjs');
|
|
20
|
+
require('./chunk-GVNCWSQV.cjs');
|
|
20
21
|
require('./chunk-TI7UANHI.cjs');
|
|
22
|
+
require('./chunk-BMOBTMDR.cjs');
|
|
21
23
|
require('./chunk-VHRS3MCW.cjs');
|
|
24
|
+
require('./chunk-3BROEWFY.cjs');
|
|
22
25
|
require('./chunk-CXP5U3RW.cjs');
|
|
23
26
|
require('./chunk-CBXBGM72.cjs');
|
|
27
|
+
require('./chunk-APDGOKKE.cjs');
|
|
28
|
+
require('./chunk-YKUEJ3MG.cjs');
|
|
24
29
|
require('./chunk-MWSK6C4J.cjs');
|
|
25
30
|
require('./chunk-OWOUTKIJ.cjs');
|
|
26
31
|
require('./chunk-6EODJYCX.cjs');
|
|
@@ -30,14 +35,14 @@ require('./chunk-VDRM36QB.cjs');
|
|
|
30
35
|
require('./chunk-2FUIT2G2.cjs');
|
|
31
36
|
require('./chunk-CY2ZQ5C6.cjs');
|
|
32
37
|
require('./chunk-HREOKQWT.cjs');
|
|
33
|
-
require('./chunk-
|
|
34
|
-
require('./chunk-Q5B3KJBP.cjs');
|
|
38
|
+
require('./chunk-PDU4P2IC.cjs');
|
|
35
39
|
require('./chunk-FVPXT2JR.cjs');
|
|
36
40
|
|
|
37
41
|
|
|
38
42
|
var _chunkYJRZR7VUcjs = require('./chunk-YJRZR7VU.cjs');
|
|
43
|
+
require('./chunk-Q5B3KJBP.cjs');
|
|
39
44
|
require('./chunk-PSV6XKPO.cjs');
|
|
40
|
-
require('./chunk-
|
|
45
|
+
require('./chunk-JAXDRRRC.cjs');
|
|
41
46
|
require('./chunk-D5IHNDHI.cjs');
|
|
42
47
|
require('./chunk-25LPIZSX.cjs');
|
|
43
48
|
require('./chunk-WBKEZXWE.cjs');
|
|
@@ -100,7 +105,7 @@ require('./chunk-UQZ4AYTH.cjs');
|
|
|
100
105
|
require('./chunk-KNBBQHO2.cjs');
|
|
101
106
|
require('./chunk-5NAVKJCZ.cjs');
|
|
102
107
|
require('./chunk-4TLUFAIP.cjs');
|
|
103
|
-
require('./chunk-
|
|
108
|
+
require('./chunk-YBDSTNMH.cjs');
|
|
104
109
|
require('./chunk-OYEUREB6.cjs');
|
|
105
110
|
require('./chunk-7W3CPVXS.cjs');
|
|
106
111
|
require('./chunk-NZKJGRB3.cjs');
|
|
@@ -111,6 +116,7 @@ require('./chunk-S3A45T7F.cjs');
|
|
|
111
116
|
require('./chunk-QCVE2OCI.cjs');
|
|
112
117
|
require('./chunk-AI7QMY7O.cjs');
|
|
113
118
|
require('./chunk-LZESP4IR.cjs');
|
|
119
|
+
require('./chunk-H7BLEEAE.cjs');
|
|
114
120
|
require('./chunk-R5JIFR6B.cjs');
|
|
115
121
|
require('./chunk-C5GUTBZK.cjs');
|
|
116
122
|
require('./chunk-QBK2AA4U.cjs');
|
|
@@ -138,4 +144,4 @@ require('./chunk-S3JO3N4H.cjs');
|
|
|
138
144
|
|
|
139
145
|
|
|
140
146
|
|
|
141
|
-
exports.FARM_NODE_RESPONSE_END_PENDING = _chunk45QJHGZMcjs.FARM_NODE_RESPONSE_END_PENDING; exports.FarmDevEnvironmentError = _chunkPJ42JESYcjs.FarmDevEnvironmentError; exports.FarmRuntimeShutdownError = _chunk45QJHGZMcjs.FarmRuntimeShutdownError; exports.PluginManager = _chunk45QJHGZMcjs.PluginManager; exports.definePlugin = _chunk45QJHGZMcjs.definePlugin; exports.farmPlugin =
|
|
147
|
+
exports.FARM_NODE_RESPONSE_END_PENDING = _chunk45QJHGZMcjs.FARM_NODE_RESPONSE_END_PENDING; exports.FarmDevEnvironmentError = _chunkPJ42JESYcjs.FarmDevEnvironmentError; exports.FarmRuntimeShutdownError = _chunk45QJHGZMcjs.FarmRuntimeShutdownError; exports.PluginManager = _chunk45QJHGZMcjs.PluginManager; exports.definePlugin = _chunk45QJHGZMcjs.definePlugin; exports.farmPlugin = _chunkVIVQERJ5cjs.farmPlugin; exports.loadFarmDevModule = _chunkPJ42JESYcjs.loadFarmDevModule; exports.resolveFarmDevtoolsConfig = _chunkYJRZR7VUcjs.resolveFarmDevtoolsConfig;
|
package/dist/plugin.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { m as APIHandlerLifecyclePayload, A as APIRouteDiscoveredPayload, B as BundleLifecyclePayload, n as BundleResultPayload, E as ErrorLifecyclePayload, b as FARM_NODE_RESPONSE_END_PENDING, $ as FarmDevtoolsUserConfig, a as FarmPlugin, Q as FarmPluginBuildHooks, U as FarmPluginClientConfig, f as FarmPluginContext, Y as FarmPluginDatabase, W as FarmPluginDefinition, T as FarmPluginDevHooks, K as FarmPluginDiscoveredRoute, c as FarmPluginIntegrationContext, g as FarmPluginLifecycle, O as FarmPluginRenderHooks, p as FarmPluginRouteRuntimePayload, L as FarmPluginRouterHooks, x as FarmPluginRuntimeAfterEvent, s as FarmPluginRuntimeBaseEvent, w as FarmPluginRuntimeBeforeEvent, C as FarmPluginRuntimeCloseEvent, t as FarmPluginRuntimeContextEvent, v as FarmPluginRuntimeEndpoint, u as FarmPluginRuntimeEndpointEvent, y as FarmPluginRuntimeErrorEvent, D as FarmPluginRuntimeHooks, o as FarmPluginRuntimeKind, I as FarmPluginRuntimeRequestHandler, G as FarmPluginRuntimeRequestOptions, J as FarmPluginRuntimeSession, z as FarmPluginRuntimeStartEvent, q as FarmPluginSetupContext, r as FarmPluginStateContext, h as FarmRequestPluginContext, e as FarmRequestStore, d as FarmRuntimeShutdownError, H as HMRUpdatePayload, M as MiddlewareDiscoveredPayload, N as NitroBuildLifecyclePayload, V as PluginManager, P as PluginRequestContext, l as RenderLifecyclePayload, _ as ResolvedFarmDevtoolsConfig, R as RouteDiscoveredPayload, j as RouteMatchPayload, k as RouteMatchResultPayload, i as RoutesGeneratedPayload, S as ShutdownPayload, X as definePlugin, Z as resolveFarmDevtoolsConfig } from './client-plugins-
|
|
1
|
+
export { m as APIHandlerLifecyclePayload, A as APIRouteDiscoveredPayload, B as BundleLifecyclePayload, n as BundleResultPayload, E as ErrorLifecyclePayload, b as FARM_NODE_RESPONSE_END_PENDING, $ as FarmDevtoolsUserConfig, a as FarmPlugin, Q as FarmPluginBuildHooks, U as FarmPluginClientConfig, f as FarmPluginContext, Y as FarmPluginDatabase, W as FarmPluginDefinition, T as FarmPluginDevHooks, K as FarmPluginDiscoveredRoute, c as FarmPluginIntegrationContext, g as FarmPluginLifecycle, O as FarmPluginRenderHooks, p as FarmPluginRouteRuntimePayload, L as FarmPluginRouterHooks, x as FarmPluginRuntimeAfterEvent, s as FarmPluginRuntimeBaseEvent, w as FarmPluginRuntimeBeforeEvent, C as FarmPluginRuntimeCloseEvent, t as FarmPluginRuntimeContextEvent, v as FarmPluginRuntimeEndpoint, u as FarmPluginRuntimeEndpointEvent, y as FarmPluginRuntimeErrorEvent, D as FarmPluginRuntimeHooks, o as FarmPluginRuntimeKind, I as FarmPluginRuntimeRequestHandler, G as FarmPluginRuntimeRequestOptions, J as FarmPluginRuntimeSession, z as FarmPluginRuntimeStartEvent, q as FarmPluginSetupContext, r as FarmPluginStateContext, h as FarmRequestPluginContext, e as FarmRequestStore, d as FarmRuntimeShutdownError, H as HMRUpdatePayload, M as MiddlewareDiscoveredPayload, N as NitroBuildLifecyclePayload, V as PluginManager, P as PluginRequestContext, l as RenderLifecyclePayload, _ as ResolvedFarmDevtoolsConfig, R as RouteDiscoveredPayload, j as RouteMatchPayload, k as RouteMatchResultPayload, i as RoutesGeneratedPayload, S as ShutdownPayload, X as definePlugin, Z as resolveFarmDevtoolsConfig } from './client-plugins-Cv0OJtnM.mjs';
|
|
2
2
|
export { farmPlugin } from './vite.mjs';
|
|
3
3
|
export { P as PluginLocalAPI, a as PluginLocalAPIEndpoint, b as PluginRoutes, c as PluginRoutesFactory, R as RouteDefinition, d as RouteMethod } from './integration-api-DWyMmvrR.mjs';
|
|
4
4
|
export { E as EndpointMCPMetadata, a as EndpointMCPOptions, b as EndpointOpenAPIMetadata, R as RouteSchema } from './endpoint-DGZRZHux.mjs';
|
|
@@ -32,8 +32,8 @@ import './image-config-BpH1q5R8.mjs';
|
|
|
32
32
|
import './types-CnH8DOqo.mjs';
|
|
33
33
|
import './types-DQnyD3VD.mjs';
|
|
34
34
|
import './font.mjs';
|
|
35
|
-
import './ssg-
|
|
36
|
-
import './route-rendering-
|
|
35
|
+
import './ssg-Donyfcxy.mjs';
|
|
36
|
+
import './route-rendering-iTTOwz1f.mjs';
|
|
37
37
|
import './after.mjs';
|
|
38
38
|
import 'node:http';
|
|
39
39
|
import './server-client-bridge-DKWDl5NB.mjs';
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { m as APIHandlerLifecyclePayload, A as APIRouteDiscoveredPayload, B as BundleLifecyclePayload, n as BundleResultPayload, E as ErrorLifecyclePayload, b as FARM_NODE_RESPONSE_END_PENDING, $ as FarmDevtoolsUserConfig, a as FarmPlugin, Q as FarmPluginBuildHooks, U as FarmPluginClientConfig, f as FarmPluginContext, Y as FarmPluginDatabase, W as FarmPluginDefinition, T as FarmPluginDevHooks, K as FarmPluginDiscoveredRoute, c as FarmPluginIntegrationContext, g as FarmPluginLifecycle, O as FarmPluginRenderHooks, p as FarmPluginRouteRuntimePayload, L as FarmPluginRouterHooks, x as FarmPluginRuntimeAfterEvent, s as FarmPluginRuntimeBaseEvent, w as FarmPluginRuntimeBeforeEvent, C as FarmPluginRuntimeCloseEvent, t as FarmPluginRuntimeContextEvent, v as FarmPluginRuntimeEndpoint, u as FarmPluginRuntimeEndpointEvent, y as FarmPluginRuntimeErrorEvent, D as FarmPluginRuntimeHooks, o as FarmPluginRuntimeKind, I as FarmPluginRuntimeRequestHandler, G as FarmPluginRuntimeRequestOptions, J as FarmPluginRuntimeSession, z as FarmPluginRuntimeStartEvent, q as FarmPluginSetupContext, r as FarmPluginStateContext, h as FarmRequestPluginContext, e as FarmRequestStore, d as FarmRuntimeShutdownError, H as HMRUpdatePayload, M as MiddlewareDiscoveredPayload, N as NitroBuildLifecyclePayload, V as PluginManager, P as PluginRequestContext, l as RenderLifecyclePayload, _ as ResolvedFarmDevtoolsConfig, R as RouteDiscoveredPayload, j as RouteMatchPayload, k as RouteMatchResultPayload, i as RoutesGeneratedPayload, S as ShutdownPayload, X as definePlugin, Z as resolveFarmDevtoolsConfig } from './client-plugins-
|
|
1
|
+
export { m as APIHandlerLifecyclePayload, A as APIRouteDiscoveredPayload, B as BundleLifecyclePayload, n as BundleResultPayload, E as ErrorLifecyclePayload, b as FARM_NODE_RESPONSE_END_PENDING, $ as FarmDevtoolsUserConfig, a as FarmPlugin, Q as FarmPluginBuildHooks, U as FarmPluginClientConfig, f as FarmPluginContext, Y as FarmPluginDatabase, W as FarmPluginDefinition, T as FarmPluginDevHooks, K as FarmPluginDiscoveredRoute, c as FarmPluginIntegrationContext, g as FarmPluginLifecycle, O as FarmPluginRenderHooks, p as FarmPluginRouteRuntimePayload, L as FarmPluginRouterHooks, x as FarmPluginRuntimeAfterEvent, s as FarmPluginRuntimeBaseEvent, w as FarmPluginRuntimeBeforeEvent, C as FarmPluginRuntimeCloseEvent, t as FarmPluginRuntimeContextEvent, v as FarmPluginRuntimeEndpoint, u as FarmPluginRuntimeEndpointEvent, y as FarmPluginRuntimeErrorEvent, D as FarmPluginRuntimeHooks, o as FarmPluginRuntimeKind, I as FarmPluginRuntimeRequestHandler, G as FarmPluginRuntimeRequestOptions, J as FarmPluginRuntimeSession, z as FarmPluginRuntimeStartEvent, q as FarmPluginSetupContext, r as FarmPluginStateContext, h as FarmRequestPluginContext, e as FarmRequestStore, d as FarmRuntimeShutdownError, H as HMRUpdatePayload, M as MiddlewareDiscoveredPayload, N as NitroBuildLifecyclePayload, V as PluginManager, P as PluginRequestContext, l as RenderLifecyclePayload, _ as ResolvedFarmDevtoolsConfig, R as RouteDiscoveredPayload, j as RouteMatchPayload, k as RouteMatchResultPayload, i as RoutesGeneratedPayload, S as ShutdownPayload, X as definePlugin, Z as resolveFarmDevtoolsConfig } from './client-plugins-kwQuZcWq.js';
|
|
2
2
|
export { farmPlugin } from './vite.js';
|
|
3
3
|
export { P as PluginLocalAPI, a as PluginLocalAPIEndpoint, b as PluginRoutes, c as PluginRoutesFactory, R as RouteDefinition, d as RouteMethod } from './integration-api-BuPHMeKz.js';
|
|
4
4
|
export { E as EndpointMCPMetadata, a as EndpointMCPOptions, b as EndpointOpenAPIMetadata, R as RouteSchema } from './endpoint-BOE0IAaG.js';
|
|
@@ -32,8 +32,8 @@ import './image-config-BpH1q5R8.js';
|
|
|
32
32
|
import './types-CnH8DOqo.js';
|
|
33
33
|
import './types-DQnyD3VD.js';
|
|
34
34
|
import './font.js';
|
|
35
|
-
import './ssg-
|
|
36
|
-
import './route-rendering-
|
|
35
|
+
import './ssg-Csy2vwpi.js';
|
|
36
|
+
import './route-rendering-DamyKVi3.js';
|
|
37
37
|
import './after.js';
|
|
38
38
|
import 'node:http';
|
|
39
39
|
import './server-client-bridge-DKWDl5NB.js';
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
farmPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OYSGGV6O.mjs";
|
|
4
|
+
import "./chunk-5NIWBWDD.mjs";
|
|
4
5
|
import "./chunk-INQ64HTJ.mjs";
|
|
5
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-7SCCY6SI.mjs";
|
|
6
7
|
import {
|
|
7
8
|
FARM_NODE_RESPONSE_END_PENDING,
|
|
8
9
|
FarmRuntimeShutdownError,
|
|
9
10
|
PluginManager,
|
|
10
11
|
definePlugin
|
|
11
12
|
} from "./chunk-FGH3ZXTP.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-S34OBRMZ.mjs";
|
|
14
|
+
import "./chunk-26CXZR6L.mjs";
|
|
15
|
+
import "./chunk-T76H22WI.mjs";
|
|
16
|
+
import "./chunk-GC3EM6H4.mjs";
|
|
13
17
|
import "./chunk-F3VB7ONA.mjs";
|
|
14
|
-
import "./chunk-BYR3RQPB.mjs";
|
|
15
18
|
import "./chunk-VQGKD7RV.mjs";
|
|
16
|
-
import "./chunk-GC3EM6H4.mjs";
|
|
17
19
|
import "./chunk-WDMIW6Q6.mjs";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-4ZZNPK25.mjs";
|
|
20
|
+
import "./chunk-TESO7EFU.mjs";
|
|
20
21
|
import "./chunk-Y5RG6B7S.mjs";
|
|
22
|
+
import "./chunk-4ZZNPK25.mjs";
|
|
21
23
|
import "./chunk-COABSY3U.mjs";
|
|
24
|
+
import "./chunk-XUGFRFD2.mjs";
|
|
22
25
|
import "./chunk-BOYNDCZL.mjs";
|
|
23
26
|
import "./chunk-OJ7JP7RJ.mjs";
|
|
27
|
+
import "./chunk-D5RFPV2H.mjs";
|
|
28
|
+
import "./chunk-PJEHUSHA.mjs";
|
|
24
29
|
import "./chunk-SLQCDJSO.mjs";
|
|
25
30
|
import "./chunk-XAXTTBUT.mjs";
|
|
26
31
|
import "./chunk-45ZSJLDT.mjs";
|
|
@@ -30,14 +35,14 @@ import "./chunk-CALY6QG6.mjs";
|
|
|
30
35
|
import "./chunk-FIAPD365.mjs";
|
|
31
36
|
import "./chunk-J7K2NZD6.mjs";
|
|
32
37
|
import "./chunk-TVGP4BBZ.mjs";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-GHFS7RUB.mjs";
|
|
38
|
+
import "./chunk-M3BXTWJM.mjs";
|
|
35
39
|
import "./chunk-CZS6OACQ.mjs";
|
|
36
40
|
import {
|
|
37
41
|
resolveFarmDevtoolsConfig
|
|
38
42
|
} from "./chunk-JBSVKMC5.mjs";
|
|
43
|
+
import "./chunk-GHFS7RUB.mjs";
|
|
39
44
|
import "./chunk-DAATZTKJ.mjs";
|
|
40
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-DMRPN25V.mjs";
|
|
41
46
|
import "./chunk-ETPEZLS3.mjs";
|
|
42
47
|
import "./chunk-7UEEHAW7.mjs";
|
|
43
48
|
import "./chunk-BUGNQIHC.mjs";
|
|
@@ -100,7 +105,7 @@ import "./chunk-Z2RZJZIZ.mjs";
|
|
|
100
105
|
import "./chunk-BTHHUD7Q.mjs";
|
|
101
106
|
import "./chunk-ZZGQD7A4.mjs";
|
|
102
107
|
import "./chunk-P7XDC7UJ.mjs";
|
|
103
|
-
import "./chunk-
|
|
108
|
+
import "./chunk-YGZH4T2X.mjs";
|
|
104
109
|
import "./chunk-54UPOYFS.mjs";
|
|
105
110
|
import "./chunk-WNSDDRNU.mjs";
|
|
106
111
|
import "./chunk-JPLUGGRV.mjs";
|
|
@@ -111,6 +116,7 @@ import "./chunk-7LTCDQRS.mjs";
|
|
|
111
116
|
import "./chunk-GCXWJJKH.mjs";
|
|
112
117
|
import "./chunk-JM5XPKWH.mjs";
|
|
113
118
|
import "./chunk-73WX6PRY.mjs";
|
|
119
|
+
import "./chunk-2NXO5SBY.mjs";
|
|
114
120
|
import "./chunk-SKNL7VA2.mjs";
|
|
115
121
|
import "./chunk-2A3EQHXX.mjs";
|
|
116
122
|
import "./chunk-JNZ4TDWM.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bc as ReadonlyMiddlewareStore, bd as FarmMiddlewareConfig, be as MiddlewareModule, bf as MiddlewareConfig, bg as MiddlewareContext } from './client-plugins-kwQuZcWq.js';
|
|
2
2
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.js';
|
|
3
3
|
import { R as ResolvedFarmServerConfig } from './workflows-IWP1ddBm.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bc as ReadonlyMiddlewareStore, bd as FarmMiddlewareConfig, be as MiddlewareModule, bf as MiddlewareConfig, bg as MiddlewareContext } from './client-plugins-Cv0OJtnM.mjs';
|
|
2
2
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.mjs';
|
|
3
3
|
import { R as ResolvedFarmServerConfig } from './workflows-IWP1ddBm.mjs';
|
|
4
4
|
|
package/dist/query/client.cjs
CHANGED
|
@@ -18,12 +18,13 @@ var _chunkWMOGFOUJcjs = require('../chunk-WMOGFOUJ.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkIXFOBGLQcjs = require('../chunk-IXFOBGLQ.cjs');
|
|
22
22
|
require('../chunk-S6FJO323.cjs');
|
|
23
23
|
require('../chunk-R5A5KNVX.cjs');
|
|
24
24
|
require('../chunk-JEZO6VUR.cjs');
|
|
25
25
|
require('../chunk-J7FSKED3.cjs');
|
|
26
26
|
require('../chunk-LZESP4IR.cjs');
|
|
27
|
+
require('../chunk-H7BLEEAE.cjs');
|
|
27
28
|
require('../chunk-R5JIFR6B.cjs');
|
|
28
29
|
require('../chunk-C5GUTBZK.cjs');
|
|
29
30
|
require('../chunk-QBK2AA4U.cjs');
|
|
@@ -216,7 +217,7 @@ var commitURLUpdate = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (upd
|
|
|
216
217
|
const currentUrl = url.pathname + url.search + url.hash;
|
|
217
218
|
if (newUrl === currentUrl) return;
|
|
218
219
|
const historyAction = history === "replaceState" ? "replace" : "push";
|
|
219
|
-
if (!
|
|
220
|
+
if (!_chunkIXFOBGLQcjs.writeFarmURLSearchHistory.call(void 0, historyAction, newUrl)) {
|
|
220
221
|
const historyState = window.history.state;
|
|
221
222
|
const nextHistoryState = historyState && typeof historyState === "object" && "path" in historyState ? { ...historyState, path: newUrl } : historyState;
|
|
222
223
|
window.history[history](nextHistoryState, "", newUrl);
|
|
@@ -227,7 +228,7 @@ var commitURLUpdate = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (upd
|
|
|
227
228
|
}
|
|
228
229
|
emitter.emitUpdate(getCurrentSearchParams());
|
|
229
230
|
}
|
|
230
|
-
if (shallow)
|
|
231
|
+
if (shallow) _chunkIXFOBGLQcjs.notifyHistoryChange.call(void 0, "url-search");
|
|
231
232
|
if (scroll) {
|
|
232
233
|
window.scrollTo(0, 0);
|
|
233
234
|
}
|
|
@@ -311,7 +312,7 @@ function useQueryState(key, parser, options) {
|
|
|
311
312
|
}
|
|
312
313
|
}, "onKeyUpdate");
|
|
313
314
|
onPopState();
|
|
314
|
-
const unsubscribeHistory =
|
|
315
|
+
const unsubscribeHistory = _chunkIXFOBGLQcjs.subscribeHistoryChange.call(void 0, onPopState);
|
|
315
316
|
emitter.on("update", onEmitterUpdate);
|
|
316
317
|
emitter.onKey(key, onKeyUpdate);
|
|
317
318
|
return () => {
|
|
@@ -405,7 +406,7 @@ function useQueryStates(parsers, options = {}) {
|
|
|
405
406
|
applyChange2(searchParams);
|
|
406
407
|
}, "onEmitterUpdate");
|
|
407
408
|
applyChange2(getCurrentSearchParams());
|
|
408
|
-
const unsubscribeHistory =
|
|
409
|
+
const unsubscribeHistory = _chunkIXFOBGLQcjs.subscribeHistoryChange.call(void 0, onPopState);
|
|
409
410
|
emitter.on("update", onEmitterUpdate);
|
|
410
411
|
const unsubscribeKeys = Object.entries(parsers).map(([key, parser]) => {
|
|
411
412
|
const onKeyUpdate = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (payload) => {
|
package/dist/query/client.mjs
CHANGED
|
@@ -18,12 +18,13 @@ import {
|
|
|
18
18
|
notifyHistoryChange,
|
|
19
19
|
subscribeHistoryChange,
|
|
20
20
|
writeFarmURLSearchHistory
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-S3ZEMCE6.mjs";
|
|
22
22
|
import "../chunk-IHQIOZLC.mjs";
|
|
23
23
|
import "../chunk-2PQNJXFM.mjs";
|
|
24
24
|
import "../chunk-QHSH7IH4.mjs";
|
|
25
25
|
import "../chunk-QVYLBY73.mjs";
|
|
26
26
|
import "../chunk-73WX6PRY.mjs";
|
|
27
|
+
import "../chunk-2NXO5SBY.mjs";
|
|
27
28
|
import "../chunk-SKNL7VA2.mjs";
|
|
28
29
|
import "../chunk-2A3EQHXX.mjs";
|
|
29
30
|
import "../chunk-JNZ4TDWM.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.mjs';
|
|
2
|
-
import './client-plugins-
|
|
2
|
+
import './client-plugins-Cv0OJtnM.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A build-time rendering decision consumed by the browser router.
|
|
@@ -19,5 +19,7 @@ interface FarmRouteRenderPlan {
|
|
|
19
19
|
revalidate?: number;
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
+
declare function parseFarmLayoutChainHeader(value: string | null): string[];
|
|
23
|
+
declare function getSharedLayoutPrefixLength(current: string[], next: string[]): number;
|
|
22
24
|
|
|
23
|
-
export type
|
|
25
|
+
export { type FarmRouteRenderPlan as F, getSharedLayoutPrefixLength as g, parseFarmLayoutChainHeader as p };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.js';
|
|
2
|
-
import './client-plugins-
|
|
2
|
+
import './client-plugins-kwQuZcWq.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A build-time rendering decision consumed by the browser router.
|
|
@@ -19,5 +19,7 @@ interface FarmRouteRenderPlan {
|
|
|
19
19
|
revalidate?: number;
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
+
declare function parseFarmLayoutChainHeader(value: string | null): string[];
|
|
23
|
+
declare function getSharedLayoutPrefixLength(current: string[], next: string[]): number;
|
|
22
24
|
|
|
23
|
-
export type
|
|
25
|
+
export { type FarmRouteRenderPlan as F, getSharedLayoutPrefixLength as g, parseFarmLayoutChainHeader as p };
|