@tanstack/router-devtools 1.40.0 → 1.41.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.
@@ -3,7 +3,7 @@ type ExpanderProps = {
3
3
  expanded: boolean;
4
4
  style?: React.CSSProperties;
5
5
  };
6
- export declare const Expander: ({ expanded, style }: ExpanderProps) => React.JSX.Element;
6
+ export declare const Expander: ({ expanded, style }: ExpanderProps) => import("react/jsx-runtime").JSX.Element;
7
7
  type Entry = {
8
8
  label: string;
9
9
  };
@@ -1,3 +1 @@
1
- import { default as React } from 'react';
2
-
3
- export declare function TanStackLogo(): React.JSX.Element;
1
+ export declare function TanStackLogo(): import("react/jsx-runtime").JSX.Element;
@@ -18,7 +18,7 @@ interface ProviderProps {
18
18
  theme: Theme;
19
19
  children?: React.ReactNode;
20
20
  }
21
- export declare function ThemeProvider({ theme, ...rest }: ProviderProps): React.JSX.Element;
21
+ export declare function ThemeProvider({ theme, ...rest }: ProviderProps): import("react/jsx-runtime").JSX.Element;
22
22
  export declare function useTheme(): {
23
23
  readonly background: "#222222";
24
24
  readonly backgroundAlt: "#292929";
@@ -3,7 +3,7 @@ type ExpanderProps = {
3
3
  expanded: boolean;
4
4
  style?: React.CSSProperties;
5
5
  };
6
- export declare const Expander: ({ expanded, style }: ExpanderProps) => React.JSX.Element;
6
+ export declare const Expander: ({ expanded, style }: ExpanderProps) => import("react/jsx-runtime").JSX.Element;
7
7
  type Entry = {
8
8
  label: string;
9
9
  };
@@ -1,3 +1 @@
1
- import { default as React } from 'react';
2
-
3
- export declare function TanStackLogo(): React.JSX.Element;
1
+ export declare function TanStackLogo(): import("react/jsx-runtime").JSX.Element;
@@ -18,7 +18,7 @@ interface ProviderProps {
18
18
  theme: Theme;
19
19
  children?: React.ReactNode;
20
20
  }
21
- export declare function ThemeProvider({ theme, ...rest }: ProviderProps): React.JSX.Element;
21
+ export declare function ThemeProvider({ theme, ...rest }: ProviderProps): import("react/jsx-runtime").JSX.Element;
22
22
  export declare function useTheme(): {
23
23
  readonly background: "#222222";
24
24
  readonly backgroundAlt: "#292929";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/router-devtools",
3
- "version": "1.40.0",
3
+ "version": "1.41.0",
4
4
  "description": "",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -59,9 +59,9 @@
59
59
  "react-dom": "^18.2.0"
60
60
  },
61
61
  "peerDependencies": {
62
- "react": ">=16.8",
63
- "react-dom": ">=16.8",
64
- "@tanstack/react-router": "^1.40.0"
62
+ "react": ">=18",
63
+ "react-dom": ">=18",
64
+ "@tanstack/react-router": "^1.41.0"
65
65
  },
66
66
  "scripts": {}
67
67
  }
@@ -4,7 +4,7 @@ export default function useMediaQuery(query: string): boolean | undefined {
4
4
  // Keep track of the preference in state, start with the current match
5
5
  const [isMatch, setIsMatch] = React.useState(() => {
6
6
  if (typeof window !== 'undefined') {
7
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
7
+ // eslint-disable-next-line ts/no-unnecessary-condition
8
8
  return window.matchMedia && window.matchMedia(query).matches
9
9
  }
10
10
  return
@@ -13,7 +13,7 @@ export default function useMediaQuery(query: string): boolean | undefined {
13
13
  // Watch for changes
14
14
  React.useEffect(() => {
15
15
  if (typeof window !== 'undefined') {
16
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
16
+ // eslint-disable-next-line ts/no-unnecessary-condition
17
17
  if (!window.matchMedia) {
18
18
  return
19
19
  }