@farm.js/core 0.1.64 → 0.1.66

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.
Files changed (90) hide show
  1. package/dist/{analyzer-Q3QXC6PD.mjs → analyzer-4UFP4HVP.mjs} +3 -3
  2. package/dist/analyzer-H7SIX6BJ.cjs +16 -0
  3. package/dist/{chunk-XVWSDSUM.mjs → chunk-27FPUFWR.mjs} +60 -5
  4. package/dist/{chunk-JCEFKP5M.mjs → chunk-423SSBYQ.mjs} +6 -0
  5. package/dist/{chunk-SLYDIHLW.mjs → chunk-435QJNC2.mjs} +2 -2
  6. package/dist/{chunk-XZLZ6YPP.cjs → chunk-4OSOLDPL.cjs} +118 -50
  7. package/dist/{chunk-MG356ROI.cjs → chunk-4TVPYN32.cjs} +3 -3
  8. package/dist/chunk-672ISQIG.mjs +3704 -0
  9. package/dist/{chunk-NXFA7G3Y.cjs → chunk-752IHQTD.cjs} +4 -4
  10. package/dist/chunk-7ONGIFYX.cjs +3704 -0
  11. package/dist/{chunk-RAH5MT53.mjs → chunk-AZUUKA66.mjs} +153 -42
  12. package/dist/{chunk-O2XFIPNL.cjs → chunk-BIF5MLTH.cjs} +1 -1
  13. package/dist/{chunk-FH45OB37.mjs → chunk-BYRZ5VTH.mjs} +1 -1
  14. package/dist/{chunk-V727H3RI.cjs → chunk-CCAUIBIS.cjs} +6 -0
  15. package/dist/{chunk-DUSHDZQL.cjs → chunk-CHYTADNK.cjs} +15 -13
  16. package/dist/chunk-CJNAUEVC.mjs +34 -0
  17. package/dist/{chunk-S25BQIFW.cjs → chunk-DVKH2RVN.cjs} +2 -2
  18. package/dist/{chunk-FAP7CX7C.cjs → chunk-E4UDLFWR.cjs} +527 -3019
  19. package/dist/{chunk-EFZGB7JC.cjs → chunk-E5UN4OWX.cjs} +1 -0
  20. package/dist/{chunk-WNYRYI4D.mjs → chunk-EMNKZGF4.mjs} +380 -2872
  21. package/dist/{chunk-VVTJTMGQ.cjs → chunk-GL7N5UHF.cjs} +4 -4
  22. package/dist/{chunk-UR25Z5Z6.mjs → chunk-HCGWDRZO.mjs} +1 -1
  23. package/dist/{chunk-EL4364S2.cjs → chunk-HZPKJRYA.cjs} +74 -19
  24. package/dist/{chunk-3EBHJET2.cjs → chunk-IT6WRNGB.cjs} +380 -269
  25. package/dist/{chunk-LQDLEWPO.mjs → chunk-MPIGW42F.mjs} +1 -1
  26. package/dist/{chunk-S7ZW72JH.cjs → chunk-MPJEIHW2.cjs} +2 -2
  27. package/dist/{chunk-53ZCZ46B.cjs → chunk-NHQM2Q4I.cjs} +2 -1
  28. package/dist/{chunk-UYRI6U3P.mjs → chunk-O75GQVUK.mjs} +2 -1
  29. package/dist/{chunk-OYF23QLG.mjs → chunk-OB7VKCUZ.mjs} +38 -33
  30. package/dist/{chunk-JCPSA4X5.cjs → chunk-OP7LHY4Y.cjs} +128 -123
  31. package/dist/{chunk-O7IEMY55.cjs → chunk-RY4ABNPE.cjs} +3 -3
  32. package/dist/{chunk-6NHSGVVA.mjs → chunk-SK7QSNWE.mjs} +1 -1
  33. package/dist/{chunk-NNLFW3P4.mjs → chunk-TKK5QHKZ.mjs} +1 -1
  34. package/dist/{chunk-ZNXTU4YH.mjs → chunk-TM2E623I.mjs} +1 -0
  35. package/dist/{chunk-PAKCHVUS.mjs → chunk-TPA2PV5J.mjs} +3 -35
  36. package/dist/{chunk-6NNYPY5W.mjs → chunk-UBMHQVWN.mjs} +78 -10
  37. package/dist/{chunk-BPNOYILC.cjs → chunk-UVV3I5QA.cjs} +3 -35
  38. package/dist/{chunk-N3Z3PLHC.cjs → chunk-VBCQ5WOI.cjs} +6 -6
  39. package/dist/{chunk-WFNAOWH4.mjs → chunk-WFWFECDW.mjs} +2 -2
  40. package/dist/{chunk-SNFTMSHX.mjs → chunk-WVYRLP5E.mjs} +1 -1
  41. package/dist/{chunk-O4FWNLQK.mjs → chunk-XBSLKXBL.mjs} +10 -8
  42. package/dist/chunk-ZIHWAN55.cjs +34 -0
  43. package/dist/{devtools-WET5NAKO.cjs → devtools-N2JQCMXB.cjs} +5 -4
  44. package/dist/{devtools-MX3FE733.mjs → devtools-NZUVNUP3.mjs} +4 -3
  45. package/dist/docs.cjs +6 -5
  46. package/dist/docs.mjs +5 -4
  47. package/dist/environment/vite.cjs +9 -2
  48. package/dist/environment/vite.d.mts +3 -0
  49. package/dist/environment/vite.d.ts +3 -0
  50. package/dist/environment/vite.mjs +8 -1
  51. package/dist/index.cjs +22 -21
  52. package/dist/index.mjs +21 -20
  53. package/dist/internal/build-runtime.cjs +20 -19
  54. package/dist/internal/build-runtime.mjs +19 -18
  55. package/dist/internal/cli-runtime.cjs +6 -5
  56. package/dist/internal/cli-runtime.mjs +5 -4
  57. package/dist/internal/client-error-overlay.cjs +4 -4
  58. package/dist/internal/client-error-overlay.mjs +1 -1
  59. package/dist/internal/config-runtime.cjs +6 -5
  60. package/dist/internal/config-runtime.mjs +5 -4
  61. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  62. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  63. package/dist/internal/native-server-fns.cjs +5 -5
  64. package/dist/internal/native-server-fns.mjs +4 -4
  65. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  66. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  67. package/dist/internal/production-runtime.cjs +7 -7
  68. package/dist/internal/production-runtime.d.mts +14 -0
  69. package/dist/internal/production-runtime.d.ts +14 -0
  70. package/dist/internal/production-runtime.mjs +6 -6
  71. package/dist/{native-tree-WOX3JMBG.cjs → native-tree-7LPH57Z4.cjs} +3 -3
  72. package/dist/{native-tree-BPEE2LAL.mjs → native-tree-VV6WN3GX.mjs} +2 -2
  73. package/dist/plugin.cjs +11 -10
  74. package/dist/plugin.mjs +10 -9
  75. package/dist/{port-UFUZL6RI.mjs → port-CLL4BC4O.mjs} +1 -1
  76. package/dist/{port-VTLHPZOI.cjs → port-HASZTQGY.cjs} +9 -9
  77. package/dist/{rsc-pipeline-3LNVP2OO.mjs → rsc-pipeline-7PNVJSTR.mjs} +6 -5
  78. package/dist/{rsc-pipeline-G5WELVW3.cjs → rsc-pipeline-Z7QBZOIJ.cjs} +7 -6
  79. package/dist/{runtime-DMEULPE7.cjs → runtime-FKFCUHSK.cjs} +21 -20
  80. package/dist/{runtime-HQJ2LLQL.mjs → runtime-QQHX4BP3.mjs} +12 -11
  81. package/dist/server.cjs +36 -35
  82. package/dist/server.mjs +19 -18
  83. package/dist/version.cjs +2 -2
  84. package/dist/version.mjs +1 -1
  85. package/dist/vite.cjs +14 -12
  86. package/dist/vite.mjs +13 -11
  87. package/package.json +1 -1
  88. package/dist/analyzer-ODLF2Z6O.cjs +0 -16
  89. package/dist/chunk-NK2VWS7P.cjs +0 -954
  90. package/dist/chunk-ZQ5BDNKW.mjs +0 -954
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkXZLZ6YPPcjs = require('./chunk-XZLZ6YPP.cjs');
4
+ var _chunk4OSOLDPLcjs = require('./chunk-4OSOLDPL.cjs');
5
5
 
6
6
 
7
7
  var _chunkPIUTGRDIcjs = require('./chunk-PIUTGRDI.cjs');
@@ -64,7 +64,7 @@ function findFarmNativeScreenFiles(appDirs) {
64
64
  }
65
65
  function collectFarmNativeServerFns(options) {
66
66
  const { root, srcDir } = options;
67
- const aliases = _chunkXZLZ6YPPcjs.readAliases.call(void 0, root, srcDir);
67
+ const aliases = _chunk4OSOLDPLcjs.readAliases.call(void 0, root, srcDir);
68
68
  const seen = /* @__PURE__ */ new Set();
69
69
  const found = /* @__PURE__ */ new Map();
70
70
  const queue = [...options.entries];
@@ -98,7 +98,7 @@ function collectFarmNativeServerFns(options) {
98
98
  }
99
99
  }
100
100
  for (const candidate of _nullishCoalesce(candidates, () => ( []))) {
101
- const resolved = _chunkXZLZ6YPPcjs.resolveFile.call(void 0, candidate);
101
+ const resolved = _chunk4OSOLDPLcjs.resolveFile.call(void 0, candidate);
102
102
  if (resolved && SCRIPT.test(resolved) && !resolved.includes(`${_path2.default.sep}node_modules${_path2.default.sep}`)) {
103
103
  queue.push(resolved);
104
104
  break;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readAliases,
3
3
  resolveFile
4
- } from "./chunk-6NNYPY5W.mjs";
4
+ } from "./chunk-UBMHQVWN.mjs";
5
5
  import {
6
6
  transformFarmServerFns
7
7
  } from "./chunk-GNZIAJGB.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getFarmRouteLabel
3
- } from "./chunk-SLYDIHLW.mjs";
3
+ } from "./chunk-435QJNC2.mjs";
4
4
  import {
5
5
  classifyFarmAgent
6
6
  } from "./chunk-K7OZAVOI.mjs";
@@ -86,6 +86,7 @@ async function finalizeFarmMobileClient(options) {
86
86
  return {
87
87
  webEntry: options.webEntry,
88
88
  entry: manifest.entry,
89
+ ...options.webBoot ? { webBoot: options.webBoot } : {},
89
90
  webOnly: options.webFiles.filter((file) => !mobileFiles.has(file)).sort()
90
91
  };
91
92
  }
@@ -1,17 +1,3 @@
1
- // src/server-components-mode.ts
2
- function resolveFarmServerComponentsMode(value) {
3
- if (value === void 0 || value === null || value === false) return void 0;
4
- if (value === true) return "rsc";
5
- const mode = typeof value === "object" ? value.mode : void 0;
6
- if (mode === "rsc" || mode === "islands") return mode;
7
- throw new TypeError(
8
- 'experimental.serverComponents must be true, false, { mode: "rsc" } or { mode: "islands" }.'
9
- );
10
- }
11
- function isExplicitFarmServerComponentsMode(value) {
12
- return typeof value === "object" && value !== null;
13
- }
14
-
15
1
  // src/dev-indicators.ts
16
2
  function resolveFarmDevIndicatorsConfig(config, mode = "development") {
17
3
  return {
@@ -312,23 +298,9 @@ if (import.meta.hot) {
312
298
  `;
313
299
  }
314
300
 
315
- // src/utils/source-dir.ts
316
- import path from "path";
317
- var FARM_PROJECT_SOURCE_DIRS = /* @__PURE__ */ Symbol.for("farm.projectSourceDirs");
318
- function getProjectSourceDirs() {
319
- const globalState = globalThis;
320
- return globalState[FARM_PROJECT_SOURCE_DIRS] ?? (globalState[FARM_PROJECT_SOURCE_DIRS] = /* @__PURE__ */ new Map());
321
- }
322
- function setFarmProjectSourceDir(root, srcDir) {
323
- getProjectSourceDirs().set(path.resolve(root), srcDir);
324
- }
325
- function getFarmProjectSourceDir(root) {
326
- return getProjectSourceDirs().get(path.resolve(root)) ?? "src";
327
- }
328
-
329
301
  // src/auth-config.ts
330
302
  import { createRequire } from "module";
331
- import path2 from "path";
303
+ import path from "path";
332
304
  import { pathToFileURL } from "url";
333
305
  function resolveFarmAuthConfig(input) {
334
306
  const config = input === true ? {} : input && typeof input === "object" ? input : {};
@@ -358,10 +330,10 @@ function resolveFarmAuthConfig(input) {
358
330
  }
359
331
  async function resolveFarmAuthIntegration(config, options) {
360
332
  if (!config.enabled) return void 0;
361
- const root = path2.resolve(options.root);
333
+ const root = path.resolve(options.root);
362
334
  let modulePath;
363
335
  try {
364
- const resolveFromApp = createRequire(path2.join(root, "package.json"));
336
+ const resolveFromApp = createRequire(path.join(root, "package.json"));
365
337
  modulePath = resolveFromApp.resolve("@farm.js/auth/internal");
366
338
  } catch {
367
339
  throw new Error(
@@ -439,10 +411,6 @@ function validateFarmAuthConfig(config) {
439
411
  }
440
412
 
441
413
  export {
442
- resolveFarmServerComponentsMode,
443
- isExplicitFarmServerComponentsMode,
444
- setFarmProjectSourceDir,
445
- getFarmProjectSourceDir,
446
414
  resolveFarmDevIndicatorsConfig,
447
415
  generateFarmDevIndicatorsClientRuntime,
448
416
  resolveFarmAuthConfig,
@@ -12,17 +12,17 @@ import {
12
12
  parseFarmNativeStylesheet,
13
13
  resolveFarmNativeClasses,
14
14
  resolveFarmNativeInlineStyle
15
- } from "./chunk-JCEFKP5M.mjs";
15
+ } from "./chunk-423SSBYQ.mjs";
16
16
  import {
17
17
  FARM_VERSION
18
- } from "./chunk-LQDLEWPO.mjs";
18
+ } from "./chunk-MPIGW42F.mjs";
19
19
 
20
20
  // src/mobile/analyzer.ts
21
21
  import { createHash } from "crypto";
22
22
  import { existsSync, readFileSync, statSync } from "fs";
23
23
  import { mkdir, readFile, writeFile } from "fs/promises";
24
24
  import * as path from "path";
25
- var ANALYZER_VERSION = `6:${FARM_VERSION}`;
25
+ var ANALYZER_VERSION = `7:${FARM_VERSION}`;
26
26
  var INTRINSIC_KINDS = {};
27
27
  for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
28
28
  INTRINSIC_KINDS[tag] = "View";
@@ -41,6 +41,8 @@ Object.assign(INTRINSIC_KINDS, {
41
41
  ul: "List",
42
42
  ol: "List"
43
43
  });
44
+ var TABLE_TAGS = new Set("table caption thead tbody tfoot tr th td colgroup col".split(" "));
45
+ var TABLE_STYLE_PROPERTIES = /* @__PURE__ */ new Set(["tableLayout", "borderCollapse"]);
44
46
  var INPUT_TYPES = /* @__PURE__ */ new Set(["text", "email", "password", "number", "search", "tel", "url"]);
45
47
  var MAPPED_EVENTS = {
46
48
  View: /* @__PURE__ */ new Set(["onClick"]),
@@ -188,7 +190,7 @@ var COLOR = "(?:inherit|current|transparent|black|white|(?:slate|gray|zinc|neutr
188
190
  var SPACE = "(?:\\d+(?:\\.5)?|px|auto)";
189
191
  var SIZE = "(?:\\d+(?:\\.5)?|px|auto|full|\\d+/\\d+|min|max|fit)";
190
192
  var PORTABLE_CLASSES = [
191
- /^(?:flex|flex-row|flex-col|flex-row-reverse|flex-col-reverse|flex-wrap|flex-nowrap|flex-wrap-reverse|flex-1|flex-auto|flex-initial|flex-none|grow|grow-0|shrink|shrink-0|hidden|relative|absolute|overflow-hidden|overflow-visible|italic|not-italic|underline|line-through|no-underline|uppercase|lowercase|capitalize|normal-case|text-left|text-center|text-right|text-justify)$/,
193
+ /^(?:flex|flex-row|flex-col|flex-row-reverse|flex-col-reverse|flex-wrap|flex-nowrap|flex-wrap-reverse|flex-1|flex-auto|flex-initial|flex-none|grow|grow-0|shrink|shrink-0|hidden|relative|absolute|overflow-hidden|overflow-visible|italic|not-italic|underline|line-through|no-underline|uppercase|lowercase|capitalize|normal-case|text-left|text-center|text-right|text-justify|table-auto|table-fixed|border-collapse)$/,
192
194
  /^(?:items|justify|self|content)-(?:start|end|center|between|around|evenly|stretch|baseline|auto)$/,
193
195
  new RegExp(
194
196
  `^-?(?:gap|gap-x|gap-y|p|px|py|pt|pr|pb|pl|ps|pe|m|mx|my|mt|mr|mb|ml|ms|me)-${SPACE}$`
@@ -219,7 +221,7 @@ var BLOCKING_CLASSES = [
219
221
  ],
220
222
  [/^(?:space-[xy]-.+|divide-.+)$/, "needs child selectors"],
221
223
  [
222
- /^(?:block|inline|inline-block|inline-flex|table.*|contents|flow-root|list-item)$/,
224
+ /^(?:block|inline|inline-block|inline-flex|table(?!-(?:auto|fixed)$).*|contents|flow-root|list-item)$/,
223
225
  "sets a display mode other than flex"
224
226
  ],
225
227
  [
@@ -345,6 +347,19 @@ function analyzeSource(file, source, parseSync, lang = scriptLang(file)) {
345
347
  };
346
348
  const needsDevice = (node, message) => block(node, "client-logic", message, "native");
347
349
  let formDepth = 0;
350
+ const serverFunctions = /* @__PURE__ */ new Set();
351
+ const serverActionReference = (expression) => {
352
+ if (expression?.type === "Identifier") {
353
+ if (serverFunctions.has(expression.name)) return {};
354
+ const binding = imported.get(expression.name);
355
+ return binding ? { source: binding.source } : void 0;
356
+ }
357
+ if (expression?.type === "MemberExpression" && expression.object.type === "Identifier") {
358
+ const binding = imported.get(expression.object.name);
359
+ return binding?.name === "*" ? { source: binding.source } : void 0;
360
+ }
361
+ return void 0;
362
+ };
348
363
  const result = parseSync(file, source, { lang });
349
364
  if (result.errors.length > 0) {
350
365
  const error = result.errors[0];
@@ -354,6 +369,28 @@ function analyzeSource(file, source, parseSync, lang = scriptLang(file)) {
354
369
  }
355
370
  const program = result.program;
356
371
  const wins = /* @__PURE__ */ new Set();
372
+ const usesServer = (body) => body?.type === "BlockStatement" && body.body.some(
373
+ (statement) => statement.type === "ExpressionStatement" && statement.directive === "use server"
374
+ );
375
+ const findServerFunctions = (node) => {
376
+ if (!node || typeof node !== "object") return;
377
+ if (Array.isArray(node)) {
378
+ for (const child of node) findServerFunctions(child);
379
+ return;
380
+ }
381
+ const current = node;
382
+ if (current.type === "FunctionDeclaration" && current.id && usesServer(current.body)) {
383
+ serverFunctions.add(current.id.name);
384
+ } else if (current.type === "VariableDeclarator" && current.id?.type === "Identifier" && (current.init?.type === "ArrowFunctionExpression" || current.init?.type === "FunctionExpression") && usesServer(current.init.body)) {
385
+ serverFunctions.add(current.id.name);
386
+ }
387
+ for (const [key, value] of Object.entries(current)) {
388
+ if (key !== "type" && key !== "start" && key !== "end" && value && typeof value === "object") {
389
+ findServerFunctions(value);
390
+ }
391
+ }
392
+ };
393
+ findServerFunctions(program);
357
394
  const imported = /* @__PURE__ */ new Map();
358
395
  const topLevel = /* @__PURE__ */ new Set();
359
396
  const declared = /* @__PURE__ */ new Set();
@@ -432,7 +469,9 @@ function analyzeSource(file, source, parseSync, lang = scriptLang(file)) {
432
469
  if (isIntrinsic) {
433
470
  kind = INTRINSIC_KINDS[tag];
434
471
  if (!facts.tags.includes(tag)) facts.tags.push(tag);
435
- if (!kind) block(opening, "unmapped-element", `<${tag}> has no native mapping`);
472
+ if (!kind && TABLE_TAGS.has(tag)) {
473
+ block(opening, "unmapped-element", `<${tag}> has no React Native port`, "react-native");
474
+ } else if (!kind) block(opening, "unmapped-element", `<${tag}> has no native mapping`);
436
475
  } else if (opening.name.type === "JSXNamespacedName") {
437
476
  block(opening, "unmapped-element", `<${tag}> has no native mapping`);
438
477
  } else {
@@ -500,7 +539,16 @@ function analyzeSource(file, source, parseSync, lang = scriptLang(file)) {
500
539
  }
501
540
  if ((name === "action" || name === "formAction") && isIntrinsic) {
502
541
  if (staticString(value) === void 0) {
503
- block(attribute, "form-action", `${name} on <${tag}>`);
542
+ const reference = serverActionReference(
543
+ value?.type === "JSXExpressionContainer" ? value.expression : void 0
544
+ );
545
+ if (reference) {
546
+ (facts.formActions ?? (facts.formActions = [])).push({
547
+ ...reference.source !== void 0 ? { source: reference.source } : {},
548
+ ...locate(starts, attribute.start),
549
+ message: `${name} on <${tag}>`
550
+ });
551
+ } else block(attribute, "form-action", `${name} on <${tag}>`);
504
552
  }
505
553
  submits = true;
506
554
  continue;
@@ -545,6 +593,10 @@ function analyzeSource(file, source, parseSync, lang = scriptLang(file)) {
545
593
  continue;
546
594
  }
547
595
  const key = property.key.name ?? property.key.value;
596
+ if (TABLE_STYLE_PROPERTIES.has(key)) {
597
+ block(property, "style", `style.${key} has no React Native port`, "react-native");
598
+ continue;
599
+ }
548
600
  if (!STYLE_PROPERTIES.has(key)) {
549
601
  block(property, "style", `style.${key} has no native mapping`);
550
602
  continue;
@@ -1000,12 +1052,15 @@ function analyzeComponentSource(file, source, parseSync) {
1000
1052
  const kind = INTRINSIC_KINDS[tag];
1001
1053
  if (!facts.tags.includes(tag)) facts.tags.push(tag);
1002
1054
  facts.elements.total += 1;
1003
- if (!kind) {
1055
+ if (kind) {
1056
+ facts.elements.mapped += 1;
1057
+ facts.elements.byKind[kind] = (facts.elements.byKind[kind] ?? 0) + 1;
1058
+ } else if (TABLE_TAGS.has(tag)) {
1059
+ block(at, "unmapped-element", `<${tag}> has no React Native port`, "react-native");
1060
+ } else {
1004
1061
  block(at, "unmapped-element", `<${tag}> has no native mapping`);
1005
1062
  continue;
1006
1063
  }
1007
- facts.elements.mapped += 1;
1008
- facts.elements.byKind[kind] = (facts.elements.byKind[kind] ?? 0) + 1;
1009
1064
  const value = (attr) => attributes.find((attribute) => attribute.name.toLowerCase() === attr);
1010
1065
  const boundAttribute = (attr) => attributes.find(
1011
1066
  (attribute) => attribute.dynamic && (attribute.name === `:${attr}` || attribute.name === `v-bind:${attr}` || attribute.name === attr) || attr === "class" && attribute.name.startsWith("class:")
@@ -1420,6 +1475,19 @@ async function analyzeFarmMobileRoutes(options) {
1420
1475
  }
1421
1476
  if (moduleFacts.serverBoundary && !entry) return;
1422
1477
  for (const blocker of moduleFacts.blockers) add({ file: label, ...blocker });
1478
+ for (const action of moduleFacts.formActions ?? []) {
1479
+ const target = action.source === void 0 ? void 0 : (resolved.get(file) ?? []).find((entry2) => entry2.fact.source === action.source)?.file;
1480
+ const server = options.serverComponents === true && (action.source === void 0 || target !== void 0 && settled.get(target)?.serverBoundary === true);
1481
+ if (!server) {
1482
+ add({
1483
+ file: label,
1484
+ line: action.line,
1485
+ column: action.column,
1486
+ rule: "form-action",
1487
+ message: action.message
1488
+ });
1489
+ }
1490
+ }
1423
1491
  if (!layout) {
1424
1492
  for (const appClass of moduleFacts.appClasses)
1425
1493
  appClasses.push({ file: label, ...appClass });
@@ -1,18 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/server-components-mode.ts
2
- function resolveFarmServerComponentsMode(value) {
3
- if (value === void 0 || value === null || value === false) return void 0;
4
- if (value === true) return "rsc";
5
- const mode = typeof value === "object" ? value.mode : void 0;
6
- if (mode === "rsc" || mode === "islands") return mode;
7
- throw new TypeError(
8
- 'experimental.serverComponents must be true, false, { mode: "rsc" } or { mode: "islands" }.'
9
- );
10
- }
11
- function isExplicitFarmServerComponentsMode(value) {
12
- return typeof value === "object" && value !== null;
13
- }
14
-
15
- // src/dev-indicators.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/dev-indicators.ts
16
2
  function resolveFarmDevIndicatorsConfig(config, mode = "development") {
17
3
  return {
18
4
  buildActivity: mode === "development" && (_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.buildActivity]), () => ( true))),
@@ -312,23 +298,9 @@ if (import.meta.hot) {
312
298
  `;
313
299
  }
314
300
 
315
- // src/utils/source-dir.ts
316
- var _path = require('path'); var _path2 = _interopRequireDefault(_path);
317
- var FARM_PROJECT_SOURCE_DIRS = /* @__PURE__ */ Symbol.for("farm.projectSourceDirs");
318
- function getProjectSourceDirs() {
319
- const globalState = globalThis;
320
- return _nullishCoalesce(globalState[FARM_PROJECT_SOURCE_DIRS], () => ( (globalState[FARM_PROJECT_SOURCE_DIRS] = /* @__PURE__ */ new Map())));
321
- }
322
- function setFarmProjectSourceDir(root, srcDir) {
323
- getProjectSourceDirs().set(_path2.default.resolve(root), srcDir);
324
- }
325
- function getFarmProjectSourceDir(root) {
326
- return _nullishCoalesce(getProjectSourceDirs().get(_path2.default.resolve(root)), () => ( "src"));
327
- }
328
-
329
301
  // src/auth-config.ts
330
302
  var _module = require('module');
331
-
303
+ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
332
304
  var _url = require('url');
333
305
  function resolveFarmAuthConfig(input) {
334
306
  const config = input === true ? {} : input && typeof input === "object" ? input : {};
@@ -443,8 +415,4 @@ function validateFarmAuthConfig(config) {
443
415
 
444
416
 
445
417
 
446
-
447
-
448
-
449
-
450
- exports.resolveFarmServerComponentsMode = resolveFarmServerComponentsMode; exports.isExplicitFarmServerComponentsMode = isExplicitFarmServerComponentsMode; exports.setFarmProjectSourceDir = setFarmProjectSourceDir; exports.getFarmProjectSourceDir = getFarmProjectSourceDir; exports.resolveFarmDevIndicatorsConfig = resolveFarmDevIndicatorsConfig; exports.generateFarmDevIndicatorsClientRuntime = generateFarmDevIndicatorsClientRuntime; exports.resolveFarmAuthConfig = resolveFarmAuthConfig; exports.resolveFarmAuthIntegration = resolveFarmAuthIntegration;
418
+ exports.resolveFarmDevIndicatorsConfig = resolveFarmDevIndicatorsConfig; exports.generateFarmDevIndicatorsClientRuntime = generateFarmDevIndicatorsClientRuntime; exports.resolveFarmAuthConfig = resolveFarmAuthConfig; exports.resolveFarmAuthIntegration = resolveFarmAuthIntegration;
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkVVTJTMGQcjs = require('./chunk-VVTJTMGQ.cjs');
4
+ var _chunkGL7N5UHFcjs = require('./chunk-GL7N5UHF.cjs');
5
5
 
6
6
 
7
7
  var _chunkXVSBALOYcjs = require('./chunk-XVSBALOY.cjs');
8
8
 
9
9
 
10
- var _chunkDUSHDZQLcjs = require('./chunk-DUSHDZQL.cjs');
10
+ var _chunkCHYTADNKcjs = require('./chunk-CHYTADNK.cjs');
11
11
 
12
12
 
13
13
 
@@ -54,7 +54,7 @@ function pickImportTarget(entry) {
54
54
  return void 0;
55
55
  }
56
56
  async function importFromApp(root, packageName, subpath = ".") {
57
- const packageDir = _chunkVVTJTMGQcjs.findFarmAppPackageDir.call(void 0, root, packageName);
57
+ const packageDir = _chunkGL7N5UHFcjs.findFarmAppPackageDir.call(void 0, root, packageName);
58
58
  if (!packageDir) return void 0;
59
59
  const manifest = JSON.parse(_fs.readFileSync.call(void 0, _path2.default.join(packageDir, "package.json"), "utf8"));
60
60
  const exportsMap = manifest.exports;
@@ -81,9 +81,9 @@ async function createFarmRscViteConfig(userConfig, options) {
81
81
  importFromApp(root, "@vitejs/plugin-rsc"),
82
82
  importFromApp(root, "@vitejs/plugin-react")
83
83
  ]);
84
- if (!pluginRsc || !viteRsc || !_chunkVVTJTMGQcjs.findFarmAppPackageDir.call(void 0, root, "react-server-dom-webpack")) {
84
+ if (!pluginRsc || !viteRsc || !_chunkGL7N5UHFcjs.findFarmAppPackageDir.call(void 0, root, "react-server-dom-webpack")) {
85
85
  throw new Error(
86
- `[Farm.js] experimental.serverComponents runs on @farm.js/plugin and the official @vitejs/plugin-rsc. Install them: ${_chunkVVTJTMGQcjs.FARM_RSC_INSTALL_HINT}`
86
+ `[Farm.js] experimental.serverComponents runs on @farm.js/plugin and the official @vitejs/plugin-rsc. Install them: ${_chunkGL7N5UHFcjs.FARM_RSC_INSTALL_HINT}`
87
87
  );
88
88
  }
89
89
  const { plugins: vitePlugins = [], ...viteOptions } = _nullishCoalesce(userConfig.vite, () => ( {}));
@@ -114,7 +114,7 @@ async function createFarmRscViteConfig(userConfig, options) {
114
114
  server: { environmentName: "rsc" },
115
115
  config: {
116
116
  preset: options.preset,
117
- outputDir: options.outputDir && _chunkDUSHDZQLcjs.resolveDeployOutputPath.call(void 0, root, options.outputDir)
117
+ outputDir: options.outputDir && _chunkCHYTADNKcjs.resolveDeployOutputPath.call(void 0, root, options.outputDir)
118
118
  }
119
119
  })
120
120
  ]
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  FARM_RSC_INSTALL_HINT,
3
3
  findFarmAppPackageDir
4
- } from "./chunk-UR25Z5Z6.mjs";
4
+ } from "./chunk-HCGWDRZO.mjs";
5
5
  import {
6
6
  createFarmDevLoopbackPlugin
7
7
  } from "./chunk-FN5UEC7I.mjs";
8
8
  import {
9
9
  resolveDeployOutputPath
10
- } from "./chunk-O4FWNLQK.mjs";
10
+ } from "./chunk-XBSLKXBL.mjs";
11
11
  import {
12
12
  farmDesktopDevGuardPlugin,
13
13
  loadFarmReactPlugin
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FARM_VERSION
3
- } from "./chunk-LQDLEWPO.mjs";
3
+ } from "./chunk-MPIGW42F.mjs";
4
4
 
5
5
  // src/deployment-environment.ts
6
6
  function isFarmProductionDeploymentEnvironment(env = process.env) {
@@ -1,10 +1,8 @@
1
1
  import {
2
2
  resolveFarmAuthConfig,
3
3
  resolveFarmAuthIntegration,
4
- resolveFarmDevIndicatorsConfig,
5
- resolveFarmServerComponentsMode,
6
- setFarmProjectSourceDir
7
- } from "./chunk-PAKCHVUS.mjs";
4
+ resolveFarmDevIndicatorsConfig
5
+ } from "./chunk-TPA2PV5J.mjs";
8
6
  import {
9
7
  normalizeRouteRules,
10
8
  routeRulesToHeaders,
@@ -16,10 +14,6 @@ import {
16
14
  import {
17
15
  resolveFarmDevtoolsConfig
18
16
  } from "./chunk-CU5SYTJG.mjs";
19
- import {
20
- isReactRenderer,
21
- resolveFarmRenderer
22
- } from "./chunk-ES2LD2YD.mjs";
23
17
  import {
24
18
  resolveFarmAgentCrawlers,
25
19
  resolveFarmAgentSitemap,
@@ -37,10 +31,18 @@ import {
37
31
  import {
38
32
  resolveFarmLlmsTxtConfig
39
33
  } from "./chunk-KL7SHLQB.mjs";
34
+ import {
35
+ resolveFarmServerComponentsMode,
36
+ setFarmProjectSourceDir
37
+ } from "./chunk-CJNAUEVC.mjs";
40
38
  import {
41
39
  loadFarmConfigFile,
42
40
  resolveFarmLayers
43
41
  } from "./chunk-52Y3C3HG.mjs";
42
+ import {
43
+ isReactRenderer,
44
+ resolveFarmRenderer
45
+ } from "./chunk-ES2LD2YD.mjs";
44
46
  import {
45
47
  resolveFarmImageConfig
46
48
  } from "./chunk-2NGZFOKG.mjs";
@@ -0,0 +1,34 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/server-components-mode.ts
2
+ function resolveFarmServerComponentsMode(value) {
3
+ if (value === void 0 || value === null || value === false) return void 0;
4
+ if (value === true) return "rsc";
5
+ const mode = typeof value === "object" ? value.mode : void 0;
6
+ if (mode === "rsc" || mode === "islands") return mode;
7
+ throw new TypeError(
8
+ 'experimental.serverComponents must be true, false, { mode: "rsc" } or { mode: "islands" }.'
9
+ );
10
+ }
11
+ function isExplicitFarmServerComponentsMode(value) {
12
+ return typeof value === "object" && value !== null;
13
+ }
14
+
15
+ // src/utils/source-dir.ts
16
+ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
17
+ var FARM_PROJECT_SOURCE_DIRS = /* @__PURE__ */ Symbol.for("farm.projectSourceDirs");
18
+ function getProjectSourceDirs() {
19
+ const globalState = globalThis;
20
+ return _nullishCoalesce(globalState[FARM_PROJECT_SOURCE_DIRS], () => ( (globalState[FARM_PROJECT_SOURCE_DIRS] = /* @__PURE__ */ new Map())));
21
+ }
22
+ function setFarmProjectSourceDir(root, srcDir) {
23
+ getProjectSourceDirs().set(_path2.default.resolve(root), srcDir);
24
+ }
25
+ function getFarmProjectSourceDir(root) {
26
+ return _nullishCoalesce(getProjectSourceDirs().get(_path2.default.resolve(root)), () => ( "src"));
27
+ }
28
+
29
+
30
+
31
+
32
+
33
+
34
+ exports.resolveFarmServerComponentsMode = resolveFarmServerComponentsMode; exports.isExplicitFarmServerComponentsMode = isExplicitFarmServerComponentsMode; exports.setFarmProjectSourceDir = setFarmProjectSourceDir; exports.getFarmProjectSourceDir = getFarmProjectSourceDir;
@@ -1,17 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkDUSHDZQLcjs = require('./chunk-DUSHDZQL.cjs');
3
+ var _chunkCHYTADNKcjs = require('./chunk-CHYTADNK.cjs');
4
4
  require('./chunk-OZC2JPW6.cjs');
5
- require('./chunk-BPNOYILC.cjs');
5
+ require('./chunk-UVV3I5QA.cjs');
6
6
  require('./chunk-V56632LA.cjs');
7
7
  require('./chunk-LSHX2H5G.cjs');
8
8
  require('./chunk-STF6VDYQ.cjs');
9
- require('./chunk-RD623KW4.cjs');
10
9
  require('./chunk-O6L3YYPM.cjs');
11
10
  require('./chunk-6JHZPB52.cjs');
12
11
  require('./chunk-BTVDYS4B.cjs');
13
12
  require('./chunk-FJWN7RV4.cjs');
13
+ require('./chunk-ZIHWAN55.cjs');
14
14
  require('./chunk-5Y2P454O.cjs');
15
+ require('./chunk-RD623KW4.cjs');
15
16
  require('./chunk-HEPJIKKQ.cjs');
16
17
  require('./chunk-3EIPOTZV.cjs');
17
18
  require('./chunk-2HW5LWAH.cjs');
@@ -347,7 +348,7 @@ async function createFarmDevtoolsSnapshot(input) {
347
348
  }));
348
349
  const deploymentPreset = String(_optionalChain([config, 'access', _13 => _13.deploy, 'optionalAccess', _14 => _14.preset]) || config.preset || "node-server");
349
350
  const deploymentTarget = String(
350
- _optionalChain([config, 'access', _15 => _15.deploy, 'optionalAccess', _16 => _16.target]) || _chunkDUSHDZQLcjs.getDeployTargetForPreset.call(void 0, deploymentPreset) || "node"
351
+ _optionalChain([config, 'access', _15 => _15.deploy, 'optionalAccess', _16 => _16.target]) || _chunkCHYTADNKcjs.getDeployTargetForPreset.call(void 0, deploymentPreset) || "node"
351
352
  );
352
353
  const env = input.env || process.env;
353
354
  if (pageRoutes.length === 0) {
@@ -1,17 +1,18 @@
1
1
  import {
2
2
  getDeployTargetForPreset
3
- } from "./chunk-O4FWNLQK.mjs";
3
+ } from "./chunk-XBSLKXBL.mjs";
4
4
  import "./chunk-VISQDC6W.mjs";
5
- import "./chunk-PAKCHVUS.mjs";
5
+ import "./chunk-TPA2PV5J.mjs";
6
6
  import "./chunk-X3XUZWRB.mjs";
7
7
  import "./chunk-XR2ZIBQK.mjs";
8
8
  import "./chunk-CU5SYTJG.mjs";
9
- import "./chunk-ES2LD2YD.mjs";
10
9
  import "./chunk-VQ4NWOWO.mjs";
11
10
  import "./chunk-22W4FNTG.mjs";
12
11
  import "./chunk-SQ5O7I3L.mjs";
13
12
  import "./chunk-KL7SHLQB.mjs";
13
+ import "./chunk-CJNAUEVC.mjs";
14
14
  import "./chunk-52Y3C3HG.mjs";
15
+ import "./chunk-ES2LD2YD.mjs";
15
16
  import "./chunk-2NGZFOKG.mjs";
16
17
  import "./chunk-N33DLJBC.mjs";
17
18
  import "./chunk-UIJOLBUL.mjs";
package/dist/docs.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkS25BQIFWcjs = require('./chunk-S25BQIFW.cjs');
8
+ var _chunkDVKH2RVNcjs = require('./chunk-DVKH2RVN.cjs');
9
9
 
10
10
 
11
11
 
@@ -18,20 +18,21 @@ var _chunkWMTBBQHYcjs = require('./chunk-WMTBBQHY.cjs');
18
18
  require('./chunk-DZZHTMWM.cjs');
19
19
  require('./chunk-OOJBBHYW.cjs');
20
20
  require('./chunk-V3UOEWCB.cjs');
21
- require('./chunk-DUSHDZQL.cjs');
21
+ require('./chunk-CHYTADNK.cjs');
22
22
  require('./chunk-OZC2JPW6.cjs');
23
23
  require('./chunk-SM2SYWAR.cjs');
24
24
  require('./chunk-ERMUL73L.cjs');
25
- require('./chunk-BPNOYILC.cjs');
25
+ require('./chunk-UVV3I5QA.cjs');
26
26
  require('./chunk-V56632LA.cjs');
27
27
  require('./chunk-LSHX2H5G.cjs');
28
28
  require('./chunk-STF6VDYQ.cjs');
29
- require('./chunk-RD623KW4.cjs');
30
29
  require('./chunk-O6L3YYPM.cjs');
31
30
  require('./chunk-6JHZPB52.cjs');
32
31
  require('./chunk-BTVDYS4B.cjs');
33
32
  require('./chunk-FJWN7RV4.cjs');
33
+ require('./chunk-ZIHWAN55.cjs');
34
34
  require('./chunk-5Y2P454O.cjs');
35
+ require('./chunk-RD623KW4.cjs');
35
36
  require('./chunk-HEPJIKKQ.cjs');
36
37
  require('./chunk-3EIPOTZV.cjs');
37
38
  require('./chunk-2HW5LWAH.cjs');
@@ -90,4 +91,4 @@ require('./chunk-BTZ5O6VM.cjs');
90
91
 
91
92
 
92
93
 
93
- exports.createDocsAPI = _chunkS25BQIFWcjs.createDocsAPI; exports.createFarmDocsAPIHandler = _chunkS25BQIFWcjs.createFarmDocsAPIHandler; exports.createFarmDocsAdapterHandler = _chunkS25BQIFWcjs.createFarmDocsAdapterHandler; exports.createFarmDocsHandler = _chunkWMTBBQHYcjs.createFarmDocsHandler; exports.discoverFarmDocsPages = _chunkWMTBBQHYcjs.discoverFarmDocsPages; exports.getFarmDocsConfigModuleRoot = _chunkS25BQIFWcjs.getFarmDocsConfigModuleRoot; exports.getFarmDocsDocumentNavigationMatchers = _chunkWMTBBQHYcjs.getFarmDocsDocumentNavigationMatchers; exports.getFarmDocsRouteTypeEntries = _chunkWMTBBQHYcjs.getFarmDocsRouteTypeEntries; exports.hasFarmDocsRuntimeAdapter = _chunkS25BQIFWcjs.hasFarmDocsRuntimeAdapter; exports.isFarmDocsAPIRequest = _chunkS25BQIFWcjs.isFarmDocsAPIRequest; exports.isFarmDocsRequest = _chunkWMTBBQHYcjs.isFarmDocsRequest; exports.loadFarmDocsPage = _chunkWMTBBQHYcjs.loadFarmDocsPage; exports.resolveFarmDocsContentDir = _chunkWMTBBQHYcjs.resolveFarmDocsContentDir;
94
+ exports.createDocsAPI = _chunkDVKH2RVNcjs.createDocsAPI; exports.createFarmDocsAPIHandler = _chunkDVKH2RVNcjs.createFarmDocsAPIHandler; exports.createFarmDocsAdapterHandler = _chunkDVKH2RVNcjs.createFarmDocsAdapterHandler; exports.createFarmDocsHandler = _chunkWMTBBQHYcjs.createFarmDocsHandler; exports.discoverFarmDocsPages = _chunkWMTBBQHYcjs.discoverFarmDocsPages; exports.getFarmDocsConfigModuleRoot = _chunkDVKH2RVNcjs.getFarmDocsConfigModuleRoot; exports.getFarmDocsDocumentNavigationMatchers = _chunkWMTBBQHYcjs.getFarmDocsDocumentNavigationMatchers; exports.getFarmDocsRouteTypeEntries = _chunkWMTBBQHYcjs.getFarmDocsRouteTypeEntries; exports.hasFarmDocsRuntimeAdapter = _chunkDVKH2RVNcjs.hasFarmDocsRuntimeAdapter; exports.isFarmDocsAPIRequest = _chunkDVKH2RVNcjs.isFarmDocsAPIRequest; exports.isFarmDocsRequest = _chunkWMTBBQHYcjs.isFarmDocsRequest; exports.loadFarmDocsPage = _chunkWMTBBQHYcjs.loadFarmDocsPage; exports.resolveFarmDocsContentDir = _chunkWMTBBQHYcjs.resolveFarmDocsContentDir;
package/dist/docs.mjs CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  getFarmDocsConfigModuleRoot,
6
6
  hasFarmDocsRuntimeAdapter,
7
7
  isFarmDocsAPIRequest
8
- } from "./chunk-FH45OB37.mjs";
8
+ } from "./chunk-BYRZ5VTH.mjs";
9
9
  import {
10
10
  createFarmDocsHandler,
11
11
  discoverFarmDocsPages,
@@ -18,20 +18,21 @@ import {
18
18
  import "./chunk-ALEUMLJN.mjs";
19
19
  import "./chunk-WYL4ODZ4.mjs";
20
20
  import "./chunk-VE3FWJBO.mjs";
21
- import "./chunk-O4FWNLQK.mjs";
21
+ import "./chunk-XBSLKXBL.mjs";
22
22
  import "./chunk-VISQDC6W.mjs";
23
23
  import "./chunk-EJCVG25Z.mjs";
24
24
  import "./chunk-NRNAHZ57.mjs";
25
- import "./chunk-PAKCHVUS.mjs";
25
+ import "./chunk-TPA2PV5J.mjs";
26
26
  import "./chunk-X3XUZWRB.mjs";
27
27
  import "./chunk-XR2ZIBQK.mjs";
28
28
  import "./chunk-CU5SYTJG.mjs";
29
- import "./chunk-ES2LD2YD.mjs";
30
29
  import "./chunk-VQ4NWOWO.mjs";
31
30
  import "./chunk-22W4FNTG.mjs";
32
31
  import "./chunk-SQ5O7I3L.mjs";
33
32
  import "./chunk-KL7SHLQB.mjs";
33
+ import "./chunk-CJNAUEVC.mjs";
34
34
  import "./chunk-52Y3C3HG.mjs";
35
+ import "./chunk-ES2LD2YD.mjs";
35
36
  import "./chunk-2NGZFOKG.mjs";
36
37
  import "./chunk-N33DLJBC.mjs";
37
38
  import "./chunk-UIJOLBUL.mjs";