@tanstack/router-devtools-core 1.121.0-alpha.22 → 1.121.0-alpha.28
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/cjs/AgeTicker.cjs.map +1 -1
- package/dist/cjs/BaseTanStackRouterDevtoolsPanel.cjs +178 -219
- package/dist/cjs/BaseTanStackRouterDevtoolsPanel.cjs.map +1 -1
- package/dist/cjs/Explorer.cjs +27 -27
- package/dist/cjs/Explorer.cjs.map +1 -1
- package/dist/cjs/FloatingTanStackRouterDevtools.cjs +8 -11
- package/dist/cjs/FloatingTanStackRouterDevtools.cjs.map +1 -1
- package/dist/cjs/NavigateButton.cjs.map +1 -1
- package/dist/cjs/TanStackRouterDevtoolsCore.cjs +45 -66
- package/dist/cjs/TanStackRouterDevtoolsCore.cjs.map +1 -1
- package/dist/cjs/TanStackRouterDevtoolsPanelCore.cjs +51 -45
- package/dist/cjs/TanStackRouterDevtoolsPanelCore.cjs.map +1 -1
- package/dist/cjs/TanStackRouterDevtoolsPanelCore.d.cts +2 -0
- package/dist/cjs/context.cjs.map +1 -1
- package/dist/cjs/logo.cjs +73 -73
- package/dist/cjs/logo.cjs.map +1 -1
- package/dist/cjs/tokens.cjs.map +1 -1
- package/dist/cjs/useLocalStorage.cjs.map +1 -1
- package/dist/cjs/useStyles.cjs.map +1 -1
- package/dist/cjs/utils.cjs.map +1 -1
- package/dist/esm/AgeTicker.js.map +1 -1
- package/dist/esm/BaseTanStackRouterDevtoolsPanel.js +178 -219
- package/dist/esm/BaseTanStackRouterDevtoolsPanel.js.map +1 -1
- package/dist/esm/Explorer.js +27 -27
- package/dist/esm/Explorer.js.map +1 -1
- package/dist/esm/FloatingTanStackRouterDevtools.js +8 -11
- package/dist/esm/FloatingTanStackRouterDevtools.js.map +1 -1
- package/dist/esm/NavigateButton.js.map +1 -1
- package/dist/esm/TanStackRouterDevtoolsCore.js +45 -66
- package/dist/esm/TanStackRouterDevtoolsCore.js.map +1 -1
- package/dist/esm/TanStackRouterDevtoolsPanelCore.d.ts +2 -0
- package/dist/esm/TanStackRouterDevtoolsPanelCore.js +51 -45
- package/dist/esm/TanStackRouterDevtoolsPanelCore.js.map +1 -1
- package/dist/esm/context.js.map +1 -1
- package/dist/esm/logo.js +73 -73
- package/dist/esm/logo.js.map +1 -1
- package/dist/esm/tokens.js.map +1 -1
- package/dist/esm/useLocalStorage.js.map +1 -1
- package/dist/esm/useStyles.js.map +1 -1
- package/dist/esm/utils.js.map +1 -1
- package/package.json +5 -5
- package/src/TanStackRouterDevtoolsPanelCore.tsx +32 -1
|
@@ -10,7 +10,7 @@ import { Explorer } from "./Explorer.js";
|
|
|
10
10
|
import { multiSortBy, getStatusColor, getRouteStatusColor } from "./utils.js";
|
|
11
11
|
import { AgeTicker } from "./AgeTicker.js";
|
|
12
12
|
import { NavigateButton } from "./NavigateButton.js";
|
|
13
|
-
var _tmpl$ = /* @__PURE__ */ template(`<button><div>TANSTACK</div><div>TanStack Router v1`), _tmpl$2 = /* @__PURE__ */ template(`<div><div>`), _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><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$8 = /* @__PURE__ */ template(`<div><span>masked`), _tmpl$9 = /* @__PURE__ */ template(`<div role=button><div>`), _tmpl$
|
|
13
|
+
var _tmpl$ = /* @__PURE__ */ template(`<button><div>TANSTACK</div><div>TanStack Router v1`), _tmpl$2 = /* @__PURE__ */ template(`<div><div>`), _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><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$8 = /* @__PURE__ */ template(`<div><span>masked`), _tmpl$9 = /* @__PURE__ */ template(`<div role=button><div>`), _tmpl$0 = /* @__PURE__ */ template(`<div><div><div>Cached Matches</div><div>age / staleTime / gcTime</div></div><div>`), _tmpl$1 = /* @__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$10 = /* @__PURE__ */ template(`<div>Loader Data`), _tmpl$11 = /* @__PURE__ */ template(`<div><div>Search Params</div><div>`);
|
|
14
14
|
function Logo(props) {
|
|
15
15
|
const {
|
|
16
16
|
className: className$1,
|
|
@@ -63,10 +63,9 @@ function RouteComp({
|
|
|
63
63
|
const matches = createMemo(() => routerState().pendingMatches || routerState().matches);
|
|
64
64
|
const match = createMemo(() => routerState().matches.find((d) => d.routeId === route.id));
|
|
65
65
|
const param = createMemo(() => {
|
|
66
|
-
var _a, _b;
|
|
67
66
|
try {
|
|
68
|
-
if (
|
|
69
|
-
const p =
|
|
67
|
+
if (match()?.params) {
|
|
68
|
+
const p = match()?.params;
|
|
70
69
|
const r = route.path || trimPath(route.id);
|
|
71
70
|
if (r.startsWith("$")) {
|
|
72
71
|
const trimmed = r.slice(1);
|
|
@@ -127,26 +126,23 @@ function RouteComp({
|
|
|
127
126
|
},
|
|
128
127
|
get children() {
|
|
129
128
|
return [(() => {
|
|
130
|
-
var _el$9 = _tmpl$3(), _el$
|
|
131
|
-
insert(_el$9, () => isRoot ? rootRouteId : route.path || trimPath(route.id), _el$
|
|
129
|
+
var _el$9 = _tmpl$3(), _el$0 = _el$9.firstChild;
|
|
130
|
+
insert(_el$9, () => isRoot ? rootRouteId : route.path || trimPath(route.id), _el$0);
|
|
132
131
|
effect(() => className(_el$9, styles().code));
|
|
133
132
|
return _el$9;
|
|
134
133
|
})(), (() => {
|
|
135
|
-
var _el$
|
|
136
|
-
insert(_el$
|
|
137
|
-
effect(() => className(_el$
|
|
138
|
-
return _el$
|
|
134
|
+
var _el$1 = _tmpl$4();
|
|
135
|
+
insert(_el$1, param);
|
|
136
|
+
effect(() => className(_el$1, styles().routeParamInfo));
|
|
137
|
+
return _el$1;
|
|
139
138
|
})()];
|
|
140
139
|
}
|
|
141
140
|
}), null);
|
|
142
141
|
insert(_el$6, (() => {
|
|
143
|
-
var _c$ = memo(() =>
|
|
144
|
-
var _a;
|
|
145
|
-
return !!((_a = route.children) == null ? void 0 : _a.length);
|
|
146
|
-
});
|
|
142
|
+
var _c$ = memo(() => !!route.children?.length);
|
|
147
143
|
return () => _c$() ? (() => {
|
|
148
|
-
var _el$
|
|
149
|
-
insert(_el$
|
|
144
|
+
var _el$10 = _tmpl$6();
|
|
145
|
+
insert(_el$10, () => [...route.children].sort((a, b) => {
|
|
150
146
|
return a.rank - b.rank;
|
|
151
147
|
}).map((r) => createComponent(RouteComp, {
|
|
152
148
|
routerState,
|
|
@@ -155,8 +151,8 @@ function RouteComp({
|
|
|
155
151
|
activeId,
|
|
156
152
|
setActiveId
|
|
157
153
|
})));
|
|
158
|
-
effect(() => className(_el$
|
|
159
|
-
return _el$
|
|
154
|
+
effect(() => className(_el$10, styles().nestedRouteRow(!!isRoot)));
|
|
155
|
+
return _el$10;
|
|
160
156
|
})() : null;
|
|
161
157
|
})(), null);
|
|
162
158
|
effect((_p$) => {
|
|
@@ -209,17 +205,14 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
209
205
|
};
|
|
210
206
|
});
|
|
211
207
|
const routerExplorerValue = createMemo(() => Object.fromEntries(multiSortBy(Object.keys(explorerState()), ["state", "routesById", "routesByPath", "flatRoutes", "options", "manifest"].map((d) => (dd) => dd !== d)).map((key) => [key, explorerState()[key]]).filter((d) => typeof d[1] !== "function" && !["__store", "basepath", "injectedHtml", "subscribers", "latestLoadPromise", "navigateTimeout", "resetNextScroll", "tempLocationKey", "latestLocation", "routeTree", "history"].includes(d[0]))));
|
|
212
|
-
const activeMatchLoaderData = createMemo(() =>
|
|
213
|
-
var _a;
|
|
214
|
-
return (_a = activeMatch()) == null ? void 0 : _a.loaderData;
|
|
215
|
-
});
|
|
208
|
+
const activeMatchLoaderData = createMemo(() => activeMatch()?.loaderData);
|
|
216
209
|
const activeMatchValue = createMemo(() => activeMatch());
|
|
217
210
|
const locationSearchValue = createMemo(() => routerState().location.search);
|
|
218
211
|
return (() => {
|
|
219
|
-
var _el$
|
|
220
|
-
_el$
|
|
221
|
-
var _el$
|
|
222
|
-
spread(_el$
|
|
212
|
+
var _el$11 = _tmpl$7(), _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;
|
|
213
|
+
_el$20.firstChild;
|
|
214
|
+
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$25.nextSibling, _el$29 = _el$24.nextSibling;
|
|
215
|
+
spread(_el$11, mergeProps({
|
|
223
216
|
get ["class"]() {
|
|
224
217
|
return clsx(styles().devtoolsPanel, "TanStackRouterDevtoolsPanel", className$1 ? className$1() : "");
|
|
225
218
|
},
|
|
@@ -227,19 +220,19 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
227
220
|
return style ? style() : "";
|
|
228
221
|
}
|
|
229
222
|
}, otherPanelProps), false, true);
|
|
230
|
-
insert(_el$
|
|
231
|
-
var _el$
|
|
232
|
-
addEventListener(_el$
|
|
233
|
-
effect(() => className(_el$
|
|
234
|
-
return _el$
|
|
235
|
-
})() : null, _el$
|
|
236
|
-
_el$
|
|
223
|
+
insert(_el$11, handleDragStart ? (() => {
|
|
224
|
+
var _el$30 = _tmpl$6();
|
|
225
|
+
addEventListener(_el$30, "mousedown", handleDragStart, true);
|
|
226
|
+
effect(() => className(_el$30, styles().dragHandle));
|
|
227
|
+
return _el$30;
|
|
228
|
+
})() : null, _el$12);
|
|
229
|
+
_el$12.$$click = (e) => {
|
|
237
230
|
if (setIsOpen) {
|
|
238
231
|
setIsOpen(false);
|
|
239
232
|
}
|
|
240
233
|
onCloseClick(e);
|
|
241
234
|
};
|
|
242
|
-
insert(_el$
|
|
235
|
+
insert(_el$15, createComponent(Logo, {
|
|
243
236
|
"aria-hidden": true,
|
|
244
237
|
onClick: (e) => {
|
|
245
238
|
if (setIsOpen) {
|
|
@@ -248,7 +241,7 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
248
241
|
onCloseClick(e);
|
|
249
242
|
}
|
|
250
243
|
}));
|
|
251
|
-
insert(_el$
|
|
244
|
+
insert(_el$17, createComponent(Explorer, {
|
|
252
245
|
label: "Router",
|
|
253
246
|
value: routerExplorerValue,
|
|
254
247
|
defaultExpanded: {
|
|
@@ -260,42 +253,39 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
260
253
|
return subEntries.filter((d) => typeof d.value() !== "function");
|
|
261
254
|
}
|
|
262
255
|
}));
|
|
263
|
-
insert(_el$
|
|
256
|
+
insert(_el$20, (() => {
|
|
264
257
|
var _c$2 = memo(() => !!routerState().location.maskedLocation);
|
|
265
258
|
return () => _c$2() ? (() => {
|
|
266
|
-
var _el$
|
|
259
|
+
var _el$31 = _tmpl$8(), _el$32 = _el$31.firstChild;
|
|
267
260
|
effect((_p$) => {
|
|
268
|
-
var _v$
|
|
269
|
-
_v$
|
|
270
|
-
_v$
|
|
261
|
+
var _v$22 = styles().maskedBadgeContainer, _v$23 = styles().maskedBadge;
|
|
262
|
+
_v$22 !== _p$.e && className(_el$31, _p$.e = _v$22);
|
|
263
|
+
_v$23 !== _p$.t && className(_el$32, _p$.t = _v$23);
|
|
271
264
|
return _p$;
|
|
272
265
|
}, {
|
|
273
266
|
e: void 0,
|
|
274
267
|
t: void 0
|
|
275
268
|
});
|
|
276
|
-
return _el$
|
|
269
|
+
return _el$31;
|
|
277
270
|
})() : null;
|
|
278
271
|
})(), null);
|
|
279
|
-
insert(_el$
|
|
280
|
-
insert(_el$
|
|
272
|
+
insert(_el$23, () => routerState().location.pathname);
|
|
273
|
+
insert(_el$22, (() => {
|
|
281
274
|
var _c$3 = memo(() => !!routerState().location.maskedLocation);
|
|
282
275
|
return () => _c$3() ? (() => {
|
|
283
|
-
var _el$
|
|
284
|
-
insert(_el$
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
});
|
|
288
|
-
effect(() => className(_el$35, styles().maskedLocation));
|
|
289
|
-
return _el$35;
|
|
276
|
+
var _el$33 = _tmpl$4();
|
|
277
|
+
insert(_el$33, () => routerState().location.maskedLocation?.pathname);
|
|
278
|
+
effect(() => className(_el$33, styles().maskedLocation));
|
|
279
|
+
return _el$33;
|
|
290
280
|
})() : null;
|
|
291
281
|
})(), null);
|
|
292
|
-
_el$
|
|
282
|
+
_el$26.$$click = () => {
|
|
293
283
|
setShowMatches(false);
|
|
294
284
|
};
|
|
295
|
-
_el$
|
|
285
|
+
_el$27.$$click = () => {
|
|
296
286
|
setShowMatches(true);
|
|
297
287
|
};
|
|
298
|
-
insert(_el$
|
|
288
|
+
insert(_el$29, (() => {
|
|
299
289
|
var _c$4 = memo(() => !!!showMatches());
|
|
300
290
|
return () => _c$4() ? createComponent(RouteComp, {
|
|
301
291
|
routerState,
|
|
@@ -307,68 +297,65 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
307
297
|
activeId,
|
|
308
298
|
setActiveId
|
|
309
299
|
}) : (() => {
|
|
310
|
-
var _el$
|
|
311
|
-
insert(_el$
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
}),
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
});
|
|
359
|
-
});
|
|
360
|
-
return _el$36;
|
|
300
|
+
var _el$34 = _tmpl$6();
|
|
301
|
+
insert(_el$34, () => (routerState().pendingMatches?.length ? routerState().pendingMatches : routerState().matches)?.map((match, _i) => {
|
|
302
|
+
return (() => {
|
|
303
|
+
var _el$35 = _tmpl$9(), _el$36 = _el$35.firstChild;
|
|
304
|
+
_el$35.$$click = () => setActiveId(activeId() === match.id ? "" : match.id);
|
|
305
|
+
insert(_el$35, createComponent(NavigateLink, {
|
|
306
|
+
get left() {
|
|
307
|
+
return createComponent(NavigateButton, {
|
|
308
|
+
get to() {
|
|
309
|
+
return match.pathname;
|
|
310
|
+
},
|
|
311
|
+
get params() {
|
|
312
|
+
return match.params;
|
|
313
|
+
},
|
|
314
|
+
get search() {
|
|
315
|
+
return match.search;
|
|
316
|
+
},
|
|
317
|
+
router
|
|
318
|
+
});
|
|
319
|
+
},
|
|
320
|
+
get right() {
|
|
321
|
+
return createComponent(AgeTicker, {
|
|
322
|
+
match,
|
|
323
|
+
router
|
|
324
|
+
});
|
|
325
|
+
},
|
|
326
|
+
get children() {
|
|
327
|
+
var _el$37 = _tmpl$4();
|
|
328
|
+
insert(_el$37, () => `${match.routeId === rootRouteId ? rootRouteId : match.pathname}`);
|
|
329
|
+
effect(() => className(_el$37, styles().matchID));
|
|
330
|
+
return _el$37;
|
|
331
|
+
}
|
|
332
|
+
}), null);
|
|
333
|
+
effect((_p$) => {
|
|
334
|
+
var _v$24 = `Open match details for ${match.id}`, _v$25 = clsx(styles().matchRow(match === activeMatch())), _v$26 = clsx(styles().matchIndicator(getStatusColor(match)));
|
|
335
|
+
_v$24 !== _p$.e && setAttribute(_el$35, "aria-label", _p$.e = _v$24);
|
|
336
|
+
_v$25 !== _p$.t && className(_el$35, _p$.t = _v$25);
|
|
337
|
+
_v$26 !== _p$.a && className(_el$36, _p$.a = _v$26);
|
|
338
|
+
return _p$;
|
|
339
|
+
}, {
|
|
340
|
+
e: void 0,
|
|
341
|
+
t: void 0,
|
|
342
|
+
a: void 0
|
|
343
|
+
});
|
|
344
|
+
return _el$35;
|
|
345
|
+
})();
|
|
346
|
+
}));
|
|
347
|
+
return _el$34;
|
|
361
348
|
})();
|
|
362
349
|
})());
|
|
363
|
-
insert(_el$
|
|
350
|
+
insert(_el$18, (() => {
|
|
364
351
|
var _c$5 = memo(() => !!routerState().cachedMatches.length);
|
|
365
352
|
return () => _c$5() ? (() => {
|
|
366
|
-
var _el$
|
|
367
|
-
insert(_el$
|
|
353
|
+
var _el$38 = _tmpl$0(), _el$39 = _el$38.firstChild, _el$40 = _el$39.firstChild, _el$41 = _el$40.nextSibling, _el$42 = _el$39.nextSibling;
|
|
354
|
+
insert(_el$42, () => routerState().cachedMatches.map((match) => {
|
|
368
355
|
return (() => {
|
|
369
|
-
var _el$
|
|
370
|
-
_el$
|
|
371
|
-
insert(_el$
|
|
356
|
+
var _el$43 = _tmpl$9(), _el$44 = _el$43.firstChild;
|
|
357
|
+
_el$43.$$click = () => setActiveId(activeId() === match.id ? "" : match.id);
|
|
358
|
+
insert(_el$43, createComponent(NavigateLink, {
|
|
372
359
|
get left() {
|
|
373
360
|
return createComponent(NavigateButton, {
|
|
374
361
|
get to() {
|
|
@@ -390,121 +377,93 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
390
377
|
});
|
|
391
378
|
},
|
|
392
379
|
get children() {
|
|
393
|
-
var _el$
|
|
394
|
-
insert(_el$
|
|
395
|
-
effect(() => className(_el$
|
|
396
|
-
return _el$
|
|
380
|
+
var _el$45 = _tmpl$4();
|
|
381
|
+
insert(_el$45, () => `${match.id}`);
|
|
382
|
+
effect(() => className(_el$45, styles().matchID));
|
|
383
|
+
return _el$45;
|
|
397
384
|
}
|
|
398
385
|
}), null);
|
|
399
386
|
effect((_p$) => {
|
|
400
|
-
var _v$
|
|
401
|
-
_v$
|
|
402
|
-
_v$
|
|
403
|
-
_v$
|
|
387
|
+
var _v$30 = `Open match details for ${match.id}`, _v$31 = clsx(styles().matchRow(match === activeMatch())), _v$32 = clsx(styles().matchIndicator(getStatusColor(match)));
|
|
388
|
+
_v$30 !== _p$.e && setAttribute(_el$43, "aria-label", _p$.e = _v$30);
|
|
389
|
+
_v$31 !== _p$.t && className(_el$43, _p$.t = _v$31);
|
|
390
|
+
_v$32 !== _p$.a && className(_el$44, _p$.a = _v$32);
|
|
404
391
|
return _p$;
|
|
405
392
|
}, {
|
|
406
393
|
e: void 0,
|
|
407
394
|
t: void 0,
|
|
408
395
|
a: void 0
|
|
409
396
|
});
|
|
410
|
-
return _el$
|
|
397
|
+
return _el$43;
|
|
411
398
|
})();
|
|
412
399
|
}));
|
|
413
400
|
effect((_p$) => {
|
|
414
|
-
var _v$
|
|
415
|
-
_v$
|
|
416
|
-
_v$
|
|
417
|
-
_v$
|
|
401
|
+
var _v$27 = styles().cachedMatchesContainer, _v$28 = styles().detailsHeader, _v$29 = styles().detailsHeaderInfo;
|
|
402
|
+
_v$27 !== _p$.e && className(_el$38, _p$.e = _v$27);
|
|
403
|
+
_v$28 !== _p$.t && className(_el$39, _p$.t = _v$28);
|
|
404
|
+
_v$29 !== _p$.a && className(_el$41, _p$.a = _v$29);
|
|
418
405
|
return _p$;
|
|
419
406
|
}, {
|
|
420
407
|
e: void 0,
|
|
421
408
|
t: void 0,
|
|
422
409
|
a: void 0
|
|
423
410
|
});
|
|
424
|
-
return _el$
|
|
411
|
+
return _el$38;
|
|
425
412
|
})() : null;
|
|
426
413
|
})(), null);
|
|
427
|
-
insert(_el$
|
|
428
|
-
var _c$6 = memo(() =>
|
|
429
|
-
var _a;
|
|
430
|
-
return !!(activeMatch() && ((_a = activeMatch()) == null ? void 0 : _a.status));
|
|
431
|
-
});
|
|
414
|
+
insert(_el$11, (() => {
|
|
415
|
+
var _c$6 = memo(() => !!(activeMatch() && activeMatch()?.status));
|
|
432
416
|
return () => _c$6() ? (() => {
|
|
433
|
-
var _el$
|
|
434
|
-
insert(_el$
|
|
435
|
-
var _c$8 = memo(() =>
|
|
436
|
-
|
|
437
|
-
return !!(((_a = activeMatch()) == null ? void 0 : _a.status) === "success" && ((_b = activeMatch()) == null ? void 0 : _b.isFetching));
|
|
438
|
-
});
|
|
439
|
-
return () => {
|
|
440
|
-
var _a;
|
|
441
|
-
return _c$8() ? "fetching" : (_a = activeMatch()) == null ? void 0 : _a.status;
|
|
442
|
-
};
|
|
417
|
+
var _el$46 = _tmpl$1(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$49.firstChild, _el$51 = _el$50.firstChild, _el$52 = _el$50.nextSibling, _el$53 = _el$52.firstChild, _el$54 = _el$53.nextSibling, _el$55 = _el$54.firstChild, _el$56 = _el$52.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$57.nextSibling, _el$59 = _el$56.nextSibling, _el$60 = _el$59.firstChild, _el$61 = _el$60.nextSibling, _el$62 = _el$48.nextSibling, _el$63 = _el$62.nextSibling;
|
|
418
|
+
insert(_el$51, (() => {
|
|
419
|
+
var _c$8 = memo(() => !!(activeMatch()?.status === "success" && activeMatch()?.isFetching));
|
|
420
|
+
return () => _c$8() ? "fetching" : activeMatch()?.status;
|
|
443
421
|
})());
|
|
444
|
-
insert(_el$
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
insert(_el$60, (() => {
|
|
449
|
-
var _c$9 = memo(() => {
|
|
450
|
-
var _a;
|
|
451
|
-
return !!((_a = routerState().pendingMatches) == null ? void 0 : _a.find((d) => {
|
|
452
|
-
var _a2;
|
|
453
|
-
return d.id === ((_a2 = activeMatch()) == null ? void 0 : _a2.id);
|
|
454
|
-
}));
|
|
455
|
-
});
|
|
456
|
-
return () => _c$9() ? "Pending" : routerState().matches.find((d) => {
|
|
457
|
-
var _a;
|
|
458
|
-
return d.id === ((_a = activeMatch()) == null ? void 0 : _a.id);
|
|
459
|
-
}) ? "Active" : "Cached";
|
|
422
|
+
insert(_el$55, () => activeMatch()?.id);
|
|
423
|
+
insert(_el$58, (() => {
|
|
424
|
+
var _c$9 = memo(() => !!routerState().pendingMatches?.find((d) => d.id === activeMatch()?.id));
|
|
425
|
+
return () => _c$9() ? "Pending" : routerState().matches.find((d) => d.id === activeMatch()?.id) ? "Active" : "Cached";
|
|
460
426
|
})());
|
|
461
|
-
insert(_el$
|
|
462
|
-
var _c$
|
|
463
|
-
|
|
464
|
-
return !!((_a = activeMatch()) == null ? void 0 : _a.updatedAt);
|
|
465
|
-
});
|
|
466
|
-
return () => {
|
|
467
|
-
var _a;
|
|
468
|
-
return _c$10() ? new Date((_a = activeMatch()) == null ? void 0 : _a.updatedAt).toLocaleTimeString() : "N/A";
|
|
469
|
-
};
|
|
427
|
+
insert(_el$61, (() => {
|
|
428
|
+
var _c$0 = memo(() => !!activeMatch()?.updatedAt);
|
|
429
|
+
return () => _c$0() ? new Date(activeMatch()?.updatedAt).toLocaleTimeString() : "N/A";
|
|
470
430
|
})());
|
|
471
|
-
insert(_el$
|
|
472
|
-
var _c$
|
|
473
|
-
return () => _c$
|
|
474
|
-
var _el$
|
|
475
|
-
effect(() => className(_el$
|
|
476
|
-
return _el$
|
|
431
|
+
insert(_el$46, (() => {
|
|
432
|
+
var _c$1 = memo(() => !!activeMatchLoaderData());
|
|
433
|
+
return () => _c$1() ? [(() => {
|
|
434
|
+
var _el$64 = _tmpl$10();
|
|
435
|
+
effect(() => className(_el$64, styles().detailsHeader));
|
|
436
|
+
return _el$64;
|
|
477
437
|
})(), (() => {
|
|
478
|
-
var _el$
|
|
479
|
-
insert(_el$
|
|
438
|
+
var _el$65 = _tmpl$6();
|
|
439
|
+
insert(_el$65, createComponent(Explorer, {
|
|
480
440
|
label: "loaderData",
|
|
481
441
|
value: activeMatchLoaderData,
|
|
482
442
|
defaultExpanded: {}
|
|
483
443
|
}));
|
|
484
|
-
effect(() => className(_el$
|
|
485
|
-
return _el$
|
|
444
|
+
effect(() => className(_el$65, styles().detailsContent));
|
|
445
|
+
return _el$65;
|
|
486
446
|
})()] : null;
|
|
487
|
-
})(), _el$
|
|
488
|
-
insert(_el$
|
|
447
|
+
})(), _el$62);
|
|
448
|
+
insert(_el$63, createComponent(Explorer, {
|
|
489
449
|
label: "Match",
|
|
490
450
|
value: activeMatchValue,
|
|
491
451
|
defaultExpanded: {}
|
|
492
452
|
}));
|
|
493
453
|
effect((_p$) => {
|
|
494
|
-
var
|
|
495
|
-
|
|
496
|
-
_v$
|
|
497
|
-
_v$
|
|
498
|
-
_v$
|
|
499
|
-
_v$
|
|
500
|
-
_v$
|
|
501
|
-
_v$
|
|
502
|
-
_v$
|
|
503
|
-
_v$
|
|
504
|
-
_v$
|
|
505
|
-
_v$
|
|
506
|
-
_v$
|
|
507
|
-
_v$46 !== _p$.u && className(_el$65, _p$.u = _v$46);
|
|
454
|
+
var _v$33 = styles().thirdContainer, _v$34 = styles().detailsHeader, _v$35 = styles().matchDetails, _v$36 = styles().matchStatus(activeMatch()?.status, activeMatch()?.isFetching), _v$37 = styles().matchDetailsInfoLabel, _v$38 = styles().matchDetailsInfo, _v$39 = styles().matchDetailsInfoLabel, _v$40 = styles().matchDetailsInfo, _v$41 = styles().matchDetailsInfoLabel, _v$42 = styles().matchDetailsInfo, _v$43 = styles().detailsHeader, _v$44 = styles().detailsContent;
|
|
455
|
+
_v$33 !== _p$.e && className(_el$46, _p$.e = _v$33);
|
|
456
|
+
_v$34 !== _p$.t && className(_el$47, _p$.t = _v$34);
|
|
457
|
+
_v$35 !== _p$.a && className(_el$49, _p$.a = _v$35);
|
|
458
|
+
_v$36 !== _p$.o && className(_el$50, _p$.o = _v$36);
|
|
459
|
+
_v$37 !== _p$.i && className(_el$52, _p$.i = _v$37);
|
|
460
|
+
_v$38 !== _p$.n && className(_el$54, _p$.n = _v$38);
|
|
461
|
+
_v$39 !== _p$.s && className(_el$56, _p$.s = _v$39);
|
|
462
|
+
_v$40 !== _p$.h && className(_el$58, _p$.h = _v$40);
|
|
463
|
+
_v$41 !== _p$.r && className(_el$59, _p$.r = _v$41);
|
|
464
|
+
_v$42 !== _p$.d && className(_el$61, _p$.d = _v$42);
|
|
465
|
+
_v$43 !== _p$.l && className(_el$62, _p$.l = _v$43);
|
|
466
|
+
_v$44 !== _p$.u && className(_el$63, _p$.u = _v$44);
|
|
508
467
|
return _p$;
|
|
509
468
|
}, {
|
|
510
469
|
e: void 0,
|
|
@@ -520,14 +479,14 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
520
479
|
l: void 0,
|
|
521
480
|
u: void 0
|
|
522
481
|
});
|
|
523
|
-
return _el$
|
|
482
|
+
return _el$46;
|
|
524
483
|
})() : null;
|
|
525
484
|
})(), null);
|
|
526
|
-
insert(_el$
|
|
485
|
+
insert(_el$11, (() => {
|
|
527
486
|
var _c$7 = memo(() => !!hasSearch());
|
|
528
487
|
return () => _c$7() ? (() => {
|
|
529
|
-
var _el$
|
|
530
|
-
insert(_el$
|
|
488
|
+
var _el$66 = _tmpl$11(), _el$67 = _el$66.firstChild, _el$68 = _el$67.nextSibling;
|
|
489
|
+
insert(_el$68, createComponent(Explorer, {
|
|
531
490
|
value: locationSearchValue,
|
|
532
491
|
get defaultExpanded() {
|
|
533
492
|
return Object.keys(routerState().location.search).reduce((obj, next) => {
|
|
@@ -537,39 +496,39 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
537
496
|
}
|
|
538
497
|
}));
|
|
539
498
|
effect((_p$) => {
|
|
540
|
-
var _v$
|
|
541
|
-
_v$
|
|
542
|
-
_v$
|
|
543
|
-
_v$
|
|
499
|
+
var _v$45 = styles().fourthContainer, _v$46 = styles().detailsHeader, _v$47 = styles().detailsContent;
|
|
500
|
+
_v$45 !== _p$.e && className(_el$66, _p$.e = _v$45);
|
|
501
|
+
_v$46 !== _p$.t && className(_el$67, _p$.t = _v$46);
|
|
502
|
+
_v$47 !== _p$.a && className(_el$68, _p$.a = _v$47);
|
|
544
503
|
return _p$;
|
|
545
504
|
}, {
|
|
546
505
|
e: void 0,
|
|
547
506
|
t: void 0,
|
|
548
507
|
a: void 0
|
|
549
508
|
});
|
|
550
|
-
return _el$
|
|
509
|
+
return _el$66;
|
|
551
510
|
})() : null;
|
|
552
511
|
})(), null);
|
|
553
512
|
effect((_p$) => {
|
|
554
|
-
var _v$6 = styles().panelCloseBtn, _v$7 = styles().panelCloseBtnIcon, _v$8 = styles().firstContainer, _v$9 = styles().row, _v$
|
|
555
|
-
_v$6 !== _p$.e && className(_el$
|
|
556
|
-
_v$7 !== _p$.t && setAttribute(_el$
|
|
557
|
-
_v$8 !== _p$.a && className(_el$
|
|
558
|
-
_v$9 !== _p$.o && className(_el$
|
|
559
|
-
_v$
|
|
560
|
-
_v$
|
|
561
|
-
_v$
|
|
562
|
-
_v$
|
|
563
|
-
_v$
|
|
564
|
-
_v$
|
|
565
|
-
_v$
|
|
566
|
-
_v$
|
|
567
|
-
_v$
|
|
568
|
-
_v$
|
|
569
|
-
_v$
|
|
570
|
-
_v$
|
|
571
|
-
_v$
|
|
572
|
-
_v$
|
|
513
|
+
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 = !showMatches(), _v$17 = clsx(styles().routeMatchesToggleBtn(!showMatches(), true)), _v$18 = showMatches(), _v$19 = clsx(styles().routeMatchesToggleBtn(!!showMatches(), false)), _v$20 = styles().detailsHeaderInfo, _v$21 = clsx(styles().routesContainer);
|
|
514
|
+
_v$6 !== _p$.e && className(_el$12, _p$.e = _v$6);
|
|
515
|
+
_v$7 !== _p$.t && setAttribute(_el$13, "class", _p$.t = _v$7);
|
|
516
|
+
_v$8 !== _p$.a && className(_el$14, _p$.a = _v$8);
|
|
517
|
+
_v$9 !== _p$.o && className(_el$15, _p$.o = _v$9);
|
|
518
|
+
_v$0 !== _p$.i && className(_el$16, _p$.i = _v$0);
|
|
519
|
+
_v$1 !== _p$.n && className(_el$17, _p$.n = _v$1);
|
|
520
|
+
_v$10 !== _p$.s && className(_el$18, _p$.s = _v$10);
|
|
521
|
+
_v$11 !== _p$.h && className(_el$19, _p$.h = _v$11);
|
|
522
|
+
_v$12 !== _p$.r && className(_el$20, _p$.r = _v$12);
|
|
523
|
+
_v$13 !== _p$.d && className(_el$22, _p$.d = _v$13);
|
|
524
|
+
_v$14 !== _p$.l && className(_el$24, _p$.l = _v$14);
|
|
525
|
+
_v$15 !== _p$.u && className(_el$25, _p$.u = _v$15);
|
|
526
|
+
_v$16 !== _p$.c && (_el$26.disabled = _p$.c = _v$16);
|
|
527
|
+
_v$17 !== _p$.w && className(_el$26, _p$.w = _v$17);
|
|
528
|
+
_v$18 !== _p$.m && (_el$27.disabled = _p$.m = _v$18);
|
|
529
|
+
_v$19 !== _p$.f && className(_el$27, _p$.f = _v$19);
|
|
530
|
+
_v$20 !== _p$.y && className(_el$28, _p$.y = _v$20);
|
|
531
|
+
_v$21 !== _p$.g && className(_el$29, _p$.g = _v$21);
|
|
573
532
|
return _p$;
|
|
574
533
|
}, {
|
|
575
534
|
e: void 0,
|
|
@@ -591,7 +550,7 @@ const BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel
|
|
|
591
550
|
y: void 0,
|
|
592
551
|
g: void 0
|
|
593
552
|
});
|
|
594
|
-
return _el$
|
|
553
|
+
return _el$11;
|
|
595
554
|
})();
|
|
596
555
|
};
|
|
597
556
|
delegateEvents(["click", "mousedown"]);
|