@tanstack/react-router 0.0.1-beta.204 → 0.0.1-beta.206

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.
Files changed (73) hide show
  1. package/build/cjs/RouterProvider.js +963 -0
  2. package/build/cjs/RouterProvider.js.map +1 -0
  3. package/build/cjs/fileRoute.js +29 -0
  4. package/build/cjs/fileRoute.js.map +1 -0
  5. package/build/cjs/index.js +69 -21
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/path.js +211 -0
  8. package/build/cjs/path.js.map +1 -0
  9. package/build/cjs/qss.js +65 -0
  10. package/build/cjs/qss.js.map +1 -0
  11. package/build/cjs/react.js +148 -190
  12. package/build/cjs/react.js.map +1 -1
  13. package/build/cjs/redirects.js +27 -0
  14. package/build/cjs/redirects.js.map +1 -0
  15. package/build/cjs/route.js +136 -0
  16. package/build/cjs/route.js.map +1 -0
  17. package/build/cjs/router.js +203 -0
  18. package/build/cjs/router.js.map +1 -0
  19. package/build/cjs/searchParams.js +83 -0
  20. package/build/cjs/searchParams.js.map +1 -0
  21. package/build/cjs/utils.js +196 -0
  22. package/build/cjs/utils.js.map +1 -0
  23. package/build/esm/index.js +1801 -211
  24. package/build/esm/index.js.map +1 -1
  25. package/build/stats-html.html +1 -1
  26. package/build/stats-react.json +385 -164
  27. package/build/types/RouteMatch.d.ts +23 -0
  28. package/build/types/RouterProvider.d.ts +54 -0
  29. package/build/types/awaited.d.ts +0 -8
  30. package/build/types/defer.d.ts +0 -0
  31. package/build/types/fileRoute.d.ts +17 -0
  32. package/build/types/history.d.ts +7 -0
  33. package/build/types/index.d.ts +17 -4
  34. package/build/types/link.d.ts +98 -0
  35. package/build/types/location.d.ts +14 -0
  36. package/build/types/path.d.ts +16 -0
  37. package/build/types/qss.d.ts +2 -0
  38. package/build/types/react.d.ts +23 -83
  39. package/build/types/redirects.d.ts +10 -0
  40. package/build/types/route.d.ts +222 -0
  41. package/build/types/routeInfo.d.ts +22 -0
  42. package/build/types/router.d.ts +115 -0
  43. package/build/types/scroll-restoration.d.ts +0 -3
  44. package/build/types/searchParams.d.ts +7 -0
  45. package/build/types/utils.d.ts +48 -0
  46. package/build/umd/index.development.js +1118 -1540
  47. package/build/umd/index.development.js.map +1 -1
  48. package/build/umd/index.production.js +2 -33
  49. package/build/umd/index.production.js.map +1 -1
  50. package/package.json +2 -4
  51. package/src/RouteMatch.ts +28 -0
  52. package/src/RouterProvider.tsx +1390 -0
  53. package/src/awaited.tsx +40 -40
  54. package/src/defer.ts +55 -0
  55. package/src/fileRoute.ts +143 -0
  56. package/src/history.ts +8 -0
  57. package/src/index.tsx +18 -5
  58. package/src/link.ts +347 -0
  59. package/src/location.ts +14 -0
  60. package/src/path.ts +256 -0
  61. package/src/qss.ts +53 -0
  62. package/src/react.tsx +174 -422
  63. package/src/redirects.ts +31 -0
  64. package/src/route.ts +710 -0
  65. package/src/routeInfo.ts +68 -0
  66. package/src/router.ts +373 -0
  67. package/src/scroll-restoration.tsx +205 -27
  68. package/src/searchParams.ts +78 -0
  69. package/src/utils.ts +257 -0
  70. package/build/cjs/awaited.js +0 -45
  71. package/build/cjs/awaited.js.map +0 -1
  72. package/build/cjs/scroll-restoration.js +0 -56
  73. package/build/cjs/scroll-restoration.js.map +0 -1
@@ -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":"@tanstack+store@0.0.1/node_modules/@tanstack/store/build/esm/index.js","uid":"8e4c-169"},{"name":"@tanstack+react-store@0.0.1/node_modules/@tanstack/react-store/build/esm/index.js","uid":"8e4c-171"},{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"8e4c-175"},{"name":"tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","uid":"8e4c-177"}]},{"name":"packages","children":[{"name":"history/build/esm/index.js","uid":"8e4c-173"},{"name":"router-core/build/esm/index.js","uid":"8e4c-179"},{"name":"react-router/src","children":[{"uid":"8e4c-183","name":"react.tsx"},{"uid":"8e4c-185","name":"scroll-restoration.tsx"},{"uid":"8e4c-187","name":"awaited.tsx"},{"uid":"8e4c-189","name":"index.tsx"}]}]},{"uid":"8e4c-181","name":"\u0000rollupPluginBabelHelpers.js"}]}],"isRoot":true},"nodeParts":{"8e4c-169":{"renderedLength":1843,"gzipLength":644,"brotliLength":0,"mainUid":"8e4c-168"},"8e4c-171":{"renderedLength":1006,"gzipLength":479,"brotliLength":0,"mainUid":"8e4c-170"},"8e4c-173":{"renderedLength":9148,"gzipLength":2726,"brotliLength":0,"mainUid":"8e4c-172"},"8e4c-175":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"8e4c-174"},"8e4c-177":{"renderedLength":44,"gzipLength":62,"brotliLength":0,"mainUid":"8e4c-176"},"8e4c-179":{"renderedLength":62630,"gzipLength":14956,"brotliLength":0,"mainUid":"8e4c-178"},"8e4c-181":{"renderedLength":429,"gzipLength":238,"brotliLength":0,"mainUid":"8e4c-180"},"8e4c-183":{"renderedLength":17497,"gzipLength":3838,"brotliLength":0,"mainUid":"8e4c-182"},"8e4c-185":{"renderedLength":466,"gzipLength":228,"brotliLength":0,"mainUid":"8e4c-184"},"8e4c-187":{"renderedLength":641,"gzipLength":305,"brotliLength":0,"mainUid":"8e4c-186"},"8e4c-189":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"8e4c-188"}},"nodeMetas":{"8e4c-168":{"id":"/node_modules/.pnpm/@tanstack+store@0.0.1/node_modules/@tanstack/store/build/esm/index.js","moduleParts":{"index.production.js":"8e4c-169"},"imported":[],"importedBy":[{"uid":"8e4c-170"},{"uid":"8e4c-178"}]},"8e4c-170":{"id":"/node_modules/.pnpm/@tanstack+react-store@0.0.1/node_modules/@tanstack/react-store/build/esm/index.js","moduleParts":{"index.production.js":"8e4c-171"},"imported":[{"uid":"8e4c-190"},{"uid":"8e4c-168"}],"importedBy":[{"uid":"8e4c-188"},{"uid":"8e4c-182"}]},"8e4c-172":{"id":"/packages/history/build/esm/index.js","moduleParts":{"index.production.js":"8e4c-173"},"imported":[],"importedBy":[{"uid":"8e4c-178"}]},"8e4c-174":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"8e4c-175"},"imported":[],"importedBy":[{"uid":"8e4c-178"},{"uid":"8e4c-182"}]},"8e4c-176":{"id":"/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","moduleParts":{"index.production.js":"8e4c-177"},"imported":[],"importedBy":[{"uid":"8e4c-178"},{"uid":"8e4c-182"}]},"8e4c-178":{"id":"/packages/router-core/build/esm/index.js","moduleParts":{"index.production.js":"8e4c-179"},"imported":[{"uid":"8e4c-172"},{"uid":"8e4c-174"},{"uid":"8e4c-176"},{"uid":"8e4c-168"}],"importedBy":[{"uid":"8e4c-188"},{"uid":"8e4c-182"},{"uid":"8e4c-184"},{"uid":"8e4c-186"}]},"8e4c-180":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"8e4c-181"},"imported":[],"importedBy":[{"uid":"8e4c-182"}]},"8e4c-182":{"id":"/packages/react-router/src/react.tsx","moduleParts":{"index.production.js":"8e4c-183"},"imported":[{"uid":"8e4c-180"},{"uid":"8e4c-191"},{"uid":"8e4c-170"},{"uid":"8e4c-174"},{"uid":"8e4c-176"},{"uid":"8e4c-178"}],"importedBy":[{"uid":"8e4c-188"},{"uid":"8e4c-184"},{"uid":"8e4c-186"}]},"8e4c-184":{"id":"/packages/react-router/src/scroll-restoration.tsx","moduleParts":{"index.production.js":"8e4c-185"},"imported":[{"uid":"8e4c-191"},{"uid":"8e4c-178"},{"uid":"8e4c-182"}],"importedBy":[{"uid":"8e4c-188"}]},"8e4c-186":{"id":"/packages/react-router/src/awaited.tsx","moduleParts":{"index.production.js":"8e4c-187"},"imported":[{"uid":"8e4c-178"},{"uid":"8e4c-182"}],"importedBy":[{"uid":"8e4c-188"}]},"8e4c-188":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"8e4c-189"},"imported":[{"uid":"8e4c-170"},{"uid":"8e4c-178"},{"uid":"8e4c-182"},{"uid":"8e4c-184"},{"uid":"8e4c-186"}],"importedBy":[],"isEntry":true},"8e4c-190":{"id":"use-sync-external-store/shim/with-selector","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e4c-170"}],"isExternal":true},"8e4c-191":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e4c-182"},{"uid":"8e4c-184"}],"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":"history/build/esm/index.js","uid":"8d0d-5"},{"name":"react-router/src","children":[{"uid":"8d0d-11","name":"utils.ts"},{"uid":"8d0d-13","name":"path.ts"},{"uid":"8d0d-15","name":"qss.ts"},{"uid":"8d0d-19","name":"searchParams.ts"},{"uid":"8d0d-21","name":"router.ts"},{"uid":"8d0d-23","name":"redirects.ts"},{"uid":"8d0d-25","name":"RouterProvider.tsx"},{"uid":"8d0d-27","name":"react.tsx"},{"uid":"8d0d-29","name":"route.ts"},{"uid":"8d0d-31","name":"fileRoute.ts"},{"uid":"8d0d-33","name":"index.tsx"}]}]},{"name":"node_modules/.pnpm","children":[{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"8d0d-7"},{"name":"tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","uid":"8d0d-9"}]},{"uid":"8d0d-17","name":"\u0000rollupPluginBabelHelpers.js"}]}],"isRoot":true},"nodeParts":{"8d0d-5":{"renderedLength":9130,"gzipLength":2727,"brotliLength":0,"mainUid":"8d0d-4"},"8d0d-7":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"8d0d-6"},"8d0d-9":{"renderedLength":44,"gzipLength":62,"brotliLength":0,"mainUid":"8d0d-8"},"8d0d-11":{"renderedLength":4036,"gzipLength":1408,"brotliLength":0,"mainUid":"8d0d-10"},"8d0d-13":{"renderedLength":5666,"gzipLength":1414,"brotliLength":0,"mainUid":"8d0d-12"},"8d0d-15":{"renderedLength":1281,"gzipLength":547,"brotliLength":0,"mainUid":"8d0d-14"},"8d0d-17":{"renderedLength":429,"gzipLength":238,"brotliLength":0,"mainUid":"8d0d-16"},"8d0d-19":{"renderedLength":1706,"gzipLength":575,"brotliLength":0,"mainUid":"8d0d-18"},"8d0d-21":{"renderedLength":5373,"gzipLength":1755,"brotliLength":0,"mainUid":"8d0d-20"},"8d0d-23":{"renderedLength":172,"gzipLength":132,"brotliLength":0,"mainUid":"8d0d-22"},"8d0d-25":{"renderedLength":31134,"gzipLength":7324,"brotliLength":0,"mainUid":"8d0d-24"},"8d0d-27":{"renderedLength":15630,"gzipLength":3722,"brotliLength":0,"mainUid":"8d0d-26"},"8d0d-29":{"renderedLength":2804,"gzipLength":943,"brotliLength":0,"mainUid":"8d0d-28"},"8d0d-31":{"renderedLength":203,"gzipLength":140,"brotliLength":0,"mainUid":"8d0d-30"},"8d0d-33":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"8d0d-32"}},"nodeMetas":{"8d0d-4":{"id":"/packages/history/build/esm/index.js","moduleParts":{"index.production.js":"8d0d-5"},"imported":[],"importedBy":[{"uid":"8d0d-32"}]},"8d0d-6":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"8d0d-7"},"imported":[],"importedBy":[{"uid":"8d0d-32"},{"uid":"8d0d-28"},{"uid":"8d0d-26"},{"uid":"8d0d-24"}]},"8d0d-8":{"id":"/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","moduleParts":{"index.production.js":"8d0d-9"},"imported":[],"importedBy":[{"uid":"8d0d-32"},{"uid":"8d0d-26"}]},"8d0d-10":{"id":"/packages/react-router/src/utils.ts","moduleParts":{"index.production.js":"8d0d-11"},"imported":[{"uid":"8d0d-39"}],"importedBy":[{"uid":"8d0d-32"},{"uid":"8d0d-12"},{"uid":"8d0d-26"},{"uid":"8d0d-24"}]},"8d0d-12":{"id":"/packages/react-router/src/path.ts","moduleParts":{"index.production.js":"8d0d-13"},"imported":[{"uid":"8d0d-10"}],"importedBy":[{"uid":"8d0d-32"},{"uid":"8d0d-28"},{"uid":"8d0d-24"}]},"8d0d-14":{"id":"/packages/react-router/src/qss.ts","moduleParts":{"index.production.js":"8d0d-15"},"imported":[],"importedBy":[{"uid":"8d0d-32"},{"uid":"8d0d-18"}]},"8d0d-16":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"8d0d-17"},"imported":[],"importedBy":[{"uid":"8d0d-26"}]},"8d0d-18":{"id":"/packages/react-router/src/searchParams.ts","moduleParts":{"index.production.js":"8d0d-19"},"imported":[{"uid":"8d0d-14"}],"importedBy":[{"uid":"8d0d-32"},{"uid":"8d0d-20"}]},"8d0d-20":{"id":"/packages/react-router/src/router.ts","moduleParts":{"index.production.js":"8d0d-21"},"imported":[{"uid":"8d0d-18"}],"importedBy":[{"uid":"8d0d-32"},{"uid":"8d0d-24"}]},"8d0d-22":{"id":"/packages/react-router/src/redirects.ts","moduleParts":{"index.production.js":"8d0d-23"},"imported":[],"importedBy":[{"uid":"8d0d-32"},{"uid":"8d0d-24"}]},"8d0d-24":{"id":"/packages/react-router/src/RouterProvider.tsx","moduleParts":{"index.production.js":"8d0d-25"},"imported":[{"uid":"8d0d-39"},{"uid":"8d0d-20"},{"uid":"8d0d-22"},{"uid":"8d0d-10"},{"uid":"8d0d-26"},{"uid":"8d0d-12"},{"uid":"8d0d-6"},{"uid":"8d0d-32"}],"importedBy":[{"uid":"8d0d-32"},{"uid":"8d0d-26"}]},"8d0d-26":{"id":"/packages/react-router/src/react.tsx","moduleParts":{"index.production.js":"8d0d-27"},"imported":[{"uid":"8d0d-16"},{"uid":"8d0d-39"},{"uid":"8d0d-6"},{"uid":"8d0d-8"},{"uid":"8d0d-28"},{"uid":"8d0d-10"},{"uid":"8d0d-24"}],"importedBy":[{"uid":"8d0d-32"},{"uid":"8d0d-28"},{"uid":"8d0d-24"}]},"8d0d-28":{"id":"/packages/react-router/src/route.ts","moduleParts":{"index.production.js":"8d0d-29"},"imported":[{"uid":"8d0d-6"},{"uid":"8d0d-12"},{"uid":"8d0d-26"}],"importedBy":[{"uid":"8d0d-32"},{"uid":"8d0d-30"},{"uid":"8d0d-26"}]},"8d0d-30":{"id":"/packages/react-router/src/fileRoute.ts","moduleParts":{"index.production.js":"8d0d-31"},"imported":[{"uid":"8d0d-28"}],"importedBy":[{"uid":"8d0d-32"}]},"8d0d-32":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"8d0d-33"},"imported":[{"uid":"8d0d-4"},{"uid":"8d0d-6"},{"uid":"8d0d-8"},{"uid":"8d0d-34"},{"uid":"8d0d-12"},{"uid":"8d0d-14"},{"uid":"8d0d-28"},{"uid":"8d0d-30"},{"uid":"8d0d-35"},{"uid":"8d0d-20"},{"uid":"8d0d-18"},{"uid":"8d0d-10"},{"uid":"8d0d-26"},{"uid":"8d0d-36"},{"uid":"8d0d-37"},{"uid":"8d0d-22"},{"uid":"8d0d-38"},{"uid":"8d0d-24"}],"importedBy":[{"uid":"8d0d-24"}],"isEntry":true},"8d0d-34":{"id":"/packages/react-router/src/link.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"8d0d-32"}]},"8d0d-35":{"id":"/packages/react-router/src/routeInfo.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"8d0d-32"}]},"8d0d-36":{"id":"/packages/react-router/src/history.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"8d0d-32"}]},"8d0d-37":{"id":"/packages/react-router/src/RouteMatch.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"8d0d-32"}]},"8d0d-38":{"id":"/packages/react-router/src/location.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"8d0d-32"}]},"8d0d-39":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"8d0d-10"},{"uid":"8d0d-26"},{"uid":"8d0d-24"}],"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;