@tanstack/react-router-devtools 0.0.1-beta.29 → 0.0.1-beta.36
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/devtools.js +11 -11
- package/build/cjs/devtools.js.map +1 -1
- package/build/esm/index.js +11 -11
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +2666 -2666
- package/build/umd/index.development.js +11 -11
- 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/devtools.tsx +12 -10
|
@@ -1624,7 +1624,7 @@
|
|
|
1624
1624
|
})) : null);
|
|
1625
1625
|
}
|
|
1626
1626
|
const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwardRef(function TanStackRouterDevtoolsPanel(props, ref) {
|
|
1627
|
-
var _Object$values$find$m, _Object$values, _Object$values$find, _router$state$
|
|
1627
|
+
var _Object$values$find$m, _Object$values, _Object$values$find, _router$state$current, _router$state$pending, _router$state$pending2, _last, _last2, _last3, _last4, _last5, _last6;
|
|
1628
1628
|
const {
|
|
1629
1629
|
isOpen = true,
|
|
1630
1630
|
handleDragStart,
|
|
@@ -1650,7 +1650,7 @@
|
|
|
1650
1650
|
React__default["default"].useEffect(() => {
|
|
1651
1651
|
setActiveMatchId('');
|
|
1652
1652
|
}, [activeRouteId]);
|
|
1653
|
-
const activeMatch = (_Object$values$find$m = (_Object$values = Object.values(router.matchCache)) == null ? void 0 : (_Object$values$find = _Object$values.find(d => d.match.matchId === activeMatchId)) == null ? void 0 : _Object$values$find.match) != null ? _Object$values$find$m : (_router$state$
|
|
1653
|
+
const activeMatch = (_Object$values$find$m = (_Object$values = Object.values(router.matchCache)) == null ? void 0 : (_Object$values$find = _Object$values.find(d => d.match.matchId === activeMatchId)) == null ? void 0 : _Object$values$find.match) != null ? _Object$values$find$m : (_router$state$current = router.state.currentMatches) == null ? void 0 : _router$state$current.find(d => d.routeId === activeRouteId);
|
|
1654
1654
|
const matchCacheValues = multiSortBy(Object.keys(router.matchCache).filter(key => {
|
|
1655
1655
|
const cacheEntry = router.matchCache[key];
|
|
1656
1656
|
return cacheEntry.gc > Date.now();
|
|
@@ -1737,7 +1737,7 @@
|
|
|
1737
1737
|
top: 0,
|
|
1738
1738
|
zIndex: 1
|
|
1739
1739
|
}
|
|
1740
|
-
}, "Active Matches"), router.state.
|
|
1740
|
+
}, "Active Matches"), router.state.currentMatches.map((match, i) => {
|
|
1741
1741
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1742
1742
|
key: match.routeId || i,
|
|
1743
1743
|
role: "button",
|
|
@@ -1768,7 +1768,7 @@
|
|
|
1768
1768
|
padding: '.5em'
|
|
1769
1769
|
}
|
|
1770
1770
|
}, "" + match.matchId));
|
|
1771
|
-
}), (_router$state$pending = router.state.
|
|
1771
|
+
}), (_router$state$pending = router.state.pendingMatches) != null && _router$state$pending.length ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1772
1772
|
style: {
|
|
1773
1773
|
marginTop: '2rem',
|
|
1774
1774
|
padding: '.5em',
|
|
@@ -1777,7 +1777,7 @@
|
|
|
1777
1777
|
top: 0,
|
|
1778
1778
|
zIndex: 1
|
|
1779
1779
|
}
|
|
1780
|
-
}, "Pending Matches"), (_router$state$pending2 = router.state.
|
|
1780
|
+
}, "Pending Matches"), (_router$state$pending2 = router.state.pendingMatches) == null ? void 0 : _router$state$pending2.map((match, i) => {
|
|
1781
1781
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1782
1782
|
key: match.routeId || i,
|
|
1783
1783
|
role: "button",
|
|
@@ -1973,9 +1973,9 @@
|
|
|
1973
1973
|
style: {
|
|
1974
1974
|
padding: '.5em'
|
|
1975
1975
|
}
|
|
1976
|
-
}, Object.keys(((_last = reactRouter.last(router.state.
|
|
1977
|
-
value: ((_last2 = reactRouter.last(router.state.
|
|
1978
|
-
defaultExpanded: Object.keys(((_last3 = reactRouter.last(router.state.
|
|
1976
|
+
}, Object.keys(((_last = reactRouter.last(router.state.currentMatches)) == null ? void 0 : _last.loaderData) || {}).length ? /*#__PURE__*/React__default["default"].createElement(Explorer, {
|
|
1977
|
+
value: ((_last2 = reactRouter.last(router.state.currentMatches)) == null ? void 0 : _last2.loaderData) || {},
|
|
1978
|
+
defaultExpanded: Object.keys(((_last3 = reactRouter.last(router.state.currentMatches)) == null ? void 0 : _last3.loaderData) || {}).reduce((obj, next) => {
|
|
1979
1979
|
obj[next] = {};
|
|
1980
1980
|
return obj;
|
|
1981
1981
|
}, {})
|
|
@@ -1996,9 +1996,9 @@
|
|
|
1996
1996
|
style: {
|
|
1997
1997
|
padding: '.5em'
|
|
1998
1998
|
}
|
|
1999
|
-
}, Object.keys(((_last4 = reactRouter.last(router.state.
|
|
2000
|
-
value: ((_last5 = reactRouter.last(router.state.
|
|
2001
|
-
defaultExpanded: Object.keys(((_last6 = reactRouter.last(router.state.
|
|
1999
|
+
}, Object.keys(((_last4 = reactRouter.last(router.state.currentMatches)) == null ? void 0 : _last4.search) || {}).length ? /*#__PURE__*/React__default["default"].createElement(Explorer, {
|
|
2000
|
+
value: ((_last5 = reactRouter.last(router.state.currentMatches)) == null ? void 0 : _last5.search) || {},
|
|
2001
|
+
defaultExpanded: Object.keys(((_last6 = reactRouter.last(router.state.currentMatches)) == null ? void 0 : _last6.search) || {}).reduce((obj, next) => {
|
|
2002
2002
|
obj[next] = {};
|
|
2003
2003
|
return obj;
|
|
2004
2004
|
}, {})
|