@tanstack/react-router 0.0.1-beta.7 → 0.0.1-beta.9

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.
@@ -4014,7 +4014,7 @@ var drawChart = (function (exports) {
4014
4014
  </script>
4015
4015
  <script>
4016
4016
  /*<!--*/
4017
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"uid":"5250-59","name":"\u0000rollupPluginBabelHelpers.js"},{"name":"packages","children":[{"name":"router-core/build/esm/index.js","uid":"5250-61"},{"name":"react-router/src/index.tsx","uid":"5250-63"}]}]}],"isRoot":true},"nodeParts":{"5250-59":{"renderedLength":798,"gzipLength":366,"brotliLength":0,"mainUid":"5250-58"},"5250-61":{"renderedLength":75894,"gzipLength":15771,"brotliLength":0,"mainUid":"5250-60"},"5250-63":{"renderedLength":12607,"gzipLength":3287,"brotliLength":0,"mainUid":"5250-62"}},"nodeMetas":{"5250-58":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"5250-59"},"imported":[],"importedBy":[{"uid":"5250-62"}]},"5250-60":{"id":"/packages/router-core/build/esm/index.js","moduleParts":{"index.production.js":"5250-61"},"imported":[],"importedBy":[{"uid":"5250-62"}]},"5250-62":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"5250-63"},"imported":[{"uid":"5250-58"},{"uid":"5250-64"},{"uid":"5250-65"},{"uid":"5250-60"}],"importedBy":[],"isEntry":true},"5250-64":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"5250-62"}],"isExternal":true},"5250-65":{"id":"use-sync-external-store/shim","moduleParts":{},"imported":[],"importedBy":[{"uid":"5250-62"}],"isExternal":true}},"env":{"rollup":"2.77.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4017
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"uid":"aba2-59","name":"\u0000rollupPluginBabelHelpers.js"},{"name":"packages","children":[{"name":"router-core/build/esm/index.js","uid":"aba2-61"},{"name":"react-router/src/index.tsx","uid":"aba2-63"}]}]}],"isRoot":true},"nodeParts":{"aba2-59":{"renderedLength":798,"gzipLength":366,"brotliLength":0,"mainUid":"aba2-58"},"aba2-61":{"renderedLength":75895,"gzipLength":15774,"brotliLength":0,"mainUid":"aba2-60"},"aba2-63":{"renderedLength":12607,"gzipLength":3287,"brotliLength":0,"mainUid":"aba2-62"}},"nodeMetas":{"aba2-58":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"aba2-59"},"imported":[],"importedBy":[{"uid":"aba2-62"}]},"aba2-60":{"id":"/packages/router-core/build/esm/index.js","moduleParts":{"index.production.js":"aba2-61"},"imported":[],"importedBy":[{"uid":"aba2-62"}]},"aba2-62":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"aba2-63"},"imported":[{"uid":"aba2-58"},{"uid":"aba2-64"},{"uid":"aba2-65"},{"uid":"aba2-60"}],"importedBy":[],"isEntry":true},"aba2-64":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"aba2-62"}],"isExternal":true},"aba2-65":{"id":"use-sync-external-store/shim","moduleParts":{},"imported":[],"importedBy":[{"uid":"aba2-62"}],"isExternal":true}},"env":{"rollup":"2.77.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4018
4018
 
4019
4019
  const run = () => {
4020
4020
  const width = window.innerWidth;
@@ -7,7 +7,7 @@
7
7
  "name": "index.production.js",
8
8
  "children": [
9
9
  {
10
- "uid": "5250-67",
10
+ "uid": "aba2-67",
11
11
  "name": "\u0000rollupPluginBabelHelpers.js"
12
12
  },
13
13
  {
@@ -15,11 +15,11 @@
15
15
  "children": [
16
16
  {
17
17
  "name": "router-core/build/esm/index.js",
18
- "uid": "5250-69"
18
+ "uid": "aba2-69"
19
19
  },
20
20
  {
21
21
  "name": "react-router/src/index.tsx",
22
- "uid": "5250-71"
22
+ "uid": "aba2-71"
23
23
  }
24
24
  ]
25
25
  }
@@ -29,90 +29,90 @@
29
29
  "isRoot": true
30
30
  },
31
31
  "nodeParts": {
32
- "5250-67": {
32
+ "aba2-67": {
33
33
  "renderedLength": 798,
34
34
  "gzipLength": 366,
35
35
  "brotliLength": 0,
36
- "mainUid": "5250-66"
36
+ "mainUid": "aba2-66"
37
37
  },
38
- "5250-69": {
39
- "renderedLength": 75894,
40
- "gzipLength": 15771,
38
+ "aba2-69": {
39
+ "renderedLength": 75895,
40
+ "gzipLength": 15774,
41
41
  "brotliLength": 0,
42
- "mainUid": "5250-68"
42
+ "mainUid": "aba2-68"
43
43
  },
44
- "5250-71": {
44
+ "aba2-71": {
45
45
  "renderedLength": 12607,
46
46
  "gzipLength": 3287,
47
47
  "brotliLength": 0,
48
- "mainUid": "5250-70"
48
+ "mainUid": "aba2-70"
49
49
  }
50
50
  },
51
51
  "nodeMetas": {
52
- "5250-66": {
52
+ "aba2-66": {
53
53
  "id": "\u0000rollupPluginBabelHelpers.js",
54
54
  "moduleParts": {
55
- "index.production.js": "5250-67"
55
+ "index.production.js": "aba2-67"
56
56
  },
57
57
  "imported": [],
58
58
  "importedBy": [
59
59
  {
60
- "uid": "5250-70"
60
+ "uid": "aba2-70"
61
61
  }
62
62
  ]
63
63
  },
64
- "5250-68": {
64
+ "aba2-68": {
65
65
  "id": "/packages/router-core/build/esm/index.js",
66
66
  "moduleParts": {
67
- "index.production.js": "5250-69"
67
+ "index.production.js": "aba2-69"
68
68
  },
69
69
  "imported": [],
70
70
  "importedBy": [
71
71
  {
72
- "uid": "5250-70"
72
+ "uid": "aba2-70"
73
73
  }
74
74
  ]
75
75
  },
76
- "5250-70": {
76
+ "aba2-70": {
77
77
  "id": "/packages/react-router/src/index.tsx",
78
78
  "moduleParts": {
79
- "index.production.js": "5250-71"
79
+ "index.production.js": "aba2-71"
80
80
  },
81
81
  "imported": [
82
82
  {
83
- "uid": "5250-66"
83
+ "uid": "aba2-66"
84
84
  },
85
85
  {
86
- "uid": "5250-72"
86
+ "uid": "aba2-72"
87
87
  },
88
88
  {
89
- "uid": "5250-73"
89
+ "uid": "aba2-73"
90
90
  },
91
91
  {
92
- "uid": "5250-68"
92
+ "uid": "aba2-68"
93
93
  }
94
94
  ],
95
95
  "importedBy": [],
96
96
  "isEntry": true
97
97
  },
98
- "5250-72": {
98
+ "aba2-72": {
99
99
  "id": "react",
100
100
  "moduleParts": {},
101
101
  "imported": [],
102
102
  "importedBy": [
103
103
  {
104
- "uid": "5250-70"
104
+ "uid": "aba2-70"
105
105
  }
106
106
  ],
107
107
  "isExternal": true
108
108
  },
109
- "5250-73": {
109
+ "aba2-73": {
110
110
  "id": "use-sync-external-store/shim",
111
111
  "moduleParts": {},
112
112
  "imported": [],
113
113
  "importedBy": [
114
114
  {
115
- "uid": "5250-70"
115
+ "uid": "aba2-70"
116
116
  }
117
117
  ],
118
118
  "isExternal": true
@@ -1395,15 +1395,6 @@
1395
1395
  });
1396
1396
  return route;
1397
1397
  }
1398
- function cascadeLoaderData(matches) {
1399
- matches.forEach((match, index) => {
1400
- const parent = matches[index - 1];
1401
-
1402
- if (parent) {
1403
- match.loaderData = replaceEqualDeep(match.loaderData, _extends({}, parent.loaderData, match.routeLoaderData));
1404
- }
1405
- });
1406
- }
1407
1398
 
1408
1399
  const rootRouteId = '__root__';
1409
1400
  const createRouteConfig = function createRouteConfig(options, children, isRoot, parentId, parentPath) {
@@ -2537,6 +2528,16 @@
2537
2528
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
2538
2529
  }
2539
2530
 
2531
+ function cascadeLoaderData(matches) {
2532
+ matches.forEach((match, index) => {
2533
+ const parent = matches[index - 1];
2534
+
2535
+ if (parent) {
2536
+ match.loaderData = replaceEqualDeep(match.loaderData, _extends({}, parent.loaderData, match.routeLoaderData));
2537
+ }
2538
+ });
2539
+ }
2540
+
2540
2541
  const _excluded = ["type", "children", "target", "activeProps", "inactiveProps", "activeOptions", "disabled", "hash", "search", "params", "to", "preload", "preloadDelay", "preloadMaxAge", "replace", "style", "className", "onClick", "onFocus", "onMouseEnter", "onMouseLeave", "onTouchStart", "onTouchEnd"],
2541
2542
  _excluded2 = ["pending", "caseSensitive", "children"],
2542
2543
  _excluded3 = ["children", "router"];
@@ -2923,7 +2924,6 @@
2923
2924
  exports.Outlet = Outlet;
2924
2925
  exports.Prompt = Prompt;
2925
2926
  exports.RouterProvider = RouterProvider;
2926
- exports.cascadeLoaderData = cascadeLoaderData;
2927
2927
  exports.cleanPath = cleanPath;
2928
2928
  exports.createBrowserHistory = createBrowserHistory;
2929
2929
  exports.createHashHistory = createHashHistory;