@tanstack/router-devtools 1.16.6 → 1.17.1
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/Explorer.cjs +152 -92
- package/dist/cjs/Explorer.cjs.map +1 -1
- package/dist/cjs/Explorer.d.cts +0 -7
- package/dist/cjs/devtools.cjs +924 -905
- package/dist/cjs/devtools.cjs.map +1 -1
- package/dist/cjs/logo.cjs +1012 -0
- package/dist/cjs/logo.cjs.map +1 -0
- package/dist/cjs/logo.d.cts +2 -0
- package/dist/cjs/tokens.cjs +302 -0
- package/dist/cjs/tokens.cjs.map +1 -0
- package/dist/cjs/tokens.d.cts +298 -0
- package/dist/cjs/utils.cjs +5 -33
- package/dist/cjs/utils.cjs.map +1 -1
- package/dist/cjs/utils.d.cts +2 -2
- package/dist/esm/Explorer.d.ts +0 -7
- package/dist/esm/Explorer.js +153 -93
- package/dist/esm/Explorer.js.map +1 -1
- package/dist/esm/devtools.js +924 -905
- package/dist/esm/devtools.js.map +1 -1
- package/dist/esm/logo.d.ts +2 -0
- package/dist/esm/logo.js +1012 -0
- package/dist/esm/logo.js.map +1 -0
- package/dist/esm/tokens.d.ts +298 -0
- package/dist/esm/tokens.js +302 -0
- package/dist/esm/tokens.js.map +1 -0
- package/dist/esm/utils.d.ts +2 -2
- package/dist/esm/utils.js +5 -33
- package/dist/esm/utils.js.map +1 -1
- package/package.json +5 -2
- package/src/Explorer.tsx +155 -93
- package/src/devtools.tsx +974 -860
- package/src/logo.tsx +817 -0
- package/src/tokens.ts +305 -0
- package/src/utils.ts +12 -11
- package/dist/cjs/styledComponents.cjs +0 -93
- package/dist/cjs/styledComponents.cjs.map +0 -1
- package/dist/cjs/styledComponents.d.cts +0 -7
- package/dist/cjs/theme.cjs +0 -28
- package/dist/cjs/theme.cjs.map +0 -1
- package/dist/cjs/useMediaQuery.cjs +0 -27
- package/dist/cjs/useMediaQuery.cjs.map +0 -1
- package/dist/esm/styledComponents.d.ts +0 -7
- package/dist/esm/styledComponents.js +0 -93
- package/dist/esm/styledComponents.js.map +0 -1
- package/dist/esm/theme.js +0 -28
- package/dist/esm/theme.js.map +0 -1
- package/dist/esm/useMediaQuery.js +0 -28
- package/dist/esm/useMediaQuery.js.map +0 -1
- package/src/styledComponents.ts +0 -106
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React__default from "react";
|
|
2
|
-
function useMediaQuery(query) {
|
|
3
|
-
const [isMatch, setIsMatch] = React__default.useState(() => {
|
|
4
|
-
if (typeof window !== "undefined") {
|
|
5
|
-
return window.matchMedia && window.matchMedia(query).matches;
|
|
6
|
-
}
|
|
7
|
-
return;
|
|
8
|
-
});
|
|
9
|
-
React__default.useEffect(() => {
|
|
10
|
-
if (typeof window !== "undefined") {
|
|
11
|
-
if (!window.matchMedia) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
const matcher = window.matchMedia(query);
|
|
15
|
-
const onChange = ({ matches }) => setIsMatch(matches);
|
|
16
|
-
matcher.addListener(onChange);
|
|
17
|
-
return () => {
|
|
18
|
-
matcher.removeListener(onChange);
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
return;
|
|
22
|
-
}, [isMatch, query, setIsMatch]);
|
|
23
|
-
return isMatch;
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
useMediaQuery as default
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=useMediaQuery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMediaQuery.js","sources":["../../src/useMediaQuery.ts"],"sourcesContent":["import React from 'react'\n\nexport default function useMediaQuery(query: string): boolean | undefined {\n // Keep track of the preference in state, start with the current match\n const [isMatch, setIsMatch] = React.useState(() => {\n if (typeof window !== 'undefined') {\n return window.matchMedia && window.matchMedia(query).matches\n }\n return\n })\n\n // Watch for changes\n React.useEffect(() => {\n if (typeof window !== 'undefined') {\n if (!window.matchMedia) {\n return\n }\n\n // Create a matcher\n const matcher = window.matchMedia(query)\n\n // Create our handler\n const onChange = ({ matches }: { matches: boolean }) =>\n setIsMatch(matches)\n\n // Listen for changes\n matcher.addListener(onChange)\n\n return () => {\n // Stop listening for changes\n matcher.removeListener(onChange)\n }\n }\n\n return\n }, [isMatch, query, setIsMatch])\n\n return isMatch\n}\n"],"names":["React"],"mappings":";AAEA,SAAwB,cAAc,OAAoC;AAExE,QAAM,CAAC,SAAS,UAAU,IAAIA,eAAM,SAAS,MAAM;AAC7C,QAAA,OAAO,WAAW,aAAa;AACjC,aAAO,OAAO,cAAc,OAAO,WAAW,KAAK,EAAE;AAAA,IACvD;AACA;AAAA,EAAA,CACD;AAGDA,iBAAM,UAAU,MAAM;AAChB,QAAA,OAAO,WAAW,aAAa;AAC7B,UAAA,CAAC,OAAO,YAAY;AACtB;AAAA,MACF;AAGM,YAAA,UAAU,OAAO,WAAW,KAAK;AAGvC,YAAM,WAAW,CAAC,EAAE,QAAQ,MAC1B,WAAW,OAAO;AAGpB,cAAQ,YAAY,QAAQ;AAE5B,aAAO,MAAM;AAEX,gBAAQ,eAAe,QAAQ;AAAA,MAAA;AAAA,IAEnC;AAEA;AAAA,EACC,GAAA,CAAC,SAAS,OAAO,UAAU,CAAC;AAExB,SAAA;AACT;"}
|
package/src/styledComponents.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { styled } from './utils'
|
|
2
|
-
|
|
3
|
-
export const Panel = styled(
|
|
4
|
-
'div',
|
|
5
|
-
(_props, theme) => ({
|
|
6
|
-
fontSize: 'clamp(12px, 1.5vw, 14px)',
|
|
7
|
-
fontFamily: `sans-serif`,
|
|
8
|
-
display: 'flex',
|
|
9
|
-
backgroundColor: theme.background,
|
|
10
|
-
color: theme.foreground,
|
|
11
|
-
}),
|
|
12
|
-
{
|
|
13
|
-
'(max-width: 700px)': {
|
|
14
|
-
flexDirection: 'column',
|
|
15
|
-
},
|
|
16
|
-
'(max-width: 600px)': {
|
|
17
|
-
fontSize: '.9em',
|
|
18
|
-
// flexDirection: 'column',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
export const ActivePanel = styled(
|
|
24
|
-
'div',
|
|
25
|
-
() => ({
|
|
26
|
-
flex: '1 1 500px',
|
|
27
|
-
display: 'flex',
|
|
28
|
-
flexDirection: 'column',
|
|
29
|
-
overflow: 'auto',
|
|
30
|
-
height: '100%',
|
|
31
|
-
}),
|
|
32
|
-
{
|
|
33
|
-
'(max-width: 700px)': (_props, theme) => ({
|
|
34
|
-
borderTop: `2px solid ${theme.gray}`,
|
|
35
|
-
}),
|
|
36
|
-
},
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
export const Button = styled('button', (props, theme) => ({
|
|
40
|
-
appearance: 'none',
|
|
41
|
-
fontSize: '.9em',
|
|
42
|
-
fontWeight: 'bold',
|
|
43
|
-
background: theme.gray,
|
|
44
|
-
border: '0',
|
|
45
|
-
borderRadius: '.3em',
|
|
46
|
-
color: 'white',
|
|
47
|
-
padding: '.5em',
|
|
48
|
-
opacity: props.disabled ? '.5' : undefined,
|
|
49
|
-
cursor: 'pointer',
|
|
50
|
-
}))
|
|
51
|
-
|
|
52
|
-
// export const QueryKeys = styled('span', {
|
|
53
|
-
// display: 'inline-block',
|
|
54
|
-
// fontSize: '0.9em',
|
|
55
|
-
// })
|
|
56
|
-
|
|
57
|
-
// export const QueryKey = styled('span', {
|
|
58
|
-
// display: 'inline-flex',
|
|
59
|
-
// alignItems: 'center',
|
|
60
|
-
// padding: '.2em .4em',
|
|
61
|
-
// fontWeight: 'bold',
|
|
62
|
-
// textShadow: '0 0 10px black',
|
|
63
|
-
// borderRadius: '.2em',
|
|
64
|
-
// })
|
|
65
|
-
|
|
66
|
-
export const Code = styled('code', {
|
|
67
|
-
fontSize: '.9em',
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
export const Input = styled('input', (_props, theme) => ({
|
|
71
|
-
backgroundColor: theme.inputBackgroundColor,
|
|
72
|
-
border: 0,
|
|
73
|
-
borderRadius: '.2em',
|
|
74
|
-
color: theme.inputTextColor,
|
|
75
|
-
fontSize: '.9em',
|
|
76
|
-
lineHeight: `1.3`,
|
|
77
|
-
padding: '.3em .4em',
|
|
78
|
-
}))
|
|
79
|
-
|
|
80
|
-
export const Select = styled(
|
|
81
|
-
'select',
|
|
82
|
-
(_props, theme) => ({
|
|
83
|
-
display: `inline-block`,
|
|
84
|
-
fontSize: `.9em`,
|
|
85
|
-
fontFamily: `sans-serif`,
|
|
86
|
-
fontWeight: 'normal',
|
|
87
|
-
lineHeight: `1.3`,
|
|
88
|
-
padding: `.3em 1.5em .3em .5em`,
|
|
89
|
-
height: 'auto',
|
|
90
|
-
border: 0,
|
|
91
|
-
borderRadius: `.2em`,
|
|
92
|
-
appearance: `none`,
|
|
93
|
-
WebkitAppearance: 'none',
|
|
94
|
-
backgroundColor: theme.inputBackgroundColor,
|
|
95
|
-
backgroundImage: `url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>")`,
|
|
96
|
-
backgroundRepeat: `no-repeat`,
|
|
97
|
-
backgroundPosition: `right .55em center`,
|
|
98
|
-
backgroundSize: `.65em auto, 100%`,
|
|
99
|
-
color: theme.inputTextColor,
|
|
100
|
-
}),
|
|
101
|
-
{
|
|
102
|
-
'(max-width: 500px)': {
|
|
103
|
-
display: 'none',
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
)
|