@tanstack/react-router 0.0.1-beta.166 → 0.0.1-beta.168

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.
@@ -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":[{"uid":"0961-155","name":"\u0000rollupPluginBabelHelpers.js"},{"name":"packages","children":[{"name":"store/build/esm/index.js","uid":"0961-157"},{"name":"react-store/build/esm/index.js","uid":"0961-159"},{"name":"router-core/build/esm/index.js","uid":"0961-165"},{"name":"react-router/src","children":[{"uid":"0961-167","name":"scroll-restoration.tsx"},{"uid":"0961-169","name":"index.tsx"}]}]},{"name":"node_modules/.pnpm","children":[{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"0961-161"},{"name":"tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","uid":"0961-163"}]}]}],"isRoot":true},"nodeParts":{"0961-155":{"renderedLength":429,"gzipLength":238,"brotliLength":0,"mainUid":"0961-154"},"0961-157":{"renderedLength":1843,"gzipLength":644,"brotliLength":0,"mainUid":"0961-156"},"0961-159":{"renderedLength":1006,"gzipLength":479,"brotliLength":0,"mainUid":"0961-158"},"0961-161":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"0961-160"},"0961-163":{"renderedLength":44,"gzipLength":62,"brotliLength":0,"mainUid":"0961-162"},"0961-165":{"renderedLength":61314,"gzipLength":14436,"brotliLength":0,"mainUid":"0961-164"},"0961-167":{"renderedLength":466,"gzipLength":228,"brotliLength":0,"mainUid":"0961-166"},"0961-169":{"renderedLength":17328,"gzipLength":3843,"brotliLength":0,"mainUid":"0961-168"}},"nodeMetas":{"0961-154":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"0961-155"},"imported":[],"importedBy":[{"uid":"0961-168"}]},"0961-156":{"id":"/packages/store/build/esm/index.js","moduleParts":{"index.production.js":"0961-157"},"imported":[],"importedBy":[{"uid":"0961-158"}]},"0961-158":{"id":"/packages/react-store/build/esm/index.js","moduleParts":{"index.production.js":"0961-159"},"imported":[{"uid":"0961-171"},{"uid":"0961-156"}],"importedBy":[{"uid":"0961-168"},{"uid":"0961-164"}]},"0961-160":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"0961-161"},"imported":[],"importedBy":[{"uid":"0961-168"},{"uid":"0961-164"}]},"0961-162":{"id":"/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","moduleParts":{"index.production.js":"0961-163"},"imported":[],"importedBy":[{"uid":"0961-168"},{"uid":"0961-164"}]},"0961-164":{"id":"/packages/router-core/build/esm/index.js","moduleParts":{"index.production.js":"0961-165"},"imported":[{"uid":"0961-160"},{"uid":"0961-162"},{"uid":"0961-158"}],"importedBy":[{"uid":"0961-168"},{"uid":"0961-166"}]},"0961-166":{"id":"/packages/react-router/src/scroll-restoration.tsx","moduleParts":{"index.production.js":"0961-167"},"imported":[{"uid":"0961-170"},{"uid":"0961-164"},{"uid":"0961-168"}],"importedBy":[{"uid":"0961-168"}]},"0961-168":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"0961-169"},"imported":[{"uid":"0961-154"},{"uid":"0961-170"},{"uid":"0961-158"},{"uid":"0961-160"},{"uid":"0961-162"},{"uid":"0961-164"},{"uid":"0961-166"}],"importedBy":[{"uid":"0961-166"}],"isEntry":true},"0961-170":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"0961-168"},{"uid":"0961-166"}],"isExternal":true},"0961-171":{"id":"use-sync-external-store/shim/with-selector","moduleParts":{},"imported":[],"importedBy":[{"uid":"0961-158"}],"isExternal":true}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4027
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"store/build/esm/index.js","uid":"56b6-159"},{"name":"react-store/build/esm/index.js","uid":"56b6-161"},{"name":"router-core/build/esm/index.js","uid":"56b6-167"},{"name":"react-router/src","children":[{"uid":"56b6-171","name":"react.tsx"},{"uid":"56b6-173","name":"scroll-restoration.tsx"},{"uid":"56b6-175","name":"awaited.tsx"},{"uid":"56b6-177","name":"index.tsx"}]}]},{"name":"node_modules/.pnpm","children":[{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"56b6-163"},{"name":"tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","uid":"56b6-165"}]},{"uid":"56b6-169","name":"\u0000rollupPluginBabelHelpers.js"}]}],"isRoot":true},"nodeParts":{"56b6-159":{"renderedLength":1843,"gzipLength":644,"brotliLength":0,"mainUid":"56b6-158"},"56b6-161":{"renderedLength":1006,"gzipLength":479,"brotliLength":0,"mainUid":"56b6-160"},"56b6-163":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"56b6-162"},"56b6-165":{"renderedLength":44,"gzipLength":62,"brotliLength":0,"mainUid":"56b6-164"},"56b6-167":{"renderedLength":62804,"gzipLength":14837,"brotliLength":0,"mainUid":"56b6-166"},"56b6-169":{"renderedLength":429,"gzipLength":238,"brotliLength":0,"mainUid":"56b6-168"},"56b6-171":{"renderedLength":17226,"gzipLength":3829,"brotliLength":0,"mainUid":"56b6-170"},"56b6-173":{"renderedLength":466,"gzipLength":228,"brotliLength":0,"mainUid":"56b6-172"},"56b6-175":{"renderedLength":641,"gzipLength":305,"brotliLength":0,"mainUid":"56b6-174"},"56b6-177":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"56b6-176"}},"nodeMetas":{"56b6-158":{"id":"/packages/store/build/esm/index.js","moduleParts":{"index.production.js":"56b6-159"},"imported":[],"importedBy":[{"uid":"56b6-160"}]},"56b6-160":{"id":"/packages/react-store/build/esm/index.js","moduleParts":{"index.production.js":"56b6-161"},"imported":[{"uid":"56b6-178"},{"uid":"56b6-158"}],"importedBy":[{"uid":"56b6-176"},{"uid":"56b6-166"},{"uid":"56b6-170"}]},"56b6-162":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"56b6-163"},"imported":[],"importedBy":[{"uid":"56b6-166"},{"uid":"56b6-170"}]},"56b6-164":{"id":"/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","moduleParts":{"index.production.js":"56b6-165"},"imported":[],"importedBy":[{"uid":"56b6-166"},{"uid":"56b6-170"}]},"56b6-166":{"id":"/packages/router-core/build/esm/index.js","moduleParts":{"index.production.js":"56b6-167"},"imported":[{"uid":"56b6-162"},{"uid":"56b6-164"},{"uid":"56b6-160"}],"importedBy":[{"uid":"56b6-176"},{"uid":"56b6-170"},{"uid":"56b6-172"},{"uid":"56b6-174"}]},"56b6-168":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"56b6-169"},"imported":[],"importedBy":[{"uid":"56b6-170"}]},"56b6-170":{"id":"/packages/react-router/src/react.tsx","moduleParts":{"index.production.js":"56b6-171"},"imported":[{"uid":"56b6-168"},{"uid":"56b6-179"},{"uid":"56b6-160"},{"uid":"56b6-162"},{"uid":"56b6-164"},{"uid":"56b6-166"}],"importedBy":[{"uid":"56b6-176"},{"uid":"56b6-172"},{"uid":"56b6-174"}]},"56b6-172":{"id":"/packages/react-router/src/scroll-restoration.tsx","moduleParts":{"index.production.js":"56b6-173"},"imported":[{"uid":"56b6-179"},{"uid":"56b6-166"},{"uid":"56b6-170"}],"importedBy":[{"uid":"56b6-176"}]},"56b6-174":{"id":"/packages/react-router/src/awaited.tsx","moduleParts":{"index.production.js":"56b6-175"},"imported":[{"uid":"56b6-166"},{"uid":"56b6-170"}],"importedBy":[{"uid":"56b6-176"}]},"56b6-176":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"56b6-177"},"imported":[{"uid":"56b6-160"},{"uid":"56b6-166"},{"uid":"56b6-170"},{"uid":"56b6-172"},{"uid":"56b6-174"}],"importedBy":[],"isEntry":true},"56b6-178":{"id":"use-sync-external-store/shim/with-selector","moduleParts":{},"imported":[],"importedBy":[{"uid":"56b6-160"}],"isExternal":true},"56b6-179":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"56b6-170"},{"uid":"56b6-172"}],"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;
@@ -6,34 +6,38 @@
6
6
  {
7
7
  "name": "index.production.js",
8
8
  "children": [
9
- {
10
- "uid": "0961-173",
11
- "name": "\u0000rollupPluginBabelHelpers.js"
12
- },
13
9
  {
14
10
  "name": "packages",
15
11
  "children": [
16
12
  {
17
13
  "name": "store/build/esm/index.js",
18
- "uid": "0961-175"
14
+ "uid": "56b6-181"
19
15
  },
20
16
  {
21
17
  "name": "react-store/build/esm/index.js",
22
- "uid": "0961-177"
18
+ "uid": "56b6-183"
23
19
  },
24
20
  {
25
21
  "name": "router-core/build/esm/index.js",
26
- "uid": "0961-183"
22
+ "uid": "56b6-189"
27
23
  },
28
24
  {
29
25
  "name": "react-router/src",
30
26
  "children": [
31
27
  {
32
- "uid": "0961-185",
28
+ "uid": "56b6-193",
29
+ "name": "react.tsx"
30
+ },
31
+ {
32
+ "uid": "56b6-195",
33
33
  "name": "scroll-restoration.tsx"
34
34
  },
35
35
  {
36
- "uid": "0961-187",
36
+ "uid": "56b6-197",
37
+ "name": "awaited.tsx"
38
+ },
39
+ {
40
+ "uid": "56b6-199",
37
41
  "name": "index.tsx"
38
42
  }
39
43
  ]
@@ -45,13 +49,17 @@
45
49
  "children": [
46
50
  {
47
51
  "name": "tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
48
- "uid": "0961-179"
52
+ "uid": "56b6-185"
49
53
  },
50
54
  {
51
55
  "name": "tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
52
- "uid": "0961-181"
56
+ "uid": "56b6-187"
53
57
  }
54
58
  ]
59
+ },
60
+ {
61
+ "uid": "56b6-191",
62
+ "name": "\u0000rollupPluginBabelHelpers.js"
55
63
  }
56
64
  ]
57
65
  }
@@ -59,235 +67,302 @@
59
67
  "isRoot": true
60
68
  },
61
69
  "nodeParts": {
62
- "0961-173": {
63
- "renderedLength": 429,
64
- "gzipLength": 238,
65
- "brotliLength": 0,
66
- "mainUid": "0961-172"
67
- },
68
- "0961-175": {
70
+ "56b6-181": {
69
71
  "renderedLength": 1843,
70
72
  "gzipLength": 644,
71
73
  "brotliLength": 0,
72
- "mainUid": "0961-174"
74
+ "mainUid": "56b6-180"
73
75
  },
74
- "0961-177": {
76
+ "56b6-183": {
75
77
  "renderedLength": 1006,
76
78
  "gzipLength": 479,
77
79
  "brotliLength": 0,
78
- "mainUid": "0961-176"
80
+ "mainUid": "56b6-182"
79
81
  },
80
- "0961-179": {
82
+ "56b6-185": {
81
83
  "renderedLength": 181,
82
84
  "gzipLength": 129,
83
85
  "brotliLength": 0,
84
- "mainUid": "0961-178"
86
+ "mainUid": "56b6-184"
85
87
  },
86
- "0961-181": {
88
+ "56b6-187": {
87
89
  "renderedLength": 44,
88
90
  "gzipLength": 62,
89
91
  "brotliLength": 0,
90
- "mainUid": "0961-180"
92
+ "mainUid": "56b6-186"
93
+ },
94
+ "56b6-189": {
95
+ "renderedLength": 62804,
96
+ "gzipLength": 14837,
97
+ "brotliLength": 0,
98
+ "mainUid": "56b6-188"
99
+ },
100
+ "56b6-191": {
101
+ "renderedLength": 429,
102
+ "gzipLength": 238,
103
+ "brotliLength": 0,
104
+ "mainUid": "56b6-190"
91
105
  },
92
- "0961-183": {
93
- "renderedLength": 61314,
94
- "gzipLength": 14436,
106
+ "56b6-193": {
107
+ "renderedLength": 17226,
108
+ "gzipLength": 3829,
95
109
  "brotliLength": 0,
96
- "mainUid": "0961-182"
110
+ "mainUid": "56b6-192"
97
111
  },
98
- "0961-185": {
112
+ "56b6-195": {
99
113
  "renderedLength": 466,
100
114
  "gzipLength": 228,
101
115
  "brotliLength": 0,
102
- "mainUid": "0961-184"
116
+ "mainUid": "56b6-194"
117
+ },
118
+ "56b6-197": {
119
+ "renderedLength": 641,
120
+ "gzipLength": 305,
121
+ "brotliLength": 0,
122
+ "mainUid": "56b6-196"
103
123
  },
104
- "0961-187": {
105
- "renderedLength": 17328,
106
- "gzipLength": 3843,
124
+ "56b6-199": {
125
+ "renderedLength": 0,
126
+ "gzipLength": 0,
107
127
  "brotliLength": 0,
108
- "mainUid": "0961-186"
128
+ "mainUid": "56b6-198"
109
129
  }
110
130
  },
111
131
  "nodeMetas": {
112
- "0961-172": {
113
- "id": "\u0000rollupPluginBabelHelpers.js",
114
- "moduleParts": {
115
- "index.production.js": "0961-173"
116
- },
117
- "imported": [],
118
- "importedBy": [
119
- {
120
- "uid": "0961-186"
121
- }
122
- ]
123
- },
124
- "0961-174": {
132
+ "56b6-180": {
125
133
  "id": "/packages/store/build/esm/index.js",
126
134
  "moduleParts": {
127
- "index.production.js": "0961-175"
135
+ "index.production.js": "56b6-181"
128
136
  },
129
137
  "imported": [],
130
138
  "importedBy": [
131
139
  {
132
- "uid": "0961-176"
140
+ "uid": "56b6-182"
133
141
  }
134
142
  ]
135
143
  },
136
- "0961-176": {
144
+ "56b6-182": {
137
145
  "id": "/packages/react-store/build/esm/index.js",
138
146
  "moduleParts": {
139
- "index.production.js": "0961-177"
147
+ "index.production.js": "56b6-183"
140
148
  },
141
149
  "imported": [
142
150
  {
143
- "uid": "0961-189"
151
+ "uid": "56b6-200"
144
152
  },
145
153
  {
146
- "uid": "0961-174"
154
+ "uid": "56b6-180"
147
155
  }
148
156
  ],
149
157
  "importedBy": [
150
158
  {
151
- "uid": "0961-186"
159
+ "uid": "56b6-198"
160
+ },
161
+ {
162
+ "uid": "56b6-188"
152
163
  },
153
164
  {
154
- "uid": "0961-182"
165
+ "uid": "56b6-192"
155
166
  }
156
167
  ]
157
168
  },
158
- "0961-178": {
169
+ "56b6-184": {
159
170
  "id": "/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
160
171
  "moduleParts": {
161
- "index.production.js": "0961-179"
172
+ "index.production.js": "56b6-185"
162
173
  },
163
174
  "imported": [],
164
175
  "importedBy": [
165
176
  {
166
- "uid": "0961-186"
177
+ "uid": "56b6-188"
167
178
  },
168
179
  {
169
- "uid": "0961-182"
180
+ "uid": "56b6-192"
170
181
  }
171
182
  ]
172
183
  },
173
- "0961-180": {
184
+ "56b6-186": {
174
185
  "id": "/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
175
186
  "moduleParts": {
176
- "index.production.js": "0961-181"
187
+ "index.production.js": "56b6-187"
177
188
  },
178
189
  "imported": [],
179
190
  "importedBy": [
180
191
  {
181
- "uid": "0961-186"
192
+ "uid": "56b6-188"
182
193
  },
183
194
  {
184
- "uid": "0961-182"
195
+ "uid": "56b6-192"
185
196
  }
186
197
  ]
187
198
  },
188
- "0961-182": {
199
+ "56b6-188": {
189
200
  "id": "/packages/router-core/build/esm/index.js",
190
201
  "moduleParts": {
191
- "index.production.js": "0961-183"
202
+ "index.production.js": "56b6-189"
192
203
  },
193
204
  "imported": [
194
205
  {
195
- "uid": "0961-178"
206
+ "uid": "56b6-184"
196
207
  },
197
208
  {
198
- "uid": "0961-180"
209
+ "uid": "56b6-186"
199
210
  },
200
211
  {
201
- "uid": "0961-176"
212
+ "uid": "56b6-182"
202
213
  }
203
214
  ],
204
215
  "importedBy": [
205
216
  {
206
- "uid": "0961-186"
217
+ "uid": "56b6-198"
207
218
  },
208
219
  {
209
- "uid": "0961-184"
220
+ "uid": "56b6-192"
221
+ },
222
+ {
223
+ "uid": "56b6-194"
224
+ },
225
+ {
226
+ "uid": "56b6-196"
210
227
  }
211
228
  ]
212
229
  },
213
- "0961-184": {
214
- "id": "/packages/react-router/src/scroll-restoration.tsx",
230
+ "56b6-190": {
231
+ "id": "\u0000rollupPluginBabelHelpers.js",
232
+ "moduleParts": {
233
+ "index.production.js": "56b6-191"
234
+ },
235
+ "imported": [],
236
+ "importedBy": [
237
+ {
238
+ "uid": "56b6-192"
239
+ }
240
+ ]
241
+ },
242
+ "56b6-192": {
243
+ "id": "/packages/react-router/src/react.tsx",
215
244
  "moduleParts": {
216
- "index.production.js": "0961-185"
245
+ "index.production.js": "56b6-193"
217
246
  },
218
247
  "imported": [
219
248
  {
220
- "uid": "0961-188"
249
+ "uid": "56b6-190"
221
250
  },
222
251
  {
223
- "uid": "0961-182"
252
+ "uid": "56b6-201"
224
253
  },
225
254
  {
226
- "uid": "0961-186"
255
+ "uid": "56b6-182"
256
+ },
257
+ {
258
+ "uid": "56b6-184"
259
+ },
260
+ {
261
+ "uid": "56b6-186"
262
+ },
263
+ {
264
+ "uid": "56b6-188"
227
265
  }
228
266
  ],
229
267
  "importedBy": [
230
268
  {
231
- "uid": "0961-186"
269
+ "uid": "56b6-198"
270
+ },
271
+ {
272
+ "uid": "56b6-194"
273
+ },
274
+ {
275
+ "uid": "56b6-196"
232
276
  }
233
277
  ]
234
278
  },
235
- "0961-186": {
236
- "id": "/packages/react-router/src/index.tsx",
279
+ "56b6-194": {
280
+ "id": "/packages/react-router/src/scroll-restoration.tsx",
237
281
  "moduleParts": {
238
- "index.production.js": "0961-187"
282
+ "index.production.js": "56b6-195"
239
283
  },
240
284
  "imported": [
241
285
  {
242
- "uid": "0961-172"
286
+ "uid": "56b6-201"
243
287
  },
244
288
  {
245
- "uid": "0961-188"
289
+ "uid": "56b6-188"
246
290
  },
247
291
  {
248
- "uid": "0961-176"
292
+ "uid": "56b6-192"
293
+ }
294
+ ],
295
+ "importedBy": [
296
+ {
297
+ "uid": "56b6-198"
298
+ }
299
+ ]
300
+ },
301
+ "56b6-196": {
302
+ "id": "/packages/react-router/src/awaited.tsx",
303
+ "moduleParts": {
304
+ "index.production.js": "56b6-197"
305
+ },
306
+ "imported": [
307
+ {
308
+ "uid": "56b6-188"
249
309
  },
250
310
  {
251
- "uid": "0961-178"
311
+ "uid": "56b6-192"
312
+ }
313
+ ],
314
+ "importedBy": [
315
+ {
316
+ "uid": "56b6-198"
317
+ }
318
+ ]
319
+ },
320
+ "56b6-198": {
321
+ "id": "/packages/react-router/src/index.tsx",
322
+ "moduleParts": {
323
+ "index.production.js": "56b6-199"
324
+ },
325
+ "imported": [
326
+ {
327
+ "uid": "56b6-182"
252
328
  },
253
329
  {
254
- "uid": "0961-180"
330
+ "uid": "56b6-188"
255
331
  },
256
332
  {
257
- "uid": "0961-182"
333
+ "uid": "56b6-192"
258
334
  },
259
335
  {
260
- "uid": "0961-184"
261
- }
262
- ],
263
- "importedBy": [
336
+ "uid": "56b6-194"
337
+ },
264
338
  {
265
- "uid": "0961-184"
339
+ "uid": "56b6-196"
266
340
  }
267
341
  ],
342
+ "importedBy": [],
268
343
  "isEntry": true
269
344
  },
270
- "0961-188": {
271
- "id": "react",
345
+ "56b6-200": {
346
+ "id": "use-sync-external-store/shim/with-selector",
272
347
  "moduleParts": {},
273
348
  "imported": [],
274
349
  "importedBy": [
275
350
  {
276
- "uid": "0961-186"
277
- },
278
- {
279
- "uid": "0961-184"
351
+ "uid": "56b6-182"
280
352
  }
281
353
  ],
282
354
  "isExternal": true
283
355
  },
284
- "0961-189": {
285
- "id": "use-sync-external-store/shim/with-selector",
356
+ "56b6-201": {
357
+ "id": "react",
286
358
  "moduleParts": {},
287
359
  "imported": [],
288
360
  "importedBy": [
289
361
  {
290
- "uid": "0961-176"
362
+ "uid": "56b6-192"
363
+ },
364
+ {
365
+ "uid": "56b6-194"
291
366
  }
292
367
  ],
293
368
  "isExternal": true
@@ -8,22 +8,22 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
+ import { NoInfer } from '@tanstack/react-store';
12
+ export { useStore } from '@tanstack/react-store';
11
13
  import * as _tanstack_router_core from '@tanstack/router-core';
12
- import { ScrollRestorationOptions, RouteConstraints, AnyRoute, ResolveFullPath, ResolveId, ResolveFullSearchSchema, ParsePathParams, MergeParamsFromParent, RouteContext, AnyContext, UseLoaderResult, AnyRouteProps, RoutePaths, RegisteredRouter, LinkOptions, ToOptions, MatchRouteOptions, RouteByPath, ResolveRelativePath, NavigateOptions, RouterOptions, Router, RouteMatch, RouteIds, RouteById, ParseRoute, RoutesById, AllParams } from '@tanstack/router-core';
14
+ import { AnySearchSchema, AnyPathParams, AnyContext, RouteConstraints, AnyRoute, ResolveFullPath, ResolveId, ResolveFullSearchSchema, ParsePathParams, MergeParamsFromParent, RouteContext, UseLoaderResult, AnyRouteProps, RoutePaths, RegisteredRouter, LinkOptions, ToOptions, MatchRouteOptions, RouteByPath, ResolveRelativePath, NavigateOptions, RouterOptions, Router, RouteMatch, RouteIds, RouteById, ParseRoute, RoutesById, AllParams, ScrollRestorationOptions, DeferredPromise } from '@tanstack/router-core';
13
15
  export * from '@tanstack/router-core';
14
16
  import * as React from 'react';
15
- import { NoInfer } from '@tanstack/react-store';
16
- export { useStore } from '@tanstack/react-store';
17
-
18
- declare function useScrollRestoration(options?: ScrollRestorationOptions): void;
19
- declare function ScrollRestoration(props: ScrollRestorationOptions): null;
20
17
 
21
18
  declare module '@tanstack/router-core' {
22
- interface RegisterRouteComponent<TProps extends Record<string, any>> {
23
- RouteComponent: RouteComponent<TProps>;
19
+ interface RegisterRouteComponent<TLoader = unknown, TFullSearchSchema extends AnySearchSchema = AnySearchSchema, TAllParams extends AnyPathParams = AnyPathParams, TRouteContext extends AnyContext = AnyContext, TAllContext extends AnyContext = AnyContext> {
20
+ RouteComponent: RouteComponent<RouteProps<TLoader, TFullSearchSchema, TAllParams, TRouteContext, TAllContext>>;
21
+ }
22
+ interface RegisterErrorRouteComponent<TFullSearchSchema extends AnySearchSchema = AnySearchSchema, TAllParams extends AnyPathParams = AnyPathParams, TRouteContext extends AnyContext = AnyContext, TAllContext extends AnyContext = AnyContext> {
23
+ ErrorRouteComponent: RouteComponent<ErrorRouteProps<TFullSearchSchema, TAllParams, TRouteContext, TAllContext>>;
24
24
  }
25
- interface RegisterRouteErrorComponent<TProps extends Record<string, any>> {
26
- RouteErrorComponent: RouteComponent<TProps>;
25
+ interface RegisterPendingRouteComponent<TFullSearchSchema extends AnySearchSchema = AnySearchSchema, TAllParams extends AnyPathParams = AnyPathParams, TRouteContext extends AnyContext = AnyContext, TAllContext extends AnyContext = AnyContext> {
26
+ PendingRouteComponent: RouteComponent<PendingRouteProps<TFullSearchSchema, TAllParams, TRouteContext, TAllContext>>;
27
27
  }
28
28
  interface Route<TParentRoute extends RouteConstraints['TParentRoute'] = AnyRoute, TPath extends RouteConstraints['TPath'] = '/', TFullPath extends RouteConstraints['TFullPath'] = ResolveFullPath<TParentRoute, TPath>, TCustomId extends RouteConstraints['TCustomId'] = string, TId extends RouteConstraints['TId'] = ResolveId<TParentRoute, TCustomId, TPath>, TLoader = unknown, TSearchSchema extends RouteConstraints['TSearchSchema'] = {}, TFullSearchSchema extends RouteConstraints['TFullSearchSchema'] = ResolveFullSearchSchema<TParentRoute, TSearchSchema>, TParams extends RouteConstraints['TParams'] = Record<ParsePathParams<TPath>, string>, TAllParams extends RouteConstraints['TAllParams'] = MergeParamsFromParent<TParentRoute['types']['allParams'], TParams>, TParentContext extends RouteConstraints['TParentContext'] = TParentRoute['types']['routeContext'], TAllParentContext extends RouteConstraints['TAllParentContext'] = TParentRoute['types']['context'], TRouteContext extends RouteConstraints['TRouteContext'] = RouteContext, TAllContext extends RouteConstraints['TAllContext'] = MergeParamsFromParent<TParentRoute['types']['context'], TRouteContext>, TRouterContext extends RouteConstraints['TRouterContext'] = AnyContext, TChildren extends RouteConstraints['TChildren'] = unknown, TRouteTree extends RouteConstraints['TRouteTree'] = AnyRoute> {
29
29
  useMatch: <TStrict extends boolean = true, TSelected = TAllContext>(opts?: {
@@ -51,14 +51,56 @@ declare module '@tanstack/router-core' {
51
51
  select?: (search: TAllParams) => TSelected;
52
52
  }) => TStrict extends true ? TSelected : TSelected | undefined;
53
53
  }
54
+ interface RegisterRouteProps<TLoader = unknown, TFullSearchSchema extends AnySearchSchema = AnySearchSchema, TAllParams extends AnyPathParams = AnyPathParams, TRouteContext extends AnyContext = AnyContext, TAllContext extends AnyContext = AnyContext> {
55
+ RouteProps: RouteProps<TLoader, TFullSearchSchema, TAllParams, TRouteContext, TAllContext>;
56
+ }
57
+ interface RegisterPendingRouteProps<TFullSearchSchema extends AnySearchSchema = AnySearchSchema, TAllParams extends AnyPathParams = AnyPathParams, TRouteContext extends AnyContext = AnyContext, TAllContext extends AnyContext = AnyContext> {
58
+ PendingRouteProps: PendingRouteProps<TFullSearchSchema, TAllParams, TRouteContext, TAllContext>;
59
+ }
60
+ interface RegisterErrorRouteProps<TFullSearchSchema extends AnySearchSchema = AnySearchSchema, TAllParams extends AnyPathParams = AnyPathParams, TRouteContext extends AnyContext = AnyContext, TAllContext extends AnyContext = AnyContext> {
61
+ ErrorRouteProps: ErrorRouteProps;
62
+ }
54
63
  }
64
+ type RouteProps<TLoader = unknown, TFullSearchSchema extends AnySearchSchema = AnySearchSchema, TAllParams extends AnyPathParams = AnyPathParams, TRouteContext extends AnyContext = AnyContext, TAllContext extends AnyContext = AnyContext> = {
65
+ useLoader: <TStrict extends boolean = true, TSelected = TLoader>(opts?: {
66
+ strict?: TStrict;
67
+ select?: (search: TLoader) => TSelected;
68
+ }) => TStrict extends true ? UseLoaderResult<TSelected> : UseLoaderResult<TSelected> | undefined;
69
+ useMatch: <TStrict extends boolean = true, TSelected = TAllContext>(opts?: {
70
+ strict?: TStrict;
71
+ select?: (search: TAllContext) => TSelected;
72
+ }) => TStrict extends true ? TSelected : TSelected | undefined;
73
+ useContext: <TStrict extends boolean = true, TSelected = TAllContext>(opts?: {
74
+ strict?: TStrict;
75
+ select?: (search: TAllContext) => TSelected;
76
+ }) => TStrict extends true ? TSelected : TSelected | undefined;
77
+ useRouteContext: <TStrict extends boolean = true, TSelected = TRouteContext>(opts?: {
78
+ strict?: TStrict;
79
+ select?: (search: TRouteContext) => TSelected;
80
+ }) => TStrict extends true ? TSelected : TSelected | undefined;
81
+ useSearch: <TStrict extends boolean = true, TSelected = TFullSearchSchema>(opts?: {
82
+ strict?: TStrict;
83
+ select?: (search: TFullSearchSchema) => TSelected;
84
+ }) => TStrict extends true ? TSelected : TSelected | undefined;
85
+ useParams: <TStrict extends boolean = true, TSelected = TAllParams>(opts?: {
86
+ strict?: TStrict;
87
+ select?: (search: TAllParams) => TSelected;
88
+ }) => TStrict extends true ? TSelected : TSelected | undefined;
89
+ };
90
+ type ErrorRouteProps<TFullSearchSchema extends AnySearchSchema = AnySearchSchema, TAllParams extends AnyPathParams = AnyPathParams, TRouteContext extends AnyContext = AnyContext, TAllContext extends AnyContext = AnyContext> = {
91
+ error: unknown;
92
+ info: {
93
+ componentStack: string;
94
+ };
95
+ } & Omit<RouteProps<unknown, TFullSearchSchema, TAllParams, TRouteContext, TAllContext>, 'useLoader'>;
96
+ type PendingRouteProps<TFullSearchSchema extends AnySearchSchema = AnySearchSchema, TAllParams extends AnyPathParams = AnyPathParams, TRouteContext extends AnyContext = AnyContext, TAllContext extends AnyContext = AnyContext> = Omit<RouteProps<unknown, TFullSearchSchema, TAllParams, TRouteContext, TAllContext>, 'useLoader'>;
55
97
  type ReactNode = any;
56
98
  type SyncRouteComponent<TProps> = ((props: TProps) => ReactNode) | React.LazyExoticComponent<(props: TProps) => ReactNode>;
57
99
  type AsyncRouteComponent<TProps> = SyncRouteComponent<TProps> & {
58
100
  preload?: () => Promise<void>;
59
101
  };
60
- type RouteErrorComponent = AsyncRouteComponent<RouteErrorComponentProps>;
61
- type RouteErrorComponentProps = {
102
+ type ErrorRouteComponent = AsyncRouteComponent<ErrorRouteComponentProps>;
103
+ type ErrorRouteComponentProps = {
62
104
  error: Error;
63
105
  info: {
64
106
  componentStack: string;
@@ -153,4 +195,15 @@ declare function useBlocker(message: string, condition?: boolean | any): void;
153
195
  declare function Block({ message, condition, children }: PromptProps): any;
154
196
  declare function shallow<T>(objA: T, objB: T): boolean;
155
197
 
156
- export { AnyRouteComponent, AsyncRouteComponent, Block, ErrorComponent, Link, LinkComponent, LinkPropsOptions, MakeLinkOptions, MakeLinkPropsOptions, MakeMatchRouteOptions, MakeUseMatchRouteOptions, MatchRoute, Navigate, Outlet, PromptProps, RouteComponent, RouteErrorComponent, RouteErrorComponentProps, RouteFromIdOrRoute, RouterProps, RouterProvider, ScrollRestoration, SyncRouteComponent, lazyRouteComponent, matchIdsContext, routerContext, shallow, useBlocker, useDehydrate, useHydrate, useInjectHtml, useLinkProps, useLoader, useMatch, useMatchRoute, useMatches, useNavigate, useParams, useRouteContext, useRouter, useRouterContext, useRouterState, useScrollRestoration, useSearch };
198
+ declare function useScrollRestoration(options?: ScrollRestorationOptions): void;
199
+ declare function ScrollRestoration(props: ScrollRestorationOptions): null;
200
+
201
+ type AwaitOptions<T> = {
202
+ promise: DeferredPromise<T>;
203
+ };
204
+ declare function useAwaited<T>({ promise }: AwaitOptions<T>): [T];
205
+ declare function Await<T>(props: AwaitOptions<T> & {
206
+ children: (result: T) => JSX.Element;
207
+ }): JSX.Element;
208
+
209
+ export { AnyRouteComponent, AsyncRouteComponent, Await, AwaitOptions, Block, ErrorComponent, ErrorRouteComponent, ErrorRouteComponentProps, ErrorRouteProps, Link, LinkComponent, LinkPropsOptions, MakeLinkOptions, MakeLinkPropsOptions, MakeMatchRouteOptions, MakeUseMatchRouteOptions, MatchRoute, Navigate, Outlet, PendingRouteProps, PromptProps, RouteComponent, RouteFromIdOrRoute, RouteProps, RouterProps, RouterProvider, ScrollRestoration, SyncRouteComponent, lazyRouteComponent, matchIdsContext, routerContext, shallow, useAwaited, useBlocker, useDehydrate, useHydrate, useInjectHtml, useLinkProps, useLoader, useMatch, useMatchRoute, useMatches, useNavigate, useParams, useRouteContext, useRouter, useRouterContext, useRouterState, useScrollRestoration, useSearch };