@tanstack/router-devtools
Advanced tools
Comparing version 1.46.8 to 1.46.9
@@ -279,3 +279,3 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime"; | ||
const BaseTanStackRouterDevtoolsPanel = React__default.forwardRef(function BaseTanStackRouterDevtoolsPanel2(props, ref) { | ||
var _a; | ||
var _a, _b; | ||
const { | ||
@@ -473,34 +473,32 @@ isOpen = true, | ||
} | ||
) : /* @__PURE__ */ jsx("div", { children: (routerState.pendingMatches || routerState.matches).map( | ||
(match, i) => { | ||
return /* @__PURE__ */ jsxs( | ||
"div", | ||
{ | ||
role: "button", | ||
"aria-label": `Open match details for ${match.id}`, | ||
onClick: () => setActiveId(activeId === match.id ? "" : match.id), | ||
className: clsx(styles.matchRow(match === activeMatch)), | ||
children: [ | ||
/* @__PURE__ */ jsx( | ||
"div", | ||
{ | ||
className: clsx( | ||
styles.matchIndicator(getStatusColor(match)) | ||
) | ||
} | ||
), | ||
/* @__PURE__ */ jsx( | ||
"code", | ||
{ | ||
className: styles.matchID, | ||
children: `${match.routeId === rootRouteId ? rootRouteId : match.pathname}` | ||
} | ||
), | ||
/* @__PURE__ */ jsx(AgeTicker, { match, router }) | ||
] | ||
}, | ||
match.id || i | ||
); | ||
} | ||
) }) }) | ||
) : /* @__PURE__ */ jsx("div", { children: (((_a = routerState.pendingMatches) == null ? void 0 : _a.length) ? routerState.pendingMatches : routerState.matches).map((match, i) => { | ||
return /* @__PURE__ */ jsxs( | ||
"div", | ||
{ | ||
role: "button", | ||
"aria-label": `Open match details for ${match.id}`, | ||
onClick: () => setActiveId(activeId === match.id ? "" : match.id), | ||
className: clsx(styles.matchRow(match === activeMatch)), | ||
children: [ | ||
/* @__PURE__ */ jsx( | ||
"div", | ||
{ | ||
className: clsx( | ||
styles.matchIndicator(getStatusColor(match)) | ||
) | ||
} | ||
), | ||
/* @__PURE__ */ jsx( | ||
"code", | ||
{ | ||
className: styles.matchID, | ||
children: `${match.routeId === rootRouteId ? rootRouteId : match.pathname}` | ||
} | ||
), | ||
/* @__PURE__ */ jsx(AgeTicker, { match, router }) | ||
] | ||
}, | ||
match.id || i | ||
); | ||
}) }) }) | ||
] }), | ||
@@ -557,3 +555,3 @@ routerState.cachedMatches.length ? /* @__PURE__ */ jsxs("div", { className: styles.cachedMatchesContainer, children: [ | ||
/* @__PURE__ */ jsx("div", { children: "State:" }), | ||
/* @__PURE__ */ jsx("div", { className: styles.matchDetailsInfo, children: ((_a = routerState.pendingMatches) == null ? void 0 : _a.find( | ||
/* @__PURE__ */ jsx("div", { className: styles.matchDetailsInfo, children: ((_b = routerState.pendingMatches) == null ? void 0 : _b.find( | ||
(d) => d.id === activeMatch.id | ||
@@ -560,0 +558,0 @@ )) ? "Pending" : routerState.matches.find((d) => d.id === activeMatch.id) ? "Active" : "Cached" }) |
{ | ||
"name": "@tanstack/router-devtools", | ||
"version": "1.46.8", | ||
"version": "1.46.9", | ||
"description": "Modern and scalable routing for React applications", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
624224
9550