@tanstack/router-core 0.0.1-beta.163 → 0.0.1-beta.165
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/build/cjs/index.js +3 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/router.js.map +1 -1
- package/build/cjs/scroll-restoration.js +136 -0
- package/build/cjs/scroll-restoration.js.map +1 -0
- package/build/esm/index.js +120 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +139 -114
- package/build/types/index.d.ts +10 -4
- package/build/umd/index.development.js +121 -0
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +2 -2
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/router.ts +3 -3
- package/src/scroll-restoration.ts +175 -0
package/build/stats-html.html
CHANGED
|
@@ -4024,7 +4024,7 @@ var drawChart = (function (exports) {
|
|
|
4024
4024
|
</script>
|
|
4025
4025
|
<script>
|
|
4026
4026
|
/*<!--*/
|
|
4027
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"node_modules/.pnpm","children":[{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"
|
|
4027
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"node_modules/.pnpm","children":[{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"06a4-15"},{"name":"tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","uid":"06a4-17"}]},{"name":"packages","children":[{"name":"router-core/src","children":[{"uid":"06a4-19","name":"history.ts"},{"uid":"06a4-21","name":"utils.ts"},{"uid":"06a4-23","name":"path.ts"},{"uid":"06a4-25","name":"qss.ts"},{"uid":"06a4-27","name":"route.ts"},{"uid":"06a4-29","name":"fileRoute.ts"},{"uid":"06a4-33","name":"searchParams.ts"},{"uid":"06a4-35","name":"router.ts"},{"uid":"06a4-37","name":"scroll-restoration.ts"},{"uid":"06a4-39","name":"index.ts"}]},{"name":"store/build/esm/index.js","uid":"06a4-31"}]}]}],"isRoot":true},"nodeParts":{"06a4-15":{"renderedLength":199,"gzipLength":134,"brotliLength":0,"mainUid":"06a4-14"},"06a4-17":{"renderedLength":48,"gzipLength":65,"brotliLength":0,"mainUid":"06a4-16"},"06a4-19":{"renderedLength":6455,"gzipLength":1542,"brotliLength":0,"mainUid":"06a4-18"},"06a4-21":{"renderedLength":2821,"gzipLength":990,"brotliLength":0,"mainUid":"06a4-20"},"06a4-23":{"renderedLength":6028,"gzipLength":1423,"brotliLength":0,"mainUid":"06a4-22"},"06a4-25":{"renderedLength":1371,"gzipLength":552,"brotliLength":0,"mainUid":"06a4-24"},"06a4-27":{"renderedLength":2251,"gzipLength":784,"brotliLength":0,"mainUid":"06a4-26"},"06a4-29":{"renderedLength":223,"gzipLength":143,"brotliLength":0,"mainUid":"06a4-28"},"06a4-31":{"renderedLength":1969,"gzipLength":653,"brotliLength":0,"mainUid":"06a4-30"},"06a4-33":{"renderedLength":1924,"gzipLength":603,"brotliLength":0,"mainUid":"06a4-32"},"06a4-35":{"renderedLength":39323,"gzipLength":8732,"brotliLength":0,"mainUid":"06a4-34"},"06a4-37":{"renderedLength":4363,"gzipLength":1174,"brotliLength":0,"mainUid":"06a4-36"},"06a4-39":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"06a4-38"}},"nodeMetas":{"06a4-14":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"06a4-15"},"imported":[],"importedBy":[{"uid":"06a4-38"},{"uid":"06a4-26"},{"uid":"06a4-34"}]},"06a4-16":{"id":"/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","moduleParts":{"index.production.js":"06a4-17"},"imported":[],"importedBy":[{"uid":"06a4-38"}]},"06a4-18":{"id":"/packages/router-core/src/history.ts","moduleParts":{"index.production.js":"06a4-19"},"imported":[],"importedBy":[{"uid":"06a4-38"},{"uid":"06a4-34"}]},"06a4-20":{"id":"/packages/router-core/src/utils.ts","moduleParts":{"index.production.js":"06a4-21"},"imported":[],"importedBy":[{"uid":"06a4-38"},{"uid":"06a4-22"},{"uid":"06a4-34"}]},"06a4-22":{"id":"/packages/router-core/src/path.ts","moduleParts":{"index.production.js":"06a4-23"},"imported":[{"uid":"06a4-20"}],"importedBy":[{"uid":"06a4-38"},{"uid":"06a4-26"},{"uid":"06a4-34"}]},"06a4-24":{"id":"/packages/router-core/src/qss.ts","moduleParts":{"index.production.js":"06a4-25"},"imported":[],"importedBy":[{"uid":"06a4-38"},{"uid":"06a4-32"}]},"06a4-26":{"id":"/packages/router-core/src/route.ts","moduleParts":{"index.production.js":"06a4-27"},"imported":[{"uid":"06a4-14"},{"uid":"06a4-22"}],"importedBy":[{"uid":"06a4-38"},{"uid":"06a4-28"}]},"06a4-28":{"id":"/packages/router-core/src/fileRoute.ts","moduleParts":{"index.production.js":"06a4-29"},"imported":[{"uid":"06a4-26"}],"importedBy":[{"uid":"06a4-38"}]},"06a4-30":{"id":"/packages/store/build/esm/index.js","moduleParts":{"index.production.js":"06a4-31"},"imported":[],"importedBy":[{"uid":"06a4-42"}]},"06a4-32":{"id":"/packages/router-core/src/searchParams.ts","moduleParts":{"index.production.js":"06a4-33"},"imported":[{"uid":"06a4-24"}],"importedBy":[{"uid":"06a4-38"},{"uid":"06a4-34"}]},"06a4-34":{"id":"/packages/router-core/src/router.ts","moduleParts":{"index.production.js":"06a4-35"},"imported":[{"uid":"06a4-42"},{"uid":"06a4-14"},{"uid":"06a4-22"},{"uid":"06a4-32"},{"uid":"06a4-20"},{"uid":"06a4-18"}],"importedBy":[{"uid":"06a4-38"}]},"06a4-36":{"id":"/packages/router-core/src/scroll-restoration.ts","moduleParts":{"index.production.js":"06a4-37"},"imported":[],"importedBy":[{"uid":"06a4-38"}]},"06a4-38":{"id":"/packages/router-core/src/index.ts","moduleParts":{"index.production.js":"06a4-39"},"imported":[{"uid":"06a4-14"},{"uid":"06a4-16"},{"uid":"06a4-18"},{"uid":"06a4-40"},{"uid":"06a4-22"},{"uid":"06a4-24"},{"uid":"06a4-26"},{"uid":"06a4-28"},{"uid":"06a4-41"},{"uid":"06a4-34"},{"uid":"06a4-32"},{"uid":"06a4-20"},{"uid":"06a4-36"}],"importedBy":[],"isEntry":true},"06a4-40":{"id":"/packages/router-core/src/link.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"06a4-38"}]},"06a4-41":{"id":"/packages/router-core/src/routeInfo.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"06a4-38"}]},"06a4-42":{"id":"/packages/react-store/build/esm/index.js","moduleParts":{},"imported":[{"uid":"06a4-43"},{"uid":"06a4-30"}],"importedBy":[{"uid":"06a4-34"}]},"06a4-43":{"id":"use-sync-external-store/shim/with-selector","moduleParts":{},"imported":[],"importedBy":[{"uid":"06a4-42"}],"isExternal":true}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
4028
4028
|
|
|
4029
4029
|
const run = () => {
|
|
4030
4030
|
const width = window.innerWidth;
|
package/build/stats-react.json
CHANGED
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"children": [
|
|
12
12
|
{
|
|
13
13
|
"name": "tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
|
|
14
|
-
"uid": "
|
|
14
|
+
"uid": "06a4-45"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
|
|
18
|
-
"uid": "
|
|
18
|
+
"uid": "06a4-47"
|
|
19
19
|
}
|
|
20
20
|
]
|
|
21
21
|
},
|
|
@@ -26,46 +26,50 @@
|
|
|
26
26
|
"name": "router-core/src",
|
|
27
27
|
"children": [
|
|
28
28
|
{
|
|
29
|
-
"uid": "
|
|
29
|
+
"uid": "06a4-49",
|
|
30
30
|
"name": "history.ts"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
"uid": "
|
|
33
|
+
"uid": "06a4-51",
|
|
34
34
|
"name": "utils.ts"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
"uid": "
|
|
37
|
+
"uid": "06a4-53",
|
|
38
38
|
"name": "path.ts"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
"uid": "
|
|
41
|
+
"uid": "06a4-55",
|
|
42
42
|
"name": "qss.ts"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
"uid": "
|
|
45
|
+
"uid": "06a4-57",
|
|
46
46
|
"name": "route.ts"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
|
-
"uid": "
|
|
49
|
+
"uid": "06a4-59",
|
|
50
50
|
"name": "fileRoute.ts"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
"uid": "
|
|
53
|
+
"uid": "06a4-63",
|
|
54
54
|
"name": "searchParams.ts"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
"uid": "
|
|
57
|
+
"uid": "06a4-65",
|
|
58
58
|
"name": "router.ts"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
|
-
"uid": "
|
|
61
|
+
"uid": "06a4-67",
|
|
62
|
+
"name": "scroll-restoration.ts"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"uid": "06a4-69",
|
|
62
66
|
"name": "index.ts"
|
|
63
67
|
}
|
|
64
68
|
]
|
|
65
69
|
},
|
|
66
70
|
{
|
|
67
71
|
"name": "store/build/esm/index.js",
|
|
68
|
-
"uid": "
|
|
72
|
+
"uid": "06a4-61"
|
|
69
73
|
}
|
|
70
74
|
]
|
|
71
75
|
}
|
|
@@ -75,370 +79,391 @@
|
|
|
75
79
|
"isRoot": true
|
|
76
80
|
},
|
|
77
81
|
"nodeParts": {
|
|
78
|
-
"
|
|
82
|
+
"06a4-45": {
|
|
79
83
|
"renderedLength": 199,
|
|
80
84
|
"gzipLength": 134,
|
|
81
85
|
"brotliLength": 0,
|
|
82
|
-
"mainUid": "
|
|
86
|
+
"mainUid": "06a4-44"
|
|
83
87
|
},
|
|
84
|
-
"
|
|
88
|
+
"06a4-47": {
|
|
85
89
|
"renderedLength": 48,
|
|
86
90
|
"gzipLength": 65,
|
|
87
91
|
"brotliLength": 0,
|
|
88
|
-
"mainUid": "
|
|
92
|
+
"mainUid": "06a4-46"
|
|
89
93
|
},
|
|
90
|
-
"
|
|
94
|
+
"06a4-49": {
|
|
91
95
|
"renderedLength": 6455,
|
|
92
96
|
"gzipLength": 1542,
|
|
93
97
|
"brotliLength": 0,
|
|
94
|
-
"mainUid": "
|
|
98
|
+
"mainUid": "06a4-48"
|
|
95
99
|
},
|
|
96
|
-
"
|
|
100
|
+
"06a4-51": {
|
|
97
101
|
"renderedLength": 2821,
|
|
98
102
|
"gzipLength": 990,
|
|
99
103
|
"brotliLength": 0,
|
|
100
|
-
"mainUid": "
|
|
104
|
+
"mainUid": "06a4-50"
|
|
101
105
|
},
|
|
102
|
-
"
|
|
106
|
+
"06a4-53": {
|
|
103
107
|
"renderedLength": 6028,
|
|
104
108
|
"gzipLength": 1423,
|
|
105
109
|
"brotliLength": 0,
|
|
106
|
-
"mainUid": "
|
|
110
|
+
"mainUid": "06a4-52"
|
|
107
111
|
},
|
|
108
|
-
"
|
|
112
|
+
"06a4-55": {
|
|
109
113
|
"renderedLength": 1371,
|
|
110
114
|
"gzipLength": 552,
|
|
111
115
|
"brotliLength": 0,
|
|
112
|
-
"mainUid": "
|
|
116
|
+
"mainUid": "06a4-54"
|
|
113
117
|
},
|
|
114
|
-
"
|
|
118
|
+
"06a4-57": {
|
|
115
119
|
"renderedLength": 2251,
|
|
116
120
|
"gzipLength": 784,
|
|
117
121
|
"brotliLength": 0,
|
|
118
|
-
"mainUid": "
|
|
122
|
+
"mainUid": "06a4-56"
|
|
119
123
|
},
|
|
120
|
-
"
|
|
124
|
+
"06a4-59": {
|
|
121
125
|
"renderedLength": 223,
|
|
122
126
|
"gzipLength": 143,
|
|
123
127
|
"brotliLength": 0,
|
|
124
|
-
"mainUid": "
|
|
128
|
+
"mainUid": "06a4-58"
|
|
125
129
|
},
|
|
126
|
-
"
|
|
130
|
+
"06a4-61": {
|
|
127
131
|
"renderedLength": 1969,
|
|
128
132
|
"gzipLength": 653,
|
|
129
133
|
"brotliLength": 0,
|
|
130
|
-
"mainUid": "
|
|
134
|
+
"mainUid": "06a4-60"
|
|
131
135
|
},
|
|
132
|
-
"
|
|
136
|
+
"06a4-63": {
|
|
133
137
|
"renderedLength": 1924,
|
|
134
138
|
"gzipLength": 603,
|
|
135
139
|
"brotliLength": 0,
|
|
136
|
-
"mainUid": "
|
|
140
|
+
"mainUid": "06a4-62"
|
|
137
141
|
},
|
|
138
|
-
"
|
|
142
|
+
"06a4-65": {
|
|
139
143
|
"renderedLength": 39323,
|
|
140
144
|
"gzipLength": 8732,
|
|
141
145
|
"brotliLength": 0,
|
|
142
|
-
"mainUid": "
|
|
146
|
+
"mainUid": "06a4-64"
|
|
147
|
+
},
|
|
148
|
+
"06a4-67": {
|
|
149
|
+
"renderedLength": 4363,
|
|
150
|
+
"gzipLength": 1174,
|
|
151
|
+
"brotliLength": 0,
|
|
152
|
+
"mainUid": "06a4-66"
|
|
143
153
|
},
|
|
144
|
-
"
|
|
154
|
+
"06a4-69": {
|
|
145
155
|
"renderedLength": 0,
|
|
146
156
|
"gzipLength": 0,
|
|
147
157
|
"brotliLength": 0,
|
|
148
|
-
"mainUid": "
|
|
158
|
+
"mainUid": "06a4-68"
|
|
149
159
|
}
|
|
150
160
|
},
|
|
151
161
|
"nodeMetas": {
|
|
152
|
-
"
|
|
162
|
+
"06a4-44": {
|
|
153
163
|
"id": "/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
|
|
154
164
|
"moduleParts": {
|
|
155
|
-
"index.production.js": "
|
|
165
|
+
"index.production.js": "06a4-45"
|
|
156
166
|
},
|
|
157
167
|
"imported": [],
|
|
158
168
|
"importedBy": [
|
|
159
169
|
{
|
|
160
|
-
"uid": "
|
|
170
|
+
"uid": "06a4-68"
|
|
161
171
|
},
|
|
162
172
|
{
|
|
163
|
-
"uid": "
|
|
173
|
+
"uid": "06a4-56"
|
|
164
174
|
},
|
|
165
175
|
{
|
|
166
|
-
"uid": "
|
|
176
|
+
"uid": "06a4-64"
|
|
167
177
|
}
|
|
168
178
|
]
|
|
169
179
|
},
|
|
170
|
-
"
|
|
180
|
+
"06a4-46": {
|
|
171
181
|
"id": "/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
|
|
172
182
|
"moduleParts": {
|
|
173
|
-
"index.production.js": "
|
|
183
|
+
"index.production.js": "06a4-47"
|
|
174
184
|
},
|
|
175
185
|
"imported": [],
|
|
176
186
|
"importedBy": [
|
|
177
187
|
{
|
|
178
|
-
"uid": "
|
|
188
|
+
"uid": "06a4-68"
|
|
179
189
|
}
|
|
180
190
|
]
|
|
181
191
|
},
|
|
182
|
-
"
|
|
192
|
+
"06a4-48": {
|
|
183
193
|
"id": "/packages/router-core/src/history.ts",
|
|
184
194
|
"moduleParts": {
|
|
185
|
-
"index.production.js": "
|
|
195
|
+
"index.production.js": "06a4-49"
|
|
186
196
|
},
|
|
187
197
|
"imported": [],
|
|
188
198
|
"importedBy": [
|
|
189
199
|
{
|
|
190
|
-
"uid": "
|
|
200
|
+
"uid": "06a4-68"
|
|
191
201
|
},
|
|
192
202
|
{
|
|
193
|
-
"uid": "
|
|
203
|
+
"uid": "06a4-64"
|
|
194
204
|
}
|
|
195
205
|
]
|
|
196
206
|
},
|
|
197
|
-
"
|
|
207
|
+
"06a4-50": {
|
|
198
208
|
"id": "/packages/router-core/src/utils.ts",
|
|
199
209
|
"moduleParts": {
|
|
200
|
-
"index.production.js": "
|
|
210
|
+
"index.production.js": "06a4-51"
|
|
201
211
|
},
|
|
202
212
|
"imported": [],
|
|
203
213
|
"importedBy": [
|
|
204
214
|
{
|
|
205
|
-
"uid": "
|
|
215
|
+
"uid": "06a4-68"
|
|
206
216
|
},
|
|
207
217
|
{
|
|
208
|
-
"uid": "
|
|
218
|
+
"uid": "06a4-52"
|
|
209
219
|
},
|
|
210
220
|
{
|
|
211
|
-
"uid": "
|
|
221
|
+
"uid": "06a4-64"
|
|
212
222
|
}
|
|
213
223
|
]
|
|
214
224
|
},
|
|
215
|
-
"
|
|
225
|
+
"06a4-52": {
|
|
216
226
|
"id": "/packages/router-core/src/path.ts",
|
|
217
227
|
"moduleParts": {
|
|
218
|
-
"index.production.js": "
|
|
228
|
+
"index.production.js": "06a4-53"
|
|
219
229
|
},
|
|
220
230
|
"imported": [
|
|
221
231
|
{
|
|
222
|
-
"uid": "
|
|
232
|
+
"uid": "06a4-50"
|
|
223
233
|
}
|
|
224
234
|
],
|
|
225
235
|
"importedBy": [
|
|
226
236
|
{
|
|
227
|
-
"uid": "
|
|
237
|
+
"uid": "06a4-68"
|
|
228
238
|
},
|
|
229
239
|
{
|
|
230
|
-
"uid": "
|
|
240
|
+
"uid": "06a4-56"
|
|
231
241
|
},
|
|
232
242
|
{
|
|
233
|
-
"uid": "
|
|
243
|
+
"uid": "06a4-64"
|
|
234
244
|
}
|
|
235
245
|
]
|
|
236
246
|
},
|
|
237
|
-
"
|
|
247
|
+
"06a4-54": {
|
|
238
248
|
"id": "/packages/router-core/src/qss.ts",
|
|
239
249
|
"moduleParts": {
|
|
240
|
-
"index.production.js": "
|
|
250
|
+
"index.production.js": "06a4-55"
|
|
241
251
|
},
|
|
242
252
|
"imported": [],
|
|
243
253
|
"importedBy": [
|
|
244
254
|
{
|
|
245
|
-
"uid": "
|
|
255
|
+
"uid": "06a4-68"
|
|
246
256
|
},
|
|
247
257
|
{
|
|
248
|
-
"uid": "
|
|
258
|
+
"uid": "06a4-62"
|
|
249
259
|
}
|
|
250
260
|
]
|
|
251
261
|
},
|
|
252
|
-
"
|
|
262
|
+
"06a4-56": {
|
|
253
263
|
"id": "/packages/router-core/src/route.ts",
|
|
254
264
|
"moduleParts": {
|
|
255
|
-
"index.production.js": "
|
|
265
|
+
"index.production.js": "06a4-57"
|
|
256
266
|
},
|
|
257
267
|
"imported": [
|
|
258
268
|
{
|
|
259
|
-
"uid": "
|
|
269
|
+
"uid": "06a4-44"
|
|
260
270
|
},
|
|
261
271
|
{
|
|
262
|
-
"uid": "
|
|
272
|
+
"uid": "06a4-52"
|
|
263
273
|
}
|
|
264
274
|
],
|
|
265
275
|
"importedBy": [
|
|
266
276
|
{
|
|
267
|
-
"uid": "
|
|
277
|
+
"uid": "06a4-68"
|
|
268
278
|
},
|
|
269
279
|
{
|
|
270
|
-
"uid": "
|
|
280
|
+
"uid": "06a4-58"
|
|
271
281
|
}
|
|
272
282
|
]
|
|
273
283
|
},
|
|
274
|
-
"
|
|
284
|
+
"06a4-58": {
|
|
275
285
|
"id": "/packages/router-core/src/fileRoute.ts",
|
|
276
286
|
"moduleParts": {
|
|
277
|
-
"index.production.js": "
|
|
287
|
+
"index.production.js": "06a4-59"
|
|
278
288
|
},
|
|
279
289
|
"imported": [
|
|
280
290
|
{
|
|
281
|
-
"uid": "
|
|
291
|
+
"uid": "06a4-56"
|
|
282
292
|
}
|
|
283
293
|
],
|
|
284
294
|
"importedBy": [
|
|
285
295
|
{
|
|
286
|
-
"uid": "
|
|
296
|
+
"uid": "06a4-68"
|
|
287
297
|
}
|
|
288
298
|
]
|
|
289
299
|
},
|
|
290
|
-
"
|
|
300
|
+
"06a4-60": {
|
|
291
301
|
"id": "/packages/store/build/esm/index.js",
|
|
292
302
|
"moduleParts": {
|
|
293
|
-
"index.production.js": "
|
|
303
|
+
"index.production.js": "06a4-61"
|
|
294
304
|
},
|
|
295
305
|
"imported": [],
|
|
296
306
|
"importedBy": [
|
|
297
307
|
{
|
|
298
|
-
"uid": "
|
|
308
|
+
"uid": "06a4-72"
|
|
299
309
|
}
|
|
300
310
|
]
|
|
301
311
|
},
|
|
302
|
-
"
|
|
312
|
+
"06a4-62": {
|
|
303
313
|
"id": "/packages/router-core/src/searchParams.ts",
|
|
304
314
|
"moduleParts": {
|
|
305
|
-
"index.production.js": "
|
|
315
|
+
"index.production.js": "06a4-63"
|
|
306
316
|
},
|
|
307
317
|
"imported": [
|
|
308
318
|
{
|
|
309
|
-
"uid": "
|
|
319
|
+
"uid": "06a4-54"
|
|
310
320
|
}
|
|
311
321
|
],
|
|
312
322
|
"importedBy": [
|
|
313
323
|
{
|
|
314
|
-
"uid": "
|
|
324
|
+
"uid": "06a4-68"
|
|
315
325
|
},
|
|
316
326
|
{
|
|
317
|
-
"uid": "
|
|
327
|
+
"uid": "06a4-64"
|
|
318
328
|
}
|
|
319
329
|
]
|
|
320
330
|
},
|
|
321
|
-
"
|
|
331
|
+
"06a4-64": {
|
|
322
332
|
"id": "/packages/router-core/src/router.ts",
|
|
323
333
|
"moduleParts": {
|
|
324
|
-
"index.production.js": "
|
|
334
|
+
"index.production.js": "06a4-65"
|
|
325
335
|
},
|
|
326
336
|
"imported": [
|
|
327
337
|
{
|
|
328
|
-
"uid": "
|
|
338
|
+
"uid": "06a4-72"
|
|
329
339
|
},
|
|
330
340
|
{
|
|
331
|
-
"uid": "
|
|
341
|
+
"uid": "06a4-44"
|
|
332
342
|
},
|
|
333
343
|
{
|
|
334
|
-
"uid": "
|
|
344
|
+
"uid": "06a4-52"
|
|
335
345
|
},
|
|
336
346
|
{
|
|
337
|
-
"uid": "
|
|
347
|
+
"uid": "06a4-62"
|
|
338
348
|
},
|
|
339
349
|
{
|
|
340
|
-
"uid": "
|
|
350
|
+
"uid": "06a4-50"
|
|
341
351
|
},
|
|
342
352
|
{
|
|
343
|
-
"uid": "
|
|
353
|
+
"uid": "06a4-48"
|
|
344
354
|
}
|
|
345
355
|
],
|
|
346
356
|
"importedBy": [
|
|
347
357
|
{
|
|
348
|
-
"uid": "
|
|
358
|
+
"uid": "06a4-68"
|
|
359
|
+
}
|
|
360
|
+
]
|
|
361
|
+
},
|
|
362
|
+
"06a4-66": {
|
|
363
|
+
"id": "/packages/router-core/src/scroll-restoration.ts",
|
|
364
|
+
"moduleParts": {
|
|
365
|
+
"index.production.js": "06a4-67"
|
|
366
|
+
},
|
|
367
|
+
"imported": [],
|
|
368
|
+
"importedBy": [
|
|
369
|
+
{
|
|
370
|
+
"uid": "06a4-68"
|
|
349
371
|
}
|
|
350
372
|
]
|
|
351
373
|
},
|
|
352
|
-
"
|
|
374
|
+
"06a4-68": {
|
|
353
375
|
"id": "/packages/router-core/src/index.ts",
|
|
354
376
|
"moduleParts": {
|
|
355
|
-
"index.production.js": "
|
|
377
|
+
"index.production.js": "06a4-69"
|
|
356
378
|
},
|
|
357
379
|
"imported": [
|
|
358
380
|
{
|
|
359
|
-
"uid": "
|
|
381
|
+
"uid": "06a4-44"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"uid": "06a4-46"
|
|
360
385
|
},
|
|
361
386
|
{
|
|
362
|
-
"uid": "
|
|
387
|
+
"uid": "06a4-48"
|
|
363
388
|
},
|
|
364
389
|
{
|
|
365
|
-
"uid": "
|
|
390
|
+
"uid": "06a4-70"
|
|
366
391
|
},
|
|
367
392
|
{
|
|
368
|
-
"uid": "
|
|
393
|
+
"uid": "06a4-52"
|
|
369
394
|
},
|
|
370
395
|
{
|
|
371
|
-
"uid": "
|
|
396
|
+
"uid": "06a4-54"
|
|
372
397
|
},
|
|
373
398
|
{
|
|
374
|
-
"uid": "
|
|
399
|
+
"uid": "06a4-56"
|
|
375
400
|
},
|
|
376
401
|
{
|
|
377
|
-
"uid": "
|
|
402
|
+
"uid": "06a4-58"
|
|
378
403
|
},
|
|
379
404
|
{
|
|
380
|
-
"uid": "
|
|
405
|
+
"uid": "06a4-71"
|
|
381
406
|
},
|
|
382
407
|
{
|
|
383
|
-
"uid": "
|
|
408
|
+
"uid": "06a4-64"
|
|
384
409
|
},
|
|
385
410
|
{
|
|
386
|
-
"uid": "
|
|
411
|
+
"uid": "06a4-62"
|
|
387
412
|
},
|
|
388
413
|
{
|
|
389
|
-
"uid": "
|
|
414
|
+
"uid": "06a4-50"
|
|
390
415
|
},
|
|
391
416
|
{
|
|
392
|
-
"uid": "
|
|
417
|
+
"uid": "06a4-66"
|
|
393
418
|
}
|
|
394
419
|
],
|
|
395
420
|
"importedBy": [],
|
|
396
421
|
"isEntry": true
|
|
397
422
|
},
|
|
398
|
-
"
|
|
423
|
+
"06a4-70": {
|
|
399
424
|
"id": "/packages/router-core/src/link.ts",
|
|
400
425
|
"moduleParts": {},
|
|
401
426
|
"imported": [],
|
|
402
427
|
"importedBy": [
|
|
403
428
|
{
|
|
404
|
-
"uid": "
|
|
429
|
+
"uid": "06a4-68"
|
|
405
430
|
}
|
|
406
431
|
]
|
|
407
432
|
},
|
|
408
|
-
"
|
|
433
|
+
"06a4-71": {
|
|
409
434
|
"id": "/packages/router-core/src/routeInfo.ts",
|
|
410
435
|
"moduleParts": {},
|
|
411
436
|
"imported": [],
|
|
412
437
|
"importedBy": [
|
|
413
438
|
{
|
|
414
|
-
"uid": "
|
|
439
|
+
"uid": "06a4-68"
|
|
415
440
|
}
|
|
416
441
|
]
|
|
417
442
|
},
|
|
418
|
-
"
|
|
443
|
+
"06a4-72": {
|
|
419
444
|
"id": "/packages/react-store/build/esm/index.js",
|
|
420
445
|
"moduleParts": {},
|
|
421
446
|
"imported": [
|
|
422
447
|
{
|
|
423
|
-
"uid": "
|
|
448
|
+
"uid": "06a4-73"
|
|
424
449
|
},
|
|
425
450
|
{
|
|
426
|
-
"uid": "
|
|
451
|
+
"uid": "06a4-60"
|
|
427
452
|
}
|
|
428
453
|
],
|
|
429
454
|
"importedBy": [
|
|
430
455
|
{
|
|
431
|
-
"uid": "
|
|
456
|
+
"uid": "06a4-64"
|
|
432
457
|
}
|
|
433
458
|
]
|
|
434
459
|
},
|
|
435
|
-
"
|
|
460
|
+
"06a4-73": {
|
|
436
461
|
"id": "use-sync-external-store/shim/with-selector",
|
|
437
462
|
"moduleParts": {},
|
|
438
463
|
"imported": [],
|
|
439
464
|
"importedBy": [
|
|
440
465
|
{
|
|
441
|
-
"uid": "
|
|
466
|
+
"uid": "06a4-72"
|
|
442
467
|
}
|
|
443
468
|
],
|
|
444
469
|
"isExternal": true
|
package/build/types/index.d.ts
CHANGED
|
@@ -212,11 +212,11 @@ interface RouterOptions<TRouteTree extends AnyRoute, TDehydrated extends Record<
|
|
|
212
212
|
interface RouterState<TRouteTree extends AnyRoute = AnyRoute> {
|
|
213
213
|
status: 'idle' | 'pending';
|
|
214
214
|
isFetching: boolean;
|
|
215
|
-
matchesById: Record<string, RouteMatch<TRouteTree,
|
|
215
|
+
matchesById: Record<string, RouteMatch<TRouteTree, ParseRoute<TRouteTree>>>;
|
|
216
216
|
matchIds: string[];
|
|
217
217
|
pendingMatchIds: string[];
|
|
218
|
-
matches: RouteMatch<TRouteTree,
|
|
219
|
-
pendingMatches: RouteMatch<TRouteTree,
|
|
218
|
+
matches: RouteMatch<TRouteTree, ParseRoute<TRouteTree>>[];
|
|
219
|
+
pendingMatches: RouteMatch<TRouteTree, ParseRoute<TRouteTree>>[];
|
|
220
220
|
location: ParsedLocation<FullSearchSchema<TRouteTree>>;
|
|
221
221
|
resolvedLocation: ParsedLocation<FullSearchSchema<TRouteTree>>;
|
|
222
222
|
lastUpdated: number;
|
|
@@ -755,4 +755,10 @@ declare const defaultStringifySearch: (search: Record<string, any>) => string;
|
|
|
755
755
|
declare function parseSearchWith(parser: (str: string) => any): (searchStr: string) => AnySearchSchema;
|
|
756
756
|
declare function stringifySearchWith(stringify: (search: any) => string, parser?: (str: string) => any): (search: Record<string, any>) => string;
|
|
757
757
|
|
|
758
|
-
|
|
758
|
+
type ScrollRestorationOptions = {
|
|
759
|
+
getKey?: (location: ParsedLocation) => string;
|
|
760
|
+
};
|
|
761
|
+
declare function watchScrollPositions(router: AnyRouter, opts?: ScrollRestorationOptions): () => void;
|
|
762
|
+
declare function restoreScrollPositions(router: AnyRouter, opts?: ScrollRestorationOptions): void;
|
|
763
|
+
|
|
764
|
+
export { ActiveOptions, AllParams, AnyContext, AnyPathParams, AnyRedirect, AnyRootRoute, AnyRoute, AnyRouteMatch, AnyRouteProps, AnyRouter, AnySearchSchema, BaseRouteOptions, BuildNextOptions, CheckId, CheckIdError, CheckPath, CheckPathError, CheckRelativePath, CleanPath, ComponentFromRoute, ComponentPropsFromRoute, DeepAwaited, DefinedPathParamWarning, DehydratedRouter, DehydratedRouterState, Expand, FileRoute, FileRoutePath, FileRoutesByPath, FromLocation, FullSearchSchema, GetKeyFn, HydrationCtx, InferFullSearchSchema, IsAny, IsAnyBoolean, IsKnown, Join, Last, LinkInfo, LinkOptions, ListenerFn, LoaderContext, LoaderFn, LocationState, MatchLocation, MatchRouteOptions, MergeParamsFromParent, MergeUnion, MetaOptions, NavigateOptions, NoInfer, ParamsFallback, ParentParams, ParseParamsFn, ParseParamsObj, ParseParamsOption, ParsePathParams, ParseRoute, ParseRouteChildren, ParsedLocation, ParsedPath, PathParamError, PathParamMask, PathParamOptions, PickAsPartial, PickAsRequired, PickExclude, PickExtra, PickExtract, PickRequired, PickUnsafe, PreloadableObj, Redirect, Register, RegisterRouteComponent, RegisterRouteErrorComponent, RegisteredRouteComponent, RegisteredRouteErrorComponent, RegisteredRouter, RelativeToPathAutoComplete, RemoveUnderScores, ResolveFilePath, ResolveFullPath, ResolveFullSearchSchema, ResolveId, ResolveRelativePath, RootRoute, RootRouteId, Route, RouteById, RouteByPath, RouteConstraints, RouteContext, RouteIds, RouteLoaderFromRoute, RouteMatch, RouteMeta, RouteOptions, RoutePathOptions, RoutePathOptionsIntersection, RoutePaths, RouteProps, Router, RouterConstructorOptions, RouterContext, RouterContextOptions, RouterEvent, RouterEvents, RouterHistory, RouterListener, RouterLocation, RouterOptions, RouterState, RoutesById, RoutesByPath, ScrollRestorationOptions, SearchFilter, SearchParamError, SearchParamOptions, SearchParser, SearchSchemaValidator, SearchSchemaValidatorFn, SearchSchemaValidatorObj, SearchSerializer, Segment, Split, StreamedPromise, Timeout, ToIdOption, ToOptions, ToPathOption, Trim, TrimLeft, TrimPath, TrimPathLeft, TrimPathRight, TrimRight, UnionToIntersection, UnloaderFn, UpdatableRouteOptions, Updater, UseLoaderResult, UseLoaderResultPromise, ValueKeys, Values, cleanPath, componentTypes, createBrowserHistory, createHashHistory, createMemoryHistory, decode, defaultParseSearch, defaultStringifySearch, encode, functionalUpdate, interpolatePath, isPlainObject, isRedirect, joinPaths, last, lazyFn, matchByPath, matchPathname, parsePathname, parseSearchWith, partialDeepEqual, pick, redirect, replaceEqualDeep, resolvePath, restoreScrollPositions, rootRouteId, stringifySearchWith, trimPath, trimPathLeft, trimPathRight, watchScrollPositions };
|