@tanstack/react-router 0.0.1-beta.215 → 0.0.1-beta.217
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/RouterProvider.js +41 -16
- package/build/cjs/RouterProvider.js.map +1 -1
- package/build/cjs/index.js +1 -1
- package/build/cjs/route.js.map +1 -1
- package/build/cjs/utils.js +9 -4
- package/build/cjs/utils.js.map +1 -1
- package/build/esm/index.js +50 -20
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +263 -263
- package/build/types/RouterProvider.d.ts +1 -0
- package/build/types/route.d.ts +4 -3
- package/build/types/utils.d.ts +1 -1
- package/build/umd/index.development.js +50 -20
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/RouterProvider.tsx +71 -26
- package/src/route.ts +13 -3
- package/src/utils.ts +12 -6
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":"packages","children":[{"name":"history/build/esm/index.js","uid":"
|
|
4027
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"history/build/esm/index.js","uid":"5246-5"},{"name":"react-router/src","children":[{"uid":"5246-11","name":"CatchBoundary.tsx"},{"uid":"5246-13","name":"utils.ts"},{"uid":"5246-15","name":"path.ts"},{"uid":"5246-17","name":"redirects.ts"},{"uid":"5246-19","name":"qss.ts"},{"uid":"5246-21","name":"searchParams.ts"},{"uid":"5246-23","name":"router.ts"},{"uid":"5246-25","name":"RouterProvider.tsx"},{"uid":"5246-27","name":"Matches.tsx"},{"uid":"5246-29","name":"useParams.tsx"},{"uid":"5246-31","name":"useSearch.tsx"},{"uid":"5246-33","name":"route.ts"},{"uid":"5246-35","name":"fileRoute.ts"},{"uid":"5246-37","name":"lazyRouteComponent.tsx"},{"uid":"5246-41","name":"link.tsx"},{"uid":"5246-43","name":"scroll-restoration.tsx"},{"uid":"5246-45","name":"useBlocker.tsx"},{"uid":"5246-47","name":"useNavigate.tsx"},{"uid":"5246-49","name":"index.tsx"}]}]},{"name":"node_modules/.pnpm","children":[{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"5246-7"},{"name":"tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","uid":"5246-9"}]},{"uid":"5246-39","name":"\u0000rollupPluginBabelHelpers.js"}]}],"isRoot":true},"nodeParts":{"5246-5":{"renderedLength":9142,"gzipLength":2723,"brotliLength":0,"mainUid":"5246-4"},"5246-7":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"5246-6"},"5246-9":{"renderedLength":44,"gzipLength":62,"brotliLength":0,"mainUid":"5246-8"},"5246-11":{"renderedLength":2487,"gzipLength":780,"brotliLength":0,"mainUid":"5246-10"},"5246-13":{"renderedLength":5023,"gzipLength":1673,"brotliLength":0,"mainUid":"5246-12"},"5246-15":{"renderedLength":5666,"gzipLength":1414,"brotliLength":0,"mainUid":"5246-14"},"5246-17":{"renderedLength":172,"gzipLength":132,"brotliLength":0,"mainUid":"5246-16"},"5246-19":{"renderedLength":1281,"gzipLength":547,"brotliLength":0,"mainUid":"5246-18"},"5246-21":{"renderedLength":1706,"gzipLength":575,"brotliLength":0,"mainUid":"5246-20"},"5246-23":{"renderedLength":5376,"gzipLength":1756,"brotliLength":0,"mainUid":"5246-22"},"5246-25":{"renderedLength":34141,"gzipLength":7910,"brotliLength":0,"mainUid":"5246-24"},"5246-27":{"renderedLength":6024,"gzipLength":1285,"brotliLength":0,"mainUid":"5246-26"},"5246-29":{"renderedLength":213,"gzipLength":147,"brotliLength":0,"mainUid":"5246-28"},"5246-31":{"renderedLength":182,"gzipLength":128,"brotliLength":0,"mainUid":"5246-30"},"5246-33":{"renderedLength":2744,"gzipLength":906,"brotliLength":0,"mainUid":"5246-32"},"5246-35":{"renderedLength":203,"gzipLength":140,"brotliLength":0,"mainUid":"5246-34"},"5246-37":{"renderedLength":479,"gzipLength":256,"brotliLength":0,"mainUid":"5246-36"},"5246-39":{"renderedLength":429,"gzipLength":238,"brotliLength":0,"mainUid":"5246-38"},"5246-41":{"renderedLength":2866,"gzipLength":974,"brotliLength":0,"mainUid":"5246-40"},"5246-43":{"renderedLength":4949,"gzipLength":1328,"brotliLength":0,"mainUid":"5246-42"},"5246-45":{"renderedLength":490,"gzipLength":250,"brotliLength":0,"mainUid":"5246-44"},"5246-47":{"renderedLength":695,"gzipLength":280,"brotliLength":0,"mainUid":"5246-46"},"5246-49":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"5246-48"}},"nodeMetas":{"5246-4":{"id":"/packages/history/build/esm/index.js","moduleParts":{"index.production.js":"5246-5"},"imported":[],"importedBy":[{"uid":"5246-48"},{"uid":"5246-24"}]},"5246-6":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"5246-7"},"imported":[],"importedBy":[{"uid":"5246-48"},{"uid":"5246-26"},{"uid":"5246-32"},{"uid":"5246-24"}]},"5246-8":{"id":"/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","moduleParts":{"index.production.js":"5246-9"},"imported":[],"importedBy":[{"uid":"5246-48"},{"uid":"5246-26"},{"uid":"5246-24"}]},"5246-10":{"id":"/packages/react-router/src/CatchBoundary.tsx","moduleParts":{"index.production.js":"5246-11"},"imported":[{"uid":"5246-53"}],"importedBy":[{"uid":"5246-48"},{"uid":"5246-26"}]},"5246-12":{"id":"/packages/react-router/src/utils.ts","moduleParts":{"index.production.js":"5246-13"},"imported":[{"uid":"5246-53"},{"uid":"5246-26"}],"importedBy":[{"uid":"5246-48"},{"uid":"5246-40"},{"uid":"5246-14"},{"uid":"5246-24"},{"uid":"5246-42"},{"uid":"5246-46"},{"uid":"5246-28"}]},"5246-14":{"id":"/packages/react-router/src/path.ts","moduleParts":{"index.production.js":"5246-15"},"imported":[{"uid":"5246-12"}],"importedBy":[{"uid":"5246-48"},{"uid":"5246-32"},{"uid":"5246-24"}]},"5246-16":{"id":"/packages/react-router/src/redirects.ts","moduleParts":{"index.production.js":"5246-17"},"imported":[],"importedBy":[{"uid":"5246-48"},{"uid":"5246-24"}]},"5246-18":{"id":"/packages/react-router/src/qss.ts","moduleParts":{"index.production.js":"5246-19"},"imported":[],"importedBy":[{"uid":"5246-48"},{"uid":"5246-20"}]},"5246-20":{"id":"/packages/react-router/src/searchParams.ts","moduleParts":{"index.production.js":"5246-21"},"imported":[{"uid":"5246-18"}],"importedBy":[{"uid":"5246-48"},{"uid":"5246-22"}]},"5246-22":{"id":"/packages/react-router/src/router.ts","moduleParts":{"index.production.js":"5246-23"},"imported":[{"uid":"5246-20"}],"importedBy":[{"uid":"5246-48"},{"uid":"5246-24"}]},"5246-24":{"id":"/packages/react-router/src/RouterProvider.tsx","moduleParts":{"index.production.js":"5246-25"},"imported":[{"uid":"5246-4"},{"uid":"5246-53"},{"uid":"5246-6"},{"uid":"5246-8"},{"uid":"5246-26"},{"uid":"5246-14"},{"uid":"5246-16"},{"uid":"5246-22"},{"uid":"5246-12"}],"importedBy":[{"uid":"5246-48"},{"uid":"5246-40"},{"uid":"5246-26"},{"uid":"5246-42"},{"uid":"5246-44"},{"uid":"5246-46"},{"uid":"5246-28"}]},"5246-26":{"id":"/packages/react-router/src/Matches.tsx","moduleParts":{"index.production.js":"5246-27"},"imported":[{"uid":"5246-53"},{"uid":"5246-6"},{"uid":"5246-8"},{"uid":"5246-10"},{"uid":"5246-24"},{"uid":"5246-32"}],"importedBy":[{"uid":"5246-48"},{"uid":"5246-40"},{"uid":"5246-32"},{"uid":"5246-24"},{"uid":"5246-46"},{"uid":"5246-30"},{"uid":"5246-12"}]},"5246-28":{"id":"/packages/react-router/src/useParams.tsx","moduleParts":{"index.production.js":"5246-29"},"imported":[{"uid":"5246-12"},{"uid":"5246-24"}],"importedBy":[{"uid":"5246-48"},{"uid":"5246-32"}]},"5246-30":{"id":"/packages/react-router/src/useSearch.tsx","moduleParts":{"index.production.js":"5246-31"},"imported":[{"uid":"5246-26"}],"importedBy":[{"uid":"5246-48"},{"uid":"5246-32"}]},"5246-32":{"id":"/packages/react-router/src/route.ts","moduleParts":{"index.production.js":"5246-33"},"imported":[{"uid":"5246-6"},{"uid":"5246-26"},{"uid":"5246-14"},{"uid":"5246-28"},{"uid":"5246-30"}],"importedBy":[{"uid":"5246-48"},{"uid":"5246-34"},{"uid":"5246-26"}]},"5246-34":{"id":"/packages/react-router/src/fileRoute.ts","moduleParts":{"index.production.js":"5246-35"},"imported":[{"uid":"5246-32"}],"importedBy":[{"uid":"5246-48"}]},"5246-36":{"id":"/packages/react-router/src/lazyRouteComponent.tsx","moduleParts":{"index.production.js":"5246-37"},"imported":[{"uid":"5246-53"}],"importedBy":[{"uid":"5246-48"}]},"5246-38":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"5246-39"},"imported":[],"importedBy":[{"uid":"5246-40"}]},"5246-40":{"id":"/packages/react-router/src/link.tsx","moduleParts":{"index.production.js":"5246-41"},"imported":[{"uid":"5246-38"},{"uid":"5246-53"},{"uid":"5246-26"},{"uid":"5246-24"},{"uid":"5246-12"}],"importedBy":[{"uid":"5246-48"}]},"5246-42":{"id":"/packages/react-router/src/scroll-restoration.tsx","moduleParts":{"index.production.js":"5246-43"},"imported":[{"uid":"5246-53"},{"uid":"5246-24"},{"uid":"5246-12"}],"importedBy":[{"uid":"5246-48"}]},"5246-44":{"id":"/packages/react-router/src/useBlocker.tsx","moduleParts":{"index.production.js":"5246-45"},"imported":[{"uid":"5246-53"},{"uid":"5246-24"}],"importedBy":[{"uid":"5246-48"}]},"5246-46":{"id":"/packages/react-router/src/useNavigate.tsx","moduleParts":{"index.production.js":"5246-47"},"imported":[{"uid":"5246-53"},{"uid":"5246-26"},{"uid":"5246-24"},{"uid":"5246-12"}],"importedBy":[{"uid":"5246-48"}]},"5246-48":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"5246-49"},"imported":[{"uid":"5246-4"},{"uid":"5246-6"},{"uid":"5246-8"},{"uid":"5246-10"},{"uid":"5246-34"},{"uid":"5246-50"},{"uid":"5246-48"},{"uid":"5246-36"},{"uid":"5246-40"},{"uid":"5246-51"},{"uid":"5246-26"},{"uid":"5246-14"},{"uid":"5246-18"},{"uid":"5246-16"},{"uid":"5246-32"},{"uid":"5246-52"},{"uid":"5246-22"},{"uid":"5246-24"},{"uid":"5246-42"},{"uid":"5246-20"},{"uid":"5246-44"},{"uid":"5246-46"},{"uid":"5246-28"},{"uid":"5246-30"},{"uid":"5246-12"}],"importedBy":[{"uid":"5246-48"}],"isEntry":true},"5246-50":{"id":"/packages/react-router/src/history.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"5246-48"}]},"5246-51":{"id":"/packages/react-router/src/location.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"5246-48"}]},"5246-52":{"id":"/packages/react-router/src/routeInfo.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"5246-48"}]},"5246-53":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"5246-10"},{"uid":"5246-36"},{"uid":"5246-40"},{"uid":"5246-26"},{"uid":"5246-24"},{"uid":"5246-42"},{"uid":"5246-44"},{"uid":"5246-46"},{"uid":"5246-12"}],"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;
|