@finesoft/front 0.5.1 → 0.5.2
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/README.md +4 -4
- package/dist/Outlet.svelte +39 -0
- package/dist/Outlet.svelte.d.ts +7 -0
- package/dist/browser-DIU6Sxl3.mjs +1237 -0
- package/dist/browser-kFMjlLGT.d.mts +262 -0
- package/dist/browser.d.mts +7 -2
- package/dist/browser.mjs +9 -1
- package/dist/controller-types-CgmJ6-le.d.mts +16 -0
- package/dist/cookies-Bpf9VayB.d.mts +779 -0
- package/dist/fetch-policy-BHT8RtrL.mjs +82 -0
- package/dist/host-guard-DDWxLpFL.mjs +222 -0
- package/dist/http-B6CJqDyf.d.mts +46 -0
- package/dist/http-CaxrMD1A.d.mts +1 -0
- package/dist/http-D70PL72H.mjs +257 -0
- package/dist/http.d.mts +3 -0
- package/dist/http.mjs +2 -0
- package/dist/index-node.d.mts +15 -0
- package/dist/index-node.mjs +15 -0
- package/dist/index.d.mts +48 -697
- package/dist/index.mjs +44 -261
- package/dist/load-node.d.mts +5 -0
- package/dist/load-node.mjs +10 -0
- package/dist/load-portable.d.mts +5 -0
- package/dist/load-portable.mjs +8 -0
- package/dist/lru-map-BKoUAySU.mjs +50 -0
- package/dist/messages-CAt2QdGr.mjs +140 -0
- package/dist/native-contract-DuR25hYB.d.mts +14 -0
- package/dist/native-contract.d.mts +2 -0
- package/dist/native-contract.mjs +1 -0
- package/dist/node-D9hB4dsz.d.mts +35 -0
- package/dist/node.d.mts +2 -0
- package/dist/node.mjs +59 -0
- package/dist/path-CGFl2w7D.mjs +113 -0
- package/dist/path-CXT6xGPO.d.mts +261 -0
- package/dist/portable-CaxrMD1A.d.mts +1 -0
- package/dist/portable.d.mts +11 -0
- package/dist/portable.mjs +12 -0
- package/dist/proxy-1SphZ7x7.mjs +436 -0
- package/dist/proxy-2dSWO-Xw.d.mts +53 -0
- package/dist/public-types-BcJM-AYc.mjs +835 -0
- package/dist/react-DhwBRw01.d.mts +16 -0
- package/dist/react.d.mts +3 -0
- package/dist/react.mjs +29 -0
- package/dist/rolldown-runtime-B4iAMlE-.mjs +35 -0
- package/dist/secure-fetch-Xlht2jd7.d.mts +30 -0
- package/dist/server-controller-proxy-BkVuVWVD.d.mts +38 -0
- package/dist/session-DnB4ZC3x.d.mts +1279 -0
- package/dist/src-Ftl_0rhu.mjs +28 -0
- package/dist/src-qwx7Vw8g.mjs +3807 -0
- package/dist/ssr-BEUNDvbj.d.mts +210 -0
- package/dist/ssr-C8xnYXoY.mjs +357 -0
- package/dist/ssr.d.mts +3 -0
- package/dist/ssr.mjs +3 -0
- package/dist/svelte-Dr5to3SE.d.mts +16 -0
- package/dist/svelte.d.mts +3 -0
- package/dist/svelte.mjs +13 -0
- package/dist/typegen-C-WeJCtf.d.mts +12 -0
- package/dist/typegen-cli.d.mts +1 -0
- package/dist/typegen-cli.mjs +11 -0
- package/dist/typegen.d.mts +3 -0
- package/dist/typegen.mjs +2 -0
- package/dist/types-BuaZHRG7.mjs +402 -0
- package/dist/undici-CPfL25Hr.mjs +22262 -0
- package/dist/vite-Cj4SPA8D.d.mts +277 -0
- package/dist/vite.d.mts +4 -0
- package/dist/vite.mjs +2354 -0
- package/dist/vue-DGmzuKho.d.mts +32 -0
- package/dist/vue.d.mts +3 -0
- package/dist/vue.mjs +56 -0
- package/dist/web.d.mts +6 -0
- package/dist/web.mjs +8 -0
- package/dist/worker.d.mts +2 -0
- package/dist/worker.mjs +2 -0
- package/docs/01-getting-started.md +67 -199
- package/docs/02-routing-and-controllers.md +163 -241
- package/docs/03-middleware.md +10 -212
- package/docs/04-rendering-and-hydration.md +6 -333
- package/docs/05-i18n.md +7 -237
- package/docs/06-http-client.md +20 -263
- package/docs/07-di-container.md +23 -257
- package/docs/08-observability.md +6 -286
- package/docs/09-server-and-deployment.md +59 -219
- package/docs/10-features-platform-pwa.md +7 -231
- package/docs/11-navigation.md +143 -288
- package/docs/12-session-restoration.md +6 -214
- package/docs/README.md +7 -7
- package/docs/advanced/custom-action-handler.md +29 -229
- package/docs/advanced/custom-adapter.md +7 -259
- package/docs/advanced/custom-event-recorder.md +7 -312
- package/docs/advanced/inline-proxy-codegen.md +6 -185
- package/docs/advanced/multi-tenant-scopes.md +10 -323
- package/docs/engineering/ci-release-flow.md +35 -222
- package/docs/engineering/project-structure.md +34 -277
- package/docs/engineering/testing.md +8 -310
- package/docs/pitfalls/container-scope-leak.md +2 -214
- package/docs/pitfalls/i18n-bundle-size.md +6 -176
- package/docs/pitfalls/proxy-binary-payloads.md +8 -12
- package/docs/pitfalls/ssr-hydration-mismatch.md +4 -160
- package/docs/pitfalls/ssr-vs-csr-globals.md +9 -170
- package/docs/zh/01-getting-started.md +67 -199
- package/docs/zh/02-routing-and-controllers.md +166 -244
- package/docs/zh/03-middleware.md +10 -212
- package/docs/zh/04-rendering-and-hydration.md +6 -333
- package/docs/zh/05-i18n.md +7 -237
- package/docs/zh/06-http-client.md +20 -263
- package/docs/zh/07-di-container.md +23 -257
- package/docs/zh/08-observability.md +6 -283
- package/docs/zh/09-server-and-deployment.md +59 -219
- package/docs/zh/10-features-platform-pwa.md +7 -231
- package/docs/zh/11-navigation.md +130 -290
- package/docs/zh/12-session-restoration.md +6 -214
- package/docs/zh/README.md +4 -4
- package/docs/zh/advanced/custom-action-handler.md +29 -229
- package/docs/zh/advanced/custom-adapter.md +7 -259
- package/docs/zh/advanced/custom-event-recorder.md +7 -312
- package/docs/zh/advanced/inline-proxy-codegen.md +6 -185
- package/docs/zh/advanced/multi-tenant-scopes.md +10 -323
- package/docs/zh/engineering/ci-release-flow.md +35 -222
- package/docs/zh/engineering/project-structure.md +34 -277
- package/docs/zh/engineering/testing.md +8 -310
- package/docs/zh/pitfalls/container-scope-leak.md +2 -214
- package/docs/zh/pitfalls/i18n-bundle-size.md +6 -176
- package/docs/zh/pitfalls/proxy-binary-payloads.md +8 -12
- package/docs/zh/pitfalls/ssr-hydration-mismatch.md +4 -160
- package/docs/zh/pitfalls/ssr-vs-csr-globals.md +9 -170
- package/package.json +118 -20
- package/dist/browser-BHhVWXik.mjs +0 -2
- package/dist/browser-BV2BBXm7.d.mts +0 -2811
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { C as ImpressionEntry, j as Container } from "./path-CXT6xGPO.mjs";
|
|
2
|
+
import { A as SessionStore, E as SessionRestoreResult, En as LocaleAttributes, Hn as Logger, Ht as NavigationSnapshot, O as SessionSnapshot, Q as NavigationRouterLike, Rt as NavigationNode, T as SessionNavigation, Vn as LogFilter, Z as NavigationCodec, _ as AsyncStorage, _t as PrefetchedIntents, en as NavigationContext, g as WebAppView, k as SessionStateProvider, l as WebSession, un as BasePage, v as NavigationScopedState, vn as RouteIntent, z as WebAppDefinition } from "./session-DnB4ZC3x.mjs";
|
|
3
|
+
import { o as WireDecodeResult } from "./server-controller-proxy-BkVuVWVD.mjs";
|
|
4
|
+
//#region ../browser/src/start-app.d.ts
|
|
5
|
+
interface BrowserSessionConfig {
|
|
6
|
+
readonly providers?: readonly SessionStateProvider[];
|
|
7
|
+
readonly storage?: AsyncStorage;
|
|
8
|
+
readonly version?: number;
|
|
9
|
+
readonly maxAgeMs?: number;
|
|
10
|
+
readonly debounceMs?: number;
|
|
11
|
+
readonly shouldRestore?: (snapshot: SessionSnapshot, currentUrl: string) => boolean;
|
|
12
|
+
}
|
|
13
|
+
interface BrowserAppConfig<Definition extends WebAppDefinition = WebAppDefinition> {
|
|
14
|
+
readonly definition: Definition;
|
|
15
|
+
readonly target: HTMLElement;
|
|
16
|
+
readonly history?: "browser" | "memory";
|
|
17
|
+
readonly url?: string;
|
|
18
|
+
readonly persistenceKey?: string;
|
|
19
|
+
readonly session?: BrowserSessionConfig;
|
|
20
|
+
readonly domRestore?: boolean;
|
|
21
|
+
readonly buildId?: string;
|
|
22
|
+
readonly serverDataSource?: HTMLScriptElement | null;
|
|
23
|
+
readonly onModal?: (page: BasePage, context: {
|
|
24
|
+
readonly app: WebAppView<Definition>;
|
|
25
|
+
readonly snapshot: NavigationSnapshot;
|
|
26
|
+
}) => void | Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
interface BrowserAppHandle<Definition extends WebAppDefinition = WebAppDefinition> extends WebAppView<Definition> {
|
|
29
|
+
readonly shouldHydrate: boolean;
|
|
30
|
+
/** Resolves after the first native commit and optional session restore. Mount before awaiting. */
|
|
31
|
+
readonly ready: Promise<void>;
|
|
32
|
+
dispose(): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
declare function createBrowserApp<Definition extends WebAppDefinition>(config: BrowserAppConfig<Definition>): Promise<BrowserAppHandle<Definition>>;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region ../browser/src/navigation-bridge.d.ts
|
|
37
|
+
/** NavigationBridge 构造依赖。 */
|
|
38
|
+
interface NavigationBridgeDependencies {
|
|
39
|
+
/** Invalidate a host URL resolution when browser history starts a newer navigation. */
|
|
40
|
+
readonly onPopStart?: () => void;
|
|
41
|
+
/** Standard host fallback for uncached URLs without an encoded navigation tree. */
|
|
42
|
+
readonly resolveUrl?: (url: string) => Promise<NavigationNode | undefined>;
|
|
43
|
+
/** 拥有导航事务与快照的 WebSession。 */
|
|
44
|
+
readonly controller: WebSession;
|
|
45
|
+
readonly viewReady?: () => void | Promise<void>;
|
|
46
|
+
/** URL 编解码器(默认 `createActiveLeafCodec`)。 */
|
|
47
|
+
readonly codec: NavigationCodec;
|
|
48
|
+
/** Router 的最小读取面(encode 反查 / decode 用)。 */
|
|
49
|
+
readonly router: NavigationRouterLike;
|
|
50
|
+
/** 日志器。 */
|
|
51
|
+
readonly log: Logger;
|
|
52
|
+
/** 获取可滚动页面元素,用于滚动位置保存/恢复(透传给 History)。 */
|
|
53
|
+
readonly getScrollablePageElement?: () => HTMLElement | null;
|
|
54
|
+
}
|
|
55
|
+
/** Browser history binding; actions belong to the WebSession. */
|
|
56
|
+
interface NavigationBridge {
|
|
57
|
+
dispose(): void;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* 创建 NavigationBridge:订阅 controller、装配 popstate、返回历史绑定。
|
|
61
|
+
*
|
|
62
|
+
* 调用后 bridge 已激活(已订阅 controller + 已注册 popstate listener)。应用应在调用前/后
|
|
63
|
+
* 调一次 `controller.start()` 完成首屏解析;首屏的快照提交会被 bridge 用 `replaceState`
|
|
64
|
+
* 写入 history(first-page 语义),不会污染历史栈。
|
|
65
|
+
*/
|
|
66
|
+
declare function createNavigationBridge(deps: NavigationBridgeDependencies): NavigationBridge;
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region ../browser/src/session-bridge.d.ts
|
|
69
|
+
/** 导航变更后自动落盘的默认防抖窗口(ms):合并连续导航,避免每跳一屏写一次。 */
|
|
70
|
+
declare const SESSION_DEFAULT_DEBOUNCE_MS = 500;
|
|
71
|
+
/** `createSessionBridge` 选项。 */
|
|
72
|
+
interface SessionBridgeOptions {
|
|
73
|
+
/** Standard starters pause automatic saves until hydration and persisted restore finish. */
|
|
74
|
+
readonly deferPersistenceUntilRestore?: boolean;
|
|
75
|
+
/** 会话编排器(Web)。 */
|
|
76
|
+
readonly store: SessionStore;
|
|
77
|
+
/** 导航端口;导航变更时用其 `presentKeys()` 驱动 scoped prune。 */
|
|
78
|
+
readonly navigation: SessionNavigation;
|
|
79
|
+
/** 订阅导航变更;返回反订阅函数。省略 = 不自动捕获(仅靠生命周期事件 + 手动 `save`)。 */
|
|
80
|
+
readonly subscribeNavigation?: (onChange: () => void) => () => void;
|
|
81
|
+
/** 自动落盘防抖窗口(ms);默认 `SESSION_DEFAULT_DEBOUNCE_MS`。 */
|
|
82
|
+
readonly debounceMs?: number;
|
|
83
|
+
/** 恢复门控;默认 `defaultShouldRestore`(显式深链优先,见其文档)。 */
|
|
84
|
+
readonly shouldRestore?: (snapshot: SessionSnapshot, currentUrl: string) => boolean;
|
|
85
|
+
}
|
|
86
|
+
/** The store itself owns state and persistence; the browser adds lifecycle restoration. */
|
|
87
|
+
interface BrowserSession extends SessionStore {
|
|
88
|
+
restoreFromUrl(currentUrl: string): Promise<SessionRestoreResult>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* 默认恢复门控策略(精确、无歧义,遵循「显式深链优先」)。
|
|
92
|
+
*
|
|
93
|
+
* - **带可比 URL**(快照含 `url` —— 扁平天然有,结构化由适配器在 capture 时记录浏览器
|
|
94
|
+
* `location`):当且仅当 `currentUrl` 全等 `snapshot.url`,**或** `currentUrl` 路径为根 `/`
|
|
95
|
+
* (重载同深链 / 全新进入 → 恢复;改去别的深链 → 跳过,显式深链不被旧会话覆盖)。
|
|
96
|
+
* 这让结构化导航与扁平**对称**:重载 `/item/1` 即恢复其作用域状态。
|
|
97
|
+
* - **回退(无 `url`)**:适配器不提供 URL 时只在根 `/` 放行。
|
|
98
|
+
* - **无 `navigation`**(仅切片):总恢复(与 URL 无关)。
|
|
99
|
+
*
|
|
100
|
+
* 「根」判定为路径 `=== "/"`(剥离 query/hash);带 base path 的应用应覆盖 `shouldRestore`。
|
|
101
|
+
*/
|
|
102
|
+
declare function defaultShouldRestore(snapshot: SessionSnapshot, currentUrl: string): boolean;
|
|
103
|
+
/**
|
|
104
|
+
* 创建 SessionBridge:订阅导航、装配生命周期监听、返回会话句柄。
|
|
105
|
+
*
|
|
106
|
+
* 调用后 bridge 已激活(已订阅导航 + 已注册 `pagehide` / `visibilitychange`)。应用应在
|
|
107
|
+
* 首次导航完成后调一次 `restoreFromUrl(initialUrl)` 完成 boot 恢复。
|
|
108
|
+
*/
|
|
109
|
+
declare function createSessionBridge(options: SessionBridgeOptions): BrowserSession;
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region ../browser/src/web-storage.d.ts
|
|
112
|
+
type WebStorageKind = "session" | "local";
|
|
113
|
+
/** Rejections remain observable by the session owner; unavailable is never a successful no-op. */
|
|
114
|
+
declare function createWebStorage(kind: WebStorageKind): AsyncStorage;
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region ../browser/src/dom-restore.d.ts
|
|
117
|
+
interface DomRestoreOptions {
|
|
118
|
+
/** Session scope; use a getter when restoration can replace the scope object. */
|
|
119
|
+
readonly scope: NavigationScopedState;
|
|
120
|
+
/** Optional scheduling for independent callers. Browser commits pass `cb => cb()` explicitly. */
|
|
121
|
+
readonly schedule?: (cb: () => void) => void;
|
|
122
|
+
}
|
|
123
|
+
interface DomRestore {
|
|
124
|
+
/** Capture one real native entry before its next commit. */
|
|
125
|
+
captureEntry(container: HTMLElement): void;
|
|
126
|
+
/** Restore one acknowledged native entry after its commit. */
|
|
127
|
+
restoreEntry(container: HTMLElement): void;
|
|
128
|
+
/** Listen only for scoped edits and document persistence events. */
|
|
129
|
+
attach(outlet: HTMLElement): void;
|
|
130
|
+
dispose(): void;
|
|
131
|
+
}
|
|
132
|
+
declare function createDomRestore(options: DomRestoreOptions): DomRestore;
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region ../browser/src/utils/history.d.ts
|
|
135
|
+
interface HistoryOptions {
|
|
136
|
+
getScrollablePageElement: () => HTMLElement | null;
|
|
137
|
+
/**
|
|
138
|
+
* 是否把 `state` 一并写入 `window.history.state`(而非仅 `{ id }` + 内存 LruMap)。缺省 `false`。
|
|
139
|
+
*
|
|
140
|
+
* 内存 LruMap 在整页刷新后丢失;若 state 小且可结构化克隆(如导航树 `{ tree }`),开启此项
|
|
141
|
+
* 可让 state 随 `window.history.state` **跨刷新按 entry 保留**,刷新后 back/forward 仍能从
|
|
142
|
+
* history.state 还原(onPopState 在 LruMap 未命中时回退到 `event.state.state`)。
|
|
143
|
+
* 大状态(如整页 `{ page }`)不应开启,避免撑爆 history.state。
|
|
144
|
+
*/
|
|
145
|
+
persistInHistoryState?: boolean;
|
|
146
|
+
}
|
|
147
|
+
declare class History<State> {
|
|
148
|
+
private readonly entries;
|
|
149
|
+
private readonly log;
|
|
150
|
+
private readonly getScrollablePageElement;
|
|
151
|
+
private readonly persistInHistoryState;
|
|
152
|
+
private currentStateId;
|
|
153
|
+
private popstateSequence;
|
|
154
|
+
private readonly positions;
|
|
155
|
+
private position;
|
|
156
|
+
private owner;
|
|
157
|
+
private positionKnown;
|
|
158
|
+
private committedStateId;
|
|
159
|
+
private compensation;
|
|
160
|
+
private cleanups;
|
|
161
|
+
dispose(): void;
|
|
162
|
+
constructor(log: Logger, options: HistoryOptions, sizeLimit?: number);
|
|
163
|
+
/** 写入 window.history.state 的载荷:persist 时连 state 一起带(跨刷新保留)。 */
|
|
164
|
+
private historyState;
|
|
165
|
+
replaceState(state: State, url: string): void;
|
|
166
|
+
pushState(state: State, url: string): void;
|
|
167
|
+
private write;
|
|
168
|
+
private recordWrite;
|
|
169
|
+
private compensate;
|
|
170
|
+
beforeTransition(): void;
|
|
171
|
+
private saveScrollPosition;
|
|
172
|
+
onPopState(listener: (url: string, state?: State) => void | Promise<void>): void;
|
|
173
|
+
/** 仅推入 URL,不缓存页面状态(用于页面加载失败场景) */
|
|
174
|
+
pushUrl(url: string): void;
|
|
175
|
+
/** 仅替换 URL,不缓存页面状态(用于页面加载失败场景) */
|
|
176
|
+
replaceUrl(url: string): void;
|
|
177
|
+
updateState(update: (current?: State) => State, url?: string): void;
|
|
178
|
+
private get scrollTop();
|
|
179
|
+
private set scrollTop(value);
|
|
180
|
+
}
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region ../browser/src/utils/try-scroll.d.ts
|
|
183
|
+
declare function tryScroll(log: Logger, getScrollableElement: () => HTMLElement | null, scrollY: number): void;
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region ../browser/src/server-data.d.ts
|
|
186
|
+
interface ServerDataSource {
|
|
187
|
+
/** An explicitly selected script, scoped by the caller to this app instance. */
|
|
188
|
+
readonly script: Pick<HTMLScriptElement, "textContent" | "parentNode"> | null;
|
|
189
|
+
readonly buildId?: string;
|
|
190
|
+
readonly onFallback?: (code: Extract<WireDecodeResult, {
|
|
191
|
+
status: "fresh-load";
|
|
192
|
+
}>["code"]) => void;
|
|
193
|
+
}
|
|
194
|
+
declare function deserializeServerData(source: ServerDataSource): WireDecodeResult;
|
|
195
|
+
declare function createPrefetchedIntentsFromDom(source: ServerDataSource): PrefetchedIntents;
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region ../browser/src/logger/local-storage-filter.d.ts
|
|
198
|
+
declare function shouldLog(name: string, level: Parameters<LogFilter>[1]): boolean;
|
|
199
|
+
declare function resetFilterCache(): void;
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region ../browser/src/utils/pwa.d.ts
|
|
202
|
+
/**
|
|
203
|
+
* PWA Display Mode 检测
|
|
204
|
+
*
|
|
205
|
+
* 检测当前应用是否以 PWA 模式运行。
|
|
206
|
+
*/
|
|
207
|
+
type PWADisplayMode = "standalone" | "twa" | "browser";
|
|
208
|
+
/**
|
|
209
|
+
* 检测 PWA display mode
|
|
210
|
+
*
|
|
211
|
+
* - `standalone`: 已安装的 PWA(通过 Add to Home Screen)
|
|
212
|
+
* - `twa`: Trusted Web Activity(Android 原生壳)
|
|
213
|
+
* - `browser`: 普通浏览器标签页
|
|
214
|
+
*/
|
|
215
|
+
declare function getPWADisplayMode(): PWADisplayMode;
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region ../browser/src/metrics/types.d.ts
|
|
218
|
+
/** Impression 观察器 — 追踪元素可见性 */
|
|
219
|
+
interface ImpressionObserver {
|
|
220
|
+
/** 开始追踪一个元素 */
|
|
221
|
+
observe(element: Element, id: string, metadata?: Record<string, unknown>): void;
|
|
222
|
+
/** 停止追踪一个元素 */
|
|
223
|
+
unobserve(element: Element): void;
|
|
224
|
+
/** 获取已捕获的曝光并清空 */
|
|
225
|
+
consume(): ImpressionEntry[];
|
|
226
|
+
/** 销毁观察器 */
|
|
227
|
+
destroy(): void;
|
|
228
|
+
}
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region ../browser/src/metrics/impression-observer.d.ts
|
|
231
|
+
interface ImpressionObserverOptions {
|
|
232
|
+
/** 可见比例阈值(0~1),默认 0.5 */
|
|
233
|
+
threshold?: number;
|
|
234
|
+
/** 最小可见时长(毫秒),默认 1000 */
|
|
235
|
+
minVisibleDuration?: number;
|
|
236
|
+
}
|
|
237
|
+
declare class IntersectionImpressionObserver implements ImpressionObserver {
|
|
238
|
+
private readonly observer;
|
|
239
|
+
private readonly tracked;
|
|
240
|
+
private readonly captured;
|
|
241
|
+
private readonly minDuration;
|
|
242
|
+
constructor(options?: ImpressionObserverOptions);
|
|
243
|
+
observe(element: Element, id: string, metadata?: Record<string, unknown>): void;
|
|
244
|
+
unobserve(element: Element): void;
|
|
245
|
+
consume(): ImpressionEntry[];
|
|
246
|
+
destroy(): void;
|
|
247
|
+
}
|
|
248
|
+
//#endregion
|
|
249
|
+
//#region ../browser/src/i18n/locale.d.ts
|
|
250
|
+
declare function setHtmlLocaleAttributes(attrs: LocaleAttributes): void;
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region ../browser/src/middleware/context.d.ts
|
|
253
|
+
interface BrowserContextOptions {
|
|
254
|
+
url: string;
|
|
255
|
+
intent: RouteIntent;
|
|
256
|
+
container: Container;
|
|
257
|
+
}
|
|
258
|
+
/** 从 document.cookie 构建浏览器端上下文 */
|
|
259
|
+
declare function createBrowserContext(options: BrowserContextOptions): NavigationContext;
|
|
260
|
+
//#endregion
|
|
261
|
+
export { createBrowserApp as A, defaultShouldRestore as C, BrowserAppConfig as D, createNavigationBridge as E, BrowserAppHandle as O, createSessionBridge as S, NavigationBridgeDependencies as T, createDomRestore as _, IntersectionImpressionObserver as a, SESSION_DEFAULT_DEBOUNCE_MS as b, getPWADisplayMode as c, createPrefetchedIntentsFromDom as d, deserializeServerData as f, DomRestoreOptions as g, DomRestore as h, ImpressionObserverOptions as i, BrowserSessionConfig as k, resetFilterCache as l, History as m, createBrowserContext as n, ImpressionObserver as o, tryScroll as p, setHtmlLocaleAttributes as r, PWADisplayMode as s, BrowserContextOptions as t, shouldLog as u, createWebStorage as v, NavigationBridge as w, SessionBridgeOptions as x, BrowserSession as y };
|
|
262
|
+
//# sourceMappingURL=browser-kFMjlLGT.d.mts.map
|
package/dist/browser.d.mts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { A as makeSchema, C as ImpressionEntry, D as StandardIssue, E as ParamSchema, F as Token, I as createToken, M as Provider, N as ProviderContext, O as StandardResult, P as provide, S as EventRecorder, T as InferOutput, _ as OperationPolicy, a as compilePath, b as RuntimeOptions, c as ExecutionContext, d as ExecutionHandle, f as Implementation, g as OperationHandler, h as Operation, i as PathParams, j as Container, k as StandardSchemaV1, l as ExecutionError, m as ModuleDefinition, n as PathDescriptor, o as AnyOperation, p as Invocation, r as PathParameterDescriptor, s as AppDefinition, t as CompiledPath, u as ExecutionErrorCode, v as QueryCache, w as MetricsFieldsProvider, x as executionErrorFromHttp, y as RuntimeHandle } from "./path-CXT6xGPO.mjs";
|
|
2
|
+
import { $ as createActiveLeafCodec, $n as list, $t as MiddlewareResult, A as SessionStore, An as PlatformInfo, At as isCompoundAction, B as ControllerContext, Bn as ConsoleLoggerFactory, Bt as NavigationPath, C as SessionFailure, Cn as Storage, Ct as ACTION_KINDS, D as SessionSlice, Dn as LocaleInfo, Dt as ExternalUrlAction, E as SessionRestoreResult, En as LocaleAttributes, Et as CompoundAction, F as WebRuntime, Fn as ReportCallback, Ft as LeafNode, G as controllerContext, Gn as InferParams, Gt as SplitColumn, H as SERVER_CONTROLLER, Hn as Logger, Ht as NavigationSnapshot, I as WebRuntimeOptions, In as ReportingLogger, It as NAVIGATION_NODE_KINDS, J as resolveConfiguredMessages, Jn as QuerySchemaMap, Jt as StackNode, K as MessagesLoader, Kn as InferQuery, Kt as SplitNode, L as createWebRuntime, Ln as ReportingLoggerFactory, Lt as NavigationError, M as SessionWriteResult, Mn as BaseController, Mt as isFlowAction, N as StorageUnavailableError, Nn as ControllerFailure, Nt as makeExternalUrlAction, O as SessionSnapshot, On as TextDirection, Ot as FlowAction, P as WebConfiguration, Pn as ControllerInput, Pt as makeFlowAction, Q as NavigationRouterLike, Qn as isMultiValueSchema, Qt as DenyResult, R as PageControllerDefinition, Rn as ReportingLoggerOptions, Rt as NavigationNode, S as SessionErrorContext, Sn as FeatureFlagsProvider, St as ActionHandler, T as SessionNavigation, Tn as resolveMessages, Tt as ActionInvocation, U as SERVER_REQUEST, Un as LoggerFactory, Ut as ResolvedDestination, V as PageControllerInput, Vn as LogFilter, Vt as NavigationPathStep, W as ServerRequestState, Wn as ExtractParamNames, Wt as SPLIT_VISIBILITIES, X as FullStateCodecOptions, Xn as ListOptions, Xt as AfterLoadGuard, Y as DEFAULT_NAV_PARAM, Yn as StripOptional, Yt as TabsNode, Z as NavigationCodec, Zn as MultiValueSchema, Zt as BeforeLoadGuard, _ as AsyncStorage, _n as RouteInput, _t as PrefetchedIntents, a as NavigationCommitContext, an as deny, at as SerializedSplit, b as SESSION_DEFAULT_VERSION, bn as DEP_KEYS, bt as Router, c as NavigationTransactionContext, cn as rewrite, ct as SerializedTabs, d as createWebSession, dn as FINESOFT_PUBLIC, dt as serializeNavigationStable, en as NavigationContext, er as Intent, et as createFullStateCodec, f as AppSnapshot, fn as PublicProjection, ft as PageRoute, g as WebAppView, gn as markPublic, gt as PrefetchedIntent, h as ViewProps, hn as isPublicMarked, ht as route, i as BeforeNavigateResult, in as RewriteResult, it as SerializedNavigation, j as SessionStoreOptions, jn as detectPlatform, jt as isExternalUrlAction, k as SessionStateProvider, kn as Translator, kt as TreeAction, l as WebSession, ln as BASE_PAGE_FIELDS, lt as deserializeNavigation, m as ViewEntry, mn as getPublicFields, mt as RouteDefinition, n as BeforeCommitResult, nn as PostLoadContext, nt as encodeNavigationTreeParam, o as NavigationCommitError, on as next, ot as SerializedSplitColumn, p as NavigationSummary, pn as PublicValueCodec, pt as RenderMode, q as MessagesLoaderContext, qn as ParamsFor, qt as SplitVisibility, r as BeforeNavigatePolicy, rn as RedirectResult, rt as SerializedLeaf, s as NavigationContextInput, sn as redirect, st as SerializedStack, t as BeforeCommitPolicy, tn as NextResult, tt as decodeNavigationTreeParam, u as WebSessionOptions, un as BasePage, ut as serializeNavigation, v as NavigationScopedState, vn as RouteIntent, vt as RouteAddOptions, w as SessionLoadResult, wn as TranslationMessages, wt as Action, x as SessionError, xn as FeatureFlags, xt as ActionDispatcher, y as SESSION_DEFAULT_KEY, yn as RouteParams, yt as RouteMatch, z as WebAppDefinition, zn as ConsoleLogger, zt as NavigationNodeKind } from "./session-DnB4ZC3x.mjs";
|
|
3
|
+
import { $ as SimpleTranslatorOptions, $t as uuid, A as setVisibility, At as fetchWithRedirects, B as split, Bt as HttpError, C as popTo, Ct as isSome, D as resolveActivePath, Dt as mapEach, E as replaceTop, Et as Mapper, F as isLeafNode, Ft as HttpClientConfig, G as safeErrorPage, Gt as withDefault, H as tabs, Ht as CompositeLogger, I as isSplitNode, It as HttpRequestOptions, J as defineModule, Jt as bool, K as createRuntime, Kt as NumOptions, L as isStackNode, Lt as RequestInterceptor, M as resourceKey, Mt as classifyHost, N as SplitColumnInit, Nt as classifyUrl, O as selectColumn, Ot as pipe, P as TabsInit, Pt as HttpClient, Q as SimpleTranslator, Qt as str, R as isTabsNode, Rt as ResponseInterceptor, S as pop, St as isNone, T as push, Tt as AsyncMapper, U as RouteInputFor, Ut as CompositeLoggerFactory, V as stack, Vt as stableStringify, W as SafeErrorPageOptions, Wt as optional, X as implementController, Xt as num, Y as defineOperation, Yt as int, Z as implementOperation, Zt as oneOf, _ as collectAllLeaves, _t as removeHost, a as LoadPageOptions, at as PluralCategory, b as findNode, bt as None, c as defineWebApp, ct as interpolate, d as runBeforeLoadGuards, dt as VoidEventRecorder, et as getLocaleAttributes, f as createSessionStore, ft as ConsoleEventRecorder, g as encodeSnapshot, gt as getBaseUrl, h as decodeSnapshot, ht as buildUrl, i as resolveInitialNavigation, it as resolveLocaleFromUrl, j as visibleSplitColumns, jt as HostCheckResult, k as selectTab, kt as pipeAsync, l as getWebPlan, lt as resolvePluralKey, m as createNavigationScopedState, mt as generateUuid, n as PageReference, nt as isRtl, o as PageLoadResult, ot as PluralRuleProvider, p as collectLeafKeys, pt as CompositeEventRecorder, q as defineApp, qt as StrOptions, r as definePage, rt as makeLocaleInfo, s as loadPage, st as englishPlural, t as parseCookieString, tt as getTextDirection, u as runAfterLoadGuards, ut as WithFieldsRecorder, v as collectVisibleDestinations, vt as removeQueryParams, w as popToRoot, wt as LruMap, x as mapNavigationLeaves, xt as Optional, y as findNearestStack, yt as removeScheme, z as leaf, zt as HostGuardError } from "./cookies-Bpf9VayB.mjs";
|
|
4
|
+
import { a as enforceHostGuard, i as TargetGuardOptions, n as secureFetch, r as DnsLookup, t as SecureFetchOptions } from "./secure-fetch-Xlht2jd7.mjs";
|
|
5
|
+
import { a as WebHydration, c as decodeWireEnvelope, i as FRAMEWORK_PROTOCOL_VERSION, l as getFrameworkBuildId, n as ServerControllerProxy, o as WireDecodeResult, r as ServerControllerRequest, s as WireEnvelope, t as SERVER_CONTROLLER_PATH } from "./server-controller-proxy-BkVuVWVD.mjs";
|
|
6
|
+
import { A as createBrowserApp, C as defaultShouldRestore, D as BrowserAppConfig, E as createNavigationBridge, O as BrowserAppHandle, S as createSessionBridge, T as NavigationBridgeDependencies, _ as createDomRestore, a as IntersectionImpressionObserver, b as SESSION_DEFAULT_DEBOUNCE_MS, c as getPWADisplayMode, d as createPrefetchedIntentsFromDom, f as deserializeServerData, g as DomRestoreOptions, h as DomRestore, i as ImpressionObserverOptions, k as BrowserSessionConfig, l as resetFilterCache, m as History, n as createBrowserContext, o as ImpressionObserver, p as tryScroll, r as setHtmlLocaleAttributes, s as PWADisplayMode, t as BrowserContextOptions, u as shouldLog, v as createWebStorage, w as NavigationBridge, x as SessionBridgeOptions, y as BrowserSession } from "./browser-kFMjlLGT.mjs";
|
|
7
|
+
export { ACTION_KINDS, type Action, ActionDispatcher, type ActionHandler, type ActionInvocation, type AfterLoadGuard, AnyOperation, AppDefinition, AppSnapshot, type AsyncMapper, type AsyncStorage, BASE_PAGE_FIELDS, BaseController, type BasePage, type BeforeCommitPolicy, type BeforeCommitResult, type BeforeLoadGuard, type BeforeNavigatePolicy, type BeforeNavigateResult, type BrowserAppConfig, type BrowserAppHandle, type BrowserContextOptions, type BrowserSession, type BrowserSessionConfig, type CompiledPath, CompositeEventRecorder, CompositeLogger, CompositeLoggerFactory, type CompoundAction, ConsoleEventRecorder, ConsoleLogger, ConsoleLoggerFactory, Container, ControllerContext, type ControllerFailure, type ControllerInput, DEFAULT_NAV_PARAM, DEP_KEYS, type DenyResult, type DnsLookup, type DomRestore, type DomRestoreOptions, type EventRecorder, ExecutionContext, ExecutionError, ExecutionErrorCode, ExecutionHandle, type ExternalUrlAction, type ExtractParamNames, FINESOFT_PUBLIC, FRAMEWORK_PROTOCOL_VERSION, type FeatureFlags, type FeatureFlagsProvider, type FlowAction, type FullStateCodecOptions, History, type HostCheckResult, HostGuardError, HttpClient, type HttpClientConfig, HttpError, type HttpRequestOptions, Implementation, type ImpressionEntry, type ImpressionObserver, type ImpressionObserverOptions, type InferOutput, type InferParams, type InferQuery, type Intent, IntersectionImpressionObserver, Invocation, type LeafNode, type ListOptions, type LoadPageOptions, type LocaleAttributes, type LocaleInfo, type LogFilter, type Logger, type LoggerFactory, LruMap, type Mapper, type MessagesLoader, type MessagesLoaderContext, type MetricsFieldsProvider, type MiddlewareResult, ModuleDefinition, type MultiValueSchema, NAVIGATION_NODE_KINDS, type NavigationBridge, type NavigationBridgeDependencies, type NavigationCodec, type NavigationCommitContext, NavigationCommitError, type NavigationContext, type NavigationContextInput, NavigationError, type NavigationNode, type NavigationNodeKind, type NavigationPath, type NavigationPathStep, type NavigationRouterLike, type NavigationScopedState, type NavigationSnapshot, NavigationSummary, type NavigationTransactionContext, type NextResult, type None, type NumOptions, Operation, OperationHandler, OperationPolicy, type Optional, type PWADisplayMode, type PageControllerDefinition, PageControllerInput, type PageLoadResult, type PageReference, type PageRoute, type ParamSchema, type ParamsFor, type PathDescriptor, type PathParameterDescriptor, type PathParams, type PlatformInfo, type PluralCategory, type PluralRuleProvider, type PostLoadContext, type PrefetchedIntent, PrefetchedIntents, type Provider, type ProviderContext, type PublicProjection, type PublicValueCodec, QueryCache, type QuerySchemaMap, type RedirectResult, type RenderMode, type ReportCallback, ReportingLogger, ReportingLoggerFactory, type ReportingLoggerOptions, type RequestInterceptor, type ResolvedDestination, type ResponseInterceptor, type RewriteResult, type RouteAddOptions, type RouteDefinition, type RouteInput, type RouteInputFor, type RouteIntent, type RouteMatch, type RouteParams, Router, RuntimeHandle, RuntimeOptions, SERVER_CONTROLLER, SERVER_CONTROLLER_PATH, SERVER_REQUEST, SESSION_DEFAULT_DEBOUNCE_MS, SESSION_DEFAULT_KEY, SESSION_DEFAULT_VERSION, SPLIT_VISIBILITIES, type SafeErrorPageOptions, type SecureFetchOptions, type SerializedLeaf, type SerializedNavigation, type SerializedSplit, type SerializedSplitColumn, type SerializedStack, type SerializedTabs, ServerControllerProxy, type ServerControllerRequest, ServerRequestState, type SessionBridgeOptions, SessionError, type SessionErrorContext, type SessionFailure, type SessionLoadResult, type SessionNavigation, type SessionRestoreResult, type SessionSlice, type SessionSnapshot, type SessionStateProvider, type SessionStore, type SessionStoreOptions, type SessionWriteResult, SimpleTranslator, type SimpleTranslatorOptions, type SplitColumn, type SplitColumnInit, type SplitNode, type SplitVisibility, type StackNode, type StandardIssue, type StandardResult, type StandardSchemaV1, type Storage, StorageUnavailableError, type StrOptions, type StripOptional, type TabsInit, type TabsNode, type TargetGuardOptions, type TextDirection, type Token, type TranslationMessages, type Translator, type TreeAction, ViewEntry, ViewProps, VoidEventRecorder, type WebAppDefinition, WebAppView, type WebConfiguration, type WebHydration, type WebRuntime, type WebRuntimeOptions, type WebSession, type WebSessionOptions, type WireDecodeResult, type WireEnvelope, WithFieldsRecorder, bool, buildUrl, classifyHost, classifyUrl, collectAllLeaves, collectLeafKeys, collectVisibleDestinations, compilePath, controllerContext, createActiveLeafCodec, createBrowserApp, createBrowserContext, createDomRestore, createFullStateCodec, createNavigationBridge, createNavigationScopedState, createPrefetchedIntentsFromDom, createRuntime, createSessionBridge, createSessionStore, createToken, createWebRuntime, createWebSession, createWebStorage, decodeNavigationTreeParam, decodeSnapshot, decodeWireEnvelope, defaultShouldRestore, defineApp, defineModule, defineOperation, definePage, defineWebApp, deny, deserializeNavigation, deserializeServerData, detectPlatform, encodeNavigationTreeParam, encodeSnapshot, enforceHostGuard, englishPlural, executionErrorFromHttp, fetchWithRedirects, findNearestStack, findNode, generateUuid, getBaseUrl, getFrameworkBuildId, getLocaleAttributes, getPWADisplayMode, getPublicFields, getTextDirection, getWebPlan, implementController, implementOperation, int, interpolate, isCompoundAction, isExternalUrlAction, isFlowAction, isLeafNode, isMultiValueSchema, isNone, isPublicMarked, isRtl, isSome, isSplitNode, isStackNode, isTabsNode, leaf, list, loadPage, makeExternalUrlAction, makeFlowAction, makeLocaleInfo, makeSchema, mapEach, mapNavigationLeaves, markPublic, next, num, oneOf, optional, parseCookieString, pipe, pipeAsync, pop, popTo, popToRoot, provide, push, redirect, removeHost, removeQueryParams, removeScheme, replaceTop, resetFilterCache, resolveActivePath, resolveConfiguredMessages, resolveInitialNavigation, resolveLocaleFromUrl, resolveMessages, resolvePluralKey, resourceKey, rewrite, route, runAfterLoadGuards, runBeforeLoadGuards, safeErrorPage, secureFetch, selectColumn, selectTab, serializeNavigation, serializeNavigationStable, setHtmlLocaleAttributes, setVisibility, shouldLog, split, stableStringify, stack, str, tabs, tryScroll, uuid, visibleSplitColumns, withDefault };
|
package/dist/browser.mjs
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
|
-
import{$ as
|
|
1
|
+
import { $ as isLeafNode, A as createActiveLeafCodec, At as getTextDirection, B as findNode, Bt as fetchWithRedirects, C as runBeforeLoadGuards, Ct as defineModule, D as SERVER_REQUEST, Dt as SimpleTranslator, E as SERVER_CONTROLLER, Et as implementOperation, F as serializeNavigation, Ft as interpolate, G as push, Gt as ConsoleLogger, H as pop, Ht as stableStringify, I as serializeNavigationStable, It as resolvePluralKey, J as selectColumn, Jt as CompositeLoggerFactory, K as replaceTop, Kt as ConsoleLoggerFactory, L as collectAllLeaves, Lt as generateUuid, M as decodeNavigationTreeParam, Mt as makeLocaleInfo, N as encodeNavigationTreeParam, Nt as resolveLocaleFromUrl, O as controllerContext, Ot as resolveMessages, P as deserializeNavigation, Pt as englishPlural, Q as resourceKey, R as collectVisibleDestinations, Rt as detectPlatform, S as runAfterLoadGuards, St as defineApp, T as getWebPlan, Tt as implementController, U as popTo, Ut as ReportingLogger, V as mapNavigationLeaves, Vt as enforceHostGuard, W as popToRoot, Wt as ReportingLoggerFactory, X as setVisibility, Xt as list, Y as selectTab, Yt as isMultiValueSchema, Z as visibleSplitColumns, Zt as Container, _ as SERVER_CONTROLLER_PATH, _t as isFlowAction, a as createSessionStore, at as stack, b as decodeWireEnvelope, bt as provide, c as decodeSnapshot, ct as NavigationError, d as createWebSession, dt as PrefetchedIntents, et as isSplitNode, f as SESSION_DEFAULT_KEY, ft as Router, g as loadPage, gt as isExternalUrlAction, h as StorageUnavailableError, ht as isCompoundAction, i as createWebRuntime, it as split, j as createFullStateCodec, jt as isRtl, k as DEFAULT_NAV_PARAM, kt as getLocaleAttributes, l as encodeSnapshot, lt as SPLIT_VISIBILITIES, m as SessionError, mt as ACTION_KINDS, n as definePage, nt as isTabsNode, o as collectLeafKeys, ot as tabs, p as SESSION_DEFAULT_VERSION, pt as ActionDispatcher, q as resolveActivePath, qt as CompositeLogger, r as resolveInitialNavigation, rt as leaf, s as createNavigationScopedState, st as NAVIGATION_NODE_KINDS, t as parseCookieString, tt as isStackNode, u as NavigationCommitError, ut as route, v as ServerControllerProxy, vt as makeExternalUrlAction, w as defineWebApp, wt as defineOperation, x as getFrameworkBuildId, xt as createRuntime, y as FRAMEWORK_PROTOCOL_VERSION, yt as makeFlowAction, z as findNearestStack, zt as secureFetch } from "./src-qwx7Vw8g.mjs";
|
|
2
|
+
import { C as bool, D as str, E as oneOf, O as uuid, S as withDefault, T as num, _ as mapEach, a as safeErrorPage, b as HttpClient, c as ConsoleEventRecorder, d as getBaseUrl, f as removeHost, g as isSome, h as isNone, i as rewrite, k as makeSchema, l as CompositeEventRecorder, m as removeScheme, n as next, o as WithFieldsRecorder, p as removeQueryParams, r as redirect, s as VoidEventRecorder, t as deny, u as buildUrl, v as pipe, w as int, x as optional, y as pipeAsync } from "./types-BuaZHRG7.mjs";
|
|
3
|
+
import { i as HttpError, n as classifyUrl, r as HostGuardError, t as classifyHost } from "./host-guard-DDWxLpFL.mjs";
|
|
4
|
+
import { n as ExecutionError, r as executionErrorFromHttp, t as compilePath } from "./path-CGFl2w7D.mjs";
|
|
5
|
+
import { a as isPublicMarked, i as getPublicFields, n as BASE_PAGE_FIELDS, o as markPublic, r as FINESOFT_PUBLIC, s as BaseController, t as resolveConfiguredMessages } from "./messages-CAt2QdGr.mjs";
|
|
6
|
+
import { t as LruMap } from "./lru-map-BKoUAySU.mjs";
|
|
7
|
+
import { n as createToken, t as DEP_KEYS } from "./src-Ftl_0rhu.mjs";
|
|
8
|
+
import { _ as tryScroll, a as shouldLog, c as createDomRestore, d as createSessionBridge, f as defaultShouldRestore, g as History, h as createNavigationBridge, i as resetFilterCache, l as createWebStorage, m as deserializeServerData, n as IntersectionImpressionObserver, o as createBrowserApp, p as createPrefetchedIntentsFromDom, r as getPWADisplayMode, s as createBrowserContext, t as setHtmlLocaleAttributes, u as SESSION_DEFAULT_DEBOUNCE_MS } from "./browser-DIU6Sxl3.mjs";
|
|
9
|
+
export { ACTION_KINDS, ActionDispatcher, BASE_PAGE_FIELDS, BaseController, CompositeEventRecorder, CompositeLogger, CompositeLoggerFactory, ConsoleEventRecorder, ConsoleLogger, ConsoleLoggerFactory, Container, DEFAULT_NAV_PARAM, DEP_KEYS, ExecutionError, FINESOFT_PUBLIC, FRAMEWORK_PROTOCOL_VERSION, History, HostGuardError, HttpClient, HttpError, IntersectionImpressionObserver, LruMap, NAVIGATION_NODE_KINDS, NavigationCommitError, NavigationError, PrefetchedIntents, ReportingLogger, ReportingLoggerFactory, Router, SERVER_CONTROLLER, SERVER_CONTROLLER_PATH, SERVER_REQUEST, SESSION_DEFAULT_DEBOUNCE_MS, SESSION_DEFAULT_KEY, SESSION_DEFAULT_VERSION, SPLIT_VISIBILITIES, ServerControllerProxy, SessionError, SimpleTranslator, StorageUnavailableError, VoidEventRecorder, WithFieldsRecorder, bool, buildUrl, classifyHost, classifyUrl, collectAllLeaves, collectLeafKeys, collectVisibleDestinations, compilePath, controllerContext, createActiveLeafCodec, createBrowserApp, createBrowserContext, createDomRestore, createFullStateCodec, createNavigationBridge, createNavigationScopedState, createPrefetchedIntentsFromDom, createRuntime, createSessionBridge, createSessionStore, createToken, createWebRuntime, createWebSession, createWebStorage, decodeNavigationTreeParam, decodeSnapshot, decodeWireEnvelope, defaultShouldRestore, defineApp, defineModule, defineOperation, definePage, defineWebApp, deny, deserializeNavigation, deserializeServerData, detectPlatform, encodeNavigationTreeParam, encodeSnapshot, enforceHostGuard, englishPlural, executionErrorFromHttp, fetchWithRedirects, findNearestStack, findNode, generateUuid, getBaseUrl, getFrameworkBuildId, getLocaleAttributes, getPWADisplayMode, getPublicFields, getTextDirection, getWebPlan, implementController, implementOperation, int, interpolate, isCompoundAction, isExternalUrlAction, isFlowAction, isLeafNode, isMultiValueSchema, isNone, isPublicMarked, isRtl, isSome, isSplitNode, isStackNode, isTabsNode, leaf, list, loadPage, makeExternalUrlAction, makeFlowAction, makeLocaleInfo, makeSchema, mapEach, mapNavigationLeaves, markPublic, next, num, oneOf, optional, parseCookieString, pipe, pipeAsync, pop, popTo, popToRoot, provide, push, redirect, removeHost, removeQueryParams, removeScheme, replaceTop, resetFilterCache, resolveActivePath, resolveConfiguredMessages, resolveInitialNavigation, resolveLocaleFromUrl, resolveMessages, resolvePluralKey, resourceKey, rewrite, route, runAfterLoadGuards, runBeforeLoadGuards, safeErrorPage, secureFetch, selectColumn, selectTab, serializeNavigation, serializeNavigationStable, setHtmlLocaleAttributes, setVisibility, shouldLog, split, stableStringify, stack, str, tabs, tryScroll, uuid, visibleSplitColumns, withDefault };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region ../server/src/controller-types.d.ts
|
|
2
|
+
interface ControllerTypeOptions {
|
|
3
|
+
/** Application root containing tsconfig.json. */
|
|
4
|
+
root?: string;
|
|
5
|
+
/** Alternate TypeScript config, resolved relative to root. */
|
|
6
|
+
tsconfig?: string;
|
|
7
|
+
}
|
|
8
|
+
interface ControllerTypeResult {
|
|
9
|
+
readonly controllers: number;
|
|
10
|
+
readonly changed: readonly string[];
|
|
11
|
+
}
|
|
12
|
+
/** Generates type-only references; never imports or executes application modules. */
|
|
13
|
+
declare function generateControllerTypes(options?: ControllerTypeOptions): ControllerTypeResult;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ControllerTypeResult as n, generateControllerTypes as r, ControllerTypeOptions as t };
|
|
16
|
+
//# sourceMappingURL=controller-types-CgmJ6-le.d.mts.map
|