@farm.js/core 0.1.86 → 0.1.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-mcp.d-7uKdOttc.d.ts → agent-mcp.d-BdM0pIrD.d.ts} +1 -1
- package/dist/{agent-mcp.d-LChlR2au.d.mts → agent-mcp.d-CMGqpUbk.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/analyzer-LLU2Z6I4.cjs +17 -0
- package/dist/{analyzer-I5S5YKHM.mjs → analyzer-W4EB7DHL.mjs} +2 -2
- package/dist/api/node.d.mts +3 -3
- package/dist/api/node.d.ts +3 -3
- package/dist/api/route-manager.cjs +3 -3
- package/dist/api/route-manager.d.mts +3 -3
- package/dist/api/route-manager.d.ts +3 -3
- package/dist/api/route-manager.mjs +2 -2
- package/dist/api/runtime.d.mts +2 -2
- package/dist/api/runtime.d.ts +2 -2
- package/dist/api.cjs +4 -4
- package/dist/api.d.mts +4 -4
- package/dist/api.d.ts +4 -4
- package/dist/api.mjs +3 -3
- package/dist/{app-manifest.d-QMdmqqCr.d.mts → app-manifest.d-BeDB2OVm.d.mts} +1 -1
- package/dist/{app-manifest.d-CRp21oAz.d.ts → app-manifest.d-COhjPgHn.d.ts} +1 -1
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/{app.d-Bvpc2eJq.d.mts → app.d-AVZXCfcO.d.mts} +5 -4
- package/dist/{app.d-DEKpJEp4.d.ts → app.d-b3A4cca5.d.ts} +5 -4
- package/dist/{chunk-SB74WCKC.mjs → chunk-26HESRBL.mjs} +4 -4
- package/dist/chunk-2HTNASSB.cjs +134 -0
- package/dist/{chunk-BAD6T5NU.cjs → chunk-33WR5XV5.cjs} +4 -4
- package/dist/{chunk-YMAE32O7.mjs → chunk-3F55K4MC.mjs} +1 -1
- package/dist/{chunk-CVKTYG4L.mjs → chunk-4FGTNYHE.mjs} +2 -2
- package/dist/{chunk-CFKAYV7B.mjs → chunk-5D73SKF3.mjs} +1 -1
- package/dist/{chunk-Q3YWQEUS.cjs → chunk-7BNVUIGL.cjs} +2 -2
- package/dist/{chunk-RA5OUXOJ.mjs → chunk-A2PPQ5LB.mjs} +2 -2
- package/dist/{chunk-KHIEGVG7.mjs → chunk-ALOFMAFA.mjs} +10 -4
- package/dist/{chunk-BLZCAFGJ.cjs → chunk-CXHVRHM2.cjs} +2 -2
- package/dist/{chunk-3RVLJTFZ.mjs → chunk-D7LXBLUW.mjs} +1 -1
- package/dist/{chunk-45ANSCTO.mjs → chunk-EZYNIADW.mjs} +63 -37
- package/dist/{chunk-NAHDG6UX.mjs → chunk-HFRG2IQS.mjs} +1 -1
- package/dist/{chunk-7H2TXT2K.mjs → chunk-HX5HLFBZ.mjs} +7 -0
- package/dist/{chunk-2NKNP4AH.cjs → chunk-HYL372GW.cjs} +1 -1
- package/dist/{chunk-25JGHAGH.cjs → chunk-I2RBHZF7.cjs} +15 -8
- package/dist/{chunk-NXOZRI3B.cjs → chunk-IM422XKU.cjs} +2 -2
- package/dist/{chunk-6QYPP5KC.mjs → chunk-K5FLQJW5.mjs} +2 -2
- package/dist/chunk-K6RMOB25.mjs +134 -0
- package/dist/{chunk-UAQQUQWE.mjs → chunk-LBJOHMTB.mjs} +1 -1
- package/dist/{chunk-QYWP5KDY.mjs → chunk-LIWVPE72.mjs} +59 -21
- package/dist/{chunk-FDU4Q4QP.cjs → chunk-MZR22RAC.cjs} +10 -4
- package/dist/chunk-NDMPGFKL.cjs +47 -0
- package/dist/{chunk-YHM4PXJY.mjs → chunk-O5YM6GU3.mjs} +1 -1
- package/dist/{chunk-GWPANDW3.mjs → chunk-O7K4HMAQ.mjs} +1 -1
- package/dist/{chunk-7UTRNV6R.mjs → chunk-Q73LRKLP.mjs} +1 -1
- package/dist/{chunk-3TKGMIPX.mjs → chunk-QLRI2BX5.mjs} +90 -11
- package/dist/{chunk-PAENAKTC.mjs → chunk-QSDIJ45N.mjs} +1 -1
- package/dist/{chunk-UDWBTABT.cjs → chunk-RGYS5OPL.cjs} +3 -3
- package/dist/{chunk-FWLXYNWA.cjs → chunk-SDNYULFS.cjs} +347 -321
- package/dist/chunk-TCGPBSVY.mjs +47 -0
- package/dist/{chunk-P253SZJF.cjs → chunk-TI4BZV6M.cjs} +353 -274
- package/dist/{chunk-QYDGIXQ5.cjs → chunk-U3A46QFD.cjs} +9 -9
- package/dist/{chunk-VGHDPEPQ.cjs → chunk-UA77C2ZA.cjs} +2 -2
- package/dist/{chunk-U54REWMJ.cjs → chunk-VCI776NG.cjs} +13 -13
- package/dist/{chunk-IAERD73G.cjs → chunk-VCZ4EM5K.cjs} +367 -329
- package/dist/{chunk-5P65LXGU.cjs → chunk-WSQ3S3NV.cjs} +2 -2
- package/dist/{chunk-VTEAUQMT.mjs → chunk-X2SMVPLH.mjs} +19 -3
- package/dist/{chunk-TQJ35BBW.cjs → chunk-XFUPWRKT.cjs} +4 -4
- package/dist/{chunk-DJ3PVHTW.cjs → chunk-XGPRM7OK.cjs} +3 -3
- package/dist/{chunk-CPSFDQKJ.cjs → chunk-Z43CIBUR.cjs} +20 -4
- package/dist/{chunk-L2IULWKV.cjs → chunk-ZCX2XJPY.cjs} +3 -3
- package/dist/{cli-runtime.d-DaElKjaL.d.ts → cli-runtime.d-jqZ7YCsm.d.ts} +5 -5
- package/dist/{cli-runtime.d-C7aMfoTq.d.mts → cli-runtime.d-qL44rqYO.d.mts} +5 -5
- package/dist/{client-component.d-miqIXyQv.d.mts → client-component.d-B2L2LyAr.d.mts} +1 -1
- package/dist/{client-component.d-CZG02pIh.d.ts → client-component.d-BDD5aiUb.d.ts} +1 -1
- package/dist/{client-plugins.d-BVXjyIkY.d.ts → client-plugins.d-Crct3m_r.d.ts} +14 -5
- package/dist/{client-plugins.d-BwKwuO_0.d.mts → client-plugins.d-Dzc3vOw_.d.mts} +14 -5
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.d.mts +8 -7
- package/dist/client.d.ts +8 -7
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/desktop.d.mts +2 -2
- package/dist/desktop.d.ts +2 -2
- package/dist/{devtools-A3L7WNTB.cjs → devtools-GPIKZ5AV.cjs} +5 -3
- package/dist/{devtools-DGC2247E.mjs → devtools-GWJZPWIW.mjs} +4 -2
- package/dist/docs.cjs +6 -4
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +5 -3
- package/dist/environment/vite.cjs +4 -4
- package/dist/environment/vite.mjs +3 -3
- package/dist/font.cjs +4 -2
- package/dist/font.d.mts +13 -1
- package/dist/font.d.ts +13 -1
- package/dist/font.mjs +3 -1
- package/dist/{handler.d-BKTWzzNA.d.mts → handler.d-B1S1ZBqS.d.mts} +1 -1
- package/dist/{handler.d-Dzpyg3-N.d.ts → handler.d-ZweCBJD4.d.ts} +1 -1
- package/dist/{headers.d-PZyXcDAH.d.ts → headers.d-BgBdQN8x.d.ts} +1 -1
- package/dist/{headers.d-5opjyhXw.d.mts → headers.d-C-yGl_f6.d.mts} +1 -1
- package/dist/image-attributes.d-BMPDQO1q.d.mts +55 -0
- package/dist/image-attributes.d-BMPDQO1q.d.ts +55 -0
- package/dist/image.cjs +5 -127
- package/dist/image.d.mts +3 -13
- package/dist/image.d.ts +3 -13
- package/dist/image.mjs +5 -127
- package/dist/index.cjs +24 -22
- package/dist/{index.d-C0Mie66f.d.mts → index.d-13h3oDu7.d.mts} +1 -1
- package/dist/{index.d-DV2q-0mE.d.ts → index.d-CtoniAXT.d.ts} +1 -1
- package/dist/index.d.mts +24 -23
- package/dist/index.d.ts +24 -23
- package/dist/index.mjs +23 -21
- package/dist/integrations/orm.d.mts +1 -1
- package/dist/integrations/orm.d.ts +1 -1
- 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 +19 -19
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +18 -18
- package/dist/internal/cli-runtime.cjs +5 -3
- package/dist/internal/cli-runtime.d.mts +7 -7
- package/dist/internal/cli-runtime.d.ts +7 -7
- package/dist/internal/cli-runtime.mjs +4 -2
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +66 -40
- package/dist/internal/client-runtime.d.mts +6 -6
- package/dist/internal/client-runtime.d.ts +6 -6
- package/dist/internal/client-runtime.mjs +53 -27
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +6 -4
- package/dist/internal/config-runtime.d.mts +3 -3
- package/dist/internal/config-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.mjs +5 -3
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/islands-boot.cjs +44 -16
- package/dist/internal/islands-boot.d.mts +3 -1
- package/dist/internal/islands-boot.d.ts +3 -1
- package/dist/internal/islands-boot.mjs +28 -0
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +6 -6
- package/dist/internal/production-runtime.d.mts +10 -10
- package/dist/internal/production-runtime.d.ts +10 -10
- package/dist/internal/production-runtime.mjs +5 -5
- package/dist/internal/renderer-islands.cjs +35 -8
- package/dist/internal/renderer-islands.d.mts +9 -1
- package/dist/internal/renderer-islands.d.ts +9 -1
- package/dist/internal/renderer-islands.mjs +35 -8
- package/dist/internal/spa-router.d.mts +3 -3
- package/dist/internal/spa-router.d.ts +3 -3
- package/dist/internal/start-manifest.d.mts +1 -1
- package/dist/internal/start-manifest.d.ts +1 -1
- package/dist/{island-runtime.d-BA7EPo1v.d.ts → island-runtime.d-D2Mh5eTU.d.ts} +5 -1
- package/dist/{island-runtime.d-BBS_YUSX.d.mts → island-runtime.d-lrpEJlgg.d.mts} +5 -1
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/middleware.cjs +4 -4
- package/dist/middleware.d.mts +1 -1
- package/dist/middleware.d.ts +1 -1
- package/dist/middleware.mjs +3 -3
- package/dist/{mount.d-gWul1GA1.d.ts → mount.d-DyKlRR6z.d.ts} +1 -1
- package/dist/{mount.d-CZ_qL1iS.d.mts → mount.d-_6Un9wdK.d.mts} +1 -1
- package/dist/{navigation-delegate.d-BBTzhJLj.d.mts → navigation-delegate.d-ChfinbWB.d.mts} +1 -1
- package/dist/{navigation-delegate.d-BZsYEAet.d.ts → navigation-delegate.d-fMgELdAe.d.ts} +1 -1
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/{plugin-QOTAPTVV.mjs → plugin-EVKQZBNW.mjs} +1 -1
- package/dist/{plugin-3PT7I26P.cjs → plugin-MWO3G2XM.cjs} +2 -2
- package/dist/plugin.cjs +16 -16
- package/dist/plugin.d.mts +5 -5
- package/dist/plugin.d.ts +5 -5
- package/dist/plugin.mjs +15 -15
- package/dist/{render-plan.d-AaJsYPX-.d.ts → render-plan.d-D0FV9lDT.d.ts} +1 -1
- package/dist/{render-plan.d-bnWxS12w.d.mts → render-plan.d-DaM1NPnm.d.mts} +1 -1
- package/dist/renderer-client.cjs +6 -1
- package/dist/renderer-client.d.mts +6 -5
- package/dist/renderer-client.d.ts +6 -5
- package/dist/renderer-client.mjs +5 -0
- package/dist/renderer.cjs +3 -3
- package/dist/renderer.mjs +2 -2
- package/dist/{request.d-CAeitOG1.d.ts → request.d-CrXC7voZ.d.ts} +1 -1
- package/dist/{request.d-C2HOn3Hi.d.mts → request.d-DVSLilGx.d.mts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering.d-CYA-ulnX.d.mts → route-rendering.d-CWi3UYtR.d.mts} +1 -1
- package/dist/{route-rendering.d-A1dIkUK5.d.ts → route-rendering.d-OfbM_rj8.d.ts} +1 -1
- package/dist/{router.d-A_Yt6jYz.d.ts → router.d-D5Mp7bpO.d.ts} +1 -1
- package/dist/{router.d-8lxnzlkr.d.mts → router.d-DrQ1QDFk.d.mts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/{rsc-pipeline-BROS3NEB.mjs → rsc-pipeline-KLMQU3YP.mjs} +5 -3
- package/dist/{rsc-pipeline-SNGPAXGW.cjs → rsc-pipeline-TQOSDWOU.cjs} +6 -4
- package/dist/{runtime-SLJLW37A.mjs → runtime-BDPBO65S.mjs} +5 -3
- package/dist/{runtime-7T5TRAWL.cjs → runtime-CQSCRVZ7.cjs} +7 -5
- package/dist/{runtime.d-C_rZ9_DD.d.mts → runtime.d-BVj6apd0.d.mts} +1 -1
- package/dist/{runtime.d-BPyvWrgQ.d.ts → runtime.d-D7QYVJGO.d.ts} +1 -1
- package/dist/{server-components-status.d-BpxiEMQE.d.mts → server-components-status.d-BDVcxi0z.d.mts} +1 -1
- package/dist/{server-components-status.d-C2UEKJn7.d.ts → server-components-status.d-CfKDpmCH.d.ts} +1 -1
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server.cjs +37 -37
- package/dist/server.d.mts +11 -11
- package/dist/server.d.ts +11 -11
- package/dist/server.mjs +17 -17
- package/dist/{spa-router.d-Cw5i_15e.d.ts → spa-router.d-BXxoU3Cv.d.ts} +2 -2
- package/dist/{spa-router.d-BD-6WX1R.d.mts → spa-router.d-CXgvy-7L.d.mts} +2 -2
- package/dist/{ssg.d-CCE9aob5.d.mts → ssg.d-DS-gXUbf.d.mts} +2 -2
- package/dist/{ssg.d-Bifiq0EL.d.ts → ssg.d-jXlUAKzg.d.ts} +2 -2
- package/dist/{store-core.d-BN2MxSG9.d.mts → store-core.d-CDbVAbTn.d.mts} +3 -2
- package/dist/{store-core.d-5tVn5vi1.d.ts → store-core.d-D00BsbnO.d.ts} +3 -2
- package/dist/testing.cjs +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.mjs +2 -2
- package/dist/{utils.d-BUjpSNIO.d.ts → utils.d-BODwBtkz.d.ts} +1 -1
- package/dist/{utils.d-wGPLeVbq.d.mts → utils.d-Cmj-fzds.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +21 -19
- package/dist/vite.d.mts +21 -7
- package/dist/vite.d.ts +21 -7
- package/dist/vite.mjs +20 -18
- package/package.json +2 -2
- package/dist/analyzer-OEMQSLYT.cjs +0 -17
- package/dist/chunk-7EPYN7GW.cjs +0 -30
- package/dist/chunk-HZOMT5DY.mjs +0 -30
- package/dist/{chunk-4B6YJ5DS.cjs → chunk-4ZVKDHS6.cjs} +3 -3
- package/dist/{chunk-4EEAPBNV.mjs → chunk-PEQJ4UUT.mjs} +3 -3
|
@@ -177,13 +177,18 @@ function replayInteraction(interaction) {
|
|
|
177
177
|
function replayFarmQueuedInteraction(target, kind) {
|
|
178
178
|
replayInteraction({ target, kind: toReplayKind(kind) });
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
var FARM_ISLANDS_FORM_REF_PREFIX = "$F_REF_";
|
|
181
|
+
function postsServerAction(form, submitter) {
|
|
182
|
+
const named = (element) => !!_optionalChain([element, 'optionalAccess', _15 => _15.getAttribute, 'call', _16 => _16("name"), 'optionalAccess', _17 => _17.startsWith, 'call', _18 => _18(FARM_ISLANDS_FORM_REF_PREFIX)]);
|
|
183
|
+
return named(submitter) || Array.from(form.elements).some(named);
|
|
184
|
+
}
|
|
185
|
+
function holdFarmIslandInteractions(island, load) {
|
|
181
186
|
const scope = window;
|
|
182
187
|
const queue = _nullishCoalesce(scope.__FARM_PREHYDRATION_CLICK_QUEUE__, () => ( (scope.__FARM_PREHYDRATION_CLICK_QUEUE__ = [])));
|
|
183
188
|
const pending = (node) => !!node.closest(island) && !node.closest('[data-farm-island-hydrated="true"]');
|
|
184
189
|
const hold = (event, target, kind) => {
|
|
185
190
|
const interaction = { target, kind };
|
|
186
|
-
if (!submitsForm(interaction) || !queue.some((item) => _optionalChain([item, 'optionalAccess',
|
|
191
|
+
if (!submitsForm(interaction) || !queue.some((item) => _optionalChain([item, 'optionalAccess', _19 => _19.target]) === target)) {
|
|
187
192
|
queue.push(interaction);
|
|
188
193
|
document.dispatchEvent(
|
|
189
194
|
new CustomEvent("farm:island-interaction", { detail: { target, kind } })
|
|
@@ -204,11 +209,36 @@ function holdFarmIslandInteractions(island) {
|
|
|
204
209
|
if (event.defaultPrevented || !(form instanceof Element) || form.nodeName !== "FORM") return;
|
|
205
210
|
if (pending(form)) hold(event, form, "submit");
|
|
206
211
|
};
|
|
212
|
+
const heldForms = /* @__PURE__ */ new Set();
|
|
213
|
+
const onServerFormSubmit = (event) => {
|
|
214
|
+
const form = event.target;
|
|
215
|
+
if (!load || event.defaultPrevented || !(form instanceof HTMLFormElement)) return;
|
|
216
|
+
const submitter = _nullishCoalesce(event.submitter, () => ( null));
|
|
217
|
+
if (!postsServerAction(form, submitter)) return;
|
|
218
|
+
event.preventDefault();
|
|
219
|
+
if (heldForms.has(form)) return;
|
|
220
|
+
heldForms.add(form);
|
|
221
|
+
const submit = () => {
|
|
222
|
+
heldForms.delete(form);
|
|
223
|
+
if (!form.isConnected) return;
|
|
224
|
+
const button = submitter;
|
|
225
|
+
form.requestSubmit(_optionalChain([button, 'optionalAccess', _20 => _20.isConnected]) && button.form === form ? button : void 0);
|
|
226
|
+
};
|
|
227
|
+
load().then(submit, (error) => {
|
|
228
|
+
console.error(
|
|
229
|
+
"[Farm.js] The client runtime failed to load, so the form posts without it.",
|
|
230
|
+
error
|
|
231
|
+
);
|
|
232
|
+
submit();
|
|
233
|
+
});
|
|
234
|
+
};
|
|
207
235
|
document.addEventListener("click", onClick, true);
|
|
208
236
|
document.addEventListener("submit", onSubmit, true);
|
|
237
|
+
document.addEventListener("submit", onServerFormSubmit, false);
|
|
209
238
|
return () => {
|
|
210
239
|
document.removeEventListener("click", onClick, true);
|
|
211
240
|
document.removeEventListener("submit", onSubmit, true);
|
|
241
|
+
document.removeEventListener("submit", onServerFormSubmit, false);
|
|
212
242
|
};
|
|
213
243
|
}
|
|
214
244
|
function watchFarmIslandTriggers(scope, island, due) {
|
|
@@ -222,7 +252,7 @@ function watchFarmIslandTriggers(scope, island, due) {
|
|
|
222
252
|
const islands = Array.from(scope.querySelectorAll(island));
|
|
223
253
|
if (scope.nodeType === 1 && scope.matches(island)) islands.unshift(scope);
|
|
224
254
|
const outermost = islands.filter((element) => {
|
|
225
|
-
const outer = _optionalChain([element, 'access',
|
|
255
|
+
const outer = _optionalChain([element, 'access', _21 => _21.parentElement, 'optionalAccess', _22 => _22.closest, 'call', _23 => _23(island)]);
|
|
226
256
|
return !outer || !scope.contains(outer);
|
|
227
257
|
});
|
|
228
258
|
const isDue = (element) => {
|
|
@@ -254,11 +284,11 @@ function watchFarmIslandTriggers(scope, island, due) {
|
|
|
254
284
|
const target = event.target;
|
|
255
285
|
if (!(target instanceof Element) || !scope.contains(target)) return;
|
|
256
286
|
const link = target.closest("a[href]");
|
|
257
|
-
if (link && !_optionalChain([link, 'access',
|
|
287
|
+
if (link && !_optionalChain([link, 'access', _24 => _24.getAttribute, 'call', _25 => _25("href"), 'optionalAccess', _26 => _26.startsWith, 'call', _27 => _27("#")])) return;
|
|
258
288
|
if (pending(target) || target.closest("form")) fire();
|
|
259
289
|
};
|
|
260
290
|
const announced = (event) => {
|
|
261
|
-
if (pending(_optionalChain([event, 'access',
|
|
291
|
+
if (pending(_optionalChain([event, 'access', _28 => _28.detail, 'optionalAccess', _29 => _29.target]))) fire();
|
|
262
292
|
};
|
|
263
293
|
const listen = (type, handler, capture) => {
|
|
264
294
|
document2.addEventListener(type, handler, capture);
|
|
@@ -290,14 +320,7 @@ function scheduleFarmIslandHydration({
|
|
|
290
320
|
hydrate
|
|
291
321
|
}) {
|
|
292
322
|
const resolvedStrategy = _nullishCoalesce(strategy, () => ( "load"));
|
|
293
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
294
|
-
if (resolvedStrategy === "load") {
|
|
295
|
-
return Promise.resolve().then(() => _optionalChain([signal, 'optionalAccess', _26 => _26.aborted]) ? void 0 : hydrate()).then((value) => {
|
|
296
|
-
if (_optionalChain([signal, 'optionalAccess', _27 => _27.aborted])) return void 0;
|
|
297
|
-
finishIslandHydration(container);
|
|
298
|
-
return value;
|
|
299
|
-
});
|
|
300
|
-
}
|
|
323
|
+
if (_optionalChain([signal, 'optionalAccess', _30 => _30.aborted])) return Promise.resolve(void 0);
|
|
301
324
|
return new Promise((resolve, reject) => {
|
|
302
325
|
let started = false;
|
|
303
326
|
let cancelled = false;
|
|
@@ -316,17 +339,17 @@ function scheduleFarmIslandHydration({
|
|
|
316
339
|
const cleanup = () => {
|
|
317
340
|
cleanupTriggers();
|
|
318
341
|
cleanupCaptures();
|
|
319
|
-
_optionalChain([removeAbortListener, 'optionalCall',
|
|
342
|
+
_optionalChain([removeAbortListener, 'optionalCall', _31 => _31()]);
|
|
320
343
|
removeAbortListener = null;
|
|
321
344
|
};
|
|
322
345
|
const start = () => {
|
|
323
346
|
if (started || cancelled) return;
|
|
324
347
|
started = true;
|
|
325
348
|
cleanupTriggers();
|
|
326
|
-
Promise.resolve().then(hydrate).then(
|
|
349
|
+
Promise.resolve().then(() => cancelled || _optionalChain([signal, 'optionalAccess', _32 => _32.aborted]) ? void 0 : hydrate()).then(
|
|
327
350
|
(value) => {
|
|
328
351
|
cleanup();
|
|
329
|
-
if (cancelled || _optionalChain([signal, 'optionalAccess',
|
|
352
|
+
if (cancelled || _optionalChain([signal, 'optionalAccess', _33 => _33.aborted])) return;
|
|
330
353
|
finishIslandHydration(container, held.splice(0));
|
|
331
354
|
resolve(value);
|
|
332
355
|
},
|
|
@@ -346,23 +369,6 @@ function scheduleFarmIslandHydration({
|
|
|
346
369
|
signal.addEventListener("abort", abort, { once: true });
|
|
347
370
|
removeAbortListener = () => signal.removeEventListener("abort", abort);
|
|
348
371
|
}
|
|
349
|
-
if (resolvedStrategy === "idle") {
|
|
350
|
-
triggerCleanups.add(runWhenIdle(start));
|
|
351
|
-
return;
|
|
352
|
-
}
|
|
353
|
-
if (resolvedStrategy === "visible") {
|
|
354
|
-
if (typeof IntersectionObserver !== "function") {
|
|
355
|
-
start();
|
|
356
|
-
return;
|
|
357
|
-
}
|
|
358
|
-
const targets = container.getClientRects().length > 0 ? [container] : Array.from(container.children);
|
|
359
|
-
if (targets.length === 0) {
|
|
360
|
-
start();
|
|
361
|
-
return;
|
|
362
|
-
}
|
|
363
|
-
triggerCleanups.add(observeIslandVisibility(container.ownerDocument, targets, start));
|
|
364
|
-
return;
|
|
365
|
-
}
|
|
366
372
|
const hold = (event, target, kind) => {
|
|
367
373
|
const interaction = { target, kind };
|
|
368
374
|
if (!submitsForm(interaction) || !held.some((item) => item.target === target)) {
|
|
@@ -389,12 +395,12 @@ function scheduleFarmIslandHydration({
|
|
|
389
395
|
const target = event.target;
|
|
390
396
|
if (!(target instanceof Element) || !container.contains(target)) return;
|
|
391
397
|
const link = target.closest("a[href]");
|
|
392
|
-
if (link && !_optionalChain([link, 'access',
|
|
398
|
+
if (link && !_optionalChain([link, 'access', _34 => _34.getAttribute, 'call', _35 => _35("href"), 'optionalAccess', _36 => _36.startsWith, 'call', _37 => _37("#")])) return;
|
|
393
399
|
start();
|
|
394
400
|
};
|
|
395
401
|
const activateFromInteraction = (event) => {
|
|
396
402
|
const detail = event.detail;
|
|
397
|
-
const target = _optionalChain([detail, 'optionalAccess',
|
|
403
|
+
const target = _optionalChain([detail, 'optionalAccess', _38 => _38.target]);
|
|
398
404
|
if (!(target instanceof Element) || !container.contains(target)) return;
|
|
399
405
|
start();
|
|
400
406
|
};
|
|
@@ -412,7 +418,27 @@ function scheduleFarmIslandHydration({
|
|
|
412
418
|
listen(type, activationHandlers[type], true);
|
|
413
419
|
}
|
|
414
420
|
listen("farm:island-interaction", activateFromInteraction, false);
|
|
415
|
-
if (hasQueuedTarget(container))
|
|
421
|
+
if (resolvedStrategy === "load" || hasQueuedTarget(container)) {
|
|
422
|
+
start();
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
if (resolvedStrategy === "idle") {
|
|
426
|
+
triggerCleanups.add(runWhenIdle(start));
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
if (resolvedStrategy === "visible") {
|
|
430
|
+
if (typeof IntersectionObserver !== "function") {
|
|
431
|
+
start();
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
const targets = container.getClientRects().length > 0 ? [container] : Array.from(container.children);
|
|
435
|
+
if (targets.length === 0) {
|
|
436
|
+
start();
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
triggerCleanups.add(observeIslandVisibility(container.ownerDocument, targets, start));
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
416
442
|
});
|
|
417
443
|
}
|
|
418
444
|
|
|
@@ -423,7 +449,7 @@ function createPluginlessClientRuntime() {
|
|
|
423
449
|
const nothing = async () => {
|
|
424
450
|
};
|
|
425
451
|
const clear = (session) => {
|
|
426
|
-
if (_optionalChain([current, 'optionalAccess',
|
|
452
|
+
if (_optionalChain([current, 'optionalAccess', _39 => _39.session]) === session) current = void 0;
|
|
427
453
|
};
|
|
428
454
|
return {
|
|
429
455
|
start: nothing,
|
|
@@ -436,7 +462,7 @@ function createPluginlessClientRuntime() {
|
|
|
436
462
|
close: nothing,
|
|
437
463
|
getPlugins: () => [],
|
|
438
464
|
async beginNavigation() {
|
|
439
|
-
_optionalChain([current, 'optionalAccess',
|
|
465
|
+
_optionalChain([current, 'optionalAccess', _40 => _40.controller, 'access', _41 => _41.abort, 'call', _42 => _42("superseded")]);
|
|
440
466
|
const controller = new AbortController();
|
|
441
467
|
const session = { signal: controller.signal };
|
|
442
468
|
current = { controller, session };
|
|
@@ -481,12 +507,12 @@ function readFarmLinkNavigateOptions(anchor) {
|
|
|
481
507
|
var farmMobileShellClient = {
|
|
482
508
|
setup() {
|
|
483
509
|
const bridge = globalThis.__farmBridge;
|
|
484
|
-
const offer = _optionalChain([bridge, 'optionalAccess',
|
|
510
|
+
const offer = _optionalChain([bridge, 'optionalAccess', _43 => _43.offerNavigation]);
|
|
485
511
|
if (typeof offer !== "function") return void 0;
|
|
486
512
|
return _chunkJIBEFLQ7cjs.delegateNavigation.call(void 0, (context) => offer.call(bridge, context) === true);
|
|
487
513
|
},
|
|
488
514
|
close({ state }) {
|
|
489
|
-
_optionalChain([state, 'optionalCall',
|
|
515
|
+
_optionalChain([state, 'optionalCall', _44 => _44()]);
|
|
490
516
|
}
|
|
491
517
|
};
|
|
492
518
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export { r as restorePagePosition, s as setFarmBasePath, a as setFarmTrailingSlashPreference, b as stripFarmBasePath } from '../base-path.d-m7wvRMnG.mjs';
|
|
2
2
|
export { i as installChunkErrorRecovery } from '../chunk-recovery.d-lnQFzcQP.mjs';
|
|
3
|
-
export { h as holdFarmIslandInteractions, r as replayFarmQueuedInteraction, s as scheduleFarmIslandHydration, w as watchFarmIslandTriggers } from '../island-runtime.d-
|
|
3
|
+
export { h as holdFarmIslandInteractions, r as replayFarmQueuedInteraction, s as scheduleFarmIslandHydration, w as watchFarmIslandTriggers } from '../island-runtime.d-lrpEJlgg.mjs';
|
|
4
4
|
import { a as FarmClientNavigationSession, b as FarmClientPlugin } from '../lifecycle.d-OtGWAvJT.mjs';
|
|
5
5
|
export { c as createClientPluginManager } from '../lifecycle.d-OtGWAvJT.mjs';
|
|
6
|
-
export { bD as createFarmSearchParams, bE as searchParamsToObject } from '../client-plugins.d-
|
|
7
|
-
import { b as FarmViewTransitionMode } from '../spa-router.d-
|
|
8
|
-
export { g as getHashTargetElement, i as isFarmBlockedNavigationURL, d as isFarmExternalNavigationURL } from '../spa-router.d-
|
|
6
|
+
export { bD as createFarmSearchParams, bE as searchParamsToObject } from '../client-plugins.d-Dzc3vOw_.mjs';
|
|
7
|
+
import { b as FarmViewTransitionMode } from '../spa-router.d-CXgvy-7L.mjs';
|
|
8
|
+
export { g as getHashTargetElement, i as isFarmBlockedNavigationURL, d as isFarmExternalNavigationURL } from '../spa-router.d-CXgvy-7L.mjs';
|
|
9
9
|
import '../types.d-euATAbE4.mjs';
|
|
10
10
|
export { g as getFarmIslandValueHeaders, k as keepFarmIslandValues } from '../island-value-protocol.d-fEoc1m8e.mjs';
|
|
11
11
|
export { applyFarmCacheInvalidations } from '../cache.mjs';
|
|
12
|
-
export { r as runFarmNavigationDelegates } from '../navigation-delegate.d-
|
|
12
|
+
export { r as runFarmNavigationDelegates } from '../navigation-delegate.d-ChfinbWB.mjs';
|
|
13
13
|
import 'react';
|
|
14
14
|
import '../island.d-CfGru1MO.mjs';
|
|
15
15
|
import '../route.d-ShmtqqVQ.mjs';
|
|
@@ -46,7 +46,7 @@ import '../image-config.d-ByhQ0TT7.mjs';
|
|
|
46
46
|
import '../config.d-BKIhJtmr.mjs';
|
|
47
47
|
import '../types.d-DQnyD3VD.mjs';
|
|
48
48
|
import '../font.mjs';
|
|
49
|
-
import '../render-plan.d-
|
|
49
|
+
import '../render-plan.d-DaM1NPnm.mjs';
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* What the production client entry needs from `FarmClientPluginManager` in an app with no client
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export { r as restorePagePosition, s as setFarmBasePath, a as setFarmTrailingSlashPreference, b as stripFarmBasePath } from '../base-path.d-m7wvRMnG.js';
|
|
2
2
|
export { i as installChunkErrorRecovery } from '../chunk-recovery.d-lnQFzcQP.js';
|
|
3
|
-
export { h as holdFarmIslandInteractions, r as replayFarmQueuedInteraction, s as scheduleFarmIslandHydration, w as watchFarmIslandTriggers } from '../island-runtime.d-
|
|
3
|
+
export { h as holdFarmIslandInteractions, r as replayFarmQueuedInteraction, s as scheduleFarmIslandHydration, w as watchFarmIslandTriggers } from '../island-runtime.d-D2Mh5eTU.js';
|
|
4
4
|
import { a as FarmClientNavigationSession, b as FarmClientPlugin } from '../lifecycle.d-OtGWAvJT.js';
|
|
5
5
|
export { c as createClientPluginManager } from '../lifecycle.d-OtGWAvJT.js';
|
|
6
|
-
export { bD as createFarmSearchParams, bE as searchParamsToObject } from '../client-plugins.d-
|
|
7
|
-
import { b as FarmViewTransitionMode } from '../spa-router.d-
|
|
8
|
-
export { g as getHashTargetElement, i as isFarmBlockedNavigationURL, d as isFarmExternalNavigationURL } from '../spa-router.d-
|
|
6
|
+
export { bD as createFarmSearchParams, bE as searchParamsToObject } from '../client-plugins.d-Crct3m_r.js';
|
|
7
|
+
import { b as FarmViewTransitionMode } from '../spa-router.d-BXxoU3Cv.js';
|
|
8
|
+
export { g as getHashTargetElement, i as isFarmBlockedNavigationURL, d as isFarmExternalNavigationURL } from '../spa-router.d-BXxoU3Cv.js';
|
|
9
9
|
import '../types.d-euATAbE4.js';
|
|
10
10
|
export { g as getFarmIslandValueHeaders, k as keepFarmIslandValues } from '../island-value-protocol.d-fEoc1m8e.js';
|
|
11
11
|
export { applyFarmCacheInvalidations } from '../cache.js';
|
|
12
|
-
export { r as runFarmNavigationDelegates } from '../navigation-delegate.d-
|
|
12
|
+
export { r as runFarmNavigationDelegates } from '../navigation-delegate.d-fMgELdAe.js';
|
|
13
13
|
import 'react';
|
|
14
14
|
import '../island.d-CfGru1MO.js';
|
|
15
15
|
import '../route.d-Cd4Fi6BA.js';
|
|
@@ -46,7 +46,7 @@ import '../image-config.d-ByhQ0TT7.js';
|
|
|
46
46
|
import '../config.d-BKIhJtmr.js';
|
|
47
47
|
import '../types.d-DQnyD3VD.js';
|
|
48
48
|
import '../font.js';
|
|
49
|
-
import '../render-plan.d-
|
|
49
|
+
import '../render-plan.d-D0FV9lDT.js';
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* What the production client entry needs from `FarmClientPluginManager` in an app with no client
|
|
@@ -177,7 +177,12 @@ function replayInteraction(interaction) {
|
|
|
177
177
|
function replayFarmQueuedInteraction(target, kind) {
|
|
178
178
|
replayInteraction({ target, kind: toReplayKind(kind) });
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
var FARM_ISLANDS_FORM_REF_PREFIX = "$F_REF_";
|
|
181
|
+
function postsServerAction(form, submitter) {
|
|
182
|
+
const named = (element) => !!element?.getAttribute("name")?.startsWith(FARM_ISLANDS_FORM_REF_PREFIX);
|
|
183
|
+
return named(submitter) || Array.from(form.elements).some(named);
|
|
184
|
+
}
|
|
185
|
+
function holdFarmIslandInteractions(island, load) {
|
|
181
186
|
const scope = window;
|
|
182
187
|
const queue = scope.__FARM_PREHYDRATION_CLICK_QUEUE__ ?? (scope.__FARM_PREHYDRATION_CLICK_QUEUE__ = []);
|
|
183
188
|
const pending = (node) => !!node.closest(island) && !node.closest('[data-farm-island-hydrated="true"]');
|
|
@@ -204,11 +209,36 @@ function holdFarmIslandInteractions(island) {
|
|
|
204
209
|
if (event.defaultPrevented || !(form instanceof Element) || form.nodeName !== "FORM") return;
|
|
205
210
|
if (pending(form)) hold(event, form, "submit");
|
|
206
211
|
};
|
|
212
|
+
const heldForms = /* @__PURE__ */ new Set();
|
|
213
|
+
const onServerFormSubmit = (event) => {
|
|
214
|
+
const form = event.target;
|
|
215
|
+
if (!load || event.defaultPrevented || !(form instanceof HTMLFormElement)) return;
|
|
216
|
+
const submitter = event.submitter ?? null;
|
|
217
|
+
if (!postsServerAction(form, submitter)) return;
|
|
218
|
+
event.preventDefault();
|
|
219
|
+
if (heldForms.has(form)) return;
|
|
220
|
+
heldForms.add(form);
|
|
221
|
+
const submit = () => {
|
|
222
|
+
heldForms.delete(form);
|
|
223
|
+
if (!form.isConnected) return;
|
|
224
|
+
const button = submitter;
|
|
225
|
+
form.requestSubmit(button?.isConnected && button.form === form ? button : void 0);
|
|
226
|
+
};
|
|
227
|
+
load().then(submit, (error) => {
|
|
228
|
+
console.error(
|
|
229
|
+
"[Farm.js] The client runtime failed to load, so the form posts without it.",
|
|
230
|
+
error
|
|
231
|
+
);
|
|
232
|
+
submit();
|
|
233
|
+
});
|
|
234
|
+
};
|
|
207
235
|
document.addEventListener("click", onClick, true);
|
|
208
236
|
document.addEventListener("submit", onSubmit, true);
|
|
237
|
+
document.addEventListener("submit", onServerFormSubmit, false);
|
|
209
238
|
return () => {
|
|
210
239
|
document.removeEventListener("click", onClick, true);
|
|
211
240
|
document.removeEventListener("submit", onSubmit, true);
|
|
241
|
+
document.removeEventListener("submit", onServerFormSubmit, false);
|
|
212
242
|
};
|
|
213
243
|
}
|
|
214
244
|
function watchFarmIslandTriggers(scope, island, due) {
|
|
@@ -291,13 +321,6 @@ function scheduleFarmIslandHydration({
|
|
|
291
321
|
}) {
|
|
292
322
|
const resolvedStrategy = strategy ?? "load";
|
|
293
323
|
if (signal?.aborted) return Promise.resolve(void 0);
|
|
294
|
-
if (resolvedStrategy === "load") {
|
|
295
|
-
return Promise.resolve().then(() => signal?.aborted ? void 0 : hydrate()).then((value) => {
|
|
296
|
-
if (signal?.aborted) return void 0;
|
|
297
|
-
finishIslandHydration(container);
|
|
298
|
-
return value;
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
324
|
return new Promise((resolve, reject) => {
|
|
302
325
|
let started = false;
|
|
303
326
|
let cancelled = false;
|
|
@@ -323,7 +346,7 @@ function scheduleFarmIslandHydration({
|
|
|
323
346
|
if (started || cancelled) return;
|
|
324
347
|
started = true;
|
|
325
348
|
cleanupTriggers();
|
|
326
|
-
Promise.resolve().then(hydrate).then(
|
|
349
|
+
Promise.resolve().then(() => cancelled || signal?.aborted ? void 0 : hydrate()).then(
|
|
327
350
|
(value) => {
|
|
328
351
|
cleanup();
|
|
329
352
|
if (cancelled || signal?.aborted) return;
|
|
@@ -346,23 +369,6 @@ function scheduleFarmIslandHydration({
|
|
|
346
369
|
signal.addEventListener("abort", abort, { once: true });
|
|
347
370
|
removeAbortListener = () => signal.removeEventListener("abort", abort);
|
|
348
371
|
}
|
|
349
|
-
if (resolvedStrategy === "idle") {
|
|
350
|
-
triggerCleanups.add(runWhenIdle(start));
|
|
351
|
-
return;
|
|
352
|
-
}
|
|
353
|
-
if (resolvedStrategy === "visible") {
|
|
354
|
-
if (typeof IntersectionObserver !== "function") {
|
|
355
|
-
start();
|
|
356
|
-
return;
|
|
357
|
-
}
|
|
358
|
-
const targets = container.getClientRects().length > 0 ? [container] : Array.from(container.children);
|
|
359
|
-
if (targets.length === 0) {
|
|
360
|
-
start();
|
|
361
|
-
return;
|
|
362
|
-
}
|
|
363
|
-
triggerCleanups.add(observeIslandVisibility(container.ownerDocument, targets, start));
|
|
364
|
-
return;
|
|
365
|
-
}
|
|
366
372
|
const hold = (event, target, kind) => {
|
|
367
373
|
const interaction = { target, kind };
|
|
368
374
|
if (!submitsForm(interaction) || !held.some((item) => item.target === target)) {
|
|
@@ -412,7 +418,27 @@ function scheduleFarmIslandHydration({
|
|
|
412
418
|
listen(type, activationHandlers[type], true);
|
|
413
419
|
}
|
|
414
420
|
listen("farm:island-interaction", activateFromInteraction, false);
|
|
415
|
-
if (hasQueuedTarget(container))
|
|
421
|
+
if (resolvedStrategy === "load" || hasQueuedTarget(container)) {
|
|
422
|
+
start();
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
if (resolvedStrategy === "idle") {
|
|
426
|
+
triggerCleanups.add(runWhenIdle(start));
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
if (resolvedStrategy === "visible") {
|
|
430
|
+
if (typeof IntersectionObserver !== "function") {
|
|
431
|
+
start();
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
const targets = container.getClientRects().length > 0 ? [container] : Array.from(container.children);
|
|
435
|
+
if (targets.length === 0) {
|
|
436
|
+
start();
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
triggerCleanups.add(observeIslandVisibility(container.ownerDocument, targets, start));
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
416
442
|
});
|
|
417
443
|
}
|
|
418
444
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as FarmRequest, G as FarmResponse, I as FarmPluginContext, F as FarmPlugin } from '../client-plugins.d-
|
|
1
|
+
import { E as FarmRequest, G as FarmResponse, I as FarmPluginContext, F as FarmPlugin } from '../client-plugins.d-Dzc3vOw_.mjs';
|
|
2
2
|
import '../lifecycle.d-OtGWAvJT.mjs';
|
|
3
3
|
import '../route.d-ShmtqqVQ.mjs';
|
|
4
4
|
import '../endpoint.d-BXbBpKoh.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as FarmRequest, G as FarmResponse, I as FarmPluginContext, F as FarmPlugin } from '../client-plugins.d-
|
|
1
|
+
import { E as FarmRequest, G as FarmResponse, I as FarmPluginContext, F as FarmPlugin } from '../client-plugins.d-Crct3m_r.js';
|
|
2
2
|
import '../lifecycle.d-OtGWAvJT.js';
|
|
3
3
|
import '../route.d-Cd4Fi6BA.js';
|
|
4
4
|
import '../endpoint.d-Dx_1k6Du.js';
|
|
@@ -5,7 +5,7 @@ var _chunkMF3IA2AWcjs = require('../chunk-MF3IA2AW.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkMZR22RACcjs = require('../chunk-MZR22RAC.cjs');
|
|
9
9
|
require('../chunk-OZC2JPW6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
@@ -21,6 +21,7 @@ require('../chunk-L2GUEYHR.cjs');
|
|
|
21
21
|
require('../chunk-IIHZ2BEE.cjs');
|
|
22
22
|
require('../chunk-LSHX2H5G.cjs');
|
|
23
23
|
require('../chunk-STF6VDYQ.cjs');
|
|
24
|
+
require('../chunk-Z43CIBUR.cjs');
|
|
24
25
|
require('../chunk-EACD6ND7.cjs');
|
|
25
26
|
require('../chunk-BTVDYS4B.cjs');
|
|
26
27
|
require('../chunk-OLKYHTLN.cjs');
|
|
@@ -28,7 +29,7 @@ require('../chunk-6JHZPB52.cjs');
|
|
|
28
29
|
require('../chunk-MNUYXZV7.cjs');
|
|
29
30
|
require('../chunk-52Q4OB4A.cjs');
|
|
30
31
|
require('../chunk-T7UC2ORA.cjs');
|
|
31
|
-
require('../chunk-
|
|
32
|
+
require('../chunk-7KJJ4SBS.cjs');
|
|
32
33
|
require('../chunk-HQKCSJEH.cjs');
|
|
33
34
|
require('../chunk-XRFGOYXG.cjs');
|
|
34
35
|
require('../chunk-3EIPOTZV.cjs');
|
|
@@ -64,6 +65,7 @@ require('../chunk-PLJMEUAN.cjs');
|
|
|
64
65
|
require('../chunk-HA7YRO53.cjs');
|
|
65
66
|
require('../chunk-L6E5BSNU.cjs');
|
|
66
67
|
require('../chunk-PMJSG4JS.cjs');
|
|
68
|
+
require('../chunk-MCSRMEQV.cjs');
|
|
67
69
|
require('../chunk-6FXBJPF5.cjs');
|
|
68
70
|
require('../chunk-NLBHLPEO.cjs');
|
|
69
71
|
require('../chunk-DVJM55D2.cjs');
|
|
@@ -81,7 +83,7 @@ require('../chunk-UZM3PDKK.cjs');
|
|
|
81
83
|
|
|
82
84
|
// src/config-runtime.ts
|
|
83
85
|
function loadFarmMobileRuntime() {
|
|
84
|
-
return import("../runtime-
|
|
86
|
+
return import("../runtime-CQSCRVZ7.cjs");
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
|
|
@@ -97,4 +99,4 @@ function loadFarmMobileRuntime() {
|
|
|
97
99
|
|
|
98
100
|
|
|
99
101
|
|
|
100
|
-
exports.createFarmDesktopContext = _chunkAQLHD6HZcjs.createFarmDesktopContext; exports.getFarmDesktopOutputDirs = _chunkAQLHD6HZcjs.getFarmDesktopOutputDirs; exports.installFarmDesktopSetup = _chunkAQLHD6HZcjs.installFarmDesktopSetup; exports.loadConfig =
|
|
102
|
+
exports.createFarmDesktopContext = _chunkAQLHD6HZcjs.createFarmDesktopContext; exports.getFarmDesktopOutputDirs = _chunkAQLHD6HZcjs.getFarmDesktopOutputDirs; exports.installFarmDesktopSetup = _chunkAQLHD6HZcjs.installFarmDesktopSetup; exports.loadConfig = _chunkMZR22RACcjs.loadConfig; exports.loadFarmMobileRuntime = loadFarmMobileRuntime; exports.loadFarmProductionVite = _chunkMF3IA2AWcjs.loadFarmProductionVite; exports.logger = _chunk7U4XF76Rcjs.logger; exports.resolveConfig = _chunkMZR22RACcjs.resolveConfig; exports.resolveDeployConfig = _chunkMZR22RACcjs.resolveDeployConfig; exports.resolveFarmDesktopBlock = _chunkAQLHD6HZcjs.resolveFarmDesktopBlock; exports.resolveFarmDesktopConfig = _chunkAQLHD6HZcjs.resolveFarmDesktopConfig; exports.setFarmDesktopDevSession = _chunkAQLHD6HZcjs.setFarmDesktopDevSession; exports.validateFarmDesktopConfig = _chunkAQLHD6HZcjs.validateFarmDesktopConfig;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { J as ResolvedFarmConfig, x as FarmUserConfig } from '../client-plugins.d-
|
|
2
|
-
export { bu as FarmDesktopDevSession, bv as FarmDesktopSetupOptions, bw as createFarmDesktopContext, bx as getFarmDesktopOutputDirs, by as installFarmDesktopSetup, K as loadConfig, N as resolveConfig, O as resolveDeployConfig, bz as resolveFarmDesktopBlock, bA as resolveFarmDesktopConfig, bB as setFarmDesktopDevSession, bC as validateFarmDesktopConfig } from '../client-plugins.d-
|
|
1
|
+
import { J as ResolvedFarmConfig, x as FarmUserConfig } from '../client-plugins.d-Dzc3vOw_.mjs';
|
|
2
|
+
export { bu as FarmDesktopDevSession, bv as FarmDesktopSetupOptions, bw as createFarmDesktopContext, bx as getFarmDesktopOutputDirs, by as installFarmDesktopSetup, K as loadConfig, N as resolveConfig, O as resolveDeployConfig, bz as resolveFarmDesktopBlock, bA as resolveFarmDesktopConfig, bB as setFarmDesktopDevSession, bC as validateFarmDesktopConfig } from '../client-plugins.d-Dzc3vOw_.mjs';
|
|
3
3
|
import { P as PlatformRouteFiles } from '../generate-route-types.d-BFOMM8Ef.mjs';
|
|
4
4
|
import { F as FarmMobileOS, i as FarmMobileNativeEngine, g as FarmMobileNativeAuto, o as FarmMobileRouteScreen, p as FarmMobileScreen, e as FarmMobileContext, R as ResolvedFarmMobileConfig, a as FarmMobileAppModules, x as FarmMobileBlockCache, c as FarmMobileBudgets, d as FarmMobileConfigInput, y as FarmMobileContextOptions, h as FarmMobileNativeConfig, j as FarmMobileNativeRouteConfig, k as FarmMobilePageConfig, l as FarmMobilePrefetch, m as FarmMobilePresentation, z as FarmMobileResolveOptions, n as FarmMobileRouteConfig, q as FarmMobileTab, r as FarmMobileUserConfig, A as ResolvedFarmMobileNativeConfig, B as createFarmMobileContext, C as resolveFarmMobileBlock, D as resolveFarmMobileConfig, E as resolveFarmMobileServer, G as validateFarmMobileConfig, H as validateFarmMobilePageConfig } from '../config.d-BKIhJtmr.mjs';
|
|
5
5
|
import { c as FarmMobileTier, d as FarmMobileScreenSource, e as FarmMobileRouteAnalysis, f as FarmMobileScreenDecision, g as FarmMobileAnalyzerStats, b as FarmMobileShellManifest, F as FarmMobileRouteManifest, h as FarmMobileBlocker, i as FarmMobileBlockerRule, j as FarmMobilePageExport, k as FarmMobileRouteManifestOptions, a as FarmMobileRouteRule, l as FarmMobileScreens, m as FarmMobileScreensOptions, n as FarmUiNode, o as createFarmMobileModuleId, p as createFarmMobileRouteManifest, q as createFarmMobileRoutePattern, r as readFarmMobilePageExport, s as resolveFarmMobileScreens } from '../routes.d-BWvpUoYu.mjs';
|
|
6
6
|
import { F as FARM_SHELL_PARAM_SEGMENT, a as FARM_SHELL_RENDER_HEADER, b as FARM_SHELL_ROUTE_HEADER, c as createFarmMobileShellRenderPath } from '../shell-render.d-CG6bPiiA.mjs';
|
|
7
7
|
export { F as FarmProductionViteRuntime, l as loadFarmProductionVite } from '../production-vite.d-BQFAlG7n.mjs';
|
|
8
|
-
export { l as logger } from '../utils.d-
|
|
8
|
+
export { l as logger } from '../utils.d-Cmj-fzds.mjs';
|
|
9
9
|
import '../lifecycle.d-OtGWAvJT.mjs';
|
|
10
10
|
import '../route.d-ShmtqqVQ.mjs';
|
|
11
11
|
import '../endpoint.d-BXbBpKoh.mjs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { J as ResolvedFarmConfig, x as FarmUserConfig } from '../client-plugins.d-
|
|
2
|
-
export { bu as FarmDesktopDevSession, bv as FarmDesktopSetupOptions, bw as createFarmDesktopContext, bx as getFarmDesktopOutputDirs, by as installFarmDesktopSetup, K as loadConfig, N as resolveConfig, O as resolveDeployConfig, bz as resolveFarmDesktopBlock, bA as resolveFarmDesktopConfig, bB as setFarmDesktopDevSession, bC as validateFarmDesktopConfig } from '../client-plugins.d-
|
|
1
|
+
import { J as ResolvedFarmConfig, x as FarmUserConfig } from '../client-plugins.d-Crct3m_r.js';
|
|
2
|
+
export { bu as FarmDesktopDevSession, bv as FarmDesktopSetupOptions, bw as createFarmDesktopContext, bx as getFarmDesktopOutputDirs, by as installFarmDesktopSetup, K as loadConfig, N as resolveConfig, O as resolveDeployConfig, bz as resolveFarmDesktopBlock, bA as resolveFarmDesktopConfig, bB as setFarmDesktopDevSession, bC as validateFarmDesktopConfig } from '../client-plugins.d-Crct3m_r.js';
|
|
3
3
|
import { P as PlatformRouteFiles } from '../generate-route-types.d-C2m8myHb.js';
|
|
4
4
|
import { F as FarmMobileOS, i as FarmMobileNativeEngine, g as FarmMobileNativeAuto, o as FarmMobileRouteScreen, p as FarmMobileScreen, e as FarmMobileContext, R as ResolvedFarmMobileConfig, a as FarmMobileAppModules, x as FarmMobileBlockCache, c as FarmMobileBudgets, d as FarmMobileConfigInput, y as FarmMobileContextOptions, h as FarmMobileNativeConfig, j as FarmMobileNativeRouteConfig, k as FarmMobilePageConfig, l as FarmMobilePrefetch, m as FarmMobilePresentation, z as FarmMobileResolveOptions, n as FarmMobileRouteConfig, q as FarmMobileTab, r as FarmMobileUserConfig, A as ResolvedFarmMobileNativeConfig, B as createFarmMobileContext, C as resolveFarmMobileBlock, D as resolveFarmMobileConfig, E as resolveFarmMobileServer, G as validateFarmMobileConfig, H as validateFarmMobilePageConfig } from '../config.d-BKIhJtmr.js';
|
|
5
5
|
import { c as FarmMobileTier, d as FarmMobileScreenSource, e as FarmMobileRouteAnalysis, f as FarmMobileScreenDecision, g as FarmMobileAnalyzerStats, b as FarmMobileShellManifest, F as FarmMobileRouteManifest, h as FarmMobileBlocker, i as FarmMobileBlockerRule, j as FarmMobilePageExport, k as FarmMobileRouteManifestOptions, a as FarmMobileRouteRule, l as FarmMobileScreens, m as FarmMobileScreensOptions, n as FarmUiNode, o as createFarmMobileModuleId, p as createFarmMobileRouteManifest, q as createFarmMobileRoutePattern, r as readFarmMobilePageExport, s as resolveFarmMobileScreens } from '../routes.d-D7RWvfqL.js';
|
|
6
6
|
import { F as FARM_SHELL_PARAM_SEGMENT, a as FARM_SHELL_RENDER_HEADER, b as FARM_SHELL_ROUTE_HEADER, c as createFarmMobileShellRenderPath } from '../shell-render.d-CG6bPiiA.js';
|
|
7
7
|
export { F as FarmProductionViteRuntime, l as loadFarmProductionVite } from '../production-vite.d-BQFAlG7n.js';
|
|
8
|
-
export { l as logger } from '../utils.d-
|
|
8
|
+
export { l as logger } from '../utils.d-BODwBtkz.js';
|
|
9
9
|
import '../lifecycle.d-OtGWAvJT.js';
|
|
10
10
|
import '../route.d-Cd4Fi6BA.js';
|
|
11
11
|
import '../endpoint.d-Dx_1k6Du.js';
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
loadConfig,
|
|
6
6
|
resolveConfig,
|
|
7
7
|
resolveDeployConfig
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-ALOFMAFA.mjs";
|
|
9
9
|
import "../chunk-VISQDC6W.mjs";
|
|
10
10
|
import {
|
|
11
11
|
createFarmDesktopContext,
|
|
@@ -21,6 +21,7 @@ import "../chunk-5V6HSJFG.mjs";
|
|
|
21
21
|
import "../chunk-YVVY276M.mjs";
|
|
22
22
|
import "../chunk-XR2ZIBQK.mjs";
|
|
23
23
|
import "../chunk-CU5SYTJG.mjs";
|
|
24
|
+
import "../chunk-X2SMVPLH.mjs";
|
|
24
25
|
import "../chunk-NQ3Y6E2T.mjs";
|
|
25
26
|
import "../chunk-SQ5O7I3L.mjs";
|
|
26
27
|
import "../chunk-XGL42MQ7.mjs";
|
|
@@ -28,7 +29,7 @@ import "../chunk-22W4FNTG.mjs";
|
|
|
28
29
|
import "../chunk-RJBUI5AN.mjs";
|
|
29
30
|
import "../chunk-Z3RM3VA2.mjs";
|
|
30
31
|
import "../chunk-HV6CYSMF.mjs";
|
|
31
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-S32PDOLO.mjs";
|
|
32
33
|
import "../chunk-7VJXYB6S.mjs";
|
|
33
34
|
import "../chunk-NLATR3T3.mjs";
|
|
34
35
|
import "../chunk-N33DLJBC.mjs";
|
|
@@ -64,6 +65,7 @@ import "../chunk-EILUVBKS.mjs";
|
|
|
64
65
|
import "../chunk-GYMGK467.mjs";
|
|
65
66
|
import "../chunk-GLVDXRG2.mjs";
|
|
66
67
|
import "../chunk-W6QLRQ3V.mjs";
|
|
68
|
+
import "../chunk-AOIUYHPH.mjs";
|
|
67
69
|
import "../chunk-WCLLPR6H.mjs";
|
|
68
70
|
import "../chunk-IWJONXPF.mjs";
|
|
69
71
|
import "../chunk-4O26BPUY.mjs";
|
|
@@ -81,7 +83,7 @@ import "../chunk-TIZJYHB7.mjs";
|
|
|
81
83
|
|
|
82
84
|
// src/config-runtime.ts
|
|
83
85
|
function loadFarmMobileRuntime() {
|
|
84
|
-
return import("../runtime-
|
|
86
|
+
return import("../runtime-BDPBO65S.mjs");
|
|
85
87
|
}
|
|
86
88
|
export {
|
|
87
89
|
createFarmDesktopContext,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var _chunk33WR5XV5cjs = require('../chunk-33WR5XV5.cjs');
|
|
5
|
+
require('../chunk-XFUPWRKT.cjs');
|
|
6
6
|
require('../chunk-W53Z4WDI.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-IM422XKU.cjs');
|
|
8
8
|
require('../chunk-BTVDYS4B.cjs');
|
|
9
9
|
require('../chunk-OLKYHTLN.cjs');
|
|
10
10
|
require('../chunk-2NOHVIJ3.cjs');
|
|
@@ -16,7 +16,7 @@ require('../chunk-2OF5RPVU.cjs');
|
|
|
16
16
|
require('../chunk-7Q7UB4TL.cjs');
|
|
17
17
|
require('../chunk-JYT7AN37.cjs');
|
|
18
18
|
require('../chunk-PLJMEUAN.cjs');
|
|
19
|
-
require('../chunk-
|
|
19
|
+
require('../chunk-HYL372GW.cjs');
|
|
20
20
|
require('../chunk-L6E5BSNU.cjs');
|
|
21
21
|
require('../chunk-PMJSG4JS.cjs');
|
|
22
22
|
require('../chunk-NLBHLPEO.cjs');
|
|
@@ -30,8 +30,8 @@ require('../chunk-3BIASUGR.cjs');
|
|
|
30
30
|
require('../chunk-UZM3PDKK.cjs');
|
|
31
31
|
|
|
32
32
|
// src/infra-analytics-runtime.ts
|
|
33
|
-
var createFarmInfraAnalyticsPlugin2 = (options) =>
|
|
34
|
-
var createFarmInfraAnalyticsRecorder2 = (options) =>
|
|
33
|
+
var createFarmInfraAnalyticsPlugin2 = (options) => _chunk33WR5XV5cjs.createFarmInfraAnalyticsPlugin.call(void 0, void 0, void 0, options);
|
|
34
|
+
var createFarmInfraAnalyticsRecorder2 = (options) => _chunk33WR5XV5cjs.createFarmInfraAnalyticsRecorder.call(void 0, void 0, void 0, options);
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createFarmInfraAnalyticsPlugin,
|
|
3
3
|
createFarmInfraAnalyticsRecorder
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5D73SKF3.mjs";
|
|
5
|
+
import "../chunk-4FGTNYHE.mjs";
|
|
6
6
|
import "../chunk-HR4N2K4V.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-Q73LRKLP.mjs";
|
|
8
8
|
import "../chunk-SQ5O7I3L.mjs";
|
|
9
9
|
import "../chunk-XGL42MQ7.mjs";
|
|
10
10
|
import "../chunk-YU2MNIIY.mjs";
|
|
@@ -16,7 +16,7 @@ import "../chunk-2I6PUKWJ.mjs";
|
|
|
16
16
|
import "../chunk-YT2ZMLXK.mjs";
|
|
17
17
|
import "../chunk-D2LCAV6L.mjs";
|
|
18
18
|
import "../chunk-EILUVBKS.mjs";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-O7K4HMAQ.mjs";
|
|
20
20
|
import "../chunk-GLVDXRG2.mjs";
|
|
21
21
|
import "../chunk-W6QLRQ3V.mjs";
|
|
22
22
|
import "../chunk-IWJONXPF.mjs";
|