@tanstack/router-devtools-core 1.135.2 → 1.136.0
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/dist/{BaseTanStackRouterDevtoolsPanel-B-pR5oJv.cjs → BaseTanStackRouterDevtoolsPanel-DhvNzqeH.cjs} +27 -35
- package/dist/{BaseTanStackRouterDevtoolsPanel-B-pR5oJv.cjs.map → BaseTanStackRouterDevtoolsPanel-DhvNzqeH.cjs.map} +1 -1
- package/dist/{BaseTanStackRouterDevtoolsPanel-B7ouJjNf.js → BaseTanStackRouterDevtoolsPanel-Dtoc9QIr.js} +27 -35
- package/dist/{BaseTanStackRouterDevtoolsPanel-B7ouJjNf.js.map → BaseTanStackRouterDevtoolsPanel-Dtoc9QIr.js.map} +1 -1
- package/dist/{FloatingTanStackRouterDevtools-BuIlKO5O.cjs → FloatingTanStackRouterDevtools-Cf2-YTwN.cjs} +3 -3
- package/dist/{FloatingTanStackRouterDevtools-BuIlKO5O.cjs.map → FloatingTanStackRouterDevtools-Cf2-YTwN.cjs.map} +1 -1
- package/dist/{FloatingTanStackRouterDevtools-eWh8pOeT.js → FloatingTanStackRouterDevtools-T0qLsnH5.js} +3 -3
- package/dist/{FloatingTanStackRouterDevtools-eWh8pOeT.js.map → FloatingTanStackRouterDevtools-T0qLsnH5.js.map} +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/{index-tbXdELZx.cjs → index-BfSTCiuF.cjs} +3 -3
- package/dist/{index-tbXdELZx.cjs.map → index-BfSTCiuF.cjs.map} +1 -1
- package/dist/{index-B7uGjZzh.js → index-D1rJsj64.js} +3 -3
- package/dist/{index-B7uGjZzh.js.map → index-D1rJsj64.js.map} +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createSignal, b as createEffect, g as createRenderEffect, u as useContext, S as ShadowDomTargetContext, k as delegateEvents, d as createMemo, t as template, i as insert, l as memo, e as createComponent, h as className, s as setAttribute, m as mergeProps, n as useDevtoolsOnClose, f as spread, o as addEventListener, p as untrack, M as Match, F as For, q as Switch, r as onCleanup, v as Show } from "./index-
|
|
1
|
+
import { a as createSignal, b as createEffect, g as createRenderEffect, u as useContext, S as ShadowDomTargetContext, k as delegateEvents, d as createMemo, t as template, i as insert, l as memo, e as createComponent, h as className, s as setAttribute, m as mergeProps, n as useDevtoolsOnClose, f as spread, o as addEventListener, p as untrack, M as Match, F as For, q as Switch, r as onCleanup, v as Show } from "./index-D1rJsj64.js";
|
|
2
2
|
import { clsx } from "clsx";
|
|
3
3
|
import invariant from "tiny-invariant";
|
|
4
4
|
import { rootRouteId, trimPath, interpolatePath } from "@tanstack/router-core";
|
|
@@ -1012,8 +1012,8 @@ function Explorer({
|
|
|
1012
1012
|
insert(_el$1, index * pageSize, _el$15);
|
|
1013
1013
|
insert(_el$1, index * pageSize + pageSize - 1, _el$16);
|
|
1014
1014
|
insert(_el$0, (() => {
|
|
1015
|
-
var _c$
|
|
1016
|
-
return () => _c$
|
|
1015
|
+
var _c$2 = memo(() => !!expandedPages().includes(index));
|
|
1016
|
+
return () => _c$2() ? (() => {
|
|
1017
1017
|
var _el$17 = _tmpl$2$1();
|
|
1018
1018
|
insert(_el$17, () => entries.map((entry) => handleEntry(entry)));
|
|
1019
1019
|
createRenderEffect(() => className(_el$17, styles().subEntries));
|
|
@@ -1034,31 +1034,28 @@ function Explorer({
|
|
|
1034
1034
|
}));
|
|
1035
1035
|
createRenderEffect(() => className(_el$8, styles().subEntries));
|
|
1036
1036
|
return _el$8;
|
|
1037
|
-
})() : null)] : (() => {
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
return _el$22;
|
|
1060
|
-
})()];
|
|
1061
|
-
})();
|
|
1037
|
+
})() : null)] : memo(() => type() === "function")() ? createComponent(Explorer, {
|
|
1038
|
+
get label() {
|
|
1039
|
+
return (() => {
|
|
1040
|
+
var _el$18 = _tmpl$5$1(), _el$19 = _el$18.firstChild;
|
|
1041
|
+
_el$18.$$click = refreshValueSnapshot;
|
|
1042
|
+
insert(_el$19, () => rest.label);
|
|
1043
|
+
createRenderEffect(() => className(_el$18, styles().refreshValueBtn));
|
|
1044
|
+
return _el$18;
|
|
1045
|
+
})();
|
|
1046
|
+
},
|
|
1047
|
+
value: valueSnapshot,
|
|
1048
|
+
defaultExpanded: {}
|
|
1049
|
+
}) : [(() => {
|
|
1050
|
+
var _el$20 = _tmpl$6$1(), _el$21 = _el$20.firstChild;
|
|
1051
|
+
insert(_el$20, () => rest.label, _el$21);
|
|
1052
|
+
return _el$20;
|
|
1053
|
+
})(), " ", (() => {
|
|
1054
|
+
var _el$22 = _tmpl$7$1();
|
|
1055
|
+
insert(_el$22, () => displayValue(value()));
|
|
1056
|
+
createRenderEffect(() => className(_el$22, styles().value));
|
|
1057
|
+
return _el$22;
|
|
1058
|
+
})()];
|
|
1062
1059
|
})());
|
|
1063
1060
|
createRenderEffect(() => className(_el$3, styles().entry));
|
|
1064
1061
|
return _el$3;
|
|
@@ -1223,7 +1220,7 @@ function NavigateButton({
|
|
|
1223
1220
|
})();
|
|
1224
1221
|
}
|
|
1225
1222
|
delegateEvents(["click"]);
|
|
1226
|
-
var _tmpl$ = /* @__PURE__ */ template(`<button><div>TANSTACK</div><div>TanStack Router v1`), _tmpl$2 = /* @__PURE__ */ template(`<div
|
|
1223
|
+
var _tmpl$ = /* @__PURE__ */ template(`<button><div>TANSTACK</div><div>TanStack Router v1`), _tmpl$2 = /* @__PURE__ */ template(`<div style=display:flex;align-items:center;width:100%><div style=flex-grow:1;min-width:0>`), _tmpl$3 = /* @__PURE__ */ template(`<code> `), _tmpl$4 = /* @__PURE__ */ template(`<code>`), _tmpl$5 = /* @__PURE__ */ template(`<div><div role=button><div>`), _tmpl$6 = /* @__PURE__ */ template(`<div>`), _tmpl$7 = /* @__PURE__ */ template(`<div><ul>`), _tmpl$8 = /* @__PURE__ */ template(`<div><button><svg xmlns=http://www.w3.org/2000/svg width=10 height=6 fill=none viewBox="0 0 10 6"><path stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=1.667 d="M1 1l4 4 4-4"></path></svg></button><div><div></div><div><div></div></div></div><div><div><div><span>Pathname</span></div><div><code></code></div><div><div><button type=button>Routes</button><button type=button>Matches</button><button type=button>History</button></div><div><div>age / staleTime / gcTime</div></div></div><div>`), _tmpl$9 = /* @__PURE__ */ template(`<div><span>masked`), _tmpl$0 = /* @__PURE__ */ template(`<div role=button><div>`), _tmpl$1 = /* @__PURE__ */ template(`<li><div>`), _tmpl$10 = /* @__PURE__ */ template(`<li>This panel displays the most recent 15 navigations.`), _tmpl$11 = /* @__PURE__ */ template(`<div><div><div>Cached Matches</div><div>age / staleTime / gcTime</div></div><div>`), _tmpl$12 = /* @__PURE__ */ template(`<div><div>Match Details</div><div><div><div><div></div></div><div><div>ID:</div><div><code></code></div></div><div><div>State:</div><div></div></div><div><div>Last Updated:</div><div></div></div></div></div><div>Explorer</div><div>`), _tmpl$13 = /* @__PURE__ */ template(`<div>Loader Data`), _tmpl$14 = /* @__PURE__ */ template(`<div><div><span>Search Params</span></div><div>`), _tmpl$15 = /* @__PURE__ */ template(`<span style=margin-left:0.5rem>`), _tmpl$16 = /* @__PURE__ */ template(`<button type=button aria-label="Copy value to clipboard"style=cursor:pointer>`);
|
|
1227
1224
|
const HISTORY_LIMIT = 15;
|
|
1228
1225
|
function Logo(props) {
|
|
1229
1226
|
const {
|
|
@@ -1253,12 +1250,7 @@ function Logo(props) {
|
|
|
1253
1250
|
function NavigateLink(props) {
|
|
1254
1251
|
return (() => {
|
|
1255
1252
|
var _el$4 = _tmpl$2(), _el$5 = _el$4.firstChild;
|
|
1256
|
-
_el$4.style.setProperty("display", "flex");
|
|
1257
|
-
_el$4.style.setProperty("align-items", "center");
|
|
1258
|
-
_el$4.style.setProperty("width", "100%");
|
|
1259
1253
|
insert(_el$4, () => props.left, _el$5);
|
|
1260
|
-
_el$5.style.setProperty("flex-grow", "1");
|
|
1261
|
-
_el$5.style.setProperty("min-width", "0");
|
|
1262
1254
|
insert(_el$5, () => props.children);
|
|
1263
1255
|
insert(_el$4, () => props.right, null);
|
|
1264
1256
|
createRenderEffect(() => className(_el$4, props.class));
|
|
@@ -1926,4 +1918,4 @@ export {
|
|
|
1926
1918
|
BaseTanStackRouterDevtoolsPanel$1 as c,
|
|
1927
1919
|
useLocalStorage as u
|
|
1928
1920
|
};
|
|
1929
|
-
//# sourceMappingURL=BaseTanStackRouterDevtoolsPanel-
|
|
1921
|
+
//# sourceMappingURL=BaseTanStackRouterDevtoolsPanel-Dtoc9QIr.js.map
|