@farm.js/core 0.1.87 → 0.2.0-beta.0
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/analyzer-B2TRJT3B.cjs +17 -0
- package/dist/{analyzer-W4EB7DHL.mjs → analyzer-PWHYGER6.mjs} +2 -2
- package/dist/api/route-manager.cjs +3 -3
- package/dist/api/route-manager.mjs +2 -2
- package/dist/api.cjs +4 -4
- package/dist/api.mjs +3 -3
- package/dist/{chunk-B7L24VPX.cjs → chunk-22KXTL3I.cjs} +6 -4
- package/dist/{chunk-FULX5RYX.cjs → chunk-2OR5WAD5.cjs} +19 -13
- package/dist/{chunk-WSQ3S3NV.cjs → chunk-3MY6TNNE.cjs} +13 -12
- package/dist/{chunk-A4WWKG2B.cjs → chunk-5ZWXTIGE.cjs} +2 -2
- package/dist/{chunk-HYL372GW.cjs → chunk-6266WH6X.cjs} +1 -1
- package/dist/chunk-65LZRVCZ.mjs +18 -0
- package/dist/{chunk-ZCX2XJPY.cjs → chunk-7LBNWL3L.cjs} +2 -2
- package/dist/{chunk-4FGTNYHE.mjs → chunk-BJHXFEAF.mjs} +2 -2
- package/dist/chunk-BQHIJOZM.cjs +13 -0
- package/dist/{chunk-VCZ4EM5K.cjs → chunk-CFLRUCN7.cjs} +143 -136
- package/dist/{chunk-IM422XKU.cjs → chunk-CNGGEHXY.cjs} +2 -2
- package/dist/{chunk-B5QRNCIE.mjs → chunk-DATICPTO.mjs} +1 -1
- package/dist/{chunk-XMVZXZ32.cjs → chunk-ERV422FO.cjs} +2 -2
- package/dist/{chunk-33WR5XV5.cjs → chunk-FEWCWBOF.cjs} +4 -4
- package/dist/{chunk-FLMALEY2.mjs → chunk-GGD57DJA.mjs} +3 -25
- package/dist/{chunk-HQ2VAJLW.mjs → chunk-GV5D5EM6.mjs} +1 -1
- package/dist/{chunk-6MZSTPD2.mjs → chunk-H47EH24T.mjs} +1 -1
- package/dist/{chunk-OBVBII5K.cjs → chunk-HU4R2PPW.cjs} +2 -2
- package/dist/{chunk-N3VMHPIY.mjs → chunk-HZY63K5C.mjs} +2 -2
- package/dist/{chunk-HFRG2IQS.mjs → chunk-JDO3X7RB.mjs} +5 -4
- package/dist/{chunk-XFUPWRKT.cjs → chunk-JGUMFTZT.cjs} +4 -4
- package/dist/chunk-JIGWHFA5.mjs +32 -0
- package/dist/{chunk-YBXIVQCE.cjs → chunk-JP5TWUK2.cjs} +4 -4
- package/dist/{chunk-UGD53SNO.cjs → chunk-KQ6TYQU7.cjs} +16 -12
- package/dist/{chunk-K5FLQJW5.mjs → chunk-L6ZL35ZJ.mjs} +6 -4
- package/dist/{chunk-Q73LRKLP.mjs → chunk-LUGQUU4S.mjs} +1 -1
- package/dist/{chunk-LIWVPE72.mjs → chunk-M4CNAZMS.mjs} +23 -16
- package/dist/{chunk-QLRI2BX5.mjs → chunk-MM4U2NNI.mjs} +4 -4
- package/dist/{chunk-5D73SKF3.mjs → chunk-MRULVIH3.mjs} +1 -1
- package/dist/{chunk-LBJOHMTB.mjs → chunk-MZPPT5NA.mjs} +1 -1
- package/dist/{chunk-2UYYXSUS.mjs → chunk-N5NRXLCX.mjs} +4 -2
- package/dist/{chunk-U3A46QFD.cjs → chunk-PA3VZNWU.cjs} +6 -6
- package/dist/{chunk-2PJVEL56.cjs → chunk-PCAEJNQF.cjs} +5 -27
- package/dist/{chunk-TI4BZV6M.cjs → chunk-PQ6DBVJ2.cjs} +53 -53
- package/dist/chunk-PTAGDZ7I.mjs +13 -0
- package/dist/{chunk-3AV4DCXY.mjs → chunk-PWTBXYJY.mjs} +12 -6
- package/dist/{chunk-PO5MZIWK.mjs → chunk-QBXS4TNG.mjs} +6 -2
- package/dist/chunk-QZUCVJZJ.cjs +18 -0
- package/dist/{chunk-EZYNIADW.mjs → chunk-SCOKBXHS.mjs} +45 -29
- package/dist/{chunk-CXHVRHM2.cjs → chunk-SG5RFGV6.cjs} +2 -2
- package/dist/{chunk-VCI776NG.cjs → chunk-SUACCCZG.cjs} +12 -10
- package/dist/{chunk-CN2JOTRO.cjs → chunk-THGSPDFD.cjs} +7 -7
- package/dist/{chunk-SDNYULFS.cjs → chunk-TQFIZRON.cjs} +157 -141
- package/dist/{chunk-7BNVUIGL.cjs → chunk-VMGQOP7X.cjs} +2 -2
- package/dist/{chunk-4SJ22WTT.mjs → chunk-W3ZBLFLU.mjs} +1 -1
- package/dist/{chunk-26HESRBL.mjs → chunk-WOTAU3BN.mjs} +1 -1
- package/dist/{chunk-JB4BHRFK.cjs → chunk-WP77JDKI.cjs} +16 -16
- package/dist/{chunk-3F55K4MC.mjs → chunk-WPB6HJC7.mjs} +1 -1
- package/dist/{chunk-VPGEYX5Y.mjs → chunk-WX752VMN.mjs} +2 -2
- package/dist/{chunk-O7K4HMAQ.mjs → chunk-XJJQAFZX.mjs} +1 -1
- package/dist/{chunk-RGYS5OPL.cjs → chunk-XRYLMTYF.cjs} +3 -3
- package/dist/{chunk-QSDIJ45N.mjs → chunk-YCHIR3X6.mjs} +1 -1
- package/dist/chunk-YIGUFJMR.cjs +32 -0
- package/dist/{chunk-A2PPQ5LB.mjs → chunk-ZOD6EYWE.mjs} +1 -1
- package/dist/client.cjs +8 -6
- package/dist/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +7 -5
- package/dist/{devtools-GWJZPWIW.mjs → devtools-2CRVXV7E.mjs} +1 -1
- package/dist/{devtools-GPIKZ5AV.cjs → devtools-RL4AU5KD.cjs} +2 -2
- package/dist/docs.cjs +3 -3
- package/dist/docs.mjs +2 -2
- package/dist/environment/vite.cjs +3 -3
- package/dist/environment/vite.mjs +2 -2
- package/dist/i18n/client.cjs +11 -10
- package/dist/i18n/client.mjs +3 -2
- package/dist/index.cjs +30 -28
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +25 -23
- package/dist/internal/build-runtime.cjs +17 -17
- package/dist/internal/build-runtime.mjs +16 -16
- package/dist/internal/cli-runtime.cjs +5 -5
- package/dist/internal/cli-runtime.mjs +4 -4
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +11 -12
- package/dist/internal/client-runtime.d.mts +6 -4
- package/dist/internal/client-runtime.d.ts +6 -4
- package/dist/internal/client-runtime.mjs +11 -12
- package/dist/internal/config-runtime.cjs +3 -3
- package/dist/internal/config-runtime.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/islands-boot.cjs +20 -15
- package/dist/internal/islands-boot.mjs +6 -1
- 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 +4 -4
- package/dist/internal/production-runtime.mjs +3 -3
- package/dist/internal/spa-router.cjs +4 -3
- package/dist/internal/spa-router.d.mts +1 -1
- package/dist/internal/spa-router.d.ts +1 -1
- package/dist/internal/spa-router.mjs +3 -2
- package/dist/{manager-PX4QN4HK.cjs → manager-D4DZRBRS.cjs} +4 -4
- package/dist/{manager-OMTC5FOJ.mjs → manager-PKPQGBAE.mjs} +3 -3
- package/dist/{navigation-delegate.d-ChfinbWB.d.mts → navigation-delegate.d-B9GjWbov.d.mts} +1 -1
- package/dist/{navigation-delegate.d-fMgELdAe.d.ts → navigation-delegate.d-BbW1_pf_.d.ts} +1 -1
- package/dist/navigation.cjs +6 -5
- package/dist/navigation.d.mts +2 -2
- package/dist/navigation.d.ts +2 -2
- package/dist/navigation.mjs +5 -4
- package/dist/plugin.cjs +12 -12
- package/dist/plugin.mjs +11 -11
- package/dist/query/client.cjs +8 -7
- package/dist/query/client.mjs +3 -2
- package/dist/renderer-client.cjs +14 -13
- package/dist/renderer-client.d.mts +3 -3
- package/dist/renderer-client.d.ts +3 -3
- package/dist/renderer-client.mjs +5 -4
- package/dist/{router.d-D5Mp7bpO.d.ts → router.d-Bm9FNSu3.d.ts} +1 -1
- package/dist/{router.d-DrQ1QDFk.d.mts → router.d-YKVirmj4.d.mts} +1 -1
- package/dist/{rsc-pipeline-TQOSDWOU.cjs → rsc-pipeline-3DYC5ZXW.cjs} +3 -3
- package/dist/{rsc-pipeline-KLMQU3YP.mjs → rsc-pipeline-LRB4ZG6I.mjs} +2 -2
- package/dist/{runtime-BDPBO65S.mjs → runtime-3WJNNAAR.mjs} +2 -2
- package/dist/{runtime-CQSCRVZ7.cjs → runtime-CRFF32H6.cjs} +4 -4
- package/dist/server.cjs +47 -33
- package/dist/server.mjs +27 -13
- package/dist/{spa-router.d-CXgvy-7L.d.mts → spa-router.d-DGmropfK.d.mts} +3 -1
- package/dist/{spa-router.d-BXxoU3Cv.d.ts → spa-router.d-nE1jHNGt.d.ts} +3 -1
- package/dist/{store-core.d-D00BsbnO.d.ts → store-core.d-B5cwOd8g.d.ts} +2 -2
- package/dist/{store-core.d-CDbVAbTn.d.mts → store-core.d-C-gATBwd.d.mts} +2 -2
- package/dist/testing.cjs +2 -2
- package/dist/testing.mjs +2 -2
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +12 -12
- package/dist/vite.mjs +11 -11
- package/package.json +3 -3
- package/dist/analyzer-LLU2Z6I4.cjs +0 -17
- package/dist/chunk-SBDWCDS6.cjs +0 -8
- package/dist/chunk-YX6AFPXC.mjs +0 -8
- /package/dist/{chunk-ALOFMAFA.mjs → chunk-BGEA4K7C.mjs} +0 -0
- /package/dist/{chunk-MZR22RAC.cjs → chunk-IRPXOTEN.cjs} +0 -0
package/dist/plugin.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
farmPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M4CNAZMS.mjs";
|
|
4
4
|
import "./chunk-7V5M43ND.mjs";
|
|
5
5
|
import "./chunk-ZIEO3DQ3.mjs";
|
|
6
6
|
import "./chunk-UD6KTSJS.mjs";
|
|
7
7
|
import "./chunk-RDSHEHBA.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-MM4U2NNI.mjs";
|
|
9
9
|
import "./chunk-MO4UTDQ6.mjs";
|
|
10
10
|
import {
|
|
11
11
|
FARM_NODE_RESPONSE_END_PENDING,
|
|
@@ -15,21 +15,21 @@ import {
|
|
|
15
15
|
} from "./chunk-IVP5Q4BX.mjs";
|
|
16
16
|
import "./chunk-SMUW7UST.mjs";
|
|
17
17
|
import "./chunk-UB7RVEMX.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-W3ZBLFLU.mjs";
|
|
19
19
|
import "./chunk-YNPVG2GG.mjs";
|
|
20
20
|
import "./chunk-4IE3YK7U.mjs";
|
|
21
21
|
import "./chunk-YHHOTKUT.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-GV5D5EM6.mjs";
|
|
23
23
|
import "./chunk-UTUS6JUH.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-MRULVIH3.mjs";
|
|
25
25
|
import "./chunk-EZYKV24V.mjs";
|
|
26
26
|
import "./chunk-PEQJ4UUT.mjs";
|
|
27
27
|
import "./chunk-LLZSYFOM.mjs";
|
|
28
28
|
import "./chunk-UUMKLGUU.mjs";
|
|
29
29
|
import "./chunk-ZXDX7VYZ.mjs";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-BJHXFEAF.mjs";
|
|
31
31
|
import "./chunk-HR4N2K4V.mjs";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-LUGQUU4S.mjs";
|
|
33
33
|
import "./chunk-V7HNYR76.mjs";
|
|
34
34
|
import "./chunk-X3EFRVXY.mjs";
|
|
35
35
|
import "./chunk-2PFGA6PB.mjs";
|
|
@@ -40,7 +40,7 @@ import "./chunk-INKVDO42.mjs";
|
|
|
40
40
|
import "./chunk-K6HIIWUB.mjs";
|
|
41
41
|
import "./chunk-YFTGIHNC.mjs";
|
|
42
42
|
import "./chunk-TCGPBSVY.mjs";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-WOTAU3BN.mjs";
|
|
44
44
|
import "./chunk-D2VAANBS.mjs";
|
|
45
45
|
import "./chunk-ZEWWZJPZ.mjs";
|
|
46
46
|
import "./chunk-S3R4JDRO.mjs";
|
|
@@ -92,10 +92,10 @@ import "./chunk-EDPENAVO.mjs";
|
|
|
92
92
|
import "./chunk-OJO2GOM3.mjs";
|
|
93
93
|
import "./chunk-5PZJ63PK.mjs";
|
|
94
94
|
import "./chunk-IYEY3JWJ.mjs";
|
|
95
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-JDO3X7RB.mjs";
|
|
96
96
|
import "./chunk-NRWEY2CM.mjs";
|
|
97
97
|
import "./chunk-URBP6DLH.mjs";
|
|
98
|
-
import "./chunk-
|
|
98
|
+
import "./chunk-PTAGDZ7I.mjs";
|
|
99
99
|
import "./chunk-O7JEFGUV.mjs";
|
|
100
100
|
import "./chunk-VO55MMBX.mjs";
|
|
101
101
|
import "./chunk-NR63PD3P.mjs";
|
|
@@ -125,7 +125,7 @@ import "./chunk-YT2ZMLXK.mjs";
|
|
|
125
125
|
import "./chunk-D2LCAV6L.mjs";
|
|
126
126
|
import "./chunk-H3ASZDT7.mjs";
|
|
127
127
|
import "./chunk-EILUVBKS.mjs";
|
|
128
|
-
import "./chunk-
|
|
128
|
+
import "./chunk-XJJQAFZX.mjs";
|
|
129
129
|
import "./chunk-QPNVDSFZ.mjs";
|
|
130
130
|
import "./chunk-GYMGK467.mjs";
|
|
131
131
|
import "./chunk-5Y4GYKKH.mjs";
|
package/dist/query/client.cjs
CHANGED
|
@@ -19,9 +19,10 @@ var _chunkSXCL2MINcjs = require('../chunk-SXCL2MIN.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkKQ6TYQU7cjs = require('../chunk-KQ6TYQU7.cjs');
|
|
23
23
|
require('../chunk-JIBEFLQ7.cjs');
|
|
24
|
-
require('../chunk-
|
|
24
|
+
require('../chunk-PCAEJNQF.cjs');
|
|
25
|
+
require('../chunk-YIGUFJMR.cjs');
|
|
25
26
|
require('../chunk-PENBZAHJ.cjs');
|
|
26
27
|
require('../chunk-RWR7SMD7.cjs');
|
|
27
28
|
require('../chunk-Y3DO7BIJ.cjs');
|
|
@@ -216,14 +217,14 @@ var commitURLUpdate = (updates, options, emitUpdate) => {
|
|
|
216
217
|
if (newUrl === currentUrl) return;
|
|
217
218
|
const historyAction = history === "replaceState" ? "replace" : "push";
|
|
218
219
|
if (!shallow) {
|
|
219
|
-
const navigation =
|
|
220
|
+
const navigation = _chunkKQ6TYQU7cjs.navigateFarmURLSearch.call(void 0, historyAction, newUrl, scroll);
|
|
220
221
|
if (navigation) {
|
|
221
222
|
const resync = () => emitter.emitUpdate(getCurrentSearchParams());
|
|
222
223
|
void navigation.then(resync, resync);
|
|
223
224
|
return;
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
|
-
if (!
|
|
227
|
+
if (!_chunkKQ6TYQU7cjs.writeFarmURLSearchHistory.call(void 0, historyAction, newUrl)) {
|
|
227
228
|
const historyState = window.history.state;
|
|
228
229
|
const nextHistoryState = historyState && typeof historyState === "object" && "path" in historyState ? { ...historyState, path: newUrl } : historyState;
|
|
229
230
|
window.history[history](nextHistoryState, "", newUrl);
|
|
@@ -234,7 +235,7 @@ var commitURLUpdate = (updates, options, emitUpdate) => {
|
|
|
234
235
|
}
|
|
235
236
|
emitter.emitUpdate(getCurrentSearchParams());
|
|
236
237
|
}
|
|
237
|
-
if (shallow)
|
|
238
|
+
if (shallow) _chunkKQ6TYQU7cjs.notifyHistoryChange.call(void 0, "url-search");
|
|
238
239
|
if (scroll) {
|
|
239
240
|
window.scrollTo(0, 0);
|
|
240
241
|
}
|
|
@@ -318,7 +319,7 @@ function useQueryState(key, parser, options) {
|
|
|
318
319
|
}
|
|
319
320
|
};
|
|
320
321
|
onPopState();
|
|
321
|
-
const unsubscribeHistory =
|
|
322
|
+
const unsubscribeHistory = _chunkKQ6TYQU7cjs.subscribeHistoryChange.call(void 0, onPopState);
|
|
322
323
|
emitter.on("update", onEmitterUpdate);
|
|
323
324
|
emitter.onKey(key, onKeyUpdate);
|
|
324
325
|
return () => {
|
|
@@ -411,7 +412,7 @@ function useQueryStates(parsers, options = {}) {
|
|
|
411
412
|
applyChange2(searchParams);
|
|
412
413
|
};
|
|
413
414
|
applyChange2(getCurrentSearchParams());
|
|
414
|
-
const unsubscribeHistory =
|
|
415
|
+
const unsubscribeHistory = _chunkKQ6TYQU7cjs.subscribeHistoryChange.call(void 0, onPopState);
|
|
415
416
|
emitter.on("update", onEmitterUpdate);
|
|
416
417
|
const unsubscribeKeys = Object.entries(parsers).map(([key, parser]) => {
|
|
417
418
|
const onKeyUpdate = (payload) => {
|
package/dist/query/client.mjs
CHANGED
|
@@ -19,9 +19,10 @@ import {
|
|
|
19
19
|
notifyHistoryChange,
|
|
20
20
|
subscribeHistoryChange,
|
|
21
21
|
writeFarmURLSearchHistory
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-QBXS4TNG.mjs";
|
|
23
23
|
import "../chunk-RSEAX5MW.mjs";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-GGD57DJA.mjs";
|
|
25
|
+
import "../chunk-JIGWHFA5.mjs";
|
|
25
26
|
import "../chunk-H227LYHT.mjs";
|
|
26
27
|
import "../chunk-SD6JGJOM.mjs";
|
|
27
28
|
import "../chunk-AG27TI6Q.mjs";
|
package/dist/renderer-client.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJP5TWUK2cjs = require('./chunk-JP5TWUK2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk2HTNASSBcjs = require('./chunk-2HTNASSB.cjs');
|
|
@@ -9,7 +9,7 @@ var _chunk2HTNASSBcjs = require('./chunk-2HTNASSB.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk22KXTL3Icjs = require('./chunk-22KXTL3I.cjs');
|
|
13
13
|
require('./chunk-RK3YYUX6.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
@@ -33,14 +33,15 @@ var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkKQ6TYQU7cjs = require('./chunk-KQ6TYQU7.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
var _chunkJIBEFLQ7cjs = require('./chunk-JIBEFLQ7.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkPCAEJNQFcjs = require('./chunk-PCAEJNQF.cjs');
|
|
44
|
+
require('./chunk-YIGUFJMR.cjs');
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
var _chunkI2BYNELAcjs = require('./chunk-I2BYNELA.cjs');
|
|
@@ -84,7 +85,7 @@ require('./chunk-UZM3PDKK.cjs');
|
|
|
84
85
|
function createRendererRouter(options = {}) {
|
|
85
86
|
const basePath = options.basePath === void 0 ? _chunkD22BUQKWcjs.getFarmBasePath.call(void 0, ) : _chunkD22BUQKWcjs.normalizeFarmBasePath.call(void 0, options.basePath);
|
|
86
87
|
const matcher = _optionalChain([options, 'access', _ => _.routes, 'optionalAccess', _2 => _2.length]) ? _chunkO4JYMU5Ncjs.createFarmRouter.call(void 0, [...options.routes]) : null;
|
|
87
|
-
const router =
|
|
88
|
+
const router = _chunkKQ6TYQU7cjs.getRouter.call(void 0, );
|
|
88
89
|
let snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
|
|
89
90
|
const read = () => {
|
|
90
91
|
snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
|
|
@@ -100,7 +101,7 @@ function createRendererRouter(options = {}) {
|
|
|
100
101
|
listener();
|
|
101
102
|
};
|
|
102
103
|
const unsubscribeNavigation = router.subscribeNavigation(notify);
|
|
103
|
-
const unsubscribeHistory =
|
|
104
|
+
const unsubscribeHistory = _chunkKQ6TYQU7cjs.subscribeHistoryChange.call(void 0, notify);
|
|
104
105
|
read();
|
|
105
106
|
return () => {
|
|
106
107
|
unsubscribeNavigation();
|
|
@@ -335,11 +336,11 @@ function createRendererTheme() {
|
|
|
335
336
|
}
|
|
336
337
|
function createRendererI18n() {
|
|
337
338
|
return {
|
|
338
|
-
getSnapshot:
|
|
339
|
-
subscribe:
|
|
340
|
-
t:
|
|
339
|
+
getSnapshot: _chunkPCAEJNQFcjs.getFarmI18nClientState,
|
|
340
|
+
subscribe: _chunkPCAEJNQFcjs.subscribeFarmI18n,
|
|
341
|
+
t: _chunkJP5TWUK2cjs.createFarmClientTranslator.call(void 0, ),
|
|
341
342
|
setLocale(locale) {
|
|
342
|
-
const snapshot =
|
|
343
|
+
const snapshot = _chunkPCAEJNQFcjs.getFarmI18nClientState.call(void 0, );
|
|
343
344
|
if (!snapshot) throw new Error("Farm i18n is not configured or has not been hydrated.");
|
|
344
345
|
if (!snapshot.locales.includes(locale)) {
|
|
345
346
|
throw new Error(`Unsupported Farm i18n locale "${locale}".`);
|
|
@@ -363,13 +364,13 @@ function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
|
363
364
|
};
|
|
364
365
|
}
|
|
365
366
|
const pathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, url.pathname, basePath);
|
|
366
|
-
const i18n =
|
|
367
|
+
const i18n = _chunkPCAEJNQFcjs.getFarmI18nClientState.call(void 0, );
|
|
367
368
|
const routePathname = i18n ? _chunkGYJT2U7Jcjs.stripFarmLocaleFromPathname.call(void 0, pathname, { ...i18n, basePath: "/" }) : pathname;
|
|
368
369
|
return {
|
|
369
370
|
pathname,
|
|
370
371
|
searchParams: url.searchParams,
|
|
371
372
|
params: _optionalChain([matcher, 'optionalAccess', _22 => _22.match, 'call', _23 => _23(routePathname), 'optionalAccess', _24 => _24.params]) || {},
|
|
372
|
-
pageState: typeof window === "undefined" ? null :
|
|
373
|
+
pageState: typeof window === "undefined" ? null : _chunkKQ6TYQU7cjs.readPageState.call(void 0, ),
|
|
373
374
|
navigation
|
|
374
375
|
};
|
|
375
376
|
}
|
|
@@ -414,4 +415,4 @@ function isRendererFormData(value) {
|
|
|
414
415
|
|
|
415
416
|
|
|
416
417
|
|
|
417
|
-
exports.FARM_LINK_OPTION_KEYS =
|
|
418
|
+
exports.FARM_LINK_OPTION_KEYS = _chunk22KXTL3Icjs.FARM_LINK_OPTION_KEYS; exports.createRendererAction = createRendererAction; exports.createRendererI18n = createRendererI18n; exports.createRendererQuery = createRendererQuery; exports.createRendererRouter = createRendererRouter; exports.createRendererTheme = createRendererTheme; exports.createStore = _chunk22KXTL3Icjs.createStore; exports.delegateNavigation = _chunkJIBEFLQ7cjs.delegateNavigation; exports.resolveImageAttributes = _chunk2HTNASSBcjs.resolveImageAttributes; exports.resolveLinkAttributes = _chunk22KXTL3Icjs.resolveLinkAttributes; exports.submitRendererActionForm = submitRendererActionForm;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import './router.mjs';
|
|
2
|
-
export { b as FarmViewTransitionMode } from './spa-router.d-
|
|
2
|
+
export { b as FarmViewTransitionMode } from './spa-router.d-DGmropfK.mjs';
|
|
3
3
|
import './client-cache.d-di_Nasxa.mjs';
|
|
4
4
|
import './server-fn.mjs';
|
|
5
5
|
import './server-query.mjs';
|
|
6
6
|
import './server-query-runtime.d-CCLGkQtE.mjs';
|
|
7
7
|
import './types.d-DQnyD3VD.mjs';
|
|
8
8
|
export { b as FarmI18nClientSnapshot, f as FarmI18nLocale, o as FarmTranslator } from './types.d-euATAbE4.mjs';
|
|
9
|
-
export { D as DefaultRouteHref, m as FARM_LINK_OPTION_KEYS, n as FarmAction, o as FarmActionOptions, p as FarmActionSnapshot, q as FarmActionStatus, r as FarmActionSubmit, s as FarmClientStore, t as FarmLinkAttributes, F as FarmLinkOptions, u as FarmRendererI18n, v as FarmRendererQuery, w as FarmRendererQueryOptions, x as FarmRendererQuerySnapshot, y as FarmRendererRouter, z as FarmRendererRouterOptions, A as FarmRendererRouterSnapshot, B as FarmRendererTheme, C as FarmRouteActionTarget, L as LinkDefaultRoute, G as Store, l as StoreApi, H as StoreFields, S as StoreKeyListener, g as StoreKeysListener, h as StoreListener, i as StorePatch, j as StoreState, k as StoreValueUpdater, I as createRendererAction, J as createRendererI18n, K as createRendererQuery, M as createRendererRouter, N as createRendererTheme, O as createStore, Q as resolveLinkAttributes, T as submitRendererActionForm } from './store-core.d-
|
|
9
|
+
export { D as DefaultRouteHref, m as FARM_LINK_OPTION_KEYS, n as FarmAction, o as FarmActionOptions, p as FarmActionSnapshot, q as FarmActionStatus, r as FarmActionSubmit, s as FarmClientStore, t as FarmLinkAttributes, F as FarmLinkOptions, u as FarmRendererI18n, v as FarmRendererQuery, w as FarmRendererQueryOptions, x as FarmRendererQuerySnapshot, y as FarmRendererRouter, z as FarmRendererRouterOptions, A as FarmRendererRouterSnapshot, B as FarmRendererTheme, C as FarmRouteActionTarget, L as LinkDefaultRoute, G as Store, l as StoreApi, H as StoreFields, S as StoreKeyListener, g as StoreKeysListener, h as StoreListener, i as StorePatch, j as StoreState, k as StoreValueUpdater, I as createRendererAction, J as createRendererI18n, K as createRendererQuery, M as createRendererRouter, N as createRendererTheme, O as createStore, Q as resolveLinkAttributes, T as submitRendererActionForm } from './store-core.d-C-gATBwd.mjs';
|
|
10
10
|
export { b as FarmImageAttributes, F as FarmImageLoader, a as FarmImageLoaderProps, c as FarmImageOptions, d as FarmImageStyle, S as StaticImageData, r as resolveImageAttributes } from './image-attributes.d-BMPDQO1q.mjs';
|
|
11
|
-
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-
|
|
11
|
+
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-B9GjWbov.mjs';
|
|
12
12
|
import './client-plugins.d-Dzc3vOw_.mjs';
|
|
13
13
|
import './lifecycle.d-OtGWAvJT.mjs';
|
|
14
14
|
import './route.d-ShmtqqVQ.mjs';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import './router.js';
|
|
2
|
-
export { b as FarmViewTransitionMode } from './spa-router.d-
|
|
2
|
+
export { b as FarmViewTransitionMode } from './spa-router.d-nE1jHNGt.js';
|
|
3
3
|
import './client-cache.d-Deoqq-nM.js';
|
|
4
4
|
import './server-fn.js';
|
|
5
5
|
import './server-query.js';
|
|
6
6
|
import './server-query-runtime.d-BlHd90D0.js';
|
|
7
7
|
import './types.d-DQnyD3VD.js';
|
|
8
8
|
export { b as FarmI18nClientSnapshot, f as FarmI18nLocale, o as FarmTranslator } from './types.d-euATAbE4.js';
|
|
9
|
-
export { D as DefaultRouteHref, m as FARM_LINK_OPTION_KEYS, n as FarmAction, o as FarmActionOptions, p as FarmActionSnapshot, q as FarmActionStatus, r as FarmActionSubmit, s as FarmClientStore, t as FarmLinkAttributes, F as FarmLinkOptions, u as FarmRendererI18n, v as FarmRendererQuery, w as FarmRendererQueryOptions, x as FarmRendererQuerySnapshot, y as FarmRendererRouter, z as FarmRendererRouterOptions, A as FarmRendererRouterSnapshot, B as FarmRendererTheme, C as FarmRouteActionTarget, L as LinkDefaultRoute, G as Store, l as StoreApi, H as StoreFields, S as StoreKeyListener, g as StoreKeysListener, h as StoreListener, i as StorePatch, j as StoreState, k as StoreValueUpdater, I as createRendererAction, J as createRendererI18n, K as createRendererQuery, M as createRendererRouter, N as createRendererTheme, O as createStore, Q as resolveLinkAttributes, T as submitRendererActionForm } from './store-core.d-
|
|
9
|
+
export { D as DefaultRouteHref, m as FARM_LINK_OPTION_KEYS, n as FarmAction, o as FarmActionOptions, p as FarmActionSnapshot, q as FarmActionStatus, r as FarmActionSubmit, s as FarmClientStore, t as FarmLinkAttributes, F as FarmLinkOptions, u as FarmRendererI18n, v as FarmRendererQuery, w as FarmRendererQueryOptions, x as FarmRendererQuerySnapshot, y as FarmRendererRouter, z as FarmRendererRouterOptions, A as FarmRendererRouterSnapshot, B as FarmRendererTheme, C as FarmRouteActionTarget, L as LinkDefaultRoute, G as Store, l as StoreApi, H as StoreFields, S as StoreKeyListener, g as StoreKeysListener, h as StoreListener, i as StorePatch, j as StoreState, k as StoreValueUpdater, I as createRendererAction, J as createRendererI18n, K as createRendererQuery, M as createRendererRouter, N as createRendererTheme, O as createStore, Q as resolveLinkAttributes, T as submitRendererActionForm } from './store-core.d-B5cwOd8g.js';
|
|
10
10
|
export { b as FarmImageAttributes, F as FarmImageLoader, a as FarmImageLoaderProps, c as FarmImageOptions, d as FarmImageStyle, S as StaticImageData, r as resolveImageAttributes } from './image-attributes.d-BMPDQO1q.js';
|
|
11
|
-
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-
|
|
11
|
+
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-BbW1_pf_.js';
|
|
12
12
|
import './client-plugins.d-Crct3m_r.js';
|
|
13
13
|
import './lifecycle.d-OtGWAvJT.js';
|
|
14
14
|
import './route.d-Cd4Fi6BA.js';
|
package/dist/renderer-client.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createFarmClientTranslator
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DATICPTO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveImageAttributes
|
|
7
7
|
} from "./chunk-K6RMOB25.mjs";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
FARM_LINK_OPTION_KEYS,
|
|
10
10
|
createStore,
|
|
11
11
|
resolveLinkAttributes
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N5NRXLCX.mjs";
|
|
13
13
|
import "./chunk-5XD2ULJG.mjs";
|
|
14
14
|
import {
|
|
15
15
|
attachRevalidationListeners
|
|
@@ -33,14 +33,15 @@ import {
|
|
|
33
33
|
getRouter,
|
|
34
34
|
readPageState,
|
|
35
35
|
subscribeHistoryChange
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-QBXS4TNG.mjs";
|
|
37
37
|
import {
|
|
38
38
|
delegateNavigation
|
|
39
39
|
} from "./chunk-RSEAX5MW.mjs";
|
|
40
40
|
import {
|
|
41
41
|
getFarmI18nClientState,
|
|
42
42
|
subscribeFarmI18n
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-GGD57DJA.mjs";
|
|
44
|
+
import "./chunk-JIGWHFA5.mjs";
|
|
44
45
|
import {
|
|
45
46
|
getFarmClientDataCache
|
|
46
47
|
} from "./chunk-C64XOPBZ.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { FarmRouterRouteInput } from './router.js';
|
|
3
|
-
import { F as FarmNavigationBlockerContext, a as FarmNavigationState } from './spa-router.d-
|
|
3
|
+
import { F as FarmNavigationBlockerContext, a as FarmNavigationState } from './spa-router.d-nE1jHNGt.js';
|
|
4
4
|
|
|
5
5
|
interface UseRouterOptions {
|
|
6
6
|
basePath?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { FarmRouterRouteInput } from './router.mjs';
|
|
3
|
-
import { F as FarmNavigationBlockerContext, a as FarmNavigationState } from './spa-router.d-
|
|
3
|
+
import { F as FarmNavigationBlockerContext, a as FarmNavigationState } from './spa-router.d-DGmropfK.mjs';
|
|
4
4
|
|
|
5
5
|
interface UseRouterOptions {
|
|
6
6
|
basePath?: string;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk7LBNWL3Lcjs = require('./chunk-7LBNWL3L.cjs');
|
|
6
6
|
require('./chunk-PWMJBCAN.cjs');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-IRPXOTEN.cjs');
|
|
8
8
|
require('./chunk-OZC2JPW6.cjs');
|
|
9
9
|
require('./chunk-Y2FEFQAY.cjs');
|
|
10
10
|
require('./chunk-DMSXZNQR.cjs');
|
|
@@ -88,4 +88,4 @@ require('./chunk-UZM3PDKK.cjs');
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
|
|
91
|
-
exports.FARM_RSC_PACKAGES = _chunkVGZIIOU6cjs.FARM_RSC_PACKAGES; exports.buildFarmRsc =
|
|
91
|
+
exports.FARM_RSC_PACKAGES = _chunkVGZIIOU6cjs.FARM_RSC_PACKAGES; exports.buildFarmRsc = _chunk7LBNWL3Lcjs.buildFarmRsc; exports.createFarmRscDevServer = _chunk7LBNWL3Lcjs.createFarmRscDevServer; exports.createFarmRscViteConfig = _chunk7LBNWL3Lcjs.createFarmRscViteConfig; exports.farmAppUsesRscPipeline = _chunkVGZIIOU6cjs.farmAppUsesRscPipeline; exports.farmConfigUsesServerComponents = _chunkVGZIIOU6cjs.farmConfigUsesServerComponents; exports.inspectFarmServerComponents = _chunkVGZIIOU6cjs.inspectFarmServerComponents; exports.resolveFarmRscCheckConfig = _chunkVGZIIOU6cjs.resolveFarmRscCheckConfig;
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
buildFarmRsc,
|
|
3
3
|
createFarmRscDevServer,
|
|
4
4
|
createFarmRscViteConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZOD6EYWE.mjs";
|
|
6
6
|
import "./chunk-RLEAVG6G.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-BGEA4K7C.mjs";
|
|
8
8
|
import "./chunk-VISQDC6W.mjs";
|
|
9
9
|
import "./chunk-7V5M43ND.mjs";
|
|
10
10
|
import "./chunk-MO4UTDQ6.mjs";
|
|
@@ -23,7 +23,7 @@ import "./chunk-UBLKPREL.mjs";
|
|
|
23
23
|
import {
|
|
24
24
|
loadConfig,
|
|
25
25
|
resolveConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BGEA4K7C.mjs";
|
|
27
27
|
import "./chunk-VISQDC6W.mjs";
|
|
28
28
|
import {
|
|
29
29
|
createPlatformBlockChecker,
|
|
@@ -1193,7 +1193,7 @@ async function resolveFarmMobileApp(options = {}) {
|
|
|
1193
1193
|
return decision.source === "default" || decision.requested !== void 0;
|
|
1194
1194
|
});
|
|
1195
1195
|
const portable = mobile.native.engine !== "platform" && (mobile.native.auto === "on" || candidates.some((route) => screens[route].requested === "native"));
|
|
1196
|
-
const { analyzeFarmMobileRoutes } = await import("./analyzer-
|
|
1196
|
+
const { analyzeFarmMobileRoutes } = await import("./analyzer-PWHYGER6.mjs");
|
|
1197
1197
|
const analyzed = await analyzeFarmMobileRoutes({
|
|
1198
1198
|
root,
|
|
1199
1199
|
srcDir: config.srcDir,
|
|
@@ -23,7 +23,7 @@ require('./chunk-YUQUGVSV.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkIRPXOTENcjs = require('./chunk-IRPXOTEN.cjs');
|
|
27
27
|
require('./chunk-OZC2JPW6.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
@@ -1110,7 +1110,7 @@ async function resolveFarmMobileApp(options = {}) {
|
|
|
1110
1110
|
const root = path2.resolve(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'access', _76 => _76.config, 'optionalAccess', _77 => _77.root]), () => ( options.root)), () => ( process.cwd())));
|
|
1111
1111
|
const command = _nullishCoalesce(options.command, () => ( "build"));
|
|
1112
1112
|
const mode = command === "dev" ? "development" : "production";
|
|
1113
|
-
const userConfig = options.userConfig === void 0 ? await
|
|
1113
|
+
const userConfig = options.userConfig === void 0 ? await _chunkIRPXOTENcjs.loadConfig.call(void 0, root, void 0, mode) : options.userConfig;
|
|
1114
1114
|
if (_optionalChain([userConfig, 'optionalAccess', _78 => _78.mobile]) === void 0) {
|
|
1115
1115
|
throw new FarmMobileError(
|
|
1116
1116
|
'farm.config.ts has no `mobile` entry. Add one, such as `mobile: { id: "com.example.notes", server: "https://notes.example.com" }`.'
|
|
@@ -1124,7 +1124,7 @@ async function resolveFarmMobileApp(options = {}) {
|
|
|
1124
1124
|
mode
|
|
1125
1125
|
});
|
|
1126
1126
|
const block = await resolveFarmMobileBlock(userConfig.mobile, context, options.cache);
|
|
1127
|
-
const config = await _asyncNullishCoalesce(options.config, async () => ( await
|
|
1127
|
+
const config = await _asyncNullishCoalesce(options.config, async () => ( await _chunkIRPXOTENcjs.resolveConfig.call(void 0, { ...userConfig, root }, mode)));
|
|
1128
1128
|
const scan = await _chunkZSVFI7JMcjs.scanRoutePatterns.call(void 0, {
|
|
1129
1129
|
root,
|
|
1130
1130
|
srcDir: config.srcDir,
|
|
@@ -1193,7 +1193,7 @@ async function resolveFarmMobileApp(options = {}) {
|
|
|
1193
1193
|
return decision.source === "default" || decision.requested !== void 0;
|
|
1194
1194
|
});
|
|
1195
1195
|
const portable = mobile.native.engine !== "platform" && (mobile.native.auto === "on" || candidates.some((route) => screens[route].requested === "native"));
|
|
1196
|
-
const { analyzeFarmMobileRoutes } = await import("./analyzer-
|
|
1196
|
+
const { analyzeFarmMobileRoutes } = await import("./analyzer-B2TRJT3B.cjs");
|
|
1197
1197
|
const analyzed = await analyzeFarmMobileRoutes({
|
|
1198
1198
|
root,
|
|
1199
1199
|
srcDir: config.srcDir,
|