@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
|
@@ -18,14 +18,14 @@ var _chunkCCAUIBIScjs = require('./chunk-CCAUIBIS.cjs');
|
|
|
18
18
|
var _chunkWMRGIQTAcjs = require('./chunk-WMRGIQTA.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk6266WH6Xcjs = require('./chunk-6266WH6X.cjs');
|
|
22
22
|
|
|
23
23
|
// src/mobile/analyzer.ts
|
|
24
24
|
var _crypto = require('crypto');
|
|
25
25
|
var _fs = require('fs');
|
|
26
26
|
var _promises = require('fs/promises');
|
|
27
27
|
var _path = require('path'); var path = _interopRequireWildcard(_path);
|
|
28
|
-
var ANALYZER_VERSION = `8:${
|
|
28
|
+
var ANALYZER_VERSION = `8:${_chunk6266WH6Xcjs.FARM_VERSION}`;
|
|
29
29
|
var INTRINSIC_KINDS = {};
|
|
30
30
|
for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
|
|
31
31
|
INTRINSIC_KINDS[tag] = "View";
|
|
@@ -7,14 +7,14 @@ var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkKQ6TYQU7cjs = require('./chunk-KQ6TYQU7.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkJIBEFLQ7cjs = require('./chunk-JIBEFLQ7.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkPCAEJNQFcjs = require('./chunk-PCAEJNQF.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkGYJT2U7Jcjs = require('./chunk-GYJT2U7J.cjs');
|
|
@@ -52,7 +52,7 @@ function shouldBlockUnload(options) {
|
|
|
52
52
|
function navigateViaRouter(href, basePath, replace, options = {}) {
|
|
53
53
|
if (typeof window === "undefined") return;
|
|
54
54
|
const url = _chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href, basePath);
|
|
55
|
-
const spaRouter =
|
|
55
|
+
const spaRouter = _chunkKQ6TYQU7cjs.getInstalledFarmSPARouter.call(void 0, );
|
|
56
56
|
if (spaRouter) {
|
|
57
57
|
void spaRouter.navigate(url, {
|
|
58
58
|
replace,
|
|
@@ -72,7 +72,7 @@ function writeHistory(url, replace) {
|
|
|
72
72
|
} else {
|
|
73
73
|
window.history.pushState(null, "", url);
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
_chunkKQ6TYQU7cjs.notifyHistoryChange.call(void 0, "url-search");
|
|
76
76
|
}
|
|
77
77
|
async function writeHistoryUnlessDelegated(url, replace) {
|
|
78
78
|
const target = new URL(url, window.location.href);
|
|
@@ -105,7 +105,7 @@ function useRouter(options = {}) {
|
|
|
105
105
|
setState(readRouterState(basePath, routeMatcher));
|
|
106
106
|
};
|
|
107
107
|
handlePopState();
|
|
108
|
-
const unsubscribe =
|
|
108
|
+
const unsubscribe = _chunkKQ6TYQU7cjs.subscribeHistoryChange.call(void 0, handlePopState);
|
|
109
109
|
return unsubscribe;
|
|
110
110
|
}, [basePath, routeMatcher]);
|
|
111
111
|
const push = (href, navigateOptions) => {
|
|
@@ -116,11 +116,11 @@ function useRouter(options = {}) {
|
|
|
116
116
|
};
|
|
117
117
|
const pushState = (pageState, href) => {
|
|
118
118
|
if (typeof window === "undefined") return;
|
|
119
|
-
|
|
119
|
+
_chunkKQ6TYQU7cjs.getRouter.call(void 0, ).pushState(pageState, resolveClientHref(href, basePath));
|
|
120
120
|
};
|
|
121
121
|
const replaceState = (pageState, href) => {
|
|
122
122
|
if (typeof window === "undefined") return;
|
|
123
|
-
|
|
123
|
+
_chunkKQ6TYQU7cjs.getRouter.call(void 0, ).replaceState(pageState, resolveClientHref(href, basePath));
|
|
124
124
|
};
|
|
125
125
|
const back = () => {
|
|
126
126
|
if (typeof window !== "undefined") {
|
|
@@ -143,24 +143,24 @@ function useRouter(options = {}) {
|
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
145
|
function usePageState() {
|
|
146
|
-
const [state, setState] = _react.useState.call(void 0, () =>
|
|
146
|
+
const [state, setState] = _react.useState.call(void 0, () => _chunkKQ6TYQU7cjs.readPageState.call(void 0, ));
|
|
147
147
|
_react.useEffect.call(void 0, () => {
|
|
148
148
|
if (typeof window === "undefined") return;
|
|
149
149
|
const handlePopState = () => {
|
|
150
|
-
setState(
|
|
150
|
+
setState(_chunkKQ6TYQU7cjs.readPageState.call(void 0, ));
|
|
151
151
|
};
|
|
152
152
|
handlePopState();
|
|
153
|
-
return
|
|
153
|
+
return _chunkKQ6TYQU7cjs.subscribeHistoryChange.call(void 0, handlePopState);
|
|
154
154
|
}, []);
|
|
155
155
|
return state;
|
|
156
156
|
}
|
|
157
157
|
function useNavigation() {
|
|
158
158
|
const [state, setState] = _react.useState.call(void 0,
|
|
159
|
-
() =>
|
|
159
|
+
() => _chunkKQ6TYQU7cjs.getRouter.call(void 0, ).getNavigationState()
|
|
160
160
|
);
|
|
161
161
|
_react.useEffect.call(void 0, () => {
|
|
162
162
|
if (typeof window === "undefined") return;
|
|
163
|
-
return
|
|
163
|
+
return _chunkKQ6TYQU7cjs.getRouter.call(void 0, ).subscribeNavigation(setState);
|
|
164
164
|
}, []);
|
|
165
165
|
return state;
|
|
166
166
|
}
|
|
@@ -172,7 +172,7 @@ function useBlocker(options) {
|
|
|
172
172
|
if (typeof window === "undefined" || !active) {
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
175
|
-
return
|
|
175
|
+
return _chunkKQ6TYQU7cjs.getRouter.call(void 0, ).addBlocker(
|
|
176
176
|
async (context) => {
|
|
177
177
|
const current = optionsRef.current;
|
|
178
178
|
const when = typeof current.when === "function" ? current.when(context) : current.when;
|
|
@@ -195,7 +195,7 @@ function useScrollRestoration(key) {
|
|
|
195
195
|
_react.useEffect.call(void 0, () => {
|
|
196
196
|
const element = ref.current;
|
|
197
197
|
if (!element) return;
|
|
198
|
-
return
|
|
198
|
+
return _chunkKQ6TYQU7cjs.getRouter.call(void 0, ).registerScrollElement(key, element);
|
|
199
199
|
}, [key]);
|
|
200
200
|
return ref;
|
|
201
201
|
}
|
|
@@ -210,13 +210,13 @@ function readRouterState(basePath, routeMatcher) {
|
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
const pathname = normalizeClientPathname(url.pathname, basePath);
|
|
213
|
-
const i18n =
|
|
213
|
+
const i18n = _chunkPCAEJNQFcjs.getFarmI18nClientState.call(void 0, );
|
|
214
214
|
const routePathname = i18n ? _chunkGYJT2U7Jcjs.stripFarmLocaleFromPathname.call(void 0, pathname, { ...i18n, basePath: "/" }) : pathname;
|
|
215
215
|
return {
|
|
216
216
|
pathname,
|
|
217
217
|
searchParams: url.searchParams,
|
|
218
218
|
params: _optionalChain([routeMatcher, 'optionalAccess', _5 => _5.match, 'call', _6 => _6(routePathname), 'optionalAccess', _7 => _7.params]) || {},
|
|
219
|
-
pageState: typeof window === "undefined" ? null :
|
|
219
|
+
pageState: typeof window === "undefined" ? null : _chunkKQ6TYQU7cjs.readPageState.call(void 0, )
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
222
|
function readCurrentUrl() {
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
notifyHistoryChange,
|
|
8
8
|
readPageState,
|
|
9
9
|
subscribeHistoryChange
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QBXS4TNG.mjs";
|
|
11
11
|
import {
|
|
12
12
|
hasFarmNavigationDelegates,
|
|
13
13
|
runFarmNavigationDelegates
|
|
14
14
|
} from "./chunk-RSEAX5MW.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getFarmI18nClientState
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GGD57DJA.mjs";
|
|
18
18
|
import {
|
|
19
19
|
stripFarmLocaleFromPathname
|
|
20
20
|
} from "./chunk-4QBFYEDC.mjs";
|
|
@@ -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
|
|
4
|
+
var _chunkVMGQOP7Xcjs = require('./chunk-VMGQOP7X.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 =
|
|
67
|
+
const aliases = _chunkVMGQOP7Xcjs.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 =
|
|
101
|
+
const resolved = _chunkVMGQOP7Xcjs.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;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/client/navigation-url.ts
|
|
2
|
+
var FARM_NAVIGATION_PROTOCOLS = /* @__PURE__ */ new Set(["http:", "https:", "mailto:", "tel:"]);
|
|
3
|
+
function isFarmBlockedNavigationURL(url) {
|
|
4
|
+
if (FARM_NAVIGATION_PROTOCOLS.has(url.protocol)) return false;
|
|
5
|
+
console.error(`[Farm.js] Blocked navigation to a ${url.protocol} URL as a security precaution.`);
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
function isFarmScriptURL(href) {
|
|
9
|
+
try {
|
|
10
|
+
return new URL(href, "http://farm.invalid").protocol === "javascript:";
|
|
11
|
+
} catch (e) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function isFarmSameDocumentFragment(href, currentHref) {
|
|
16
|
+
const fragment = href.indexOf("#");
|
|
17
|
+
return fragment >= 0 && href.slice(0, fragment) === currentHref.split("#", 1)[0];
|
|
18
|
+
}
|
|
19
|
+
function isFarmExternalNavigationURL(url, currentOrigin) {
|
|
20
|
+
return url.protocol !== "http:" && url.protocol !== "https:" || url.origin !== currentOrigin;
|
|
21
|
+
}
|
|
22
|
+
function resolveFarmNavigationURL(href, documentUrl) {
|
|
23
|
+
return new URL(href, documentUrl);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.isFarmBlockedNavigationURL = isFarmBlockedNavigationURL; exports.isFarmScriptURL = isFarmScriptURL; exports.isFarmSameDocumentFragment = isFarmSameDocumentFragment; exports.isFarmExternalNavigationURL = isFarmExternalNavigationURL; exports.resolveFarmNavigationURL = resolveFarmNavigationURL;
|
package/dist/client.cjs
CHANGED
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk2OR5WAD5cjs = require('./chunk-2OR5WAD5.cjs');
|
|
17
|
+
require('./chunk-QZUCVJZJ.cjs');
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
@@ -30,7 +31,7 @@ var _chunkT7HGXF7Dcjs = require('./chunk-T7HGXF7D.cjs');
|
|
|
30
31
|
|
|
31
32
|
|
|
32
33
|
|
|
33
|
-
var
|
|
34
|
+
var _chunkWP77JDKIcjs = require('./chunk-WP77JDKI.cjs');
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
var _chunkC7LCTVJ2cjs = require('./chunk-C7LCTVJ2.cjs');
|
|
@@ -51,7 +52,7 @@ var _chunkC7LCTVJ2cjs = require('./chunk-C7LCTVJ2.cjs');
|
|
|
51
52
|
|
|
52
53
|
var _chunkZNXU4E6Acjs = require('./chunk-ZNXU4E6A.cjs');
|
|
53
54
|
require('./chunk-EOXPRC2C.cjs');
|
|
54
|
-
require('./chunk-
|
|
55
|
+
require('./chunk-22KXTL3I.cjs');
|
|
55
56
|
require('./chunk-RK3YYUX6.cjs');
|
|
56
57
|
require('./chunk-N4AQNEXR.cjs');
|
|
57
58
|
|
|
@@ -73,11 +74,12 @@ require('./chunk-O4JYMU5N.cjs');
|
|
|
73
74
|
|
|
74
75
|
|
|
75
76
|
|
|
76
|
-
var
|
|
77
|
+
var _chunkKQ6TYQU7cjs = require('./chunk-KQ6TYQU7.cjs');
|
|
77
78
|
|
|
78
79
|
|
|
79
80
|
var _chunkJIBEFLQ7cjs = require('./chunk-JIBEFLQ7.cjs');
|
|
80
|
-
require('./chunk-
|
|
81
|
+
require('./chunk-PCAEJNQF.cjs');
|
|
82
|
+
require('./chunk-YIGUFJMR.cjs');
|
|
81
83
|
|
|
82
84
|
|
|
83
85
|
|
|
@@ -179,4 +181,4 @@ require('./chunk-UZM3PDKK.cjs');
|
|
|
179
181
|
|
|
180
182
|
|
|
181
183
|
|
|
182
|
-
exports.APIClientError = _chunkZNXU4E6Acjs.APIClientError; exports.FARM_CACHE_INVALIDATION_CHANNEL =
|
|
184
|
+
exports.APIClientError = _chunkZNXU4E6Acjs.APIClientError; exports.FARM_CACHE_INVALIDATION_CHANNEL = _chunk2OR5WAD5cjs.FARM_CACHE_INVALIDATION_CHANNEL; exports.FARM_CLIENT_CACHE_PERSIST_VERSION = _chunk2OR5WAD5cjs.FARM_CLIENT_CACHE_PERSIST_VERSION; exports.FarmClientPluginManager = _chunkOO7DYIJDcjs.FarmClientPluginManager; exports.FetcherInputError = _chunk2OR5WAD5cjs.FetcherInputError; exports.IntegrationClientError = _chunkZNXU4E6Acjs.IntegrationClientError; exports.Link = _chunk2OR5WAD5cjs.Link; exports.SPARouter = _chunkKQ6TYQU7cjs.SPARouter; exports.api = _chunkHA7YRO53cjs.api; exports.clearPersistedCache = _chunk2OR5WAD5cjs.clearPersistedCache; exports.createAPIClient = _chunkZNXU4E6Acjs.createAPIClient; exports.createApiClients = _chunkZNXU4E6Acjs.createApiClients; exports.createClientPluginManager = _chunkOO7DYIJDcjs.createClientPluginManager; exports.createIntegrationApi = _chunkZNXU4E6Acjs.createIntegrationApi; exports.createIntegrationClient = _chunkZNXU4E6Acjs.createIntegrationClient; exports.createIntegrationClients = _chunkZNXU4E6Acjs.createIntegrationClients; exports.createIntegrationServerClient = _chunkZNXU4E6Acjs.createIntegrationServerClient; exports.createIntegrations = _chunkZNXU4E6Acjs.createIntegrations; exports.createServerAPIClient = _chunkZNXU4E6Acjs.createServerAPIClient; exports.createStore = _chunk2OR5WAD5cjs.createStore; exports.defineClientCacheAdapter = _chunk2OR5WAD5cjs.defineClientCacheAdapter; exports.defineIntegrationAPI = _chunkHA7YRO53cjs.defineIntegrationAPI; exports.defineIntegrationAPIOperation = _chunkHA7YRO53cjs.defineIntegrationAPIOperation; exports.delegateNavigation = _chunkJIBEFLQ7cjs.delegateNavigation; exports.enableCrossTabCacheInvalidation = _chunk2OR5WAD5cjs.enableCrossTabCacheInvalidation; exports.enableLiveCacheInvalidation = _chunk2OR5WAD5cjs.enableLiveCacheInvalidation; exports.endpoint = _chunkHA7YRO53cjs.endpoint; exports.fetchServerQuery = _chunkIZYFP7INcjs.fetchServerQuery; exports.getFarmClientDataCache = _chunkI2BYNELAcjs.getFarmClientDataCache; exports.getIntegrationAPIManifest = _chunkZNXU4E6Acjs.getIntegrationAPIManifest; exports.getRouter = _chunkKQ6TYQU7cjs.getRouter; exports.getTheme = _chunkWEGAVN37cjs.getTheme; exports.initConfiguredClientCachePersistence = _chunk2OR5WAD5cjs.initConfiguredClientCachePersistence; exports.initPersistedClientCache = _chunk2OR5WAD5cjs.initPersistedClientCache; exports.installChunkErrorRecovery = _chunkIBEHVSU4cjs.installChunkErrorRecovery; exports.integrationClients = _chunkZNXU4E6Acjs.integrationClients; exports.integrationsClient = _chunkZNXU4E6Acjs.integrationsClient; exports.integrationsServer = _chunkZNXU4E6Acjs.integrationsServer; exports.isChunkLoadError = _chunkIBEHVSU4cjs.isChunkLoadError; exports.navigateTo = _chunkKQ6TYQU7cjs.navigateTo; exports.normalizeFarmClientCacheKey = _chunkI2BYNELAcjs.normalizeFarmClientCacheKey; exports.prefetch = _chunkKQ6TYQU7cjs.prefetch; exports.prefetchServerQuery = _chunkIZYFP7INcjs.prefetchServerQuery; exports.pushState = _chunkKQ6TYQU7cjs.pushState; exports.readPageState = _chunkKQ6TYQU7cjs.readPageState; exports.replaceState = _chunkKQ6TYQU7cjs.replaceState; exports.setTheme = _chunkWEGAVN37cjs.setTheme; exports.storageClientCacheAdapter = _chunk2OR5WAD5cjs.storageClientCacheAdapter; exports.toggleTheme = _chunkWEGAVN37cjs.toggleTheme; exports.useAction = _chunkPZXYAWYGcjs.useAction; exports.useBlocker = _chunkWP77JDKIcjs.useBlocker; exports.useFetcher = _chunk2OR5WAD5cjs.useFetcher; exports.useMutation = _chunk2OR5WAD5cjs.useMutation; exports.useNavigation = _chunkWP77JDKIcjs.useNavigation; exports.usePageState = _chunkWP77JDKIcjs.usePageState; exports.useRouter = _chunkWP77JDKIcjs.useRouter; exports.useScrollRestoration = _chunkWP77JDKIcjs.useScrollRestoration; exports.useServerQuery = _chunkT7HGXF7Dcjs.useServerQuery; exports.useTheme = _chunkC7LCTVJ2cjs.useTheme;
|
package/dist/client.d.mts
CHANGED
|
@@ -6,12 +6,12 @@ export { RouteActionTarget, UseActionFormProps, UseActionReturn, UseServerFnOpti
|
|
|
6
6
|
export { UseServerQueryOptions, UseServerQueryResult, useServerQuery } from './server-query-client.mjs';
|
|
7
7
|
export { a as FarmClientCacheEntry, b as FarmClientCacheKey, F as FarmClientCacheStatus, g as getFarmClientDataCache, n as normalizeFarmClientCacheKey } from './client-cache.d-di_Nasxa.mjs';
|
|
8
8
|
export { F as FarmIntegrationAPI, a as FarmIntegrationAPIBodyFormat, b as FarmIntegrationAPIMethod, c as FarmIntegrationAPIOperation, d as FarmIntegrationAPIResponseFormat, e as api, f as defineIntegrationAPI, g as defineIntegrationAPIOperation, h as endpoint } from './route.d-ShmtqqVQ.mjs';
|
|
9
|
-
import { j as StoreState, l as StoreApi$1, k as StoreValueUpdater, S as StoreKeyListener, D as DefaultRouteHref, F as FarmLinkOptions } from './store-core.d-
|
|
10
|
-
export { a as DefaultRoutePath, b as DefaultRoutePattern, E as ExternalHref, L as LinkDefaultRoute, c as LinkExternalUriSchemes, P as PrefetchBehavior, R as RouteHref, d as RouteOptionalParamValue, e as RouteParamValue, f as RouteParams, g as StoreKeysListener, h as StoreListener, i as StorePatch } from './store-core.d-
|
|
9
|
+
import { j as StoreState, l as StoreApi$1, k as StoreValueUpdater, S as StoreKeyListener, D as DefaultRouteHref, F as FarmLinkOptions } from './store-core.d-C-gATBwd.mjs';
|
|
10
|
+
export { a as DefaultRoutePath, b as DefaultRoutePattern, E as ExternalHref, L as LinkDefaultRoute, c as LinkExternalUriSchemes, P as PrefetchBehavior, R as RouteHref, d as RouteOptionalParamValue, e as RouteParamValue, f as RouteParams, g as StoreKeysListener, h as StoreListener, i as StorePatch } from './store-core.d-C-gATBwd.mjs';
|
|
11
11
|
export { UseThemeResult, useTheme } from './theme/client.mjs';
|
|
12
|
-
export { U as UseBlockerOptions, a as UseBlockerReturn, b as UseRouterOptions, u as useBlocker, c as useNavigation, d as usePageState, e as useRouter, f as useScrollRestoration } from './router.d-
|
|
13
|
-
export { c as FarmNavigateOptions,
|
|
14
|
-
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-
|
|
12
|
+
export { U as UseBlockerOptions, a as UseBlockerReturn, b as UseRouterOptions, u as useBlocker, c as useNavigation, d as usePageState, e as useRouter, f as useScrollRestoration } from './router.d-YKVirmj4.mjs';
|
|
13
|
+
export { c as FarmNavigateOptions, f as FarmNavigationBlocker, F as FarmNavigationBlockerContext, h as FarmNavigationListener, j as FarmNavigationLocation, a as FarmNavigationState, b as FarmViewTransitionMode, S as SPARouter, k as getRouter, n as navigateTo, p as prefetch, l as pushState, r as readPageState, m as replaceState } from './spa-router.d-DGmropfK.mjs';
|
|
14
|
+
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-B9GjWbov.mjs';
|
|
15
15
|
export { F as FarmChunkRecoveryOptions, i as installChunkErrorRecovery, a as isChunkLoadError } from './chunk-recovery.d-lnQFzcQP.mjs';
|
|
16
16
|
export { d as FarmClientHydrationCompleteEvent, e as FarmClientHydrationEvent, f as FarmClientHydrationMode, g as FarmClientHydrationSession, h as FarmClientLocation, i as FarmClientNavigationAction, j as FarmClientNavigationErrorEvent, k as FarmClientNavigationEvent, l as FarmClientNavigationLoadedEvent, m as FarmClientNavigationResolvedEvent, a as FarmClientNavigationSession, n as FarmClientPerformanceEvent, b as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle.d-OtGWAvJT.mjs';
|
|
17
17
|
export { S as ServerQueryFetchOptions, f as fetchServerQuery, p as prefetchServerQuery } from './server-query-runtime.d-CCLGkQtE.mjs';
|
package/dist/client.d.ts
CHANGED
|
@@ -6,12 +6,12 @@ export { RouteActionTarget, UseActionFormProps, UseActionReturn, UseServerFnOpti
|
|
|
6
6
|
export { UseServerQueryOptions, UseServerQueryResult, useServerQuery } from './server-query-client.js';
|
|
7
7
|
export { a as FarmClientCacheEntry, b as FarmClientCacheKey, F as FarmClientCacheStatus, g as getFarmClientDataCache, n as normalizeFarmClientCacheKey } from './client-cache.d-Deoqq-nM.js';
|
|
8
8
|
export { F as FarmIntegrationAPI, a as FarmIntegrationAPIBodyFormat, b as FarmIntegrationAPIMethod, c as FarmIntegrationAPIOperation, d as FarmIntegrationAPIResponseFormat, e as api, f as defineIntegrationAPI, g as defineIntegrationAPIOperation, h as endpoint } from './route.d-Cd4Fi6BA.js';
|
|
9
|
-
import { j as StoreState, l as StoreApi$1, k as StoreValueUpdater, S as StoreKeyListener, D as DefaultRouteHref, F as FarmLinkOptions } from './store-core.d-
|
|
10
|
-
export { a as DefaultRoutePath, b as DefaultRoutePattern, E as ExternalHref, L as LinkDefaultRoute, c as LinkExternalUriSchemes, P as PrefetchBehavior, R as RouteHref, d as RouteOptionalParamValue, e as RouteParamValue, f as RouteParams, g as StoreKeysListener, h as StoreListener, i as StorePatch } from './store-core.d-
|
|
9
|
+
import { j as StoreState, l as StoreApi$1, k as StoreValueUpdater, S as StoreKeyListener, D as DefaultRouteHref, F as FarmLinkOptions } from './store-core.d-B5cwOd8g.js';
|
|
10
|
+
export { a as DefaultRoutePath, b as DefaultRoutePattern, E as ExternalHref, L as LinkDefaultRoute, c as LinkExternalUriSchemes, P as PrefetchBehavior, R as RouteHref, d as RouteOptionalParamValue, e as RouteParamValue, f as RouteParams, g as StoreKeysListener, h as StoreListener, i as StorePatch } from './store-core.d-B5cwOd8g.js';
|
|
11
11
|
export { UseThemeResult, useTheme } from './theme/client.js';
|
|
12
|
-
export { U as UseBlockerOptions, a as UseBlockerReturn, b as UseRouterOptions, u as useBlocker, c as useNavigation, d as usePageState, e as useRouter, f as useScrollRestoration } from './router.d-
|
|
13
|
-
export { c as FarmNavigateOptions,
|
|
14
|
-
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-
|
|
12
|
+
export { U as UseBlockerOptions, a as UseBlockerReturn, b as UseRouterOptions, u as useBlocker, c as useNavigation, d as usePageState, e as useRouter, f as useScrollRestoration } from './router.d-Bm9FNSu3.js';
|
|
13
|
+
export { c as FarmNavigateOptions, f as FarmNavigationBlocker, F as FarmNavigationBlockerContext, h as FarmNavigationListener, j as FarmNavigationLocation, a as FarmNavigationState, b as FarmViewTransitionMode, S as SPARouter, k as getRouter, n as navigateTo, p as prefetch, l as pushState, r as readPageState, m as replaceState } from './spa-router.d-nE1jHNGt.js';
|
|
14
|
+
export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-BbW1_pf_.js';
|
|
15
15
|
export { F as FarmChunkRecoveryOptions, i as installChunkErrorRecovery, a as isChunkLoadError } from './chunk-recovery.d-lnQFzcQP.js';
|
|
16
16
|
export { d as FarmClientHydrationCompleteEvent, e as FarmClientHydrationEvent, f as FarmClientHydrationMode, g as FarmClientHydrationSession, h as FarmClientLocation, i as FarmClientNavigationAction, j as FarmClientNavigationErrorEvent, k as FarmClientNavigationEvent, l as FarmClientNavigationLoadedEvent, m as FarmClientNavigationResolvedEvent, a as FarmClientNavigationSession, n as FarmClientPerformanceEvent, b as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle.d-OtGWAvJT.js';
|
|
17
17
|
export { S as ServerQueryFetchOptions, f as fetchServerQuery, p as prefetchServerQuery } from './server-query-runtime.d-BlHd90D0.js';
|
package/dist/client.mjs
CHANGED
|
@@ -13,7 +13,8 @@ import {
|
|
|
13
13
|
storageClientCacheAdapter,
|
|
14
14
|
useFetcher,
|
|
15
15
|
useMutation
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PWTBXYJY.mjs";
|
|
17
|
+
import "./chunk-65LZRVCZ.mjs";
|
|
17
18
|
import {
|
|
18
19
|
installChunkErrorRecovery,
|
|
19
20
|
isChunkLoadError
|
|
@@ -30,7 +31,7 @@ import {
|
|
|
30
31
|
usePageState,
|
|
31
32
|
useRouter,
|
|
32
33
|
useScrollRestoration
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-WX752VMN.mjs";
|
|
34
35
|
import {
|
|
35
36
|
useTheme
|
|
36
37
|
} from "./chunk-EFLNOZGH.mjs";
|
|
@@ -51,7 +52,7 @@ import {
|
|
|
51
52
|
integrationsServer
|
|
52
53
|
} from "./chunk-7DBJ2SWK.mjs";
|
|
53
54
|
import "./chunk-IAPTECEB.mjs";
|
|
54
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-N5NRXLCX.mjs";
|
|
55
56
|
import "./chunk-5XD2ULJG.mjs";
|
|
56
57
|
import "./chunk-Z64V4WZI.mjs";
|
|
57
58
|
import {
|
|
@@ -73,11 +74,12 @@ import {
|
|
|
73
74
|
pushState,
|
|
74
75
|
readPageState,
|
|
75
76
|
replaceState
|
|
76
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-QBXS4TNG.mjs";
|
|
77
78
|
import {
|
|
78
79
|
delegateNavigation
|
|
79
80
|
} from "./chunk-RSEAX5MW.mjs";
|
|
80
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-GGD57DJA.mjs";
|
|
82
|
+
import "./chunk-JIGWHFA5.mjs";
|
|
81
83
|
import {
|
|
82
84
|
getFarmClientDataCache,
|
|
83
85
|
normalizeFarmClientCacheKey
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
3
|
+
var _chunkIRPXOTENcjs = require('./chunk-IRPXOTEN.cjs');
|
|
4
4
|
require('./chunk-OZC2JPW6.cjs');
|
|
5
5
|
require('./chunk-L2GUEYHR.cjs');
|
|
6
6
|
require('./chunk-IIHZ2BEE.cjs');
|
|
@@ -357,7 +357,7 @@ async function createFarmDevtoolsSnapshot(input) {
|
|
|
357
357
|
}));
|
|
358
358
|
const deploymentPreset = String(_optionalChain([config, 'access', _13 => _13.deploy, 'optionalAccess', _14 => _14.preset]) || config.preset || "node-server");
|
|
359
359
|
const deploymentTarget = String(
|
|
360
|
-
_optionalChain([config, 'access', _15 => _15.deploy, 'optionalAccess', _16 => _16.target]) ||
|
|
360
|
+
_optionalChain([config, 'access', _15 => _15.deploy, 'optionalAccess', _16 => _16.target]) || _chunkIRPXOTENcjs.getDeployTargetForPreset.call(void 0, deploymentPreset) || "node"
|
|
361
361
|
);
|
|
362
362
|
const env = input.env || process.env;
|
|
363
363
|
const servesPages = !_chunkT7UC2ORAcjs.isFarmRendererDisabled.call(void 0, config.renderer);
|
package/dist/docs.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkSG5RFGV6cjs = require('./chunk-SG5RFGV6.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -21,7 +21,7 @@ var _chunkHR5GU4UUcjs = require('./chunk-HR5GU4UU.cjs');
|
|
|
21
21
|
require('./chunk-N3H7UPBM.cjs');
|
|
22
22
|
require('./chunk-GVYZCJZH.cjs');
|
|
23
23
|
require('./chunk-NDOE76QC.cjs');
|
|
24
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-IRPXOTEN.cjs');
|
|
25
25
|
require('./chunk-OZC2JPW6.cjs');
|
|
26
26
|
require('./chunk-XJDB564A.cjs');
|
|
27
27
|
require('./chunk-ERMUL73L.cjs');
|
|
@@ -107,4 +107,4 @@ require('./chunk-UZM3PDKK.cjs');
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
exports.createDocsAPI =
|
|
110
|
+
exports.createDocsAPI = _chunkSG5RFGV6cjs.createDocsAPI; exports.createFarmDocsAPIHandler = _chunkSG5RFGV6cjs.createFarmDocsAPIHandler; exports.createFarmDocsAdapterHandler = _chunkSG5RFGV6cjs.createFarmDocsAdapterHandler; exports.createFarmDocsHandler = _chunkHR5GU4UUcjs.createFarmDocsHandler; exports.discoverFarmDocsPages = _chunkHR5GU4UUcjs.discoverFarmDocsPages; exports.getFarmDocsConfigModuleRoot = _chunkSG5RFGV6cjs.getFarmDocsConfigModuleRoot; exports.getFarmDocsContentDirs = _chunkHR5GU4UUcjs.getFarmDocsContentDirs; exports.getFarmDocsDocumentNavigationMatchers = _chunkHR5GU4UUcjs.getFarmDocsDocumentNavigationMatchers; exports.getFarmDocsRouteTypeEntries = _chunkHR5GU4UUcjs.getFarmDocsRouteTypeEntries; exports.hasFarmDocsRuntimeAdapter = _chunkL2GUEYHRcjs.hasFarmDocsRuntimeAdapter; exports.invalidateFarmDocsLastModified = _chunkHR5GU4UUcjs.invalidateFarmDocsLastModified; exports.isFarmDocsAPIRequest = _chunkSG5RFGV6cjs.isFarmDocsAPIRequest; exports.isFarmDocsContentFile = _chunkHR5GU4UUcjs.isFarmDocsContentFile; exports.isFarmDocsRequest = _chunkHR5GU4UUcjs.isFarmDocsRequest; exports.listFarmDocsPagePaths = _chunkSG5RFGV6cjs.listFarmDocsPagePaths; exports.loadFarmDocsPage = _chunkHR5GU4UUcjs.loadFarmDocsPage; exports.resolveFarmDocsContentDir = _chunkHR5GU4UUcjs.resolveFarmDocsContentDir;
|
package/dist/docs.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getFarmDocsConfigModuleRoot,
|
|
6
6
|
isFarmDocsAPIRequest,
|
|
7
7
|
listFarmDocsPagePaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YCHIR3X6.mjs";
|
|
9
9
|
import {
|
|
10
10
|
createFarmDocsHandler,
|
|
11
11
|
discoverFarmDocsPages,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import "./chunk-67JTJCAS.mjs";
|
|
22
22
|
import "./chunk-SE7HPBYK.mjs";
|
|
23
23
|
import "./chunk-LRPPXKCX.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-BGEA4K7C.mjs";
|
|
25
25
|
import "./chunk-VISQDC6W.mjs";
|
|
26
26
|
import "./chunk-S3R4JDRO.mjs";
|
|
27
27
|
import "./chunk-NRNAHZ57.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkPA3VZNWUcjs = require('../chunk-PA3VZNWU.cjs');
|
|
5
5
|
require('../chunk-WMRGIQTA.cjs');
|
|
6
6
|
require('../chunk-MNUYXZV7.cjs');
|
|
7
7
|
require('../chunk-52Q4OB4A.cjs');
|
|
@@ -12,11 +12,11 @@ require('../chunk-XRRHPBG2.cjs');
|
|
|
12
12
|
require('../chunk-YUCU6XB4.cjs');
|
|
13
13
|
require('../chunk-7U4XF76R.cjs');
|
|
14
14
|
require('../chunk-SUCDVKUB.cjs');
|
|
15
|
-
require('../chunk-
|
|
15
|
+
require('../chunk-6266WH6X.cjs');
|
|
16
16
|
require('../chunk-6CTFVBAT.cjs');
|
|
17
17
|
require('../chunk-ML4TOUZP.cjs');
|
|
18
18
|
require('../chunk-UZM3PDKK.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.farmEnvironmentFunctionsPlugin =
|
|
22
|
+
exports.farmEnvironmentFunctionsPlugin = _chunkPA3VZNWUcjs.farmEnvironmentFunctionsPlugin; exports.transformEnvironmentFunctions = _chunkPA3VZNWUcjs.transformEnvironmentFunctions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
farmEnvironmentFunctionsPlugin,
|
|
3
3
|
transformEnvironmentFunctions
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-WOTAU3BN.mjs";
|
|
5
5
|
import "../chunk-D2VAANBS.mjs";
|
|
6
6
|
import "../chunk-RJBUI5AN.mjs";
|
|
7
7
|
import "../chunk-Z3RM3VA2.mjs";
|
|
@@ -12,7 +12,7 @@ import "../chunk-DS2KZ5BT.mjs";
|
|
|
12
12
|
import "../chunk-DZXD6CYJ.mjs";
|
|
13
13
|
import "../chunk-U6GMCDRS.mjs";
|
|
14
14
|
import "../chunk-H3ASZDT7.mjs";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-XJJQAFZX.mjs";
|
|
16
16
|
import "../chunk-OHWM2VI4.mjs";
|
|
17
17
|
import "../chunk-5KAEGBIL.mjs";
|
|
18
18
|
import "../chunk-TIZJYHB7.mjs";
|
package/dist/i18n/client.cjs
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkJP5TWUK2cjs = require('../chunk-JP5TWUK2.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkPCAEJNQFcjs = require('../chunk-PCAEJNQF.cjs');
|
|
11
|
+
require('../chunk-YIGUFJMR.cjs');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
var _chunk7Q2YWZF7cjs = require('../chunk-7Q2YWZF7.cjs');
|
|
@@ -36,7 +37,7 @@ function useLocale() {
|
|
|
36
37
|
}
|
|
37
38
|
function useTranslations() {
|
|
38
39
|
useFarmI18nSnapshot();
|
|
39
|
-
return
|
|
40
|
+
return _chunkJP5TWUK2cjs.createFarmClientTranslator.call(void 0, );
|
|
40
41
|
}
|
|
41
42
|
function getLocale() {
|
|
42
43
|
return requireSnapshot().locale;
|
|
@@ -45,7 +46,7 @@ function getLocaleSource() {
|
|
|
45
46
|
return requireSnapshot().source;
|
|
46
47
|
}
|
|
47
48
|
function createTranslator() {
|
|
48
|
-
return
|
|
49
|
+
return _chunkJP5TWUK2cjs.createFarmClientTranslator.call(void 0, );
|
|
49
50
|
}
|
|
50
51
|
function setLocale(locale) {
|
|
51
52
|
const snapshot = requireSnapshot();
|
|
@@ -59,7 +60,7 @@ function setLocale(locale) {
|
|
|
59
60
|
window.location.assign(nextHref);
|
|
60
61
|
}
|
|
61
62
|
function _setFarmI18nClientSnapshot(snapshot) {
|
|
62
|
-
|
|
63
|
+
_chunkPCAEJNQFcjs._hydrateFarmI18n.call(void 0, snapshot);
|
|
63
64
|
}
|
|
64
65
|
var format = {
|
|
65
66
|
number(value, options) {
|
|
@@ -85,9 +86,9 @@ var format = {
|
|
|
85
86
|
};
|
|
86
87
|
function useFarmI18nSnapshot() {
|
|
87
88
|
const snapshot = _react.useSyncExternalStore.call(void 0,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
_chunkPCAEJNQFcjs.subscribeFarmI18n,
|
|
90
|
+
_chunkPCAEJNQFcjs.getFarmI18nClientState,
|
|
91
|
+
_chunkPCAEJNQFcjs.getFarmI18nClientState
|
|
91
92
|
);
|
|
92
93
|
if (!snapshot) {
|
|
93
94
|
throw new Error("Farm i18n is not configured or has not been hydrated.");
|
|
@@ -95,7 +96,7 @@ function useFarmI18nSnapshot() {
|
|
|
95
96
|
return snapshot;
|
|
96
97
|
}
|
|
97
98
|
function requireSnapshot() {
|
|
98
|
-
const snapshot =
|
|
99
|
+
const snapshot = _chunkPCAEJNQFcjs.getFarmI18nClientState.call(void 0, );
|
|
99
100
|
if (!snapshot) {
|
|
100
101
|
throw new Error("Farm i18n is not configured or has not been hydrated.");
|
|
101
102
|
}
|
|
@@ -111,4 +112,4 @@ function requireSnapshot() {
|
|
|
111
112
|
|
|
112
113
|
|
|
113
114
|
|
|
114
|
-
exports._setFarmI18nClientSnapshot = _setFarmI18nClientSnapshot; exports.createTranslator = createTranslator; exports.format = format; exports.getLocale = getLocale; exports.getLocaleSource = getLocaleSource; exports.setLocale = setLocale; exports.t =
|
|
115
|
+
exports._setFarmI18nClientSnapshot = _setFarmI18nClientSnapshot; exports.createTranslator = createTranslator; exports.format = format; exports.getLocale = getLocale; exports.getLocaleSource = getLocaleSource; exports.setLocale = setLocale; exports.t = _chunkJP5TWUK2cjs.t; exports.useLocale = useLocale; exports.useTranslations = useTranslations;
|
package/dist/i18n/client.mjs
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createFarmClientTranslator,
|
|
4
4
|
t
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-DATICPTO.mjs";
|
|
6
6
|
import {
|
|
7
7
|
_hydrateFarmI18n,
|
|
8
8
|
getFarmI18nClientState,
|
|
9
9
|
subscribeFarmI18n
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-GGD57DJA.mjs";
|
|
11
|
+
import "../chunk-JIGWHFA5.mjs";
|
|
11
12
|
import {
|
|
12
13
|
createFarmLocaleCookie
|
|
13
14
|
} from "../chunk-UJIBSFUE.mjs";
|