@tanstack/react-router 0.0.1-beta.162 → 0.0.1-beta.164

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.
@@ -7,7 +7,7 @@
7
7
  "name": "index.production.js",
8
8
  "children": [
9
9
  {
10
- "uid": "1c86-167",
10
+ "uid": "27f2-173",
11
11
  "name": "\u0000rollupPluginBabelHelpers.js"
12
12
  },
13
13
  {
@@ -15,19 +15,28 @@
15
15
  "children": [
16
16
  {
17
17
  "name": "store/build/esm/index.js",
18
- "uid": "1c86-169"
18
+ "uid": "27f2-175"
19
19
  },
20
20
  {
21
21
  "name": "react-store/build/esm/index.js",
22
- "uid": "1c86-171"
22
+ "uid": "27f2-177"
23
23
  },
24
24
  {
25
25
  "name": "router-core/build/esm/index.js",
26
- "uid": "1c86-177"
26
+ "uid": "27f2-183"
27
27
  },
28
28
  {
29
- "name": "react-router/src/index.tsx",
30
- "uid": "1c86-179"
29
+ "name": "react-router/src",
30
+ "children": [
31
+ {
32
+ "uid": "27f2-185",
33
+ "name": "scroll-restoration.tsx"
34
+ },
35
+ {
36
+ "uid": "27f2-187",
37
+ "name": "index.tsx"
38
+ }
39
+ ]
31
40
  }
32
41
  ]
33
42
  },
@@ -36,11 +45,11 @@
36
45
  "children": [
37
46
  {
38
47
  "name": "tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
39
- "uid": "1c86-173"
48
+ "uid": "27f2-179"
40
49
  },
41
50
  {
42
51
  "name": "tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
43
- "uid": "1c86-175"
52
+ "uid": "27f2-181"
44
53
  }
45
54
  ]
46
55
  }
@@ -50,194 +59,235 @@
50
59
  "isRoot": true
51
60
  },
52
61
  "nodeParts": {
53
- "1c86-167": {
62
+ "27f2-173": {
54
63
  "renderedLength": 429,
55
64
  "gzipLength": 238,
56
65
  "brotliLength": 0,
57
- "mainUid": "1c86-166"
66
+ "mainUid": "27f2-172"
58
67
  },
59
- "1c86-169": {
68
+ "27f2-175": {
60
69
  "renderedLength": 1843,
61
70
  "gzipLength": 644,
62
71
  "brotliLength": 0,
63
- "mainUid": "1c86-168"
72
+ "mainUid": "27f2-174"
64
73
  },
65
- "1c86-171": {
74
+ "27f2-177": {
66
75
  "renderedLength": 1006,
67
76
  "gzipLength": 479,
68
77
  "brotliLength": 0,
69
- "mainUid": "1c86-170"
78
+ "mainUid": "27f2-176"
70
79
  },
71
- "1c86-173": {
80
+ "27f2-179": {
72
81
  "renderedLength": 181,
73
82
  "gzipLength": 129,
74
83
  "brotliLength": 0,
75
- "mainUid": "1c86-172"
84
+ "mainUid": "27f2-178"
76
85
  },
77
- "1c86-175": {
86
+ "27f2-181": {
78
87
  "renderedLength": 44,
79
88
  "gzipLength": 62,
80
89
  "brotliLength": 0,
81
- "mainUid": "1c86-174"
90
+ "mainUid": "27f2-180"
82
91
  },
83
- "1c86-177": {
84
- "renderedLength": 56934,
85
- "gzipLength": 13356,
92
+ "27f2-183": {
93
+ "renderedLength": 61314,
94
+ "gzipLength": 14436,
86
95
  "brotliLength": 0,
87
- "mainUid": "1c86-176"
96
+ "mainUid": "27f2-182"
88
97
  },
89
- "1c86-179": {
98
+ "27f2-185": {
99
+ "renderedLength": 466,
100
+ "gzipLength": 228,
101
+ "brotliLength": 0,
102
+ "mainUid": "27f2-184"
103
+ },
104
+ "27f2-187": {
90
105
  "renderedLength": 17058,
91
106
  "gzipLength": 3802,
92
107
  "brotliLength": 0,
93
- "mainUid": "1c86-178"
108
+ "mainUid": "27f2-186"
94
109
  }
95
110
  },
96
111
  "nodeMetas": {
97
- "1c86-166": {
112
+ "27f2-172": {
98
113
  "id": "\u0000rollupPluginBabelHelpers.js",
99
114
  "moduleParts": {
100
- "index.production.js": "1c86-167"
115
+ "index.production.js": "27f2-173"
101
116
  },
102
117
  "imported": [],
103
118
  "importedBy": [
104
119
  {
105
- "uid": "1c86-178"
120
+ "uid": "27f2-186"
106
121
  }
107
122
  ]
108
123
  },
109
- "1c86-168": {
124
+ "27f2-174": {
110
125
  "id": "/packages/store/build/esm/index.js",
111
126
  "moduleParts": {
112
- "index.production.js": "1c86-169"
127
+ "index.production.js": "27f2-175"
113
128
  },
114
129
  "imported": [],
115
130
  "importedBy": [
116
131
  {
117
- "uid": "1c86-170"
132
+ "uid": "27f2-176"
118
133
  }
119
134
  ]
120
135
  },
121
- "1c86-170": {
136
+ "27f2-176": {
122
137
  "id": "/packages/react-store/build/esm/index.js",
123
138
  "moduleParts": {
124
- "index.production.js": "1c86-171"
139
+ "index.production.js": "27f2-177"
125
140
  },
126
141
  "imported": [
127
142
  {
128
- "uid": "1c86-181"
143
+ "uid": "27f2-189"
129
144
  },
130
145
  {
131
- "uid": "1c86-168"
146
+ "uid": "27f2-174"
132
147
  }
133
148
  ],
134
149
  "importedBy": [
135
150
  {
136
- "uid": "1c86-178"
151
+ "uid": "27f2-186"
137
152
  },
138
153
  {
139
- "uid": "1c86-176"
154
+ "uid": "27f2-182"
140
155
  }
141
156
  ]
142
157
  },
143
- "1c86-172": {
158
+ "27f2-178": {
144
159
  "id": "/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
145
160
  "moduleParts": {
146
- "index.production.js": "1c86-173"
161
+ "index.production.js": "27f2-179"
147
162
  },
148
163
  "imported": [],
149
164
  "importedBy": [
150
165
  {
151
- "uid": "1c86-178"
166
+ "uid": "27f2-186"
152
167
  },
153
168
  {
154
- "uid": "1c86-176"
169
+ "uid": "27f2-182"
155
170
  }
156
171
  ]
157
172
  },
158
- "1c86-174": {
173
+ "27f2-180": {
159
174
  "id": "/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
160
175
  "moduleParts": {
161
- "index.production.js": "1c86-175"
176
+ "index.production.js": "27f2-181"
162
177
  },
163
178
  "imported": [],
164
179
  "importedBy": [
165
180
  {
166
- "uid": "1c86-178"
181
+ "uid": "27f2-186"
167
182
  },
168
183
  {
169
- "uid": "1c86-176"
184
+ "uid": "27f2-182"
170
185
  }
171
186
  ]
172
187
  },
173
- "1c86-176": {
188
+ "27f2-182": {
174
189
  "id": "/packages/router-core/build/esm/index.js",
175
190
  "moduleParts": {
176
- "index.production.js": "1c86-177"
191
+ "index.production.js": "27f2-183"
177
192
  },
178
193
  "imported": [
179
194
  {
180
- "uid": "1c86-172"
195
+ "uid": "27f2-178"
181
196
  },
182
197
  {
183
- "uid": "1c86-174"
198
+ "uid": "27f2-180"
184
199
  },
185
200
  {
186
- "uid": "1c86-170"
201
+ "uid": "27f2-176"
187
202
  }
188
203
  ],
189
204
  "importedBy": [
190
205
  {
191
- "uid": "1c86-178"
206
+ "uid": "27f2-186"
207
+ },
208
+ {
209
+ "uid": "27f2-184"
192
210
  }
193
211
  ]
194
212
  },
195
- "1c86-178": {
213
+ "27f2-184": {
214
+ "id": "/packages/react-router/src/scroll-restoration.tsx",
215
+ "moduleParts": {
216
+ "index.production.js": "27f2-185"
217
+ },
218
+ "imported": [
219
+ {
220
+ "uid": "27f2-188"
221
+ },
222
+ {
223
+ "uid": "27f2-182"
224
+ },
225
+ {
226
+ "uid": "27f2-186"
227
+ }
228
+ ],
229
+ "importedBy": [
230
+ {
231
+ "uid": "27f2-186"
232
+ }
233
+ ]
234
+ },
235
+ "27f2-186": {
196
236
  "id": "/packages/react-router/src/index.tsx",
197
237
  "moduleParts": {
198
- "index.production.js": "1c86-179"
238
+ "index.production.js": "27f2-187"
199
239
  },
200
240
  "imported": [
201
241
  {
202
- "uid": "1c86-166"
242
+ "uid": "27f2-172"
243
+ },
244
+ {
245
+ "uid": "27f2-188"
203
246
  },
204
247
  {
205
- "uid": "1c86-180"
248
+ "uid": "27f2-176"
206
249
  },
207
250
  {
208
- "uid": "1c86-170"
251
+ "uid": "27f2-178"
209
252
  },
210
253
  {
211
- "uid": "1c86-172"
254
+ "uid": "27f2-180"
212
255
  },
213
256
  {
214
- "uid": "1c86-174"
257
+ "uid": "27f2-182"
215
258
  },
216
259
  {
217
- "uid": "1c86-176"
260
+ "uid": "27f2-184"
261
+ }
262
+ ],
263
+ "importedBy": [
264
+ {
265
+ "uid": "27f2-184"
218
266
  }
219
267
  ],
220
- "importedBy": [],
221
268
  "isEntry": true
222
269
  },
223
- "1c86-180": {
270
+ "27f2-188": {
224
271
  "id": "react",
225
272
  "moduleParts": {},
226
273
  "imported": [],
227
274
  "importedBy": [
228
275
  {
229
- "uid": "1c86-178"
276
+ "uid": "27f2-186"
277
+ },
278
+ {
279
+ "uid": "27f2-184"
230
280
  }
231
281
  ],
232
282
  "isExternal": true
233
283
  },
234
- "1c86-181": {
284
+ "27f2-189": {
235
285
  "id": "use-sync-external-store/shim/with-selector",
236
286
  "moduleParts": {},
237
287
  "imported": [],
238
288
  "importedBy": [
239
289
  {
240
- "uid": "1c86-170"
290
+ "uid": "27f2-176"
241
291
  }
242
292
  ],
243
293
  "isExternal": true
@@ -9,12 +9,15 @@
9
9
  * @license MIT
10
10
  */
11
11
  import * as _tanstack_router_core from '@tanstack/router-core';
12
- import { 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';
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';
13
13
  export * from '@tanstack/router-core';
14
14
  import * as React from 'react';
15
15
  import { NoInfer } from '@tanstack/react-store';
16
16
  export { useStore } from '@tanstack/react-store';
17
17
 
18
+ declare function useScrollRestoration(options?: ScrollRestorationOptions): void;
19
+ declare function ScrollRestoration(props: ScrollRestorationOptions): null;
20
+
18
21
  declare module '@tanstack/router-core' {
19
22
  interface RegisterRouteComponent<TProps extends Record<string, any>> {
20
23
  RouteComponent: RouteComponent<TProps>;
@@ -150,4 +153,4 @@ declare function useBlocker(message: string, condition?: boolean | any): void;
150
153
  declare function Block({ message, condition, children }: PromptProps): any;
151
154
  declare function shallow<T>(objA: T, objB: T): boolean;
152
155
 
153
- export { AnyRouteComponent, AsyncRouteComponent, Block, ErrorComponent, Link, LinkComponent, LinkPropsOptions, MakeLinkOptions, MakeLinkPropsOptions, MakeMatchRouteOptions, MakeUseMatchRouteOptions, MatchRoute, Navigate, Outlet, PromptProps, RouteComponent, RouteErrorComponent, RouteErrorComponentProps, RouteFromIdOrRoute, RouterProps, RouterProvider, SyncRouteComponent, lazyRouteComponent, matchIdsContext, routerContext, shallow, useBlocker, useDehydrate, useHydrate, useInjectHtml, useLinkProps, useLoader, useMatch, useMatchRoute, useMatches, useNavigate, useParams, useRouteContext, useRouter, useRouterContext, useRouterState, useSearch };
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 };