@tanstack/router-devtools-core 1.132.51 → 1.133.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-CaAQWNvS.js → BaseTanStackRouterDevtoolsPanel-Cbvcs84k.js} +263 -148
- package/dist/BaseTanStackRouterDevtoolsPanel-Cbvcs84k.js.map +1 -0
- package/dist/{BaseTanStackRouterDevtoolsPanel-CbH9Ihs_.cjs → BaseTanStackRouterDevtoolsPanel-CiObEXSM.cjs} +262 -147
- package/dist/BaseTanStackRouterDevtoolsPanel-CiObEXSM.cjs.map +1 -0
- package/dist/{FloatingTanStackRouterDevtools-0xtXUOcx.cjs → FloatingTanStackRouterDevtools-BMhRQRk5.cjs} +3 -3
- package/dist/{FloatingTanStackRouterDevtools-0xtXUOcx.cjs.map → FloatingTanStackRouterDevtools-BMhRQRk5.cjs.map} +1 -1
- package/dist/{FloatingTanStackRouterDevtools-DdHNTjWg.js → FloatingTanStackRouterDevtools-KvPiI7YB.js} +3 -3
- package/dist/{FloatingTanStackRouterDevtools-DdHNTjWg.js.map → FloatingTanStackRouterDevtools-KvPiI7YB.js.map} +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/useStyles.d.cts +2 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/useStyles.d.ts +2 -0
- package/dist/{index-BiZF0hsR.js → index-Bz4rofgr.js} +3 -3
- package/dist/{index-BiZF0hsR.js.map → index-Bz4rofgr.js.map} +1 -1
- package/dist/{index-CHaaetqh.cjs → index-sVJ8jjbP.cjs} +3 -3
- package/dist/{index-CHaaetqh.cjs.map → index-sVJ8jjbP.cjs.map} +1 -1
- package/package.json +1 -1
- package/src/BaseTanStackRouterDevtoolsPanel.tsx +169 -57
- package/src/useStyles.tsx +10 -0
- package/dist/BaseTanStackRouterDevtoolsPanel-CaAQWNvS.js.map +0 -1
- package/dist/BaseTanStackRouterDevtoolsPanel-CbH9Ihs_.cjs.map +0 -1
|
@@ -4,7 +4,7 @@ const clsx = require("clsx");
|
|
|
4
4
|
const invariant = require("tiny-invariant");
|
|
5
5
|
const routerCore = require("@tanstack/router-core");
|
|
6
6
|
const solidJs = require("solid-js");
|
|
7
|
-
const index = require("./index-
|
|
7
|
+
const index = require("./index-sVJ8jjbP.cjs");
|
|
8
8
|
const goober = require("goober");
|
|
9
9
|
function _interopNamespaceDefault(e) {
|
|
10
10
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -663,6 +663,16 @@ const stylesFactory$1 = (shadowDOMTarget) => {
|
|
|
663
663
|
overflow-y: auto;
|
|
664
664
|
max-height: 50%;
|
|
665
665
|
`,
|
|
666
|
+
historyContainer: css`
|
|
667
|
+
display: flex;
|
|
668
|
+
flex: 1 1 auto;
|
|
669
|
+
overflow-y: auto;
|
|
670
|
+
max-height: 50%;
|
|
671
|
+
`,
|
|
672
|
+
historyOverflowContainer: css`
|
|
673
|
+
padding: ${size[1]} ${size[2]};
|
|
674
|
+
font-size: ${tokens.font.size.xs};
|
|
675
|
+
`,
|
|
666
676
|
maskedBadgeContainer: css`
|
|
667
677
|
flex: 1;
|
|
668
678
|
justify-content: flex-end;
|
|
@@ -1233,7 +1243,8 @@ function NavigateButton({
|
|
|
1233
1243
|
})();
|
|
1234
1244
|
}
|
|
1235
1245
|
web.delegateEvents(["click"]);
|
|
1236
|
-
var _tmpl$ = /* @__PURE__ */ web.template(`<button><div>TANSTACK</div><div>TanStack Router v1`), _tmpl$2 = /* @__PURE__ */ web.template(`<div><div>`), _tmpl$3 = /* @__PURE__ */ web.template(`<code> `), _tmpl$4 = /* @__PURE__ */ web.template(`<code>`), _tmpl$5 = /* @__PURE__ */ web.template(`<div><div role=button><div>`), _tmpl$6 = /* @__PURE__ */ web.template(`<div>`), _tmpl$7 = /* @__PURE__ */ web.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></div><div><div>age / staleTime / gcTime</div></div></div><div>`), _tmpl$
|
|
1246
|
+
var _tmpl$ = /* @__PURE__ */ web.template(`<button><div>TANSTACK</div><div>TanStack Router v1`), _tmpl$2 = /* @__PURE__ */ web.template(`<div><div>`), _tmpl$3 = /* @__PURE__ */ web.template(`<code> `), _tmpl$4 = /* @__PURE__ */ web.template(`<code>`), _tmpl$5 = /* @__PURE__ */ web.template(`<div><div role=button><div>`), _tmpl$6 = /* @__PURE__ */ web.template(`<div>`), _tmpl$7 = /* @__PURE__ */ web.template(`<div><ul>`), _tmpl$8 = /* @__PURE__ */ web.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__ */ web.template(`<div><span>masked`), _tmpl$0 = /* @__PURE__ */ web.template(`<div role=button><div>`), _tmpl$1 = /* @__PURE__ */ web.template(`<li><div>`), _tmpl$10 = /* @__PURE__ */ web.template(`<li>This panel displays the most recent 15 navigations.`), _tmpl$11 = /* @__PURE__ */ web.template(`<div><div><div>Cached Matches</div><div>age / staleTime / gcTime</div></div><div>`), _tmpl$12 = /* @__PURE__ */ web.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__ */ web.template(`<div>Loader Data`), _tmpl$14 = /* @__PURE__ */ web.template(`<div><div><span>Search Params</span></div><div>`), _tmpl$15 = /* @__PURE__ */ web.template(`<span style=margin-left:0.5rem;>`), _tmpl$16 = /* @__PURE__ */ web.template(`<button type=button style=cursor:pointer; aria-label="Copy value to clipboard">`);
|
|
1247
|
+
const HISTORY_LIMIT = 15;
|
|
1237
1248
|
function Logo(props) {
|
|
1238
1249
|
const {
|
|
1239
1250
|
className,
|
|
@@ -1414,8 +1425,30 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
1414
1425
|
...otherPanelProps
|
|
1415
1426
|
} = panelProps;
|
|
1416
1427
|
invariant(router, "No router was found for the TanStack Router Devtools. Please place the devtools in the <RouterProvider> component tree or pass the router instance to the devtools manually.");
|
|
1417
|
-
const [
|
|
1428
|
+
const [currentTab, setCurrentTab] = useLocalStorage("tanstackRouterDevtoolsActiveTab", "routes");
|
|
1418
1429
|
const [activeId, setActiveId] = useLocalStorage("tanstackRouterDevtoolsActiveRouteId", "");
|
|
1430
|
+
const [history, setHistory] = solidJs.createSignal([]);
|
|
1431
|
+
const [hasHistoryOverflowed, setHasHistoryOverflowed] = solidJs.createSignal(false);
|
|
1432
|
+
solidJs.createEffect(() => {
|
|
1433
|
+
const matches = routerState().matches;
|
|
1434
|
+
const currentMatch = matches[matches.length - 1];
|
|
1435
|
+
if (!currentMatch) {
|
|
1436
|
+
return;
|
|
1437
|
+
}
|
|
1438
|
+
const historyUntracked = solidJs.untrack(() => history());
|
|
1439
|
+
const lastMatch = historyUntracked[0];
|
|
1440
|
+
const sameLocation = lastMatch && lastMatch.pathname === currentMatch.pathname && JSON.stringify(lastMatch.search ?? {}) === JSON.stringify(currentMatch.search ?? {});
|
|
1441
|
+
if (!lastMatch || !sameLocation) {
|
|
1442
|
+
if (historyUntracked.length >= HISTORY_LIMIT) {
|
|
1443
|
+
setHasHistoryOverflowed(true);
|
|
1444
|
+
}
|
|
1445
|
+
setHistory((prev) => {
|
|
1446
|
+
const newHistory = [currentMatch, ...prev];
|
|
1447
|
+
newHistory.splice(HISTORY_LIMIT);
|
|
1448
|
+
return newHistory;
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1451
|
+
});
|
|
1419
1452
|
const activeMatch = solidJs.createMemo(() => {
|
|
1420
1453
|
const matches = [...routerState().pendingMatches ?? [], ...routerState().matches, ...routerState().cachedMatches];
|
|
1421
1454
|
return matches.find((d) => d.routeId === activeId() || d.id === activeId());
|
|
@@ -1432,9 +1465,9 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
1432
1465
|
const activeMatchValue = solidJs.createMemo(() => activeMatch());
|
|
1433
1466
|
const locationSearchValue = solidJs.createMemo(() => routerState().location.search);
|
|
1434
1467
|
return (() => {
|
|
1435
|
-
var _el$11 = _tmpl$
|
|
1468
|
+
var _el$11 = _tmpl$8(), _el$12 = _el$11.firstChild, _el$13 = _el$12.firstChild, _el$14 = _el$12.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$15.nextSibling, _el$17 = _el$16.firstChild, _el$18 = _el$14.nextSibling, _el$19 = _el$18.firstChild, _el$20 = _el$19.firstChild;
|
|
1436
1469
|
_el$20.firstChild;
|
|
1437
|
-
var _el$22 = _el$20.nextSibling, _el$23 = _el$22.firstChild, _el$24 = _el$22.nextSibling, _el$25 = _el$24.firstChild, _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling, _el$28 = _el$
|
|
1470
|
+
var _el$22 = _el$20.nextSibling, _el$23 = _el$22.firstChild, _el$24 = _el$22.nextSibling, _el$25 = _el$24.firstChild, _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling, _el$28 = _el$27.nextSibling, _el$29 = _el$25.nextSibling, _el$30 = _el$24.nextSibling;
|
|
1438
1471
|
web.spread(_el$11, web.mergeProps({
|
|
1439
1472
|
get ["class"]() {
|
|
1440
1473
|
return clsx.clsx(styles().devtoolsPanel, "TanStackRouterDevtoolsPanel", className ? className() : "");
|
|
@@ -1444,10 +1477,10 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
1444
1477
|
}
|
|
1445
1478
|
}, otherPanelProps), false, true);
|
|
1446
1479
|
web.insert(_el$11, handleDragStart ? (() => {
|
|
1447
|
-
var _el$
|
|
1448
|
-
web.addEventListener(_el$
|
|
1449
|
-
web.effect(() => web.className(_el$
|
|
1450
|
-
return _el$
|
|
1480
|
+
var _el$34 = _tmpl$6();
|
|
1481
|
+
web.addEventListener(_el$34, "mousedown", handleDragStart, true);
|
|
1482
|
+
web.effect(() => web.className(_el$34, styles().dragHandle));
|
|
1483
|
+
return _el$34;
|
|
1451
1484
|
})() : null, _el$12);
|
|
1452
1485
|
_el$12.$$click = (e) => {
|
|
1453
1486
|
if (setIsOpen) {
|
|
@@ -1479,106 +1512,184 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
1479
1512
|
web.insert(_el$20, (() => {
|
|
1480
1513
|
var _c$2 = web.memo(() => !!routerState().location.maskedLocation);
|
|
1481
1514
|
return () => _c$2() ? (() => {
|
|
1482
|
-
var _el$
|
|
1515
|
+
var _el$35 = _tmpl$9(), _el$36 = _el$35.firstChild;
|
|
1483
1516
|
web.effect((_p$) => {
|
|
1484
|
-
var _v$
|
|
1485
|
-
_v$
|
|
1486
|
-
_v$
|
|
1517
|
+
var _v$24 = styles().maskedBadgeContainer, _v$25 = styles().maskedBadge;
|
|
1518
|
+
_v$24 !== _p$.e && web.className(_el$35, _p$.e = _v$24);
|
|
1519
|
+
_v$25 !== _p$.t && web.className(_el$36, _p$.t = _v$25);
|
|
1487
1520
|
return _p$;
|
|
1488
1521
|
}, {
|
|
1489
1522
|
e: void 0,
|
|
1490
1523
|
t: void 0
|
|
1491
1524
|
});
|
|
1492
|
-
return _el$
|
|
1525
|
+
return _el$35;
|
|
1493
1526
|
})() : null;
|
|
1494
1527
|
})(), null);
|
|
1495
1528
|
web.insert(_el$23, () => routerState().location.pathname);
|
|
1496
1529
|
web.insert(_el$22, (() => {
|
|
1497
1530
|
var _c$3 = web.memo(() => !!routerState().location.maskedLocation);
|
|
1498
1531
|
return () => _c$3() ? (() => {
|
|
1499
|
-
var _el$
|
|
1500
|
-
web.insert(_el$
|
|
1501
|
-
web.effect(() => web.className(_el$
|
|
1502
|
-
return _el$
|
|
1532
|
+
var _el$37 = _tmpl$4();
|
|
1533
|
+
web.insert(_el$37, () => routerState().location.maskedLocation?.pathname);
|
|
1534
|
+
web.effect(() => web.className(_el$37, styles().maskedLocation));
|
|
1535
|
+
return _el$37;
|
|
1503
1536
|
})() : null;
|
|
1504
1537
|
})(), null);
|
|
1505
1538
|
_el$26.$$click = () => {
|
|
1506
|
-
|
|
1539
|
+
setCurrentTab("routes");
|
|
1507
1540
|
};
|
|
1508
1541
|
_el$27.$$click = () => {
|
|
1509
|
-
|
|
1542
|
+
setCurrentTab("matches");
|
|
1510
1543
|
};
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1544
|
+
_el$28.$$click = () => {
|
|
1545
|
+
setCurrentTab("history");
|
|
1546
|
+
};
|
|
1547
|
+
web.insert(_el$30, web.createComponent(solidJs.Switch, {
|
|
1548
|
+
get children() {
|
|
1549
|
+
return [web.createComponent(solidJs.Match, {
|
|
1550
|
+
get when() {
|
|
1551
|
+
return currentTab() === "routes";
|
|
1552
|
+
},
|
|
1553
|
+
get children() {
|
|
1554
|
+
return web.createComponent(RouteComp, {
|
|
1555
|
+
routerState,
|
|
1556
|
+
router,
|
|
1557
|
+
get route() {
|
|
1558
|
+
return router().routeTree;
|
|
1559
|
+
},
|
|
1560
|
+
isRoot: true,
|
|
1561
|
+
activeId,
|
|
1562
|
+
setActiveId
|
|
1563
|
+
});
|
|
1564
|
+
}
|
|
1565
|
+
}), web.createComponent(solidJs.Match, {
|
|
1566
|
+
get when() {
|
|
1567
|
+
return currentTab() === "matches";
|
|
1568
|
+
},
|
|
1569
|
+
get children() {
|
|
1570
|
+
var _el$31 = _tmpl$6();
|
|
1571
|
+
web.insert(_el$31, () => (routerState().pendingMatches?.length ? routerState().pendingMatches : routerState().matches)?.map((match, _i) => {
|
|
1572
|
+
return (() => {
|
|
1573
|
+
var _el$38 = _tmpl$0(), _el$39 = _el$38.firstChild;
|
|
1574
|
+
_el$38.$$click = () => setActiveId(activeId() === match.id ? "" : match.id);
|
|
1575
|
+
web.insert(_el$38, web.createComponent(NavigateLink, {
|
|
1576
|
+
get left() {
|
|
1577
|
+
return web.createComponent(NavigateButton, {
|
|
1578
|
+
get to() {
|
|
1579
|
+
return match.pathname;
|
|
1580
|
+
},
|
|
1581
|
+
get params() {
|
|
1582
|
+
return match.params;
|
|
1583
|
+
},
|
|
1584
|
+
get search() {
|
|
1585
|
+
return match.search;
|
|
1586
|
+
},
|
|
1587
|
+
router
|
|
1588
|
+
});
|
|
1536
1589
|
},
|
|
1537
|
-
get
|
|
1538
|
-
return
|
|
1590
|
+
get right() {
|
|
1591
|
+
return web.createComponent(AgeTicker, {
|
|
1592
|
+
match,
|
|
1593
|
+
router
|
|
1594
|
+
});
|
|
1539
1595
|
},
|
|
1540
|
-
|
|
1596
|
+
get children() {
|
|
1597
|
+
var _el$40 = _tmpl$4();
|
|
1598
|
+
web.insert(_el$40, () => `${match.routeId === routerCore.rootRouteId ? routerCore.rootRouteId : match.pathname}`);
|
|
1599
|
+
web.effect(() => web.className(_el$40, styles().matchID));
|
|
1600
|
+
return _el$40;
|
|
1601
|
+
}
|
|
1602
|
+
}), null);
|
|
1603
|
+
web.effect((_p$) => {
|
|
1604
|
+
var _v$26 = `Open match details for ${match.id}`, _v$27 = clsx.clsx(styles().matchRow(match === activeMatch())), _v$28 = clsx.clsx(styles().matchIndicator(getStatusColor(match)));
|
|
1605
|
+
_v$26 !== _p$.e && web.setAttribute(_el$38, "aria-label", _p$.e = _v$26);
|
|
1606
|
+
_v$27 !== _p$.t && web.className(_el$38, _p$.t = _v$27);
|
|
1607
|
+
_v$28 !== _p$.a && web.className(_el$39, _p$.a = _v$28);
|
|
1608
|
+
return _p$;
|
|
1609
|
+
}, {
|
|
1610
|
+
e: void 0,
|
|
1611
|
+
t: void 0,
|
|
1612
|
+
a: void 0
|
|
1541
1613
|
});
|
|
1614
|
+
return _el$38;
|
|
1615
|
+
})();
|
|
1616
|
+
}));
|
|
1617
|
+
return _el$31;
|
|
1618
|
+
}
|
|
1619
|
+
}), web.createComponent(solidJs.Match, {
|
|
1620
|
+
get when() {
|
|
1621
|
+
return currentTab() === "history";
|
|
1622
|
+
},
|
|
1623
|
+
get children() {
|
|
1624
|
+
var _el$32 = _tmpl$7(), _el$33 = _el$32.firstChild;
|
|
1625
|
+
web.insert(_el$33, web.createComponent(solidJs.For, {
|
|
1626
|
+
get each() {
|
|
1627
|
+
return history();
|
|
1542
1628
|
},
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1629
|
+
children: (match, index2) => (() => {
|
|
1630
|
+
var _el$41 = _tmpl$1(), _el$42 = _el$41.firstChild;
|
|
1631
|
+
web.insert(_el$41, web.createComponent(NavigateLink, {
|
|
1632
|
+
get left() {
|
|
1633
|
+
return web.createComponent(NavigateButton, {
|
|
1634
|
+
get to() {
|
|
1635
|
+
return match.pathname;
|
|
1636
|
+
},
|
|
1637
|
+
get params() {
|
|
1638
|
+
return match.params;
|
|
1639
|
+
},
|
|
1640
|
+
get search() {
|
|
1641
|
+
return match.search;
|
|
1642
|
+
},
|
|
1643
|
+
router
|
|
1644
|
+
});
|
|
1645
|
+
},
|
|
1646
|
+
get right() {
|
|
1647
|
+
return web.createComponent(AgeTicker, {
|
|
1648
|
+
match,
|
|
1649
|
+
router
|
|
1650
|
+
});
|
|
1651
|
+
},
|
|
1652
|
+
get children() {
|
|
1653
|
+
var _el$43 = _tmpl$4();
|
|
1654
|
+
web.insert(_el$43, () => `${match.routeId === routerCore.rootRouteId ? routerCore.rootRouteId : match.pathname}`);
|
|
1655
|
+
web.effect(() => web.className(_el$43, styles().matchID));
|
|
1656
|
+
return _el$43;
|
|
1657
|
+
}
|
|
1658
|
+
}), null);
|
|
1659
|
+
web.effect((_p$) => {
|
|
1660
|
+
var _v$29 = clsx.clsx(styles().matchRow(match === activeMatch())), _v$30 = clsx.clsx(styles().matchIndicator(index2() === 0 ? "green" : "gray"));
|
|
1661
|
+
_v$29 !== _p$.e && web.className(_el$41, _p$.e = _v$29);
|
|
1662
|
+
_v$30 !== _p$.t && web.className(_el$42, _p$.t = _v$30);
|
|
1663
|
+
return _p$;
|
|
1664
|
+
}, {
|
|
1665
|
+
e: void 0,
|
|
1666
|
+
t: void 0
|
|
1547
1667
|
});
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
var _el$37 = _tmpl$4();
|
|
1551
|
-
web.insert(_el$37, () => `${match.routeId === routerCore.rootRouteId ? routerCore.rootRouteId : match.pathname}`);
|
|
1552
|
-
web.effect(() => web.className(_el$37, styles().matchID));
|
|
1553
|
-
return _el$37;
|
|
1554
|
-
}
|
|
1668
|
+
return _el$41;
|
|
1669
|
+
})()
|
|
1555
1670
|
}), null);
|
|
1556
|
-
web.
|
|
1557
|
-
var
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
}));
|
|
1570
|
-
return _el$34;
|
|
1571
|
-
})();
|
|
1572
|
-
})());
|
|
1671
|
+
web.insert(_el$33, (() => {
|
|
1672
|
+
var _c$4 = web.memo(() => !!hasHistoryOverflowed());
|
|
1673
|
+
return () => _c$4() ? (() => {
|
|
1674
|
+
var _el$44 = _tmpl$10();
|
|
1675
|
+
web.effect(() => web.className(_el$44, styles().historyOverflowContainer));
|
|
1676
|
+
return _el$44;
|
|
1677
|
+
})() : null;
|
|
1678
|
+
})(), null);
|
|
1679
|
+
return _el$32;
|
|
1680
|
+
}
|
|
1681
|
+
})];
|
|
1682
|
+
}
|
|
1683
|
+
}));
|
|
1573
1684
|
web.insert(_el$18, (() => {
|
|
1574
1685
|
var _c$5 = web.memo(() => !!routerState().cachedMatches.length);
|
|
1575
1686
|
return () => _c$5() ? (() => {
|
|
1576
|
-
var _el$
|
|
1577
|
-
web.insert(_el$
|
|
1687
|
+
var _el$45 = _tmpl$11(), _el$46 = _el$45.firstChild, _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling, _el$49 = _el$46.nextSibling;
|
|
1688
|
+
web.insert(_el$49, () => routerState().cachedMatches.map((match) => {
|
|
1578
1689
|
return (() => {
|
|
1579
|
-
var _el$
|
|
1580
|
-
_el$
|
|
1581
|
-
web.insert(_el$
|
|
1690
|
+
var _el$50 = _tmpl$0(), _el$51 = _el$50.firstChild;
|
|
1691
|
+
_el$50.$$click = () => setActiveId(activeId() === match.id ? "" : match.id);
|
|
1692
|
+
web.insert(_el$50, web.createComponent(NavigateLink, {
|
|
1582
1693
|
get left() {
|
|
1583
1694
|
return web.createComponent(NavigateButton, {
|
|
1584
1695
|
get to() {
|
|
@@ -1600,93 +1711,93 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
1600
1711
|
});
|
|
1601
1712
|
},
|
|
1602
1713
|
get children() {
|
|
1603
|
-
var _el$
|
|
1604
|
-
web.insert(_el$
|
|
1605
|
-
web.effect(() => web.className(_el$
|
|
1606
|
-
return _el$
|
|
1714
|
+
var _el$52 = _tmpl$4();
|
|
1715
|
+
web.insert(_el$52, () => `${match.id}`);
|
|
1716
|
+
web.effect(() => web.className(_el$52, styles().matchID));
|
|
1717
|
+
return _el$52;
|
|
1607
1718
|
}
|
|
1608
1719
|
}), null);
|
|
1609
1720
|
web.effect((_p$) => {
|
|
1610
|
-
var _v$
|
|
1611
|
-
_v$
|
|
1612
|
-
_v$
|
|
1613
|
-
_v$
|
|
1721
|
+
var _v$34 = `Open match details for ${match.id}`, _v$35 = clsx.clsx(styles().matchRow(match === activeMatch())), _v$36 = clsx.clsx(styles().matchIndicator(getStatusColor(match)));
|
|
1722
|
+
_v$34 !== _p$.e && web.setAttribute(_el$50, "aria-label", _p$.e = _v$34);
|
|
1723
|
+
_v$35 !== _p$.t && web.className(_el$50, _p$.t = _v$35);
|
|
1724
|
+
_v$36 !== _p$.a && web.className(_el$51, _p$.a = _v$36);
|
|
1614
1725
|
return _p$;
|
|
1615
1726
|
}, {
|
|
1616
1727
|
e: void 0,
|
|
1617
1728
|
t: void 0,
|
|
1618
1729
|
a: void 0
|
|
1619
1730
|
});
|
|
1620
|
-
return _el$
|
|
1731
|
+
return _el$50;
|
|
1621
1732
|
})();
|
|
1622
1733
|
}));
|
|
1623
1734
|
web.effect((_p$) => {
|
|
1624
|
-
var _v$
|
|
1625
|
-
_v$
|
|
1626
|
-
_v$
|
|
1627
|
-
_v$
|
|
1735
|
+
var _v$31 = styles().cachedMatchesContainer, _v$32 = styles().detailsHeader, _v$33 = styles().detailsHeaderInfo;
|
|
1736
|
+
_v$31 !== _p$.e && web.className(_el$45, _p$.e = _v$31);
|
|
1737
|
+
_v$32 !== _p$.t && web.className(_el$46, _p$.t = _v$32);
|
|
1738
|
+
_v$33 !== _p$.a && web.className(_el$48, _p$.a = _v$33);
|
|
1628
1739
|
return _p$;
|
|
1629
1740
|
}, {
|
|
1630
1741
|
e: void 0,
|
|
1631
1742
|
t: void 0,
|
|
1632
1743
|
a: void 0
|
|
1633
1744
|
});
|
|
1634
|
-
return _el$
|
|
1745
|
+
return _el$45;
|
|
1635
1746
|
})() : null;
|
|
1636
1747
|
})(), null);
|
|
1637
1748
|
web.insert(_el$11, (() => {
|
|
1638
1749
|
var _c$6 = web.memo(() => !!(activeMatch() && activeMatch()?.status));
|
|
1639
1750
|
return () => _c$6() ? (() => {
|
|
1640
|
-
var _el$
|
|
1641
|
-
web.insert(_el$
|
|
1751
|
+
var _el$53 = _tmpl$12(), _el$54 = _el$53.firstChild, _el$55 = _el$54.nextSibling, _el$56 = _el$55.firstChild, _el$57 = _el$56.firstChild, _el$58 = _el$57.firstChild, _el$59 = _el$57.nextSibling, _el$60 = _el$59.firstChild, _el$61 = _el$60.nextSibling, _el$62 = _el$61.firstChild, _el$63 = _el$59.nextSibling, _el$64 = _el$63.firstChild, _el$65 = _el$64.nextSibling, _el$66 = _el$63.nextSibling, _el$67 = _el$66.firstChild, _el$68 = _el$67.nextSibling, _el$69 = _el$55.nextSibling, _el$70 = _el$69.nextSibling;
|
|
1752
|
+
web.insert(_el$58, (() => {
|
|
1642
1753
|
var _c$8 = web.memo(() => !!(activeMatch()?.status === "success" && activeMatch()?.isFetching));
|
|
1643
1754
|
return () => _c$8() ? "fetching" : activeMatch()?.status;
|
|
1644
1755
|
})());
|
|
1645
|
-
web.insert(_el$
|
|
1646
|
-
web.insert(_el$
|
|
1756
|
+
web.insert(_el$62, () => activeMatch()?.id);
|
|
1757
|
+
web.insert(_el$65, (() => {
|
|
1647
1758
|
var _c$9 = web.memo(() => !!routerState().pendingMatches?.find((d) => d.id === activeMatch()?.id));
|
|
1648
1759
|
return () => _c$9() ? "Pending" : routerState().matches.find((d) => d.id === activeMatch()?.id) ? "Active" : "Cached";
|
|
1649
1760
|
})());
|
|
1650
|
-
web.insert(_el$
|
|
1761
|
+
web.insert(_el$68, (() => {
|
|
1651
1762
|
var _c$0 = web.memo(() => !!activeMatch()?.updatedAt);
|
|
1652
1763
|
return () => _c$0() ? new Date(activeMatch()?.updatedAt).toLocaleTimeString() : "N/A";
|
|
1653
1764
|
})());
|
|
1654
|
-
web.insert(_el$
|
|
1765
|
+
web.insert(_el$53, (() => {
|
|
1655
1766
|
var _c$1 = web.memo(() => !!activeMatchLoaderData());
|
|
1656
1767
|
return () => _c$1() ? [(() => {
|
|
1657
|
-
var _el$
|
|
1658
|
-
web.effect(() => web.className(_el$
|
|
1659
|
-
return _el$
|
|
1768
|
+
var _el$71 = _tmpl$13();
|
|
1769
|
+
web.effect(() => web.className(_el$71, styles().detailsHeader));
|
|
1770
|
+
return _el$71;
|
|
1660
1771
|
})(), (() => {
|
|
1661
|
-
var _el$
|
|
1662
|
-
web.insert(_el$
|
|
1772
|
+
var _el$72 = _tmpl$6();
|
|
1773
|
+
web.insert(_el$72, web.createComponent(Explorer, {
|
|
1663
1774
|
label: "loaderData",
|
|
1664
1775
|
value: activeMatchLoaderData,
|
|
1665
1776
|
defaultExpanded: {}
|
|
1666
1777
|
}));
|
|
1667
|
-
web.effect(() => web.className(_el$
|
|
1668
|
-
return _el$
|
|
1778
|
+
web.effect(() => web.className(_el$72, styles().detailsContent));
|
|
1779
|
+
return _el$72;
|
|
1669
1780
|
})()] : null;
|
|
1670
|
-
})(), _el$
|
|
1671
|
-
web.insert(_el$
|
|
1781
|
+
})(), _el$69);
|
|
1782
|
+
web.insert(_el$70, web.createComponent(Explorer, {
|
|
1672
1783
|
label: "Match",
|
|
1673
1784
|
value: activeMatchValue,
|
|
1674
1785
|
defaultExpanded: {}
|
|
1675
1786
|
}));
|
|
1676
1787
|
web.effect((_p$) => {
|
|
1677
|
-
var _v$
|
|
1678
|
-
_v$
|
|
1679
|
-
_v$
|
|
1680
|
-
_v$
|
|
1681
|
-
_v$
|
|
1682
|
-
_v$
|
|
1683
|
-
_v$
|
|
1684
|
-
_v$
|
|
1685
|
-
_v$
|
|
1686
|
-
_v$
|
|
1687
|
-
_v$
|
|
1688
|
-
_v$
|
|
1689
|
-
_v$
|
|
1788
|
+
var _v$37 = styles().thirdContainer, _v$38 = styles().detailsHeader, _v$39 = styles().matchDetails, _v$40 = styles().matchStatus(activeMatch()?.status, activeMatch()?.isFetching), _v$41 = styles().matchDetailsInfoLabel, _v$42 = styles().matchDetailsInfo, _v$43 = styles().matchDetailsInfoLabel, _v$44 = styles().matchDetailsInfo, _v$45 = styles().matchDetailsInfoLabel, _v$46 = styles().matchDetailsInfo, _v$47 = styles().detailsHeader, _v$48 = styles().detailsContent;
|
|
1789
|
+
_v$37 !== _p$.e && web.className(_el$53, _p$.e = _v$37);
|
|
1790
|
+
_v$38 !== _p$.t && web.className(_el$54, _p$.t = _v$38);
|
|
1791
|
+
_v$39 !== _p$.a && web.className(_el$56, _p$.a = _v$39);
|
|
1792
|
+
_v$40 !== _p$.o && web.className(_el$57, _p$.o = _v$40);
|
|
1793
|
+
_v$41 !== _p$.i && web.className(_el$59, _p$.i = _v$41);
|
|
1794
|
+
_v$42 !== _p$.n && web.className(_el$61, _p$.n = _v$42);
|
|
1795
|
+
_v$43 !== _p$.s && web.className(_el$63, _p$.s = _v$43);
|
|
1796
|
+
_v$44 !== _p$.h && web.className(_el$65, _p$.h = _v$44);
|
|
1797
|
+
_v$45 !== _p$.r && web.className(_el$66, _p$.r = _v$45);
|
|
1798
|
+
_v$46 !== _p$.d && web.className(_el$68, _p$.d = _v$46);
|
|
1799
|
+
_v$47 !== _p$.l && web.className(_el$69, _p$.l = _v$47);
|
|
1800
|
+
_v$48 !== _p$.u && web.className(_el$70, _p$.u = _v$48);
|
|
1690
1801
|
return _p$;
|
|
1691
1802
|
}, {
|
|
1692
1803
|
e: void 0,
|
|
@@ -1702,26 +1813,26 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
1702
1813
|
l: void 0,
|
|
1703
1814
|
u: void 0
|
|
1704
1815
|
});
|
|
1705
|
-
return _el$
|
|
1816
|
+
return _el$53;
|
|
1706
1817
|
})() : null;
|
|
1707
1818
|
})(), null);
|
|
1708
1819
|
web.insert(_el$11, (() => {
|
|
1709
1820
|
var _c$7 = web.memo(() => !!hasSearch());
|
|
1710
1821
|
return () => _c$7() ? (() => {
|
|
1711
|
-
var _el$
|
|
1712
|
-
_el$
|
|
1713
|
-
var _el$
|
|
1714
|
-
web.insert(_el$
|
|
1715
|
-
var _el$
|
|
1716
|
-
web.insert(_el$
|
|
1822
|
+
var _el$73 = _tmpl$14(), _el$74 = _el$73.firstChild;
|
|
1823
|
+
_el$74.firstChild;
|
|
1824
|
+
var _el$76 = _el$74.nextSibling;
|
|
1825
|
+
web.insert(_el$74, typeof navigator !== "undefined" ? (() => {
|
|
1826
|
+
var _el$77 = _tmpl$15();
|
|
1827
|
+
web.insert(_el$77, web.createComponent(CopyButton, {
|
|
1717
1828
|
getValue: () => {
|
|
1718
1829
|
const search = routerState().location.search;
|
|
1719
1830
|
return JSON.stringify(search);
|
|
1720
1831
|
}
|
|
1721
1832
|
}));
|
|
1722
|
-
return _el$
|
|
1833
|
+
return _el$77;
|
|
1723
1834
|
})() : null, null);
|
|
1724
|
-
web.insert(_el$
|
|
1835
|
+
web.insert(_el$76, web.createComponent(Explorer, {
|
|
1725
1836
|
value: locationSearchValue,
|
|
1726
1837
|
get defaultExpanded() {
|
|
1727
1838
|
return Object.keys(routerState().location.search).reduce((obj, next) => {
|
|
@@ -1731,21 +1842,21 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
1731
1842
|
}
|
|
1732
1843
|
}));
|
|
1733
1844
|
web.effect((_p$) => {
|
|
1734
|
-
var _v$
|
|
1735
|
-
_v$
|
|
1736
|
-
_v$
|
|
1737
|
-
_v$
|
|
1845
|
+
var _v$49 = styles().fourthContainer, _v$50 = styles().detailsHeader, _v$51 = styles().detailsContent;
|
|
1846
|
+
_v$49 !== _p$.e && web.className(_el$73, _p$.e = _v$49);
|
|
1847
|
+
_v$50 !== _p$.t && web.className(_el$74, _p$.t = _v$50);
|
|
1848
|
+
_v$51 !== _p$.a && web.className(_el$76, _p$.a = _v$51);
|
|
1738
1849
|
return _p$;
|
|
1739
1850
|
}, {
|
|
1740
1851
|
e: void 0,
|
|
1741
1852
|
t: void 0,
|
|
1742
1853
|
a: void 0
|
|
1743
1854
|
});
|
|
1744
|
-
return _el$
|
|
1855
|
+
return _el$73;
|
|
1745
1856
|
})() : null;
|
|
1746
1857
|
})(), null);
|
|
1747
1858
|
web.effect((_p$) => {
|
|
1748
|
-
var _v$6 = styles().panelCloseBtn, _v$7 = styles().panelCloseBtnIcon, _v$8 = styles().firstContainer, _v$9 = styles().row, _v$0 = styles().routerExplorerContainer, _v$1 = styles().routerExplorer, _v$10 = styles().secondContainer, _v$11 = styles().matchesContainer, _v$12 = styles().detailsHeader, _v$13 = styles().detailsContent, _v$14 = styles().detailsHeader, _v$15 = styles().routeMatchesToggle, _v$16 =
|
|
1859
|
+
var _v$6 = styles().panelCloseBtn, _v$7 = styles().panelCloseBtnIcon, _v$8 = styles().firstContainer, _v$9 = styles().row, _v$0 = styles().routerExplorerContainer, _v$1 = styles().routerExplorer, _v$10 = styles().secondContainer, _v$11 = styles().matchesContainer, _v$12 = styles().detailsHeader, _v$13 = styles().detailsContent, _v$14 = styles().detailsHeader, _v$15 = styles().routeMatchesToggle, _v$16 = currentTab() === "routes", _v$17 = clsx.clsx(styles().routeMatchesToggleBtn(currentTab() === "routes", true)), _v$18 = currentTab() === "matches", _v$19 = clsx.clsx(styles().routeMatchesToggleBtn(currentTab() === "matches", true)), _v$20 = currentTab() === "history", _v$21 = clsx.clsx(styles().routeMatchesToggleBtn(currentTab() === "history", false)), _v$22 = styles().detailsHeaderInfo, _v$23 = clsx.clsx(styles().routesContainer);
|
|
1749
1860
|
_v$6 !== _p$.e && web.className(_el$12, _p$.e = _v$6);
|
|
1750
1861
|
_v$7 !== _p$.t && web.setAttribute(_el$13, "class", _p$.t = _v$7);
|
|
1751
1862
|
_v$8 !== _p$.a && web.className(_el$14, _p$.a = _v$8);
|
|
@@ -1762,8 +1873,10 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
1762
1873
|
_v$17 !== _p$.w && web.className(_el$26, _p$.w = _v$17);
|
|
1763
1874
|
_v$18 !== _p$.m && (_el$27.disabled = _p$.m = _v$18);
|
|
1764
1875
|
_v$19 !== _p$.f && web.className(_el$27, _p$.f = _v$19);
|
|
1765
|
-
_v$20 !== _p$.y &&
|
|
1766
|
-
_v$21 !== _p$.g && web.className(_el$
|
|
1876
|
+
_v$20 !== _p$.y && (_el$28.disabled = _p$.y = _v$20);
|
|
1877
|
+
_v$21 !== _p$.g && web.className(_el$28, _p$.g = _v$21);
|
|
1878
|
+
_v$22 !== _p$.p && web.className(_el$29, _p$.p = _v$22);
|
|
1879
|
+
_v$23 !== _p$.b && web.className(_el$30, _p$.b = _v$23);
|
|
1767
1880
|
return _p$;
|
|
1768
1881
|
}, {
|
|
1769
1882
|
e: void 0,
|
|
@@ -1783,7 +1896,9 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
1783
1896
|
m: void 0,
|
|
1784
1897
|
f: void 0,
|
|
1785
1898
|
y: void 0,
|
|
1786
|
-
g: void 0
|
|
1899
|
+
g: void 0,
|
|
1900
|
+
p: void 0,
|
|
1901
|
+
b: void 0
|
|
1787
1902
|
});
|
|
1788
1903
|
return _el$11;
|
|
1789
1904
|
})();
|
|
@@ -1812,11 +1927,11 @@ function CopyButton({
|
|
|
1812
1927
|
if (timeoutId) clearTimeout(timeoutId);
|
|
1813
1928
|
});
|
|
1814
1929
|
return (() => {
|
|
1815
|
-
var _el$
|
|
1816
|
-
_el$
|
|
1817
|
-
web.insert(_el$
|
|
1818
|
-
web.effect(() => web.setAttribute(_el$
|
|
1819
|
-
return _el$
|
|
1930
|
+
var _el$78 = _tmpl$16();
|
|
1931
|
+
_el$78.$$click = handleCopy;
|
|
1932
|
+
web.insert(_el$78, () => copied() ? "✅" : "📋");
|
|
1933
|
+
web.effect(() => web.setAttribute(_el$78, "title", copied() ? "Copied!" : "Copy"));
|
|
1934
|
+
return _el$78;
|
|
1820
1935
|
})();
|
|
1821
1936
|
}
|
|
1822
1937
|
web.delegateEvents(["click", "mousedown"]);
|
|
@@ -1830,4 +1945,4 @@ exports.BaseTanStackRouterDevtoolsPanel$1 = BaseTanStackRouterDevtoolsPanel$1;
|
|
|
1830
1945
|
exports.useIsMounted = useIsMounted;
|
|
1831
1946
|
exports.useLocalStorage = useLocalStorage;
|
|
1832
1947
|
exports.useStyles = useStyles$1;
|
|
1833
|
-
//# sourceMappingURL=BaseTanStackRouterDevtoolsPanel-
|
|
1948
|
+
//# sourceMappingURL=BaseTanStackRouterDevtoolsPanel-CiObEXSM.cjs.map
|