@tanstack/react-query-devtools 4.3.0-beta.5 → 4.3.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/build/lib/Explorer.js +205 -0
- package/build/lib/Explorer.js.map +1 -0
- package/build/lib/Explorer.mjs +171 -0
- package/build/lib/Explorer.mjs.map +1 -0
- package/build/lib/Logo.js +56 -0
- package/build/lib/Logo.js.map +1 -0
- package/build/lib/Logo.mjs +32 -0
- package/build/lib/Logo.mjs.map +1 -0
- package/build/lib/_virtual/_rollupPluginBabelHelpers.js +23 -0
- package/build/lib/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
- package/build/lib/_virtual/_rollupPluginBabelHelpers.mjs +19 -0
- package/build/lib/_virtual/_rollupPluginBabelHelpers.mjs.map +1 -0
- package/build/lib/devtools.js +801 -0
- package/build/lib/devtools.js.map +1 -0
- package/build/lib/{index.prod.mjs → devtools.mjs} +13 -494
- package/build/lib/devtools.mjs.map +1 -0
- package/build/lib/index.js +3 -1277
- package/build/lib/index.js.map +1 -1
- package/build/lib/index.mjs +3 -1257
- package/build/lib/index.mjs.map +1 -1
- package/build/lib/screenreader.js +41 -0
- package/build/lib/screenreader.js.map +1 -0
- package/build/lib/screenreader.mjs +17 -0
- package/build/lib/screenreader.mjs.map +1 -0
- package/build/lib/styledComponents.js +103 -0
- package/build/lib/styledComponents.js.map +1 -0
- package/build/lib/styledComponents.mjs +92 -0
- package/build/lib/styledComponents.mjs.map +1 -0
- package/build/lib/theme.js +58 -0
- package/build/lib/theme.js.map +1 -0
- package/build/lib/theme.mjs +32 -0
- package/build/lib/theme.mjs.map +1 -0
- package/build/lib/useLocalStorage.js +71 -0
- package/build/lib/useLocalStorage.js.map +1 -0
- package/build/lib/useLocalStorage.mjs +47 -0
- package/build/lib/useLocalStorage.mjs.map +1 -0
- package/build/lib/useMediaQuery.js +56 -0
- package/build/lib/useMediaQuery.js.map +1 -0
- package/build/lib/useMediaQuery.mjs +32 -0
- package/build/lib/useMediaQuery.mjs.map +1 -0
- package/build/lib/utils.d.ts +0 -1
- package/build/lib/utils.js +101 -0
- package/build/lib/utils.js.map +1 -0
- package/build/lib/utils.mjs +72 -0
- package/build/lib/utils.mjs.map +1 -0
- package/build/umd/index.development.js +2 -14
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +0 -10
- package/build/umd/index.production.js.map +1 -1
- package/package.json +7 -2
- package/src/devtools.tsx +1 -3
- package/src/utils.ts +1 -3
- package/build/lib/index.prod.js +0 -1282
- package/build/lib/index.prod.js.map +0 -1
- package/build/lib/index.prod.mjs.map +0 -1
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* react-query-devtools
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) TanStack
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
1
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactQueryDevtools={})}(this,(function(e){"use strict";e.ReactQueryDevtools=function(){return null},e.ReactQueryDevtoolsPanel=function(){return null},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
12
2
|
//# sourceMappingURL=index.production.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.production.js","sources":["../../src/index.ts"],"sourcesContent":["import * as devtools from './devtools'\n\nexport const ReactQueryDevtools: typeof devtools['ReactQueryDevtools'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : devtools.ReactQueryDevtools\n\nexport const ReactQueryDevtoolsPanel: typeof devtools['ReactQueryDevtoolsPanel'] =\n process.env.NODE_ENV !== 'development'\n ? (function () {\n return null\n } as any)\n : devtools.ReactQueryDevtoolsPanel\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.production.js","sources":["../../src/index.ts"],"sourcesContent":["import * as devtools from './devtools'\n\nexport const ReactQueryDevtools: typeof devtools['ReactQueryDevtools'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : devtools.ReactQueryDevtools\n\nexport const ReactQueryDevtoolsPanel: typeof devtools['ReactQueryDevtoolsPanel'] =\n process.env.NODE_ENV !== 'development'\n ? (function () {\n return null\n } as any)\n : devtools.ReactQueryDevtoolsPanel\n"],"names":[],"mappings":"+QAIM,WACE,OAAO,gCAMR,WACC,OAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-query-devtools",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,6 +18,11 @@
|
|
|
18
18
|
"import": "./build/lib/index.mjs",
|
|
19
19
|
"default": "./build/lib/index.js"
|
|
20
20
|
},
|
|
21
|
+
"./production": {
|
|
22
|
+
"types": "./build/lib/index.d.ts",
|
|
23
|
+
"import": "./build/lib/index.prod.mjs",
|
|
24
|
+
"default": "./build/lib/index.prod.js"
|
|
25
|
+
},
|
|
21
26
|
"./build/lib/index.prod.js": {
|
|
22
27
|
"types": "./build/lib/index.d.ts",
|
|
23
28
|
"import": "./build/lib/index.prod.mjs",
|
|
@@ -45,6 +50,6 @@
|
|
|
45
50
|
"peerDependencies": {
|
|
46
51
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
47
52
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
48
|
-
"@tanstack/react-query": "4.3.
|
|
53
|
+
"@tanstack/react-query": "4.3.1"
|
|
49
54
|
}
|
|
50
55
|
}
|
package/src/devtools.tsx
CHANGED
|
@@ -99,8 +99,6 @@ interface DevtoolsPanelOptions extends ContextOptions {
|
|
|
99
99
|
handleDragStart: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
const isServer = typeof window === 'undefined'
|
|
103
|
-
|
|
104
102
|
export function ReactQueryDevtools({
|
|
105
103
|
initialIsOpen,
|
|
106
104
|
panelProps = {},
|
|
@@ -192,7 +190,7 @@ export function ReactQueryDevtools({
|
|
|
192
190
|
}
|
|
193
191
|
}, [isResolvedOpen])
|
|
194
192
|
|
|
195
|
-
React
|
|
193
|
+
React.useEffect(() => {
|
|
196
194
|
if (isResolvedOpen) {
|
|
197
195
|
const previousValue = rootRef.current?.parentElement?.style.paddingBottom
|
|
198
196
|
|
package/src/utils.ts
CHANGED
|
@@ -4,8 +4,6 @@ import type { Query } from '@tanstack/react-query'
|
|
|
4
4
|
import { Theme, useTheme } from './theme'
|
|
5
5
|
import useMediaQuery from './useMediaQuery'
|
|
6
6
|
|
|
7
|
-
export const isServer = typeof window === 'undefined'
|
|
8
|
-
|
|
9
7
|
type StyledComponent<T> = T extends 'button'
|
|
10
8
|
? React.DetailedHTMLProps<
|
|
11
9
|
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
@@ -104,7 +102,7 @@ export function useIsMounted() {
|
|
|
104
102
|
const mountedRef = React.useRef(false)
|
|
105
103
|
const isMounted = React.useCallback(() => mountedRef.current, [])
|
|
106
104
|
|
|
107
|
-
React
|
|
105
|
+
React.useEffect(() => {
|
|
108
106
|
mountedRef.current = true
|
|
109
107
|
return () => {
|
|
110
108
|
mountedRef.current = false
|