@tanstack/router-devtools 0.0.1-beta.184 → 0.0.1-beta.186

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tanstack/router-devtools",
3
3
  "author": "Tanner Linsley",
4
- "version": "0.0.1-beta.184",
4
+ "version": "0.0.1-beta.186",
5
5
  "license": "MIT",
6
6
  "repository": "tanstack/router",
7
7
  "homepage": "https://tanstack.com/router/",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@babel/runtime": "^7.16.7",
43
43
  "date-fns": "^2.29.1",
44
- "@tanstack/react-router": "0.0.1-beta.184"
44
+ "@tanstack/react-router": "0.0.1-beta.186"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "rollup --config rollup.config.js"
package/src/devtools.tsx CHANGED
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
2
  import {
3
- last,
4
3
  routerContext,
5
4
  invariant,
6
5
  AnyRouter,
@@ -8,9 +7,7 @@ import {
8
7
  Route,
9
8
  AnyRoute,
10
9
  AnyRootRoute,
11
- RouteMatch,
12
10
  trimPath,
13
- useRouterState,
14
11
  } from '@tanstack/react-router'
15
12
 
16
13
  import useLocalStorage from './useLocalStorage'
@@ -720,6 +717,60 @@ export const TanStackRouterDevtoolsPanel = React.forwardRef<
720
717
  display: 'flex',
721
718
  alignItems: 'center',
722
719
  gap: '.5rem',
720
+ fontWeight: 'bold',
721
+ }}
722
+ >
723
+ Pathname{' '}
724
+ {router.state.location.maskedLocation ? (
725
+ <div
726
+ style={{
727
+ padding: '.1rem .5rem',
728
+ background: theme.warning,
729
+ color: 'black',
730
+ borderRadius: '.5rem',
731
+ }}
732
+ >
733
+ Masked
734
+ </div>
735
+ ) : null}
736
+ </div>
737
+ <div
738
+ style={{
739
+ padding: '.5rem',
740
+ display: 'flex',
741
+ gap: '.5rem',
742
+ alignItems: 'center',
743
+ }}
744
+ >
745
+ <code
746
+ style={{
747
+ opacity: 0.6,
748
+ }}
749
+ >
750
+ {router.state.location.pathname}
751
+ </code>
752
+ {router.state.location.maskedLocation ? (
753
+ <code
754
+ style={{
755
+ color: theme.warning,
756
+ fontWeight: 'bold',
757
+ }}
758
+ >
759
+ {router.state.location.maskedLocation.pathname}
760
+ </code>
761
+ ) : null}
762
+ </div>
763
+ <div
764
+ style={{
765
+ padding: '.5em',
766
+ background: theme.backgroundAlt,
767
+ position: 'sticky',
768
+ top: 0,
769
+ zIndex: 1,
770
+ display: 'flex',
771
+ alignItems: 'center',
772
+ gap: '.5rem',
773
+ fontWeight: 'bold',
723
774
  }}
724
775
  >
725
776
  <button
@@ -839,6 +890,7 @@ export const TanStackRouterDevtoolsPanel = React.forwardRef<
839
890
  display: 'flex',
840
891
  alignItems: 'center',
841
892
  gap: '.5rem',
893
+ fontWeight: 'bold',
842
894
  }}
843
895
  >
844
896
  Preloaded Matches
@@ -1016,6 +1068,7 @@ export const TanStackRouterDevtoolsPanel = React.forwardRef<
1016
1068
  top: 0,
1017
1069
  bottom: 0,
1018
1070
  zIndex: 1,
1071
+ fontWeight: 'bold',
1019
1072
  }}
1020
1073
  >
1021
1074
  Search Params