@real-router/core 0.40.1 → 0.42.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/cjs/Router-B2tmtNiM.d.ts +353 -0
- package/dist/cjs/Router-CVNR-dug.js +6 -0
- package/dist/cjs/Router-CVNR-dug.js.map +1 -0
- package/dist/cjs/RouterError-BkgjTHQg.js +2 -0
- package/dist/cjs/RouterError-BkgjTHQg.js.map +1 -0
- package/dist/cjs/RouterValidator-TUi8eT8Q.d.ts +112 -0
- package/dist/cjs/api.d.ts +17 -12
- package/dist/cjs/api.js +2 -1
- package/dist/cjs/api.js.map +1 -1
- package/dist/cjs/getPluginApi-BXrM_Nwv.js +2 -0
- package/dist/cjs/getPluginApi-BXrM_Nwv.js.map +1 -0
- package/dist/cjs/index.d.ts +206 -196
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/internals-na15rxo_.js +2 -0
- package/dist/cjs/internals-na15rxo_.js.map +1 -0
- package/dist/cjs/utils.d.ts +6 -3
- package/dist/cjs/utils.js +2 -1
- package/dist/cjs/utils.js.map +1 -1
- package/dist/cjs/validation.d.ts +153 -152
- package/dist/cjs/validation.js +1 -1
- package/dist/esm/Router-4JRfQLMM.d.mts +353 -0
- package/dist/esm/Router-C_k70gHi.mjs +6 -0
- package/dist/esm/Router-C_k70gHi.mjs.map +1 -0
- package/dist/esm/RouterError-D0RlQE_5.mjs +2 -0
- package/dist/esm/RouterError-D0RlQE_5.mjs.map +1 -0
- package/dist/esm/RouterValidator-DphcVMEp.d.mts +112 -0
- package/dist/esm/api.d.mts +17 -12
- package/dist/esm/api.mjs +2 -1
- package/dist/esm/api.mjs.map +1 -1
- package/dist/esm/getPluginApi-D0bBPuLp.mjs +2 -0
- package/dist/esm/getPluginApi-D0bBPuLp.mjs.map +1 -0
- package/dist/esm/index.d.mts +206 -196
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/internals-CCymabFj.mjs +2 -0
- package/dist/{cjs/validation.js.map → esm/internals-CCymabFj.mjs.map} +1 -1
- package/dist/esm/utils.d.mts +6 -3
- package/dist/esm/utils.mjs +2 -1
- package/dist/esm/utils.mjs.map +1 -1
- package/dist/esm/validation.d.mts +153 -152
- package/dist/esm/validation.mjs +1 -1
- package/package.json +5 -7
- package/src/Router.ts +4 -6
- package/src/api/getPluginApi.ts +2 -3
- package/src/helpers.ts +9 -7
- package/src/index.ts +0 -1
- package/src/internals.ts +4 -5
- package/src/namespaces/NavigationNamespace/NavigationNamespace.ts +0 -1
- package/src/namespaces/OptionsNamespace/constants.ts +1 -0
- package/src/namespaces/OptionsNamespace/helpers.ts +0 -1
- package/src/namespaces/RouterLifecycleNamespace/types.ts +1 -3
- package/src/namespaces/RoutesNamespace/RoutesNamespace.ts +3 -3
- package/src/namespaces/RoutesNamespace/types.ts +2 -2
- package/src/namespaces/StateNamespace/StateNamespace.ts +30 -34
- package/src/namespaces/StateNamespace/helpers.ts +8 -27
- package/src/stateMetaStore.ts +15 -0
- package/src/transitionPath.ts +13 -16
- package/src/types/RouterValidator.ts +0 -1
- package/src/wiring/RouterWiringBuilder.ts +1 -1
- package/dist/cjs/Router-B-Pev7K2.d.ts +0 -46
- package/dist/cjs/RouterValidator-mx2Zooya.d.ts +0 -136
- package/dist/cjs/index.d-y2b-8_3Y.d.ts +0 -236
- package/dist/cjs/metafile-cjs.json +0 -1
- package/dist/esm/Router-B-Pev7K2.d.mts +0 -46
- package/dist/esm/RouterValidator-mx2Zooya.d.mts +0 -136
- package/dist/esm/chunk-5QXFUUDL.mjs +0 -1
- package/dist/esm/chunk-5QXFUUDL.mjs.map +0 -1
- package/dist/esm/chunk-HHIXK5UM.mjs +0 -1
- package/dist/esm/chunk-HHIXK5UM.mjs.map +0 -1
- package/dist/esm/chunk-MNRZAE7T.mjs +0 -1
- package/dist/esm/chunk-MNRZAE7T.mjs.map +0 -1
- package/dist/esm/chunk-QUUNDESP.mjs +0 -1
- package/dist/esm/chunk-QUUNDESP.mjs.map +0 -1
- package/dist/esm/index.d-y2b-8_3Y.d.mts +0 -236
- package/dist/esm/metafile-esm.json +0 -1
- package/dist/esm/validation.mjs.map +0 -1
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Path Matcher Type Definitions.
|
|
3
|
-
*
|
|
4
|
-
* Core types for path matching and parameter extraction.
|
|
5
|
-
*
|
|
6
|
-
* @module path-matcher/types
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Constraint pattern for a URL parameter.
|
|
10
|
-
*/
|
|
11
|
-
interface ConstraintPattern {
|
|
12
|
-
/**
|
|
13
|
-
* Compiled RegExp for validating the parameter value.
|
|
14
|
-
*
|
|
15
|
-
* @example /^(\d+)$/ for constraint "<\\d+>"
|
|
16
|
-
*/
|
|
17
|
-
readonly pattern: RegExp;
|
|
18
|
-
/**
|
|
19
|
-
* Raw constraint string from the route pattern.
|
|
20
|
-
*
|
|
21
|
-
* @example "<\\d+>"
|
|
22
|
-
*/
|
|
23
|
-
readonly constraint: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Parameter metadata extracted from a route path pattern.
|
|
27
|
-
*/
|
|
28
|
-
interface ParamMeta {
|
|
29
|
-
/**
|
|
30
|
-
* URL parameter names extracted from the path pattern.
|
|
31
|
-
*
|
|
32
|
-
* @example [":id", ":postId"] from "/users/:id/posts/:postId"
|
|
33
|
-
*/
|
|
34
|
-
readonly urlParams: readonly string[];
|
|
35
|
-
/**
|
|
36
|
-
* Query parameter names extracted from the path pattern.
|
|
37
|
-
*
|
|
38
|
-
* @example ["q", "page"] from "/search?q&page"
|
|
39
|
-
*/
|
|
40
|
-
readonly queryParams: readonly string[];
|
|
41
|
-
/**
|
|
42
|
-
* Splat parameter names extracted from the path pattern.
|
|
43
|
-
*
|
|
44
|
-
* @example ["path"] from "/files/*path"
|
|
45
|
-
*/
|
|
46
|
-
readonly spatParams: readonly string[];
|
|
47
|
-
/**
|
|
48
|
-
* Map of parameter names to their type (url or query).
|
|
49
|
-
*
|
|
50
|
-
* @example { id: "url", q: "query" }
|
|
51
|
-
*/
|
|
52
|
-
readonly paramTypeMap: Readonly<Record<string, "url" | "query">>;
|
|
53
|
-
/**
|
|
54
|
-
* Map of parameter names to their constraint patterns.
|
|
55
|
-
*
|
|
56
|
-
* Only includes parameters with explicit constraints (e.g., `:id<\\d+>`).
|
|
57
|
-
* Parameters without constraints are not included in this map.
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```typescript
|
|
61
|
-
* buildParamMeta("/users/:id<\\d+>").constraintPatterns.get("id")
|
|
62
|
-
* // → { pattern: /^(\d+)$/, constraint: "<\\d+>" }
|
|
63
|
-
*
|
|
64
|
-
* buildParamMeta("/users/:id").constraintPatterns.size
|
|
65
|
-
* // → 0 (no constraints)
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
readonly constraintPatterns: ReadonlyMap<string, ConstraintPattern>;
|
|
69
|
-
/**
|
|
70
|
-
* Path pattern without query string, pre-computed for buildPath.
|
|
71
|
-
*
|
|
72
|
-
* @example "/users/:id" from "/users/:id?q&page"
|
|
73
|
-
*/
|
|
74
|
-
readonly pathPattern: string;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* URL parameter encoding strategies.
|
|
78
|
-
*
|
|
79
|
-
* - `default` - encodeURIComponent preserving sub-delimiters (+, :, ', !, ,, ;, *)
|
|
80
|
-
* - `uri` - encodeURI/decodeURI
|
|
81
|
-
* - `uriComponent` - encodeURIComponent/decodeURIComponent
|
|
82
|
-
* - `none` - no encoding/decoding
|
|
83
|
-
*/
|
|
84
|
-
type URLParamsEncodingType = "default" | "uri" | "uriComponent" | "none";
|
|
85
|
-
interface MatcherInputNode {
|
|
86
|
-
readonly name: string;
|
|
87
|
-
readonly path: string;
|
|
88
|
-
readonly fullName: string;
|
|
89
|
-
readonly absolute: boolean;
|
|
90
|
-
readonly children: ReadonlyMap<string, MatcherInputNode>;
|
|
91
|
-
readonly nonAbsoluteChildren: readonly MatcherInputNode[];
|
|
92
|
-
readonly paramMeta: ParamMeta;
|
|
93
|
-
readonly paramTypeMap: Readonly<Record<string, "url" | "query">>;
|
|
94
|
-
readonly staticPath: string | null;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Per-call options for buildPath.
|
|
98
|
-
*/
|
|
99
|
-
interface BuildPathOptions {
|
|
100
|
-
readonly queryParamsMode?: "default" | "strict" | "loose" | undefined;
|
|
101
|
-
readonly trailingSlash?: "default" | "always" | "never" | undefined;
|
|
102
|
-
}
|
|
103
|
-
interface MatchResult {
|
|
104
|
-
readonly segments: readonly MatcherInputNode[];
|
|
105
|
-
readonly params: Readonly<Record<string, unknown>>;
|
|
106
|
-
readonly meta: Readonly<Record<string, Record<string, "url" | "query">>>;
|
|
107
|
-
}
|
|
108
|
-
interface SegmentMatcherOptions {
|
|
109
|
-
caseSensitive?: boolean;
|
|
110
|
-
strictTrailingSlash?: boolean;
|
|
111
|
-
strictQueryParams?: boolean;
|
|
112
|
-
urlParamsEncoding?: URLParamsEncodingType;
|
|
113
|
-
parseQueryString?: (queryString: string) => Record<string, unknown>;
|
|
114
|
-
buildQueryString?: (params: Record<string, unknown>) => string;
|
|
115
|
-
}
|
|
116
|
-
interface ResolvedMatcherOptions {
|
|
117
|
-
readonly caseSensitive: boolean;
|
|
118
|
-
readonly strictTrailingSlash: boolean;
|
|
119
|
-
readonly strictQueryParams: boolean;
|
|
120
|
-
readonly urlParamsEncoding: URLParamsEncodingType;
|
|
121
|
-
readonly parseQueryString: (queryString: string) => Record<string, unknown>;
|
|
122
|
-
readonly buildQueryString: (params: Record<string, unknown>) => string;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
declare class SegmentMatcher {
|
|
126
|
-
#private;
|
|
127
|
-
get options(): ResolvedMatcherOptions;
|
|
128
|
-
constructor(options?: SegmentMatcherOptions);
|
|
129
|
-
registerTree(node: MatcherInputNode): void;
|
|
130
|
-
match(path: string): MatchResult | undefined;
|
|
131
|
-
buildPath(name: string, params?: Record<string, unknown>, options?: BuildPathOptions): string;
|
|
132
|
-
getSegmentsByName(name: string): readonly MatcherInputNode[] | undefined;
|
|
133
|
-
getMetaByName(name: string): Readonly<Record<string, Record<string, "url" | "query">>> | undefined;
|
|
134
|
-
hasRoute(name: string): boolean;
|
|
135
|
-
setRootPath(rootPath: string): void;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Builder Module Type Definitions.
|
|
140
|
-
*
|
|
141
|
-
* Types for route tree construction and data structures.
|
|
142
|
-
*
|
|
143
|
-
* @module builder/types
|
|
144
|
-
*/
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Definition of a route for configuration.
|
|
148
|
-
*/
|
|
149
|
-
interface RouteDefinition {
|
|
150
|
-
[key: string]: unknown;
|
|
151
|
-
name: string;
|
|
152
|
-
path: string;
|
|
153
|
-
children?: RouteDefinition[] | undefined;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Immutable route tree node.
|
|
157
|
-
*
|
|
158
|
-
* This is the core data structure of the new route-tree architecture.
|
|
159
|
-
* It contains only data (no methods) and is created by the builder.
|
|
160
|
-
*
|
|
161
|
-
* All caches are pre-computed at build time:
|
|
162
|
-
* - nonAbsoluteChildren: filtered children without absolute paths
|
|
163
|
-
* - absoluteDescendants: all descendants with absolute paths (recursive)
|
|
164
|
-
* - parentSegments: array from root to parent
|
|
165
|
-
* - fullName: pre-computed "users.profile" instead of runtime join
|
|
166
|
-
*/
|
|
167
|
-
interface RouteTree {
|
|
168
|
-
/** Route segment name (e.g., "users" in "users.profile") */
|
|
169
|
-
readonly name: string;
|
|
170
|
-
/** Route path pattern (e.g., "/users/:id") */
|
|
171
|
-
readonly path: string;
|
|
172
|
-
/** Whether this route uses absolute path matching (path starts with "~") */
|
|
173
|
-
readonly absolute: boolean;
|
|
174
|
-
/** Child route nodes (Map for O(1) lookup by name) */
|
|
175
|
-
readonly children: ReadonlyMap<string, RouteTree>;
|
|
176
|
-
/** Parameter metadata extracted from path pattern (replaces parser dependency) */
|
|
177
|
-
readonly paramMeta: ParamMeta;
|
|
178
|
-
/** Parent node (null for root) */
|
|
179
|
-
readonly parent: RouteTree | null;
|
|
180
|
-
/** Children without absolute paths (for regular matching) */
|
|
181
|
-
readonly nonAbsoluteChildren: readonly RouteTree[];
|
|
182
|
-
/** Pre-computed full name (e.g., "users.profile") */
|
|
183
|
-
readonly fullName: string;
|
|
184
|
-
/**
|
|
185
|
-
* Pre-computed static path for routes without parameters.
|
|
186
|
-
* Used by buildPath fast path to avoid inject() overhead.
|
|
187
|
-
* Only set when route has no URL params, query params, or splat params.
|
|
188
|
-
*/
|
|
189
|
-
readonly staticPath: string | null;
|
|
190
|
-
/**
|
|
191
|
-
* Pre-computed parameter type map for this segment.
|
|
192
|
-
* Cached to avoid recomputing on every navigation.
|
|
193
|
-
* Maps param name → "url" | "query".
|
|
194
|
-
*/
|
|
195
|
-
readonly paramTypeMap: Readonly<Record<string, "url" | "query">>;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Matcher Factory.
|
|
200
|
-
*
|
|
201
|
-
* Creates a pre-configured path matcher with search-params DI baked in.
|
|
202
|
-
* This is the public API for creating matchers — SegmentMatcher class
|
|
203
|
-
* and search-params functions are internal implementation details.
|
|
204
|
-
*
|
|
205
|
-
* @module route-tree/createMatcher
|
|
206
|
-
*/
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Query string formatting options.
|
|
210
|
-
*
|
|
211
|
-
* Controls how arrays, booleans, and nulls are serialized in query strings.
|
|
212
|
-
*/
|
|
213
|
-
interface QueryParamsConfig {
|
|
214
|
-
readonly arrayFormat?: "none" | "brackets" | "index" | "comma";
|
|
215
|
-
readonly booleanFormat?: "none" | "string" | "empty-true";
|
|
216
|
-
readonly nullFormat?: "default" | "hidden";
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Options for creating a path matcher.
|
|
220
|
-
*/
|
|
221
|
-
interface CreateMatcherOptions {
|
|
222
|
-
readonly caseSensitive?: boolean;
|
|
223
|
-
readonly strictTrailingSlash?: boolean;
|
|
224
|
-
readonly strictQueryParams?: boolean;
|
|
225
|
-
readonly urlParamsEncoding?: "default" | "uri" | "uriComponent" | "none";
|
|
226
|
-
readonly queryParams?: QueryParamsConfig;
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Path matcher instance type.
|
|
230
|
-
*
|
|
231
|
-
* Opaque type — consumers use methods (match, buildPath, hasRoute, etc.)
|
|
232
|
-
* without knowing the underlying SegmentMatcher implementation.
|
|
233
|
-
*/
|
|
234
|
-
type Matcher = SegmentMatcher;
|
|
235
|
-
|
|
236
|
-
export type { CreateMatcherOptions as C, Matcher as M, RouteTree as R, RouteDefinition as a };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"../../node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js":{"bytes":569,"imports":[],"format":"esm"},"../event-emitter/dist/esm/index.mjs":{"bytes":1750,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/constants.ts":{"bytes":3336,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/fsm/routerFSM.ts":{"bytes":3088,"imports":[{"path":"@real-router/fsm","kind":"import-statement","external":true},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/fsm/index.ts":{"bytes":188,"imports":[{"path":"src/fsm/routerFSM.ts","kind":"import-statement","original":"./routerFSM"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/guards.ts":{"bytes":1340,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/helpers.ts":{"bytes":5295,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/internals.ts":{"bytes":5226,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/DependenciesNamespace/dependenciesStore.ts":{"bytes":828,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/DependenciesNamespace/index.ts":{"bytes":190,"imports":[{"path":"src/namespaces/DependenciesNamespace/dependenciesStore.ts","kind":"import-statement","original":"./dependenciesStore"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/OptionsNamespace/constants.ts":{"bytes":502,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/OptionsNamespace/helpers.ts":{"bytes":1627,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/OptionsNamespace/validators.ts":{"bytes":465,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/OptionsNamespace/OptionsNamespace.ts":{"bytes":699,"imports":[{"path":"src/namespaces/OptionsNamespace/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/namespaces/OptionsNamespace/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/namespaces/OptionsNamespace/validators.ts","kind":"import-statement","original":"./validators"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/OptionsNamespace/index.ts":{"bytes":217,"imports":[{"path":"src/namespaces/OptionsNamespace/OptionsNamespace.ts","kind":"import-statement","original":"./OptionsNamespace"},{"path":"src/namespaces/OptionsNamespace/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/namespaces/OptionsNamespace/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/StateNamespace/helpers.ts":{"bytes":1053,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/StateNamespace/StateNamespace.ts":{"bytes":6447,"imports":[{"path":"src/namespaces/StateNamespace/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/StateNamespace/index.ts":{"bytes":168,"imports":[{"path":"src/namespaces/StateNamespace/StateNamespace.ts","kind":"import-statement","original":"./StateNamespace"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/PluginsNamespace/constants.ts":{"bytes":994,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/PluginsNamespace/validators.ts":{"bytes":929,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/PluginsNamespace/PluginsNamespace.ts":{"bytes":8942,"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"src/namespaces/PluginsNamespace/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/namespaces/PluginsNamespace/validators.ts","kind":"import-statement","original":"./validators"},{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/PluginsNamespace/index.ts":{"bytes":230,"imports":[{"path":"src/namespaces/PluginsNamespace/PluginsNamespace.ts","kind":"import-statement","original":"./PluginsNamespace"},{"path":"src/namespaces/PluginsNamespace/constants.ts","kind":"import-statement","original":"./constants"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.ts":{"bytes":11427,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/RouteLifecycleNamespace/index.ts":{"bytes":195,"imports":[{"path":"src/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.ts","kind":"import-statement","original":"./RouteLifecycleNamespace"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/RoutesNamespace/constants.ts":{"bytes":149,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/RoutesNamespace/helpers.ts":{"bytes":3038,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"../path-matcher/dist/esm/index.mjs":{"bytes":9525,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"../search-params/dist/esm/index.mjs":{"bytes":3813,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"../route-tree/dist/esm/index.mjs":{"bytes":6514,"imports":[{"path":"../path-matcher/dist/esm/index.mjs","kind":"import-statement","original":"path-matcher"},{"path":"../search-params/dist/esm/index.mjs","kind":"import-statement","original":"search-params"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/RoutesNamespace/forwardChain.ts":{"bytes":831,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/RoutesNamespace/routesStore.ts":{"bytes":10895,"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"../route-tree/dist/esm/index.mjs","kind":"import-statement","original":"route-tree"},{"path":"src/namespaces/RoutesNamespace/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/namespaces/RoutesNamespace/forwardChain.ts","kind":"import-statement","original":"./forwardChain"},{"path":"src/namespaces/RoutesNamespace/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/transitionPath.ts":{"bytes":13289,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/RoutesNamespace/RoutesNamespace.ts":{"bytes":15048,"imports":[{"path":"src/namespaces/RoutesNamespace/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/namespaces/RoutesNamespace/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/namespaces/RoutesNamespace/routesStore.ts","kind":"import-statement","original":"./routesStore"},{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/transitionPath.ts","kind":"import-statement","original":"../../transitionPath"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/RoutesNamespace/index.ts":{"bytes":326,"imports":[{"path":"src/namespaces/RoutesNamespace/RoutesNamespace.ts","kind":"import-statement","original":"./RoutesNamespace"},{"path":"src/namespaces/RoutesNamespace/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/namespaces/RoutesNamespace/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/RouterError.ts":{"bytes":10101,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/NavigationNamespace/constants.ts":{"bytes":2439,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/RouterError.ts","kind":"import-statement","original":"../../RouterError"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/NavigationNamespace/transition/completeTransition.ts":{"bytes":2242,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"../../../constants"},{"path":"src/helpers.ts","kind":"import-statement","original":"../../../helpers"},{"path":"src/RouterError.ts","kind":"import-statement","original":"../../../RouterError"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/NavigationNamespace/transition/errorHandling.ts":{"bytes":3458,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"../../../constants"},{"path":"src/RouterError.ts","kind":"import-statement","original":"../../../RouterError"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/NavigationNamespace/transition/guardPhase.ts":{"bytes":4726,"imports":[{"path":"src/namespaces/NavigationNamespace/transition/errorHandling.ts","kind":"import-statement","original":"./errorHandling"},{"path":"src/constants.ts","kind":"import-statement","original":"../../../constants"},{"path":"src/RouterError.ts","kind":"import-statement","original":"../../../RouterError"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/NavigationNamespace/NavigationNamespace.ts":{"bytes":10326,"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"src/namespaces/NavigationNamespace/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/namespaces/NavigationNamespace/transition/completeTransition.ts","kind":"import-statement","original":"./transition/completeTransition"},{"path":"src/namespaces/NavigationNamespace/transition/errorHandling.ts","kind":"import-statement","original":"./transition/errorHandling"},{"path":"src/namespaces/NavigationNamespace/transition/guardPhase.ts","kind":"import-statement","original":"./transition/guardPhase"},{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/RouterError.ts","kind":"import-statement","original":"../../RouterError"},{"path":"src/transitionPath.ts","kind":"import-statement","original":"../../transitionPath"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/NavigationNamespace/index.ts":{"bytes":179,"imports":[{"path":"src/namespaces/NavigationNamespace/NavigationNamespace.ts","kind":"import-statement","original":"./NavigationNamespace"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/RouterLifecycleNamespace/RouterLifecycleNamespace.ts":{"bytes":2267,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/RouterError.ts","kind":"import-statement","original":"../../RouterError"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/RouterLifecycleNamespace/index.ts":{"bytes":199,"imports":[{"path":"src/namespaces/RouterLifecycleNamespace/RouterLifecycleNamespace.ts","kind":"import-statement","original":"./RouterLifecycleNamespace"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/EventBusNamespace/EventBusNamespace.ts":{"bytes":7011,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/fsm/index.ts","kind":"import-statement","original":"../../fsm"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/EventBusNamespace/index.ts":{"bytes":166,"imports":[{"path":"src/namespaces/EventBusNamespace/EventBusNamespace.ts","kind":"import-statement","original":"./EventBusNamespace"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/index.ts":{"bytes":831,"imports":[{"path":"src/namespaces/DependenciesNamespace/index.ts","kind":"import-statement","original":"./DependenciesNamespace"},{"path":"src/namespaces/OptionsNamespace/index.ts","kind":"import-statement","original":"./OptionsNamespace"},{"path":"src/namespaces/StateNamespace/index.ts","kind":"import-statement","original":"./StateNamespace"},{"path":"src/namespaces/PluginsNamespace/index.ts","kind":"import-statement","original":"./PluginsNamespace"},{"path":"src/namespaces/RouteLifecycleNamespace/index.ts","kind":"import-statement","original":"./RouteLifecycleNamespace"},{"path":"src/namespaces/RoutesNamespace/index.ts","kind":"import-statement","original":"./RoutesNamespace"},{"path":"src/namespaces/NavigationNamespace/index.ts","kind":"import-statement","original":"./NavigationNamespace"},{"path":"src/namespaces/RouterLifecycleNamespace/index.ts","kind":"import-statement","original":"./RouterLifecycleNamespace"},{"path":"src/namespaces/EventBusNamespace/index.ts","kind":"import-statement","original":"./EventBusNamespace"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/RouterLifecycleNamespace/constants.ts":{"bytes":1142,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/RouterError.ts","kind":"import-statement","original":"../../RouterError"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/typeGuards.ts":{"bytes":1616,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/wiring/RouterWiringBuilder.ts":{"bytes":9224,"imports":[{"path":"src/internals.ts","kind":"import-statement","original":"../internals"},{"path":"src/namespaces/OptionsNamespace/index.ts","kind":"import-statement","original":"../namespaces/OptionsNamespace"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/wiring/wireRouter.ts":{"bytes":1058,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/wiring/index.ts":{"bytes":190,"imports":[{"path":"src/wiring/RouterWiringBuilder.ts","kind":"import-statement","original":"./RouterWiringBuilder"},{"path":"src/wiring/wireRouter.ts","kind":"import-statement","original":"./wireRouter"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/Router.ts":{"bytes":21261,"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"../event-emitter/dist/esm/index.mjs","kind":"import-statement","original":"event-emitter"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/fsm/index.ts","kind":"import-statement","original":"./fsm"},{"path":"src/guards.ts","kind":"import-statement","original":"./guards"},{"path":"src/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/internals.ts","kind":"import-statement","original":"./internals"},{"path":"src/namespaces/index.ts","kind":"import-statement","original":"./namespaces"},{"path":"src/namespaces/RouterLifecycleNamespace/constants.ts","kind":"import-statement","original":"./namespaces/RouterLifecycleNamespace/constants"},{"path":"src/RouterError.ts","kind":"import-statement","original":"./RouterError"},{"path":"src/transitionPath.ts","kind":"import-statement","original":"./transitionPath"},{"path":"src/typeGuards.ts","kind":"import-statement","original":"./typeGuards"},{"path":"src/wiring/index.ts","kind":"import-statement","original":"./wiring"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/createRouter.ts":{"bytes":897,"imports":[{"path":"src/Router.ts","kind":"import-statement","original":"./Router"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/getNavigator.ts":{"bytes":605,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":1178,"imports":[{"path":"src/Router.ts","kind":"import-statement","original":"./Router"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/RouterError.ts","kind":"import-statement","original":"./RouterError"},{"path":"src/createRouter.ts","kind":"import-statement","original":"./createRouter"},{"path":"src/getNavigator.ts","kind":"import-statement","original":"./getNavigator"},{"path":"src/namespaces/RoutesNamespace/forwardChain.ts","kind":"import-statement","original":"./namespaces/RoutesNamespace/forwardChain"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/api/helpers.ts":{"bytes":277,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"../constants"},{"path":"src/RouterError.ts","kind":"import-statement","original":"../RouterError"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/api/getPluginApi.ts":{"bytes":4308,"imports":[{"path":"src/api/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/constants.ts","kind":"import-statement","original":"../constants"},{"path":"src/internals.ts","kind":"import-statement","original":"../internals"},{"path":"src/RouterError.ts","kind":"import-statement","original":"../RouterError"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/namespaces/RoutesNamespace/routeGuards.ts":{"bytes":1735,"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/api/getRoutesApi.ts":{"bytes":16424,"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"src/api/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/guards.ts","kind":"import-statement","original":"../guards"},{"path":"src/internals.ts","kind":"import-statement","original":"../internals"},{"path":"src/namespaces/RoutesNamespace/helpers.ts","kind":"import-statement","original":"../namespaces/RoutesNamespace/helpers"},{"path":"src/namespaces/RoutesNamespace/routeGuards.ts","kind":"import-statement","original":"../namespaces/RoutesNamespace/routeGuards"},{"path":"src/namespaces/RoutesNamespace/routesStore.ts","kind":"import-statement","original":"../namespaces/RoutesNamespace/routesStore"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/api/getDependenciesApi.ts":{"bytes":4809,"imports":[{"path":"src/api/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/internals.ts","kind":"import-statement","original":"../internals"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/api/getLifecycleApi.ts":{"bytes":2073,"imports":[{"path":"src/api/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/internals.ts","kind":"import-statement","original":"../internals"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/api/cloneRouter.ts":{"bytes":2534,"imports":[{"path":"../route-tree/dist/esm/index.mjs","kind":"import-statement","original":"route-tree"},{"path":"src/constants.ts","kind":"import-statement","original":"../constants"},{"path":"src/internals.ts","kind":"import-statement","original":"../internals"},{"path":"src/Router.ts","kind":"import-statement","original":"../Router"},{"path":"src/RouterError.ts","kind":"import-statement","original":"../RouterError"},{"path":"src/api/getLifecycleApi.ts","kind":"import-statement","original":"./getLifecycleApi"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/api/index.ts":{"bytes":349,"imports":[{"path":"src/api/getPluginApi.ts","kind":"import-statement","original":"./getPluginApi"},{"path":"src/api/getRoutesApi.ts","kind":"import-statement","original":"./getRoutesApi"},{"path":"src/api/getDependenciesApi.ts","kind":"import-statement","original":"./getDependenciesApi"},{"path":"src/api/getLifecycleApi.ts","kind":"import-statement","original":"./getLifecycleApi"},{"path":"src/api/cloneRouter.ts","kind":"import-statement","original":"./cloneRouter"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/utils/getStaticPaths.ts":{"bytes":1225,"imports":[{"path":"src/api/getPluginApi.ts","kind":"import-statement","original":"../api/getPluginApi"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/utils/serializeState.ts":{"bytes":649,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/utils/index.ts":{"bytes":163,"imports":[{"path":"src/utils/getStaticPaths.ts","kind":"import-statement","original":"./getStaticPaths"},{"path":"src/utils/serializeState.ts","kind":"import-statement","original":"./serializeState"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/validation.ts":{"bytes":365,"imports":[{"path":"src/internals.ts","kind":"import-statement","original":"./internals"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/cjs/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":244231},"dist/cjs/index.js":{"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/fsm","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true}],"exports":["Router","RouterError","UNKNOWN_ROUTE","constants","createRouter","errorCodes","events","getNavigator","resolveForwardChain"],"entryPoint":"src/index.ts","inputs":{"src/Router.ts":{"bytesInOutput":14805},"../event-emitter/dist/esm/index.mjs":{"bytesInOutput":2693},"src/constants.ts":{"bytesInOutput":2164},"src/fsm/routerFSM.ts":{"bytesInOutput":1269},"src/fsm/index.ts":{"bytesInOutput":0},"src/guards.ts":{"bytesInOutput":846},"src/helpers.ts":{"bytesInOutput":1670},"src/internals.ts":{"bytesInOutput":1151},"src/namespaces/DependenciesNamespace/dependenciesStore.ts":{"bytesInOutput":336},"src/namespaces/DependenciesNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/index.ts":{"bytesInOutput":0},"src/namespaces/OptionsNamespace/constants.ts":{"bytesInOutput":306},"src/namespaces/OptionsNamespace/helpers.ts":{"bytesInOutput":385},"src/namespaces/OptionsNamespace/validators.ts":{"bytesInOutput":205},"src/namespaces/OptionsNamespace/OptionsNamespace.ts":{"bytesInOutput":303},"src/namespaces/OptionsNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/StateNamespace/helpers.ts":{"bytesInOutput":586},"src/namespaces/StateNamespace/StateNamespace.ts":{"bytesInOutput":4661},"src/namespaces/StateNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/PluginsNamespace/PluginsNamespace.ts":{"bytesInOutput":6672},"src/namespaces/PluginsNamespace/constants.ts":{"bytesInOutput":434},"src/namespaces/PluginsNamespace/validators.ts":{"bytesInOutput":435},"src/namespaces/PluginsNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.ts":{"bytesInOutput":8803},"src/namespaces/RouteLifecycleNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/RoutesNamespace/constants.ts":{"bytesInOutput":29},"src/namespaces/RoutesNamespace/helpers.ts":{"bytesInOutput":989},"src/namespaces/RoutesNamespace/routesStore.ts":{"bytesInOutput":5762},"../path-matcher/dist/esm/index.mjs":{"bytesInOutput":13080},"../search-params/dist/esm/index.mjs":{"bytesInOutput":4200},"../route-tree/dist/esm/index.mjs":{"bytesInOutput":3433},"src/namespaces/RoutesNamespace/forwardChain.ts":{"bytesInOutput":707},"src/transitionPath.ts":{"bytesInOutput":4751},"src/namespaces/RoutesNamespace/RoutesNamespace.ts":{"bytesInOutput":11120},"src/namespaces/RoutesNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/NavigationNamespace/NavigationNamespace.ts":{"bytesInOutput":8016},"src/RouterError.ts":{"bytesInOutput":8509},"src/namespaces/NavigationNamespace/constants.ts":{"bytesInOutput":635},"src/namespaces/NavigationNamespace/transition/completeTransition.ts":{"bytesInOutput":1508},"src/namespaces/NavigationNamespace/transition/errorHandling.ts":{"bytesInOutput":1476},"src/namespaces/NavigationNamespace/transition/guardPhase.ts":{"bytesInOutput":3516},"src/namespaces/NavigationNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/RouterLifecycleNamespace/RouterLifecycleNamespace.ts":{"bytesInOutput":1628},"src/namespaces/RouterLifecycleNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/EventBusNamespace/EventBusNamespace.ts":{"bytesInOutput":4808},"src/namespaces/EventBusNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/RouterLifecycleNamespace/constants.ts":{"bytesInOutput":91},"src/typeGuards.ts":{"bytesInOutput":1154},"src/wiring/RouterWiringBuilder.ts":{"bytesInOutput":6921},"src/wiring/index.ts":{"bytesInOutput":0},"src/wiring/wireRouter.ts":{"bytesInOutput":240},"src/index.ts":{"bytesInOutput":0},"src/createRouter.ts":{"bytesInOutput":126},"src/getNavigator.ts":{"bytesInOutput":390}},"bytes":133666},"dist/cjs/api.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":290178},"dist/cjs/api.js":{"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/fsm","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true}],"exports":["cloneRouter","getDependenciesApi","getLifecycleApi","getPluginApi","getRoutesApi"],"entryPoint":"src/api/index.ts","inputs":{"src/constants.ts":{"bytesInOutput":2164},"src/helpers.ts":{"bytesInOutput":1670},"src/RouterError.ts":{"bytesInOutput":8509},"src/api/helpers.ts":{"bytesInOutput":122},"src/internals.ts":{"bytesInOutput":1151},"src/api/getPluginApi.ts":{"bytesInOutput":3634},"src/api/index.ts":{"bytesInOutput":0},"src/api/getRoutesApi.ts":{"bytesInOutput":10018},"src/guards.ts":{"bytesInOutput":846},"src/namespaces/RoutesNamespace/helpers.ts":{"bytesInOutput":1653},"src/namespaces/RoutesNamespace/routeGuards.ts":{"bytesInOutput":1025},"src/namespaces/RoutesNamespace/routesStore.ts":{"bytesInOutput":5762},"../path-matcher/dist/esm/index.mjs":{"bytesInOutput":13075},"../search-params/dist/esm/index.mjs":{"bytesInOutput":4200},"../route-tree/dist/esm/index.mjs":{"bytesInOutput":3507},"src/namespaces/RoutesNamespace/constants.ts":{"bytesInOutput":29},"src/namespaces/RoutesNamespace/forwardChain.ts":{"bytesInOutput":707},"src/api/getDependenciesApi.ts":{"bytesInOutput":3238},"src/api/getLifecycleApi.ts":{"bytesInOutput":1617},"src/Router.ts":{"bytesInOutput":14806},"../event-emitter/dist/esm/index.mjs":{"bytesInOutput":2699},"src/fsm/routerFSM.ts":{"bytesInOutput":1269},"src/fsm/index.ts":{"bytesInOutput":0},"src/namespaces/DependenciesNamespace/dependenciesStore.ts":{"bytesInOutput":336},"src/namespaces/DependenciesNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/index.ts":{"bytesInOutput":0},"src/namespaces/OptionsNamespace/constants.ts":{"bytesInOutput":306},"src/namespaces/OptionsNamespace/helpers.ts":{"bytesInOutput":385},"src/namespaces/OptionsNamespace/validators.ts":{"bytesInOutput":205},"src/namespaces/OptionsNamespace/OptionsNamespace.ts":{"bytesInOutput":303},"src/namespaces/OptionsNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/StateNamespace/helpers.ts":{"bytesInOutput":586},"src/namespaces/StateNamespace/StateNamespace.ts":{"bytesInOutput":4661},"src/namespaces/StateNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/PluginsNamespace/PluginsNamespace.ts":{"bytesInOutput":6686},"src/namespaces/PluginsNamespace/constants.ts":{"bytesInOutput":434},"src/namespaces/PluginsNamespace/validators.ts":{"bytesInOutput":435},"src/namespaces/PluginsNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.ts":{"bytesInOutput":8803},"src/namespaces/RouteLifecycleNamespace/index.ts":{"bytesInOutput":0},"src/transitionPath.ts":{"bytesInOutput":4751},"src/namespaces/RoutesNamespace/RoutesNamespace.ts":{"bytesInOutput":11120},"src/namespaces/RoutesNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/NavigationNamespace/NavigationNamespace.ts":{"bytesInOutput":8016},"src/namespaces/NavigationNamespace/constants.ts":{"bytesInOutput":635},"src/namespaces/NavigationNamespace/transition/completeTransition.ts":{"bytesInOutput":1508},"src/namespaces/NavigationNamespace/transition/errorHandling.ts":{"bytesInOutput":1476},"src/namespaces/NavigationNamespace/transition/guardPhase.ts":{"bytesInOutput":3516},"src/namespaces/NavigationNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/RouterLifecycleNamespace/RouterLifecycleNamespace.ts":{"bytesInOutput":1628},"src/namespaces/RouterLifecycleNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/EventBusNamespace/EventBusNamespace.ts":{"bytesInOutput":4808},"src/namespaces/EventBusNamespace/index.ts":{"bytesInOutput":0},"src/namespaces/RouterLifecycleNamespace/constants.ts":{"bytesInOutput":91},"src/typeGuards.ts":{"bytesInOutput":1154},"src/wiring/RouterWiringBuilder.ts":{"bytesInOutput":6921},"src/wiring/index.ts":{"bytesInOutput":0},"src/wiring/wireRouter.ts":{"bytesInOutput":240},"src/api/cloneRouter.ts":{"bytesInOutput":1806}},"bytes":155899},"dist/cjs/utils.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":39358},"dist/cjs/utils.js":{"imports":[],"exports":["getStaticPaths","serializeState"],"entryPoint":"src/utils/index.ts","inputs":{"src/constants.ts":{"bytesInOutput":947},"src/helpers.ts":{"bytesInOutput":989},"src/RouterError.ts":{"bytesInOutput":8509},"src/api/helpers.ts":{"bytesInOutput":122},"src/internals.ts":{"bytesInOutput":267},"src/api/getPluginApi.ts":{"bytesInOutput":3634},"src/utils/getStaticPaths.ts":{"bytesInOutput":767},"src/utils/index.ts":{"bytesInOutput":0},"src/utils/serializeState.ts":{"bytesInOutput":221}},"bytes":15701},"dist/cjs/validation.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":5705},"dist/cjs/validation.js":{"imports":[],"exports":["getInternals"],"entryPoint":"src/validation.ts","inputs":{"src/internals.ts":{"bytesInOutput":267},"src/validation.ts":{"bytesInOutput":0}},"bytes":314}}}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { DefaultDependencies, Router as Router$1, Route, Options, Params, State, PluginFactory, Unsubscribe, SubscribeFn, NavigationOptions } from '@real-router/types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Router class with integrated namespace architecture.
|
|
5
|
-
*
|
|
6
|
-
* All functionality is provided by namespace classes:
|
|
7
|
-
* - OptionsNamespace: getOptions (immutable)
|
|
8
|
-
* - DependenciesStore: get/set/remove dependencies
|
|
9
|
-
* - EventEmitter: subscribe
|
|
10
|
-
* - StateNamespace: state storage (getState, setState, getPreviousState)
|
|
11
|
-
* - RoutesNamespace: route tree operations
|
|
12
|
-
* - RouteLifecycleNamespace: canActivate/canDeactivate guards
|
|
13
|
-
* - PluginsNamespace: plugin lifecycle
|
|
14
|
-
* - NavigationNamespace: navigate
|
|
15
|
-
* - RouterLifecycleNamespace: start, stop, isStarted
|
|
16
|
-
*
|
|
17
|
-
* @internal This class implementation is internal. Use createRouter() instead.
|
|
18
|
-
*/
|
|
19
|
-
declare class Router<Dependencies extends DefaultDependencies = DefaultDependencies> implements Router$1<Dependencies> {
|
|
20
|
-
#private;
|
|
21
|
-
[key: string]: unknown;
|
|
22
|
-
/**
|
|
23
|
-
* @param routes - Route definitions
|
|
24
|
-
* @param options - Router options
|
|
25
|
-
* @param dependencies - DI dependencies
|
|
26
|
-
*/
|
|
27
|
-
constructor(routes?: Route<Dependencies>[], options?: Partial<Options>, dependencies?: Dependencies);
|
|
28
|
-
isActiveRoute(name: string, params?: Params, strictEquality?: boolean, ignoreQueryParams?: boolean): boolean;
|
|
29
|
-
buildPath(route: string, params?: Params): string;
|
|
30
|
-
getState<P extends Params = Params, MP extends Params = Params>(): State<P, MP> | undefined;
|
|
31
|
-
getPreviousState(): State | undefined;
|
|
32
|
-
areStatesEqual(state1: State | undefined, state2: State | undefined, ignoreQueryParams?: boolean): boolean;
|
|
33
|
-
shouldUpdateNode(nodeName: string): (toState: State, fromState?: State) => boolean;
|
|
34
|
-
isActive(): boolean;
|
|
35
|
-
start(startPath: string): Promise<State>;
|
|
36
|
-
stop(): this;
|
|
37
|
-
dispose(): void;
|
|
38
|
-
canNavigateTo(name: string, params?: Params): boolean;
|
|
39
|
-
usePlugin(...plugins: (PluginFactory<Dependencies> | false | null | undefined)[]): Unsubscribe;
|
|
40
|
-
subscribe(listener: SubscribeFn): Unsubscribe;
|
|
41
|
-
navigate(routeName: string, routeParams?: Params, options?: NavigationOptions): Promise<State>;
|
|
42
|
-
navigateToDefault(options?: NavigationOptions): Promise<State>;
|
|
43
|
-
navigateToNotFound(path?: string): State;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export { Router as R };
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { Params, RouteTreeState, LimitsConfig } from '@real-router/types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Core-internal types + re-exports from @real-router/types.
|
|
5
|
-
*
|
|
6
|
-
* Factory types (PluginFactory, GuardFnFactory) and
|
|
7
|
-
* route config types (Route, RouteConfigUpdate) are canonical in @real-router/types
|
|
8
|
-
* and re-exported here for backward compatibility.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Immutable limits configuration type.
|
|
13
|
-
*/
|
|
14
|
-
type Limits = Readonly<LimitsConfig>;
|
|
15
|
-
/**
|
|
16
|
-
* Extended build result that includes segments for path building.
|
|
17
|
-
* Used internally to avoid duplicate getSegmentsByName calls.
|
|
18
|
-
*
|
|
19
|
-
* @param segments - Route segments from getSegmentsByName (typed as unknown[] for cross-package compatibility)
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
interface BuildStateResultWithSegments<P extends Params = Params> {
|
|
23
|
-
readonly state: RouteTreeState<P>;
|
|
24
|
-
readonly segments: readonly unknown[];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* RouterValidator interface - defines all validation methods used by the router.
|
|
29
|
-
*
|
|
30
|
-
* This interface is implemented by the validation plugin and injected into RouterInternals.
|
|
31
|
-
* When ctx.validator is null (default), validation is skipped.
|
|
32
|
-
* When ctx.validator is set (by validation plugin), all methods are called.
|
|
33
|
-
*
|
|
34
|
-
* All parameters use `unknown` type to avoid coupling to internal type names.
|
|
35
|
-
*/
|
|
36
|
-
interface RouterValidator {
|
|
37
|
-
/**
|
|
38
|
-
* Route validation methods
|
|
39
|
-
*/
|
|
40
|
-
routes: {
|
|
41
|
-
validateBuildPathArgs: (route: unknown) => void;
|
|
42
|
-
validateMatchPathArgs: (path: unknown) => void;
|
|
43
|
-
validateIsActiveRouteArgs: (name: unknown, params: unknown, strict: unknown, ignoreQP: unknown) => void;
|
|
44
|
-
validateShouldUpdateNodeArgs: (name: unknown) => void;
|
|
45
|
-
validateStateBuilderArgs: (name: unknown, params: unknown, caller: string) => void;
|
|
46
|
-
validateAddRouteArgs: (routes: unknown) => void;
|
|
47
|
-
validateRoutes: (routes: unknown[], tree: unknown) => void;
|
|
48
|
-
validateRemoveRouteArgs: (name: unknown) => void;
|
|
49
|
-
validateUpdateRouteBasicArgs: (name: unknown, updates: unknown) => void;
|
|
50
|
-
validateUpdateRoutePropertyTypes: (name: string, updates: unknown) => void;
|
|
51
|
-
validateUpdateRoute: (name: string, updates: unknown, tree: unknown) => void;
|
|
52
|
-
validateParentOption: (parent: unknown, tree: unknown) => void;
|
|
53
|
-
validateRouteName: (name: unknown, caller: string) => void;
|
|
54
|
-
throwIfInternalRoute: (name: unknown, caller: string) => void;
|
|
55
|
-
throwIfInternalRouteInArray: (routes: unknown[], caller: string) => void;
|
|
56
|
-
validateExistingRoutes: (store: unknown) => void;
|
|
57
|
-
validateForwardToConsistency: (store: unknown) => void;
|
|
58
|
-
validateSetRootPathArgs: (rootPath: unknown) => void;
|
|
59
|
-
guardRouteCallbacks: (route: unknown) => void;
|
|
60
|
-
guardNoAsyncCallbacks: (route: unknown) => void;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Options validation methods
|
|
64
|
-
*/
|
|
65
|
-
options: {
|
|
66
|
-
validateLimitValue: (name: string, value: unknown) => void;
|
|
67
|
-
validateLimits: (limits: unknown) => void;
|
|
68
|
-
validateOptions: (options: unknown, methodName: string) => void;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Dependencies validation methods
|
|
72
|
-
*/
|
|
73
|
-
dependencies: {
|
|
74
|
-
validateDependencyName: (name: unknown, caller: string) => void;
|
|
75
|
-
validateSetDependencyArgs: (name: unknown, value: unknown, caller: string) => void;
|
|
76
|
-
validateDependenciesObject: (deps: unknown, caller: string) => void;
|
|
77
|
-
validateDependencyExists: (name: string, store: unknown) => void;
|
|
78
|
-
validateDependencyLimit: (store: unknown, limits: unknown) => void;
|
|
79
|
-
validateDependenciesStructure: (store: unknown) => void;
|
|
80
|
-
validateDependencyCount: (store: unknown, methodName: string) => void;
|
|
81
|
-
validateCloneArgs: (dependencies: unknown) => void;
|
|
82
|
-
warnOverwrite: (name: string, methodName: string) => void;
|
|
83
|
-
warnBatchOverwrite: (keys: string[], methodName: string) => void;
|
|
84
|
-
warnRemoveNonExistent: (name: unknown) => void;
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* Plugin validation methods
|
|
88
|
-
*/
|
|
89
|
-
plugins: {
|
|
90
|
-
validatePluginLimit: (count: number, limits: unknown) => void;
|
|
91
|
-
validateNoDuplicatePlugins: (factory: unknown, factories: unknown[]) => void;
|
|
92
|
-
validatePluginKeys: (plugin: unknown) => void;
|
|
93
|
-
validateCountThresholds: (count: number) => void;
|
|
94
|
-
warnBatchDuplicates: (plugins: unknown[]) => void;
|
|
95
|
-
warnPluginMethodType: (methodName: string) => void;
|
|
96
|
-
warnPluginAfterStart: (methodName: string) => void;
|
|
97
|
-
validateAddInterceptorArgs: (method: unknown, fn: unknown) => void;
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* Lifecycle guard validation methods
|
|
101
|
-
*/
|
|
102
|
-
lifecycle: {
|
|
103
|
-
validateHandler: (handler: unknown, caller: string) => void;
|
|
104
|
-
validateNotRegistering: (name: string, guards: unknown, caller: string) => void;
|
|
105
|
-
validateHandlerLimit: (count: number, limits: unknown, caller: string) => void;
|
|
106
|
-
validateCountThresholds: (count: number, methodName: string) => void;
|
|
107
|
-
warnOverwrite: (name: string, type: string, methodName: string) => void;
|
|
108
|
-
warnAsyncGuardSync: (name: string, methodName: string) => void;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Navigation validation methods
|
|
112
|
-
*/
|
|
113
|
-
navigation: {
|
|
114
|
-
validateNavigateArgs: (name: unknown) => void;
|
|
115
|
-
validateNavigateToDefaultArgs: (options: unknown) => void;
|
|
116
|
-
validateNavigationOptions: (options: unknown, caller: string) => void;
|
|
117
|
-
validateParams: (params: unknown, methodName: string) => void;
|
|
118
|
-
validateStartArgs: (path: unknown) => void;
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* State validation methods
|
|
122
|
-
*/
|
|
123
|
-
state: {
|
|
124
|
-
validateMakeStateArgs: (name: unknown, params: unknown, path: unknown, forceId: unknown) => void;
|
|
125
|
-
validateAreStatesEqualArgs: (s1: unknown, s2: unknown, ignoreQP: unknown) => void;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Event bus validation methods
|
|
129
|
-
*/
|
|
130
|
-
eventBus: {
|
|
131
|
-
validateEventName: (name: unknown) => void;
|
|
132
|
-
validateListenerArgs: (name: unknown, cb: unknown) => void;
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export type { BuildStateResultWithSegments as B, Limits as L, RouterValidator as R };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.freeze({ROUTER_NOT_STARTED:"NOT_STARTED",NO_START_PATH_OR_STATE:"NO_START_PATH_OR_STATE",ROUTER_ALREADY_STARTED:"ALREADY_STARTED",ROUTE_NOT_FOUND:"ROUTE_NOT_FOUND",SAME_STATES:"SAME_STATES",CANNOT_DEACTIVATE:"CANNOT_DEACTIVATE",CANNOT_ACTIVATE:"CANNOT_ACTIVATE",TRANSITION_ERR:"TRANSITION_ERR",TRANSITION_CANCELLED:"CANCELLED",ROUTER_DISPOSED:"DISPOSED",PLUGIN_CONFLICT:"PLUGIN_CONFLICT"}),t="@@router/UNKNOWN_ROUTE",r={UNKNOWN_ROUTE:t},s={ROUTER_START:"onStart",ROUTER_STOP:"onStop",TRANSITION_START:"onTransitionStart",TRANSITION_CANCEL:"onTransitionCancel",TRANSITION_SUCCESS:"onTransitionSuccess",TRANSITION_ERROR:"onTransitionError"},n={ROUTER_START:"$start",ROUTER_STOP:"$stop",TRANSITION_START:"$$start",TRANSITION_CANCEL:"$$cancel",TRANSITION_SUCCESS:"$$success",TRANSITION_ERROR:"$$error"},o={maxDependencies:100,maxPlugins:50,maxListeners:1e4,warnListeners:1e3,maxEventDepth:5,maxLifecycleHandlers:200},i=Object.freeze({}),T=new WeakSet;function a(e){if(null!==e&&"object"==typeof e&&!Object.isFrozen(e))if(Object.freeze(e),Array.isArray(e))for(const t of e)a(t);else for(const t in e)a(e[t])}function c(e){return e?(T.has(e)||(a(e),T.add(e)),e):e}function O(e={}){return{...o,...e}}var E=new Set(Object.values(e)),A=new Set(["code","segment","path","redirect"]),R=new Set(["setCode","setErrorInstance","setAdditionalFields","hasField","getField","toJSON"]),S=class extends Error{segment;path;redirect;code;constructor(e,{message:t,segment:r,path:s,redirect:n,...o}={}){super(t??e),this.code=e,this.segment=r,this.path=s,this.redirect=n?function(e){if(!e)return e;if(null===(t=e)||"object"!=typeof t||"string"!=typeof t.name||"string"!=typeof t.path||"object"!=typeof t.params||null===t.params)throw new TypeError("[deepFreezeState] Expected valid State object, got: "+typeof e);var t;const r=structuredClone(e),s=new WeakSet;return function e(t){if(null===t||"object"!=typeof t)return;if(s.has(t))return;s.add(t),Object.freeze(t);const r=Array.isArray(t)?t:Object.values(t);for(const t of r)e(t)}(r),r}(n):void 0;for(const[e,t]of Object.entries(o)){if(A.has(e))throw new TypeError(`[RouterError] Cannot set reserved property "${e}"`);R.has(e)||(this[e]=t)}}setCode(e){this.code=e,E.has(this.message)&&(this.message=e)}setErrorInstance(e){if(!e)throw new TypeError("[RouterError.setErrorInstance] err parameter is required and must be an Error instance");this.message=e.message,this.cause=e.cause,this.stack=e.stack??""}setAdditionalFields(e){for(const[t,r]of Object.entries(e)){if(A.has(t))throw new TypeError(`[RouterError.setAdditionalFields] Cannot set reserved property "${t}"`);R.has(t)||(this[t]=r)}}hasField(e){return e in this}getField(e){return this[e]}toJSON(){const e={code:this.code,message:this.message};void 0!==this.segment&&(e.segment=this.segment),void 0!==this.path&&(e.path=this.path),void 0!==this.redirect&&(e.redirect=this.redirect);const t=new Set(["code","message","segment","path","redirect","stack"]);for(const r in this)Object.hasOwn(this,r)&&!t.has(r)&&(e[r]=this[r]);return e}};export{o as DEFAULT_LIMITS,i as EMPTY_PARAMS,S as RouterError,t as UNKNOWN_ROUTE,r as constants,O as createLimits,e as errorCodes,n as events,c as freezeStateInPlace,s as plugins};//# sourceMappingURL=chunk-5QXFUUDL.mjs.map
|