@tanstack/react-router-devtools 0.0.1-beta.36 → 0.0.1-beta.41

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.
@@ -26,22 +26,18 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
26
26
 
27
27
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
28
28
 
29
- const _excluded = ["style"],
30
- _excluded2 = ["style", "onClick"],
31
- _excluded3 = ["style", "onClick"],
32
- _excluded4 = ["isOpen", "setIsOpen", "handleDragStart", "router"];
33
29
  const isServer = typeof window === 'undefined';
34
30
  function Logo(props) {
35
- var _props$style;
36
31
  return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, props, {
37
- style: _rollupPluginBabelHelpers["extends"]({}, (_props$style = props.style) != null ? _props$style : {}, {
32
+ style: {
33
+ ...(props.style ?? {}),
38
34
  display: 'flex',
39
35
  alignItems: 'center',
40
36
  flexDirection: 'column',
41
37
  fontSize: '0.8rem',
42
38
  fontWeight: 'bolder',
43
39
  lineHeight: '1'
44
- })
40
+ }
45
41
  }), /*#__PURE__*/React__default["default"].createElement("div", {
46
42
  style: {
47
43
  letterSpacing: '-0.05rem'
@@ -77,13 +73,12 @@ function TanStackRouterDevtools(_ref) {
77
73
  const [isResolvedOpen, setIsResolvedOpen] = utils.useSafeState(false);
78
74
  const [isResizing, setIsResizing] = utils.useSafeState(false);
79
75
  const isMounted = utils.useIsMounted();
80
- const _handleDragStart = (panelElement, startEvent) => {
81
- var _panelElement$getBoun;
76
+ const handleDragStart = (panelElement, startEvent) => {
82
77
  if (startEvent.button !== 0) return; // Only allow left click for drag
83
78
 
84
79
  setIsResizing(true);
85
80
  const dragInfo = {
86
- originalHeight: (_panelElement$getBoun = panelElement == null ? void 0 : panelElement.getBoundingClientRect().height) != null ? _panelElement$getBoun : 0,
81
+ originalHeight: (panelElement == null ? void 0 : panelElement.getBoundingClientRect().height) ?? 0,
87
82
  pageY: startEvent.pageY
88
83
  };
89
84
  const run = moveEvent => {
@@ -105,7 +100,7 @@ function TanStackRouterDevtools(_ref) {
105
100
  document.addEventListener('mouseup', unsub);
106
101
  };
107
102
  React__default["default"].useEffect(() => {
108
- setIsResolvedOpen(isOpen != null ? isOpen : false);
103
+ setIsResolvedOpen(isOpen ?? false);
109
104
  }, [isOpen, isResolvedOpen, setIsResolvedOpen]);
110
105
 
111
106
  // Toggle panel visibility before/after transition (depending on direction).
@@ -140,7 +135,7 @@ function TanStackRouterDevtools(_ref) {
140
135
  var _panelRef$current, _rootRef$current2;
141
136
  const containerHeight = (_panelRef$current = panelRef.current) == null ? void 0 : _panelRef$current.getBoundingClientRect().height;
142
137
  if ((_rootRef$current2 = rootRef.current) != null && _rootRef$current2.parentElement) {
143
- rootRef.current.parentElement.style.paddingBottom = containerHeight + "px";
138
+ rootRef.current.parentElement.style.paddingBottom = `${containerHeight}px`;
144
139
  }
145
140
  };
146
141
  run();
@@ -158,19 +153,19 @@ function TanStackRouterDevtools(_ref) {
158
153
  return;
159
154
  }, [isResolvedOpen]);
160
155
  const {
161
- style: panelStyle = {}
162
- } = panelProps,
163
- otherPanelProps = _rollupPluginBabelHelpers.objectWithoutPropertiesLoose(panelProps, _excluded);
156
+ style: panelStyle = {},
157
+ ...otherPanelProps
158
+ } = panelProps;
164
159
  const {
165
- style: closeButtonStyle = {},
166
- onClick: onCloseClick
167
- } = closeButtonProps,
168
- otherCloseButtonProps = _rollupPluginBabelHelpers.objectWithoutPropertiesLoose(closeButtonProps, _excluded2);
160
+ style: closeButtonStyle = {},
161
+ onClick: onCloseClick,
162
+ ...otherCloseButtonProps
163
+ } = closeButtonProps;
169
164
  const {
170
- style: toggleButtonStyle = {},
171
- onClick: onToggleClick
172
- } = toggleButtonProps,
173
- otherToggleButtonProps = _rollupPluginBabelHelpers.objectWithoutPropertiesLoose(toggleButtonProps, _excluded3);
165
+ style: toggleButtonStyle = {},
166
+ onClick: onToggleClick,
167
+ ...otherToggleButtonProps
168
+ } = toggleButtonProps;
174
169
 
175
170
  // Do not render on the server
176
171
  if (!isMounted()) return null;
@@ -183,35 +178,38 @@ function TanStackRouterDevtools(_ref) {
183
178
  ref: panelRef
184
179
  }, otherPanelProps, {
185
180
  router: router,
186
- style: _rollupPluginBabelHelpers["extends"]({
181
+ style: {
187
182
  position: 'fixed',
188
183
  bottom: '0',
189
184
  right: '0',
190
185
  zIndex: 99999,
191
186
  width: '100%',
192
- height: devtoolsHeight != null ? devtoolsHeight : 500,
187
+ height: devtoolsHeight ?? 500,
193
188
  maxHeight: '90%',
194
189
  boxShadow: '0 0 20px rgba(0,0,0,.3)',
195
- borderTop: "1px solid " + theme.defaultTheme.gray,
190
+ borderTop: `1px solid ${theme.defaultTheme.gray}`,
196
191
  transformOrigin: 'top',
197
192
  // visibility will be toggled after transitions, but set initial state here
198
- visibility: isOpen ? 'visible' : 'hidden'
199
- }, panelStyle, isResizing ? {
200
- transition: "none"
201
- } : {
202
- transition: "all .2s ease"
203
- }, isResolvedOpen ? {
204
- opacity: 1,
205
- pointerEvents: 'all',
206
- transform: "translateY(0) scale(1)"
207
- } : {
208
- opacity: 0,
209
- pointerEvents: 'none',
210
- transform: "translateY(15px) scale(1.02)"
211
- }),
193
+ visibility: isOpen ? 'visible' : 'hidden',
194
+ ...panelStyle,
195
+ ...(isResizing ? {
196
+ transition: `none`
197
+ } : {
198
+ transition: `all .2s ease`
199
+ }),
200
+ ...(isResolvedOpen ? {
201
+ opacity: 1,
202
+ pointerEvents: 'all',
203
+ transform: `translateY(0) scale(1)`
204
+ } : {
205
+ opacity: 0,
206
+ pointerEvents: 'none',
207
+ transform: `translateY(15px) scale(1.02)`
208
+ })
209
+ },
212
210
  isOpen: isResolvedOpen,
213
211
  setIsOpen: setIsOpen,
214
- handleDragStart: e => _handleDragStart(panelRef.current, e)
212
+ handleDragStart: e => handleDragStart(panelRef.current, e)
215
213
  })), isResolvedOpen ? /*#__PURE__*/React__default["default"].createElement(styledComponents.Button, _rollupPluginBabelHelpers["extends"]({
216
214
  type: "button",
217
215
  "aria-label": "Close TanStack Router Devtools"
@@ -220,20 +218,22 @@ function TanStackRouterDevtools(_ref) {
220
218
  setIsOpen(false);
221
219
  onCloseClick && onCloseClick(e);
222
220
  },
223
- style: _rollupPluginBabelHelpers["extends"]({
221
+ style: {
224
222
  position: 'fixed',
225
223
  zIndex: 99999,
226
224
  margin: '.5em',
227
- bottom: 0
228
- }, position === 'top-right' ? {
229
- right: '0'
230
- } : position === 'top-left' ? {
231
- left: '0'
232
- } : position === 'bottom-right' ? {
233
- right: '0'
234
- } : {
235
- left: '0'
236
- }, closeButtonStyle)
225
+ bottom: 0,
226
+ ...(position === 'top-right' ? {
227
+ right: '0'
228
+ } : position === 'top-left' ? {
229
+ left: '0'
230
+ } : position === 'bottom-right' ? {
231
+ right: '0'
232
+ } : {
233
+ left: '0'
234
+ }),
235
+ ...closeButtonStyle
236
+ }
237
237
  }), "Close") : null), !isResolvedOpen ? /*#__PURE__*/React__default["default"].createElement("button", _rollupPluginBabelHelpers["extends"]({
238
238
  type: "button"
239
239
  }, otherToggleButtonProps, {
@@ -242,7 +242,7 @@ function TanStackRouterDevtools(_ref) {
242
242
  setIsOpen(true);
243
243
  onToggleClick && onToggleClick(e);
244
244
  },
245
- style: _rollupPluginBabelHelpers["extends"]({
245
+ style: {
246
246
  appearance: 'none',
247
247
  background: 'none',
248
248
  border: 0,
@@ -253,56 +253,49 @@ function TanStackRouterDevtools(_ref) {
253
253
  fontSize: '1.5em',
254
254
  margin: '.5em',
255
255
  cursor: 'pointer',
256
- width: 'fit-content'
257
- }, position === 'top-right' ? {
258
- top: '0',
259
- right: '0'
260
- } : position === 'top-left' ? {
261
- top: '0',
262
- left: '0'
263
- } : position === 'bottom-right' ? {
264
- bottom: '0',
265
- right: '0'
266
- } : {
267
- bottom: '0',
268
- left: '0'
269
- }, toggleButtonStyle)
256
+ width: 'fit-content',
257
+ ...(position === 'top-right' ? {
258
+ top: '0',
259
+ right: '0'
260
+ } : position === 'top-left' ? {
261
+ top: '0',
262
+ left: '0'
263
+ } : position === 'bottom-right' ? {
264
+ bottom: '0',
265
+ right: '0'
266
+ } : {
267
+ bottom: '0',
268
+ left: '0'
269
+ }),
270
+ ...toggleButtonStyle
271
+ }
270
272
  }), /*#__PURE__*/React__default["default"].createElement(Logo, {
271
273
  "aria-hidden": true
272
274
  })) : null);
273
275
  }
274
276
  const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwardRef(function TanStackRouterDevtoolsPanel(props, ref) {
275
- 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;
277
+ var _Object$values, _Object$values$find, _router$store$current, _router$store$pending, _router$store$pending2, _last, _last2, _last3, _last4, _last5, _last6;
276
278
  const {
277
- isOpen = true,
278
- handleDragStart,
279
- router: userRouter
280
- } = props,
281
- panelProps = _rollupPluginBabelHelpers.objectWithoutPropertiesLoose(props, _excluded4);
279
+ isOpen = true,
280
+ setIsOpen,
281
+ handleDragStart,
282
+ router: userRouter,
283
+ ...panelProps
284
+ } = props;
282
285
  const routerContextValue = React__default["default"].useContext(reactRouter.routerContext);
283
- const router = userRouter != null ? userRouter : routerContextValue == null ? void 0 : routerContextValue.router;
286
+ const router = userRouter ?? (routerContextValue == null ? void 0 : routerContextValue.router);
284
287
  reactRouter.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.');
285
- const rerender = React__default["default"].useReducer(() => ({}), {})[1];
286
- React__default["default"].useEffect(() => {
287
- let interval = setInterval(() => {
288
- router.cleanMatchCache();
289
- // router.notify()
290
- rerender();
291
- }, 250);
292
- return () => {
293
- clearInterval(interval);
294
- };
295
- }, []);
288
+ reactRouter.useRouterStore();
296
289
  const [activeRouteId, setActiveRouteId] = useLocalStorage["default"]('tanstackRouterDevtoolsActiveRouteId', '');
297
290
  const [activeMatchId, setActiveMatchId] = useLocalStorage["default"]('tanstackRouterDevtoolsActiveMatchId', '');
298
291
  React__default["default"].useEffect(() => {
299
292
  setActiveMatchId('');
300
293
  }, [activeRouteId]);
301
- 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);
302
- const matchCacheValues = utils.multiSortBy(Object.keys(router.matchCache).filter(key => {
303
- const cacheEntry = router.matchCache[key];
294
+ const activeMatch = ((_Object$values = Object.values(router.store.matchCache)) == null ? void 0 : (_Object$values$find = _Object$values.find(d => d.match.matchId === activeMatchId)) == null ? void 0 : _Object$values$find.match) ?? ((_router$store$current = router.store.currentMatches) == null ? void 0 : _router$store$current.find(d => d.routeId === activeRouteId));
295
+ const matchCacheValues = utils.multiSortBy(Object.keys(router.store.matchCache).filter(key => {
296
+ const cacheEntry = router.store.matchCache[key];
304
297
  return cacheEntry.gc > Date.now();
305
- }).map(key => router.matchCache[key]), [d => d.match.isFetching ? -1 : 1, d => -d.match.updatedAt]);
298
+ }).map(key => router.store.matchCache[key]), [d => d.match.store.isFetching ? -1 : 1, d => -d.match.store.updatedAt]);
306
299
  return /*#__PURE__*/React__default["default"].createElement(theme.ThemeProvider, {
307
300
  theme: theme.defaultTheme
308
301
  }, /*#__PURE__*/React__default["default"].createElement(styledComponents.Panel, _rollupPluginBabelHelpers["extends"]({
@@ -310,7 +303,49 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
310
303
  className: "TanStackRouterDevtoolsPanel"
311
304
  }, panelProps), /*#__PURE__*/React__default["default"].createElement("style", {
312
305
  dangerouslySetInnerHTML: {
313
- __html: "\n\n .TanStackRouterDevtoolsPanel * {\n scrollbar-color: " + theme.defaultTheme.backgroundAlt + " " + theme.defaultTheme.gray + ";\n }\n\n .TanStackRouterDevtoolsPanel *::-webkit-scrollbar, .TanStackRouterDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .TanStackRouterDevtoolsPanel *::-webkit-scrollbar-track, .TanStackRouterDevtoolsPanel scrollbar-track {\n background: " + theme.defaultTheme.backgroundAlt + ";\n }\n\n .TanStackRouterDevtoolsPanel *::-webkit-scrollbar-thumb, .TanStackRouterDevtoolsPanel scrollbar-thumb {\n background: " + theme.defaultTheme.gray + ";\n border-radius: .5em;\n border: 3px solid " + theme.defaultTheme.backgroundAlt + ";\n }\n\n .TanStackRouterDevtoolsPanel table {\n width: 100%;\n }\n\n .TanStackRouterDevtoolsPanel table tr {\n border-bottom: 2px dotted rgba(255, 255, 255, .2);\n }\n\n .TanStackRouterDevtoolsPanel table tr:last-child {\n border-bottom: none\n }\n\n .TanStackRouterDevtoolsPanel table td {\n padding: .25rem .5rem;\n border-right: 2px dotted rgba(255, 255, 255, .05);\n }\n\n .TanStackRouterDevtoolsPanel table td:last-child {\n border-right: none\n }\n\n "
306
+ __html: `
307
+
308
+ .TanStackRouterDevtoolsPanel * {
309
+ scrollbar-color: ${theme.defaultTheme.backgroundAlt} ${theme.defaultTheme.gray};
310
+ }
311
+
312
+ .TanStackRouterDevtoolsPanel *::-webkit-scrollbar, .TanStackRouterDevtoolsPanel scrollbar {
313
+ width: 1em;
314
+ height: 1em;
315
+ }
316
+
317
+ .TanStackRouterDevtoolsPanel *::-webkit-scrollbar-track, .TanStackRouterDevtoolsPanel scrollbar-track {
318
+ background: ${theme.defaultTheme.backgroundAlt};
319
+ }
320
+
321
+ .TanStackRouterDevtoolsPanel *::-webkit-scrollbar-thumb, .TanStackRouterDevtoolsPanel scrollbar-thumb {
322
+ background: ${theme.defaultTheme.gray};
323
+ border-radius: .5em;
324
+ border: 3px solid ${theme.defaultTheme.backgroundAlt};
325
+ }
326
+
327
+ .TanStackRouterDevtoolsPanel table {
328
+ width: 100%;
329
+ }
330
+
331
+ .TanStackRouterDevtoolsPanel table tr {
332
+ border-bottom: 2px dotted rgba(255, 255, 255, .2);
333
+ }
334
+
335
+ .TanStackRouterDevtoolsPanel table tr:last-child {
336
+ border-bottom: none
337
+ }
338
+
339
+ .TanStackRouterDevtoolsPanel table td {
340
+ padding: .25rem .5rem;
341
+ border-right: 2px dotted rgba(255, 255, 255, .05);
342
+ }
343
+
344
+ .TanStackRouterDevtoolsPanel table td:last-child {
345
+ border-right: none
346
+ }
347
+
348
+ `
314
349
  }
315
350
  }), /*#__PURE__*/React__default["default"].createElement("div", {
316
351
  style: {
@@ -330,7 +365,7 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
330
365
  minHeight: '40%',
331
366
  maxHeight: '100%',
332
367
  overflow: 'auto',
333
- borderRight: "1px solid " + theme.defaultTheme.grayAlt,
368
+ borderRight: `1px solid ${theme.defaultTheme.grayAlt}`,
334
369
  display: 'flex',
335
370
  flexDirection: 'column'
336
371
  }
@@ -373,7 +408,7 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
373
408
  minHeight: '40%',
374
409
  maxHeight: '100%',
375
410
  overflow: 'auto',
376
- borderRight: "1px solid " + theme.defaultTheme.grayAlt,
411
+ borderRight: `1px solid ${theme.defaultTheme.grayAlt}`,
377
412
  display: 'flex',
378
413
  flexDirection: 'column'
379
414
  }
@@ -385,15 +420,15 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
385
420
  top: 0,
386
421
  zIndex: 1
387
422
  }
388
- }, "Active Matches"), router.state.currentMatches.map((match, i) => {
423
+ }, "Active Matches"), router.store.currentMatches.map((match, i) => {
389
424
  return /*#__PURE__*/React__default["default"].createElement("div", {
390
425
  key: match.routeId || i,
391
426
  role: "button",
392
- "aria-label": "Open match details for " + match.routeId,
427
+ "aria-label": `Open match details for ${match.routeId}`,
393
428
  onClick: () => setActiveRouteId(activeRouteId === match.routeId ? '' : match.routeId),
394
429
  style: {
395
430
  display: 'flex',
396
- borderBottom: "solid 1px " + theme.defaultTheme.grayAlt,
431
+ borderBottom: `solid 1px ${theme.defaultTheme.grayAlt}`,
397
432
  cursor: 'pointer',
398
433
  alignItems: 'center',
399
434
  background: match === activeMatch ? 'rgba(255,255,255,.1)' : undefined
@@ -415,8 +450,8 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
415
450
  style: {
416
451
  padding: '.5em'
417
452
  }
418
- }, "" + match.matchId));
419
- }), (_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", {
453
+ }, `${match.matchId}`));
454
+ }), (_router$store$pending = router.store.pendingMatches) != null && _router$store$pending.length ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
420
455
  style: {
421
456
  marginTop: '2rem',
422
457
  padding: '.5em',
@@ -425,15 +460,15 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
425
460
  top: 0,
426
461
  zIndex: 1
427
462
  }
428
- }, "Pending Matches"), (_router$state$pending2 = router.state.pendingMatches) == null ? void 0 : _router$state$pending2.map((match, i) => {
463
+ }, "Pending Matches"), (_router$store$pending2 = router.store.pendingMatches) == null ? void 0 : _router$store$pending2.map((match, i) => {
429
464
  return /*#__PURE__*/React__default["default"].createElement("div", {
430
465
  key: match.routeId || i,
431
466
  role: "button",
432
- "aria-label": "Open match details for " + match.routeId,
467
+ "aria-label": `Open match details for ${match.routeId}`,
433
468
  onClick: () => setActiveRouteId(activeRouteId === match.routeId ? '' : match.routeId),
434
469
  style: {
435
470
  display: 'flex',
436
- borderBottom: "solid 1px " + theme.defaultTheme.grayAlt,
471
+ borderBottom: `solid 1px ${theme.defaultTheme.grayAlt}`,
437
472
  cursor: 'pointer',
438
473
  background: match === activeMatch ? 'rgba(255,255,255,.1)' : undefined
439
474
  }
@@ -454,7 +489,7 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
454
489
  style: {
455
490
  padding: '.5em'
456
491
  }
457
- }, "" + match.matchId));
492
+ }, `${match.matchId}`));
458
493
  })) : null, matchCacheValues.length ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
459
494
  style: {
460
495
  marginTop: '2rem',
@@ -470,8 +505,7 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
470
505
  }
471
506
  }, /*#__PURE__*/React__default["default"].createElement("div", null, "Match Cache"), /*#__PURE__*/React__default["default"].createElement(styledComponents.Button, {
472
507
  onClick: () => {
473
- router.matchCache = {};
474
- router.notify();
508
+ router.setStore(s => s.matchCache = {});
475
509
  }
476
510
  }, "Clear")), matchCacheValues.map((d, i) => {
477
511
  const {
@@ -481,11 +515,11 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
481
515
  return /*#__PURE__*/React__default["default"].createElement("div", {
482
516
  key: match.matchId || i,
483
517
  role: "button",
484
- "aria-label": "Open match details for " + match.matchId,
518
+ "aria-label": `Open match details for ${match.matchId}`,
485
519
  onClick: () => setActiveMatchId(activeMatchId === match.matchId ? '' : match.matchId),
486
520
  style: {
487
521
  display: 'flex',
488
- borderBottom: "solid 1px " + theme.defaultTheme.grayAlt,
522
+ borderBottom: `solid 1px ${theme.defaultTheme.grayAlt}`,
489
523
  cursor: 'pointer',
490
524
  background: match === activeMatch ? 'rgba(255,255,255,.1)' : undefined
491
525
  }
@@ -514,7 +548,7 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
514
548
  borderRadius: '.25rem',
515
549
  transition: 'all .2s ease-out'
516
550
  }
517
- }), /*#__PURE__*/React__default["default"].createElement(styledComponents.Code, null, "" + match.matchId)), /*#__PURE__*/React__default["default"].createElement("span", {
551
+ }), /*#__PURE__*/React__default["default"].createElement(styledComponents.Code, null, `${match.matchId}`)), /*#__PURE__*/React__default["default"].createElement("span", {
518
552
  style: {
519
553
  fontSize: '.7rem',
520
554
  opacity: '.5',
@@ -544,15 +578,15 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
544
578
  style: {
545
579
  opacity: '.5'
546
580
  }
547
- }, "Status"), /*#__PURE__*/React__default["default"].createElement("td", null, activeMatch.status)), /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", {
581
+ }, "Status"), /*#__PURE__*/React__default["default"].createElement("td", null, activeMatch.store.status)), /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", {
548
582
  style: {
549
583
  opacity: '.5'
550
584
  }
551
- }, "Invalid"), /*#__PURE__*/React__default["default"].createElement("td", null, activeMatch.isInvalid.toString())), /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", {
585
+ }, "Invalid"), /*#__PURE__*/React__default["default"].createElement("td", null, activeMatch.store.isInvalid.toString())), /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", {
552
586
  style: {
553
587
  opacity: '.5'
554
588
  }
555
- }, "Last Updated"), /*#__PURE__*/React__default["default"].createElement("td", null, activeMatch.updatedAt ? new Date(activeMatch.updatedAt).toLocaleTimeString() : 'N/A'))))), /*#__PURE__*/React__default["default"].createElement("div", {
589
+ }, "Last Updated"), /*#__PURE__*/React__default["default"].createElement("td", null, activeMatch.store.updatedAt ? new Date(activeMatch.store.updatedAt).toLocaleTimeString() : 'N/A'))))), /*#__PURE__*/React__default["default"].createElement("div", {
556
590
  style: {
557
591
  background: theme.defaultTheme.backgroundAlt,
558
592
  padding: '.5em',
@@ -569,7 +603,6 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
569
603
  type: "button",
570
604
  onClick: () => {
571
605
  activeMatch.invalidate();
572
- router.notify();
573
606
  },
574
607
  style: {
575
608
  background: theme.defaultTheme.warning,
@@ -604,7 +637,7 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
604
637
  minHeight: '40%',
605
638
  maxHeight: '100%',
606
639
  overflow: 'auto',
607
- borderRight: "1px solid " + theme.defaultTheme.grayAlt,
640
+ borderRight: `1px solid ${theme.defaultTheme.grayAlt}`,
608
641
  display: 'flex',
609
642
  flexDirection: 'column'
610
643
  }
@@ -621,9 +654,9 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
621
654
  style: {
622
655
  padding: '.5em'
623
656
  }
624
- }, Object.keys(((_last = reactRouter.last(router.state.currentMatches)) == null ? void 0 : _last.loaderData) || {}).length ? /*#__PURE__*/React__default["default"].createElement(Explorer["default"], {
625
- value: ((_last2 = reactRouter.last(router.state.currentMatches)) == null ? void 0 : _last2.loaderData) || {},
626
- defaultExpanded: Object.keys(((_last3 = reactRouter.last(router.state.currentMatches)) == null ? void 0 : _last3.loaderData) || {}).reduce((obj, next) => {
657
+ }, Object.keys(((_last = reactRouter.last(router.store.currentMatches)) == null ? void 0 : _last.store.loaderData) || {}).length ? /*#__PURE__*/React__default["default"].createElement(Explorer["default"], {
658
+ value: ((_last2 = reactRouter.last(router.store.currentMatches)) == null ? void 0 : _last2.store.loaderData) || {},
659
+ defaultExpanded: Object.keys(((_last3 = reactRouter.last(router.store.currentMatches)) == null ? void 0 : _last3.store.loaderData) || {}).reduce((obj, next) => {
627
660
  obj[next] = {};
628
661
  return obj;
629
662
  }, {})
@@ -644,9 +677,9 @@ const TanStackRouterDevtoolsPanel = /*#__PURE__*/React__default["default"].forwa
644
677
  style: {
645
678
  padding: '.5em'
646
679
  }
647
- }, Object.keys(((_last4 = reactRouter.last(router.state.currentMatches)) == null ? void 0 : _last4.search) || {}).length ? /*#__PURE__*/React__default["default"].createElement(Explorer["default"], {
648
- value: ((_last5 = reactRouter.last(router.state.currentMatches)) == null ? void 0 : _last5.search) || {},
649
- defaultExpanded: Object.keys(((_last6 = reactRouter.last(router.state.currentMatches)) == null ? void 0 : _last6.search) || {}).reduce((obj, next) => {
680
+ }, Object.keys(((_last4 = reactRouter.last(router.store.currentMatches)) == null ? void 0 : _last4.store.search) || {}).length ? /*#__PURE__*/React__default["default"].createElement(Explorer["default"], {
681
+ value: ((_last5 = reactRouter.last(router.store.currentMatches)) == null ? void 0 : _last5.store.search) || {},
682
+ defaultExpanded: Object.keys(((_last6 = reactRouter.last(router.store.currentMatches)) == null ? void 0 : _last6.store.search) || {}).reduce((obj, next) => {
650
683
  obj[next] = {};
651
684
  return obj;
652
685
  }, {})