@tanstack/query-devtools 5.52.3 → 5.54.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.
- package/build/DevtoolsComponent/AIPVUCAN.js +39 -0
- package/build/DevtoolsComponent/PTNKQWC6.js +39 -0
- package/build/DevtoolsPanelComponent/SA34RK37.js +48 -0
- package/build/DevtoolsPanelComponent/YCAYD3IW.js +48 -0
- package/build/{Devtools/E6UWR6XD.js → chunk/7U2COR24.js} +935 -889
- package/build/{Devtools/2FJCTAHO.js → chunk/WK5KHUSK.js} +935 -889
- package/build/dev.cjs +1700 -1385
- package/build/dev.js +129 -3
- package/build/index.cjs +1700 -1385
- package/build/index.d.cts +20 -1
- package/build/index.d.ts +20 -1
- package/build/index.js +129 -3
- package/package.json +2 -2
- package/src/Devtools.tsx +200 -324
- package/src/DevtoolsComponent.tsx +36 -0
- package/src/DevtoolsPanelComponent.tsx +47 -0
- package/src/Explorer.tsx +1 -1
- package/src/{index.tsx → TanstackQueryDevtools.tsx} +2 -3
- package/src/TanstackQueryDevtoolsPanel.tsx +153 -0
- package/src/constants.ts +17 -0
- package/src/contexts/PiPContext.tsx +191 -0
- package/src/{Context.ts → contexts/QueryDevtoolsContext.ts} +1 -9
- package/src/contexts/ThemeContext.ts +10 -0
- package/src/contexts/index.ts +3 -0
- package/src/index.ts +13 -0
- package/src/utils.tsx +1 -1
- package/build/Devtools/2DN67TWN.jsx +0 -12505
- package/build/Devtools/EFVQE642.jsx +0 -12504
- package/build/chunk/G72LLS32.jsx +0 -2939
- package/build/chunk/H7KAW27I.jsx +0 -2940
- package/build/dev.jsx +0 -117
- package/build/index.jsx +0 -117
package/build/dev.jsx
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createSignal,
|
|
3
|
-
lazy,
|
|
4
|
-
render,
|
|
5
|
-
setupStyleSheet
|
|
6
|
-
} from "./chunk/H7KAW27I.jsx";
|
|
7
|
-
|
|
8
|
-
// src/index.tsx
|
|
9
|
-
var TanstackQueryDevtools = class {
|
|
10
|
-
#client;
|
|
11
|
-
#onlineManager;
|
|
12
|
-
#queryFlavor;
|
|
13
|
-
#version;
|
|
14
|
-
#isMounted = false;
|
|
15
|
-
#styleNonce;
|
|
16
|
-
#shadowDOMTarget;
|
|
17
|
-
#buttonPosition;
|
|
18
|
-
#position;
|
|
19
|
-
#initialIsOpen;
|
|
20
|
-
#errorTypes;
|
|
21
|
-
#Component;
|
|
22
|
-
#dispose;
|
|
23
|
-
constructor(config) {
|
|
24
|
-
const {
|
|
25
|
-
client,
|
|
26
|
-
queryFlavor,
|
|
27
|
-
version,
|
|
28
|
-
onlineManager,
|
|
29
|
-
buttonPosition,
|
|
30
|
-
position,
|
|
31
|
-
initialIsOpen,
|
|
32
|
-
errorTypes,
|
|
33
|
-
styleNonce,
|
|
34
|
-
shadowDOMTarget
|
|
35
|
-
} = config;
|
|
36
|
-
this.#client = createSignal(client);
|
|
37
|
-
this.#queryFlavor = queryFlavor;
|
|
38
|
-
this.#version = version;
|
|
39
|
-
this.#onlineManager = onlineManager;
|
|
40
|
-
this.#styleNonce = styleNonce;
|
|
41
|
-
this.#shadowDOMTarget = shadowDOMTarget;
|
|
42
|
-
this.#buttonPosition = createSignal(buttonPosition);
|
|
43
|
-
this.#position = createSignal(position);
|
|
44
|
-
this.#initialIsOpen = createSignal(initialIsOpen);
|
|
45
|
-
this.#errorTypes = createSignal(errorTypes);
|
|
46
|
-
}
|
|
47
|
-
setButtonPosition(position) {
|
|
48
|
-
this.#buttonPosition[1](position);
|
|
49
|
-
}
|
|
50
|
-
setPosition(position) {
|
|
51
|
-
this.#position[1](position);
|
|
52
|
-
}
|
|
53
|
-
setInitialIsOpen(isOpen) {
|
|
54
|
-
this.#initialIsOpen[1](isOpen);
|
|
55
|
-
}
|
|
56
|
-
setErrorTypes(errorTypes) {
|
|
57
|
-
this.#errorTypes[1](errorTypes);
|
|
58
|
-
}
|
|
59
|
-
setClient(client) {
|
|
60
|
-
this.#client[1](client);
|
|
61
|
-
}
|
|
62
|
-
mount(el) {
|
|
63
|
-
if (this.#isMounted) {
|
|
64
|
-
throw new Error("Devtools is already mounted");
|
|
65
|
-
}
|
|
66
|
-
const dispose = render(() => {
|
|
67
|
-
const [btnPosition] = this.#buttonPosition;
|
|
68
|
-
const [pos] = this.#position;
|
|
69
|
-
const [isOpen] = this.#initialIsOpen;
|
|
70
|
-
const [errors] = this.#errorTypes;
|
|
71
|
-
const [queryClient] = this.#client;
|
|
72
|
-
let Devtools;
|
|
73
|
-
if (this.#Component) {
|
|
74
|
-
Devtools = this.#Component;
|
|
75
|
-
} else {
|
|
76
|
-
Devtools = lazy(() => import("./Devtools/2DN67TWN.jsx"));
|
|
77
|
-
this.#Component = Devtools;
|
|
78
|
-
}
|
|
79
|
-
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
80
|
-
return <Devtools
|
|
81
|
-
queryFlavor={this.#queryFlavor}
|
|
82
|
-
version={this.#version}
|
|
83
|
-
onlineManager={this.#onlineManager}
|
|
84
|
-
shadowDOMTarget={this.#shadowDOMTarget}
|
|
85
|
-
{...{
|
|
86
|
-
get client() {
|
|
87
|
-
return queryClient();
|
|
88
|
-
},
|
|
89
|
-
get buttonPosition() {
|
|
90
|
-
return btnPosition();
|
|
91
|
-
},
|
|
92
|
-
get position() {
|
|
93
|
-
return pos();
|
|
94
|
-
},
|
|
95
|
-
get initialIsOpen() {
|
|
96
|
-
return isOpen();
|
|
97
|
-
},
|
|
98
|
-
get errorTypes() {
|
|
99
|
-
return errors();
|
|
100
|
-
}
|
|
101
|
-
}}
|
|
102
|
-
/>;
|
|
103
|
-
}, el);
|
|
104
|
-
this.#isMounted = true;
|
|
105
|
-
this.#dispose = dispose;
|
|
106
|
-
}
|
|
107
|
-
unmount() {
|
|
108
|
-
if (!this.#isMounted) {
|
|
109
|
-
throw new Error("Devtools is not mounted");
|
|
110
|
-
}
|
|
111
|
-
this.#dispose?.();
|
|
112
|
-
this.#isMounted = false;
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
export {
|
|
116
|
-
TanstackQueryDevtools
|
|
117
|
-
};
|
package/build/index.jsx
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createSignal,
|
|
3
|
-
lazy,
|
|
4
|
-
render,
|
|
5
|
-
setupStyleSheet
|
|
6
|
-
} from "./chunk/G72LLS32.jsx";
|
|
7
|
-
|
|
8
|
-
// src/index.tsx
|
|
9
|
-
var TanstackQueryDevtools = class {
|
|
10
|
-
#client;
|
|
11
|
-
#onlineManager;
|
|
12
|
-
#queryFlavor;
|
|
13
|
-
#version;
|
|
14
|
-
#isMounted = false;
|
|
15
|
-
#styleNonce;
|
|
16
|
-
#shadowDOMTarget;
|
|
17
|
-
#buttonPosition;
|
|
18
|
-
#position;
|
|
19
|
-
#initialIsOpen;
|
|
20
|
-
#errorTypes;
|
|
21
|
-
#Component;
|
|
22
|
-
#dispose;
|
|
23
|
-
constructor(config) {
|
|
24
|
-
const {
|
|
25
|
-
client,
|
|
26
|
-
queryFlavor,
|
|
27
|
-
version,
|
|
28
|
-
onlineManager,
|
|
29
|
-
buttonPosition,
|
|
30
|
-
position,
|
|
31
|
-
initialIsOpen,
|
|
32
|
-
errorTypes,
|
|
33
|
-
styleNonce,
|
|
34
|
-
shadowDOMTarget
|
|
35
|
-
} = config;
|
|
36
|
-
this.#client = createSignal(client);
|
|
37
|
-
this.#queryFlavor = queryFlavor;
|
|
38
|
-
this.#version = version;
|
|
39
|
-
this.#onlineManager = onlineManager;
|
|
40
|
-
this.#styleNonce = styleNonce;
|
|
41
|
-
this.#shadowDOMTarget = shadowDOMTarget;
|
|
42
|
-
this.#buttonPosition = createSignal(buttonPosition);
|
|
43
|
-
this.#position = createSignal(position);
|
|
44
|
-
this.#initialIsOpen = createSignal(initialIsOpen);
|
|
45
|
-
this.#errorTypes = createSignal(errorTypes);
|
|
46
|
-
}
|
|
47
|
-
setButtonPosition(position) {
|
|
48
|
-
this.#buttonPosition[1](position);
|
|
49
|
-
}
|
|
50
|
-
setPosition(position) {
|
|
51
|
-
this.#position[1](position);
|
|
52
|
-
}
|
|
53
|
-
setInitialIsOpen(isOpen) {
|
|
54
|
-
this.#initialIsOpen[1](isOpen);
|
|
55
|
-
}
|
|
56
|
-
setErrorTypes(errorTypes) {
|
|
57
|
-
this.#errorTypes[1](errorTypes);
|
|
58
|
-
}
|
|
59
|
-
setClient(client) {
|
|
60
|
-
this.#client[1](client);
|
|
61
|
-
}
|
|
62
|
-
mount(el) {
|
|
63
|
-
if (this.#isMounted) {
|
|
64
|
-
throw new Error("Devtools is already mounted");
|
|
65
|
-
}
|
|
66
|
-
const dispose = render(() => {
|
|
67
|
-
const [btnPosition] = this.#buttonPosition;
|
|
68
|
-
const [pos] = this.#position;
|
|
69
|
-
const [isOpen] = this.#initialIsOpen;
|
|
70
|
-
const [errors] = this.#errorTypes;
|
|
71
|
-
const [queryClient] = this.#client;
|
|
72
|
-
let Devtools;
|
|
73
|
-
if (this.#Component) {
|
|
74
|
-
Devtools = this.#Component;
|
|
75
|
-
} else {
|
|
76
|
-
Devtools = lazy(() => import("./Devtools/EFVQE642.jsx"));
|
|
77
|
-
this.#Component = Devtools;
|
|
78
|
-
}
|
|
79
|
-
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
80
|
-
return <Devtools
|
|
81
|
-
queryFlavor={this.#queryFlavor}
|
|
82
|
-
version={this.#version}
|
|
83
|
-
onlineManager={this.#onlineManager}
|
|
84
|
-
shadowDOMTarget={this.#shadowDOMTarget}
|
|
85
|
-
{...{
|
|
86
|
-
get client() {
|
|
87
|
-
return queryClient();
|
|
88
|
-
},
|
|
89
|
-
get buttonPosition() {
|
|
90
|
-
return btnPosition();
|
|
91
|
-
},
|
|
92
|
-
get position() {
|
|
93
|
-
return pos();
|
|
94
|
-
},
|
|
95
|
-
get initialIsOpen() {
|
|
96
|
-
return isOpen();
|
|
97
|
-
},
|
|
98
|
-
get errorTypes() {
|
|
99
|
-
return errors();
|
|
100
|
-
}
|
|
101
|
-
}}
|
|
102
|
-
/>;
|
|
103
|
-
}, el);
|
|
104
|
-
this.#isMounted = true;
|
|
105
|
-
this.#dispose = dispose;
|
|
106
|
-
}
|
|
107
|
-
unmount() {
|
|
108
|
-
if (!this.#isMounted) {
|
|
109
|
-
throw new Error("Devtools is not mounted");
|
|
110
|
-
}
|
|
111
|
-
this.#dispose?.();
|
|
112
|
-
this.#isMounted = false;
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
export {
|
|
116
|
-
TanstackQueryDevtools
|
|
117
|
-
};
|