@tanstack/react-router 0.0.1-beta.203 → 0.0.1-beta.205

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 +961 -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 +1799 -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 +1116 -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 +4 -4
  51. package/src/RouteMatch.ts +28 -0
  52. package/src/RouterProvider.tsx +1384 -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":"8721-169"},{"name":"@tanstack+react-store@0.0.1/node_modules/@tanstack/react-store/build/esm/index.js","uid":"8721-171"},{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"8721-175"},{"name":"tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","uid":"8721-177"}]},{"name":"packages","children":[{"name":"history/build/esm/index.js","uid":"8721-173"},{"name":"router-core/build/esm/index.js","uid":"8721-179"},{"name":"react-router/src","children":[{"uid":"8721-183","name":"react.tsx"},{"uid":"8721-185","name":"scroll-restoration.tsx"},{"uid":"8721-187","name":"awaited.tsx"},{"uid":"8721-189","name":"index.tsx"}]}]},{"uid":"8721-181","name":"\u0000rollupPluginBabelHelpers.js"}]}],"isRoot":true},"nodeParts":{"8721-169":{"renderedLength":1843,"gzipLength":644,"brotliLength":0,"mainUid":"8721-168"},"8721-171":{"renderedLength":1006,"gzipLength":479,"brotliLength":0,"mainUid":"8721-170"},"8721-173":{"renderedLength":9148,"gzipLength":2726,"brotliLength":0,"mainUid":"8721-172"},"8721-175":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"8721-174"},"8721-177":{"renderedLength":44,"gzipLength":62,"brotliLength":0,"mainUid":"8721-176"},"8721-179":{"renderedLength":62629,"gzipLength":14956,"brotliLength":0,"mainUid":"8721-178"},"8721-181":{"renderedLength":429,"gzipLength":238,"brotliLength":0,"mainUid":"8721-180"},"8721-183":{"renderedLength":17497,"gzipLength":3838,"brotliLength":0,"mainUid":"8721-182"},"8721-185":{"renderedLength":466,"gzipLength":228,"brotliLength":0,"mainUid":"8721-184"},"8721-187":{"renderedLength":641,"gzipLength":305,"brotliLength":0,"mainUid":"8721-186"},"8721-189":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"8721-188"}},"nodeMetas":{"8721-168":{"id":"/node_modules/.pnpm/@tanstack+store@0.0.1/node_modules/@tanstack/store/build/esm/index.js","moduleParts":{"index.production.js":"8721-169"},"imported":[],"importedBy":[{"uid":"8721-170"},{"uid":"8721-178"}]},"8721-170":{"id":"/node_modules/.pnpm/@tanstack+react-store@0.0.1/node_modules/@tanstack/react-store/build/esm/index.js","moduleParts":{"index.production.js":"8721-171"},"imported":[{"uid":"8721-190"},{"uid":"8721-168"}],"importedBy":[{"uid":"8721-188"},{"uid":"8721-182"}]},"8721-172":{"id":"/packages/history/build/esm/index.js","moduleParts":{"index.production.js":"8721-173"},"imported":[],"importedBy":[{"uid":"8721-178"}]},"8721-174":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"8721-175"},"imported":[],"importedBy":[{"uid":"8721-178"},{"uid":"8721-182"}]},"8721-176":{"id":"/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","moduleParts":{"index.production.js":"8721-177"},"imported":[],"importedBy":[{"uid":"8721-178"},{"uid":"8721-182"}]},"8721-178":{"id":"/packages/router-core/build/esm/index.js","moduleParts":{"index.production.js":"8721-179"},"imported":[{"uid":"8721-172"},{"uid":"8721-174"},{"uid":"8721-176"},{"uid":"8721-168"}],"importedBy":[{"uid":"8721-188"},{"uid":"8721-182"},{"uid":"8721-184"},{"uid":"8721-186"}]},"8721-180":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"8721-181"},"imported":[],"importedBy":[{"uid":"8721-182"}]},"8721-182":{"id":"/packages/react-router/src/react.tsx","moduleParts":{"index.production.js":"8721-183"},"imported":[{"uid":"8721-180"},{"uid":"8721-191"},{"uid":"8721-170"},{"uid":"8721-174"},{"uid":"8721-176"},{"uid":"8721-178"}],"importedBy":[{"uid":"8721-188"},{"uid":"8721-184"},{"uid":"8721-186"}]},"8721-184":{"id":"/packages/react-router/src/scroll-restoration.tsx","moduleParts":{"index.production.js":"8721-185"},"imported":[{"uid":"8721-191"},{"uid":"8721-178"},{"uid":"8721-182"}],"importedBy":[{"uid":"8721-188"}]},"8721-186":{"id":"/packages/react-router/src/awaited.tsx","moduleParts":{"index.production.js":"8721-187"},"imported":[{"uid":"8721-178"},{"uid":"8721-182"}],"importedBy":[{"uid":"8721-188"}]},"8721-188":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"8721-189"},"imported":[{"uid":"8721-170"},{"uid":"8721-178"},{"uid":"8721-182"},{"uid":"8721-184"},{"uid":"8721-186"}],"importedBy":[],"isEntry":true},"8721-190":{"id":"use-sync-external-store/shim/with-selector","moduleParts":{},"imported":[],"importedBy":[{"uid":"8721-170"}],"isExternal":true},"8721-191":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"8721-182"},{"uid":"8721-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":"d6b9-5"},{"name":"react-router/src","children":[{"uid":"d6b9-11","name":"utils.ts"},{"uid":"d6b9-13","name":"path.ts"},{"uid":"d6b9-15","name":"qss.ts"},{"uid":"d6b9-19","name":"searchParams.ts"},{"uid":"d6b9-21","name":"router.ts"},{"uid":"d6b9-23","name":"redirects.ts"},{"uid":"d6b9-25","name":"RouterProvider.tsx"},{"uid":"d6b9-27","name":"react.tsx"},{"uid":"d6b9-29","name":"route.ts"},{"uid":"d6b9-31","name":"fileRoute.ts"},{"uid":"d6b9-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":"d6b9-7"},{"name":"tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","uid":"d6b9-9"}]},{"uid":"d6b9-17","name":"\u0000rollupPluginBabelHelpers.js"}]}],"isRoot":true},"nodeParts":{"d6b9-5":{"renderedLength":9130,"gzipLength":2727,"brotliLength":0,"mainUid":"d6b9-4"},"d6b9-7":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"d6b9-6"},"d6b9-9":{"renderedLength":44,"gzipLength":62,"brotliLength":0,"mainUid":"d6b9-8"},"d6b9-11":{"renderedLength":4036,"gzipLength":1408,"brotliLength":0,"mainUid":"d6b9-10"},"d6b9-13":{"renderedLength":5666,"gzipLength":1414,"brotliLength":0,"mainUid":"d6b9-12"},"d6b9-15":{"renderedLength":1281,"gzipLength":547,"brotliLength":0,"mainUid":"d6b9-14"},"d6b9-17":{"renderedLength":429,"gzipLength":238,"brotliLength":0,"mainUid":"d6b9-16"},"d6b9-19":{"renderedLength":1706,"gzipLength":575,"brotliLength":0,"mainUid":"d6b9-18"},"d6b9-21":{"renderedLength":5373,"gzipLength":1755,"brotliLength":0,"mainUid":"d6b9-20"},"d6b9-23":{"renderedLength":172,"gzipLength":132,"brotliLength":0,"mainUid":"d6b9-22"},"d6b9-25":{"renderedLength":30851,"gzipLength":7272,"brotliLength":0,"mainUid":"d6b9-24"},"d6b9-27":{"renderedLength":15630,"gzipLength":3722,"brotliLength":0,"mainUid":"d6b9-26"},"d6b9-29":{"renderedLength":2804,"gzipLength":943,"brotliLength":0,"mainUid":"d6b9-28"},"d6b9-31":{"renderedLength":203,"gzipLength":140,"brotliLength":0,"mainUid":"d6b9-30"},"d6b9-33":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"d6b9-32"}},"nodeMetas":{"d6b9-4":{"id":"/packages/history/build/esm/index.js","moduleParts":{"index.production.js":"d6b9-5"},"imported":[],"importedBy":[{"uid":"d6b9-32"}]},"d6b9-6":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"d6b9-7"},"imported":[],"importedBy":[{"uid":"d6b9-32"},{"uid":"d6b9-28"},{"uid":"d6b9-26"},{"uid":"d6b9-24"}]},"d6b9-8":{"id":"/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","moduleParts":{"index.production.js":"d6b9-9"},"imported":[],"importedBy":[{"uid":"d6b9-32"},{"uid":"d6b9-26"}]},"d6b9-10":{"id":"/packages/react-router/src/utils.ts","moduleParts":{"index.production.js":"d6b9-11"},"imported":[{"uid":"d6b9-39"}],"importedBy":[{"uid":"d6b9-32"},{"uid":"d6b9-12"},{"uid":"d6b9-26"},{"uid":"d6b9-24"}]},"d6b9-12":{"id":"/packages/react-router/src/path.ts","moduleParts":{"index.production.js":"d6b9-13"},"imported":[{"uid":"d6b9-10"}],"importedBy":[{"uid":"d6b9-32"},{"uid":"d6b9-28"},{"uid":"d6b9-24"}]},"d6b9-14":{"id":"/packages/react-router/src/qss.ts","moduleParts":{"index.production.js":"d6b9-15"},"imported":[],"importedBy":[{"uid":"d6b9-32"},{"uid":"d6b9-18"}]},"d6b9-16":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"d6b9-17"},"imported":[],"importedBy":[{"uid":"d6b9-26"}]},"d6b9-18":{"id":"/packages/react-router/src/searchParams.ts","moduleParts":{"index.production.js":"d6b9-19"},"imported":[{"uid":"d6b9-14"}],"importedBy":[{"uid":"d6b9-32"},{"uid":"d6b9-20"}]},"d6b9-20":{"id":"/packages/react-router/src/router.ts","moduleParts":{"index.production.js":"d6b9-21"},"imported":[{"uid":"d6b9-18"}],"importedBy":[{"uid":"d6b9-32"},{"uid":"d6b9-24"}]},"d6b9-22":{"id":"/packages/react-router/src/redirects.ts","moduleParts":{"index.production.js":"d6b9-23"},"imported":[],"importedBy":[{"uid":"d6b9-32"},{"uid":"d6b9-24"}]},"d6b9-24":{"id":"/packages/react-router/src/RouterProvider.tsx","moduleParts":{"index.production.js":"d6b9-25"},"imported":[{"uid":"d6b9-39"},{"uid":"d6b9-20"},{"uid":"d6b9-22"},{"uid":"d6b9-10"},{"uid":"d6b9-26"},{"uid":"d6b9-12"},{"uid":"d6b9-6"},{"uid":"d6b9-32"}],"importedBy":[{"uid":"d6b9-32"},{"uid":"d6b9-26"}]},"d6b9-26":{"id":"/packages/react-router/src/react.tsx","moduleParts":{"index.production.js":"d6b9-27"},"imported":[{"uid":"d6b9-16"},{"uid":"d6b9-39"},{"uid":"d6b9-6"},{"uid":"d6b9-8"},{"uid":"d6b9-28"},{"uid":"d6b9-10"},{"uid":"d6b9-24"}],"importedBy":[{"uid":"d6b9-32"},{"uid":"d6b9-28"},{"uid":"d6b9-24"}]},"d6b9-28":{"id":"/packages/react-router/src/route.ts","moduleParts":{"index.production.js":"d6b9-29"},"imported":[{"uid":"d6b9-6"},{"uid":"d6b9-12"},{"uid":"d6b9-26"}],"importedBy":[{"uid":"d6b9-32"},{"uid":"d6b9-30"},{"uid":"d6b9-26"}]},"d6b9-30":{"id":"/packages/react-router/src/fileRoute.ts","moduleParts":{"index.production.js":"d6b9-31"},"imported":[{"uid":"d6b9-28"}],"importedBy":[{"uid":"d6b9-32"}]},"d6b9-32":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"d6b9-33"},"imported":[{"uid":"d6b9-4"},{"uid":"d6b9-6"},{"uid":"d6b9-8"},{"uid":"d6b9-34"},{"uid":"d6b9-12"},{"uid":"d6b9-14"},{"uid":"d6b9-28"},{"uid":"d6b9-30"},{"uid":"d6b9-35"},{"uid":"d6b9-20"},{"uid":"d6b9-18"},{"uid":"d6b9-10"},{"uid":"d6b9-26"},{"uid":"d6b9-36"},{"uid":"d6b9-37"},{"uid":"d6b9-22"},{"uid":"d6b9-38"},{"uid":"d6b9-24"}],"importedBy":[{"uid":"d6b9-24"}],"isEntry":true},"d6b9-34":{"id":"/packages/react-router/src/link.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"d6b9-32"}]},"d6b9-35":{"id":"/packages/react-router/src/routeInfo.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"d6b9-32"}]},"d6b9-36":{"id":"/packages/react-router/src/history.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"d6b9-32"}]},"d6b9-37":{"id":"/packages/react-router/src/RouteMatch.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"d6b9-32"}]},"d6b9-38":{"id":"/packages/react-router/src/location.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"d6b9-32"}]},"d6b9-39":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"d6b9-10"},{"uid":"d6b9-26"},{"uid":"d6b9-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;