@tanstack/solid-query-devtools 6.0.0-rc.5 → 6.0.0-rc.6
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/clientOnly-CEXX5Ps8.jsx +26 -0
- package/build/clientOnly-Cmw5kOEH.cjs +1 -0
- package/build/clientOnly-lrJ-FwVZ.js +2 -0
- package/build/clientOnly-lrJ-FwVZ.js.map +1 -0
- package/build/dev.cjs +29 -314
- package/build/dev.js +27 -23
- package/build/dev.jsx +27 -43
- package/build/devtools-BMem5cUa.jsx +62 -0
- package/build/devtools-DMwvwc4L.js +67 -0
- package/build/devtools-DPfipH2Y.js +2 -0
- package/build/devtools-DPfipH2Y.js.map +1 -0
- package/build/devtools-TPMm0sW8.cjs +1 -0
- package/build/devtools-m6r1o8lz.cjs +67 -0
- package/build/devtoolsPanel-BIXzHW6Y.cjs +1 -0
- package/build/devtoolsPanel-BbBQ7vKt.cjs +68 -0
- package/build/devtoolsPanel-CU_iFbJ3.jsx +62 -0
- package/build/devtoolsPanel-D71UlGwy.js +68 -0
- package/build/devtoolsPanel-DLEdindg.d.ts +106 -0
- package/build/devtoolsPanel-DLEdindg.d.ts.map +1 -0
- package/build/devtoolsPanel-Q67Cz4BM.d.cts +106 -0
- package/build/devtoolsPanel-Q67Cz4BM.d.cts.map +1 -0
- package/build/devtoolsPanel-hmH3gOTU.js +2 -0
- package/build/devtoolsPanel-hmH3gOTU.js.map +1 -0
- package/build/index.cjs +1 -288
- package/build/index.d.cts +5 -3
- package/build/index.d.cts.map +1 -0
- package/build/index.d.ts +5 -3
- package/build/index.d.ts.map +1 -0
- package/build/index.js +2 -29
- package/build/index.js.map +1 -0
- package/build/index.jsx +7 -46
- package/build/production.cjs +1 -0
- package/build/production.d.cts +5 -0
- package/build/production.d.cts.map +1 -0
- package/build/production.d.ts +5 -0
- package/build/production.d.ts.map +1 -0
- package/build/production.js +2 -0
- package/build/production.js.map +1 -0
- package/build/production.jsx +5 -0
- package/package.json +51 -40
- package/src/clientOnly.tsx +6 -5
- package/src/devtools.tsx +14 -6
- package/src/devtoolsPanel.tsx +20 -5
- package/src/production.tsx +12 -0
- package/build/_tsup-dts-rollup.d.cts +0 -109
- package/build/_tsup-dts-rollup.d.ts +0 -109
- package/build/chunk/L2WCKKHK.js +0 -94
- package/build/chunk/OQETK3NG.js +0 -123
- package/build/dev.d.cts +0 -3
- package/build/dev.d.ts +0 -3
- package/build/devtools/7WZM3IT7.jsx +0 -82
- package/build/devtools/V6WOBMVN.js +0 -68
- package/build/devtools/WQPACNKE.js +0 -68
- package/build/devtoolsPanel/6IZHMMFI.js +0 -71
- package/build/devtoolsPanel/FQC5JHFZ.jsx +0 -73
- package/build/devtoolsPanel/HZIEZL6U.js +0 -71
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { ref, template } from '../chunk/OQETK3NG.js';
|
|
2
|
-
import { createMemo, createEffect, onSettled, runWithOwner } from 'solid-js';
|
|
3
|
-
import { useQueryClient, onlineManager } from '@tanstack/solid-query';
|
|
4
|
-
import { TanstackQueryDevtools } from '@tanstack/query-devtools';
|
|
5
|
-
|
|
6
|
-
var _tmpl$ = /* @__PURE__ */ template(`<div class=tsqd-parent-container>`);
|
|
7
|
-
function SolidQueryDevtools(props) {
|
|
8
|
-
const queryClient = useQueryClient(props.client);
|
|
9
|
-
const client = createMemo(() => queryClient);
|
|
10
|
-
let ref2;
|
|
11
|
-
const devtools = new TanstackQueryDevtools({
|
|
12
|
-
client: client(),
|
|
13
|
-
queryFlavor: "Solid Query",
|
|
14
|
-
version: "5",
|
|
15
|
-
onlineManager,
|
|
16
|
-
buttonPosition: props.buttonPosition,
|
|
17
|
-
position: props.position,
|
|
18
|
-
initialIsOpen: props.initialIsOpen,
|
|
19
|
-
errorTypes: props.errorTypes,
|
|
20
|
-
styleNonce: props.styleNonce,
|
|
21
|
-
shadowDOMTarget: props.shadowDOMTarget,
|
|
22
|
-
hideDisabledQueries: props.hideDisabledQueries,
|
|
23
|
-
theme: props.theme
|
|
24
|
-
});
|
|
25
|
-
createEffect(() => client(), (c) => {
|
|
26
|
-
devtools.setClient(c);
|
|
27
|
-
});
|
|
28
|
-
createEffect(() => props.buttonPosition, (buttonPos) => {
|
|
29
|
-
if (buttonPos) {
|
|
30
|
-
devtools.setButtonPosition(buttonPos);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
createEffect(() => props.position, (pos) => {
|
|
34
|
-
if (pos) {
|
|
35
|
-
devtools.setPosition(pos);
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
createEffect(() => props.initialIsOpen, (initialIsOpen) => {
|
|
39
|
-
devtools.setInitialIsOpen(initialIsOpen || false);
|
|
40
|
-
});
|
|
41
|
-
createEffect(() => props.errorTypes, (errorTypes) => {
|
|
42
|
-
devtools.setErrorTypes(errorTypes || []);
|
|
43
|
-
});
|
|
44
|
-
createEffect(() => props.theme, (theme) => {
|
|
45
|
-
devtools.setTheme(theme || "system");
|
|
46
|
-
});
|
|
47
|
-
let mounted = false;
|
|
48
|
-
let disposed = false;
|
|
49
|
-
onSettled(() => {
|
|
50
|
-
queueMicrotask(() => {
|
|
51
|
-
if (disposed) return;
|
|
52
|
-
runWithOwner(null, () => devtools.mount(ref2));
|
|
53
|
-
mounted = true;
|
|
54
|
-
});
|
|
55
|
-
return () => {
|
|
56
|
-
disposed = true;
|
|
57
|
-
if (mounted) {
|
|
58
|
-
devtools.unmount();
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
});
|
|
62
|
-
var _el$ = _tmpl$();
|
|
63
|
-
var _ref$ = ref2;
|
|
64
|
-
typeof _ref$ === "function" || Array.isArray(_ref$) ? ref(() => _ref$, _el$) : ref2 = _el$;
|
|
65
|
-
return _el$;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export { SolidQueryDevtools as default };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { ref, template } from '../chunk/L2WCKKHK.js';
|
|
2
|
-
import { createMemo, createEffect, onSettled, runWithOwner } from 'solid-js';
|
|
3
|
-
import { useQueryClient, onlineManager } from '@tanstack/solid-query';
|
|
4
|
-
import { TanstackQueryDevtools } from '@tanstack/query-devtools';
|
|
5
|
-
|
|
6
|
-
var _tmpl$ = /* @__PURE__ */ template(`<div class=tsqd-parent-container>`);
|
|
7
|
-
function SolidQueryDevtools(props) {
|
|
8
|
-
const queryClient = useQueryClient(props.client);
|
|
9
|
-
const client = createMemo(() => queryClient);
|
|
10
|
-
let ref2;
|
|
11
|
-
const devtools = new TanstackQueryDevtools({
|
|
12
|
-
client: client(),
|
|
13
|
-
queryFlavor: "Solid Query",
|
|
14
|
-
version: "5",
|
|
15
|
-
onlineManager,
|
|
16
|
-
buttonPosition: props.buttonPosition,
|
|
17
|
-
position: props.position,
|
|
18
|
-
initialIsOpen: props.initialIsOpen,
|
|
19
|
-
errorTypes: props.errorTypes,
|
|
20
|
-
styleNonce: props.styleNonce,
|
|
21
|
-
shadowDOMTarget: props.shadowDOMTarget,
|
|
22
|
-
hideDisabledQueries: props.hideDisabledQueries,
|
|
23
|
-
theme: props.theme
|
|
24
|
-
});
|
|
25
|
-
createEffect(() => client(), (c) => {
|
|
26
|
-
devtools.setClient(c);
|
|
27
|
-
});
|
|
28
|
-
createEffect(() => props.buttonPosition, (buttonPos) => {
|
|
29
|
-
if (buttonPos) {
|
|
30
|
-
devtools.setButtonPosition(buttonPos);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
createEffect(() => props.position, (pos) => {
|
|
34
|
-
if (pos) {
|
|
35
|
-
devtools.setPosition(pos);
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
createEffect(() => props.initialIsOpen, (initialIsOpen) => {
|
|
39
|
-
devtools.setInitialIsOpen(initialIsOpen || false);
|
|
40
|
-
});
|
|
41
|
-
createEffect(() => props.errorTypes, (errorTypes) => {
|
|
42
|
-
devtools.setErrorTypes(errorTypes || []);
|
|
43
|
-
});
|
|
44
|
-
createEffect(() => props.theme, (theme) => {
|
|
45
|
-
devtools.setTheme(theme || "system");
|
|
46
|
-
});
|
|
47
|
-
let mounted = false;
|
|
48
|
-
let disposed = false;
|
|
49
|
-
onSettled(() => {
|
|
50
|
-
queueMicrotask(() => {
|
|
51
|
-
if (disposed) return;
|
|
52
|
-
runWithOwner(null, () => devtools.mount(ref2));
|
|
53
|
-
mounted = true;
|
|
54
|
-
});
|
|
55
|
-
return () => {
|
|
56
|
-
disposed = true;
|
|
57
|
-
if (mounted) {
|
|
58
|
-
devtools.unmount();
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
});
|
|
62
|
-
var _el$ = _tmpl$();
|
|
63
|
-
var _ref$ = ref2;
|
|
64
|
-
typeof _ref$ === "function" || Array.isArray(_ref$) ? ref(() => _ref$, _el$) : ref2 = _el$;
|
|
65
|
-
return _el$;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export { SolidQueryDevtools as default };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ref, effect, style, template } from '../chunk/OQETK3NG.js';
|
|
2
|
-
import { createMemo, createEffect, onSettled, runWithOwner } from 'solid-js';
|
|
3
|
-
import { useQueryClient, onlineManager } from '@tanstack/solid-query';
|
|
4
|
-
import { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools';
|
|
5
|
-
|
|
6
|
-
var _tmpl$ = /* @__PURE__ */ template(`<div class=tsqd-parent-container style=height:500px>`);
|
|
7
|
-
function SolidQueryDevtoolsPanel(props) {
|
|
8
|
-
const queryClient = useQueryClient(props.client);
|
|
9
|
-
const client = createMemo(() => queryClient);
|
|
10
|
-
let ref2;
|
|
11
|
-
const {
|
|
12
|
-
errorTypes,
|
|
13
|
-
styleNonce,
|
|
14
|
-
shadowDOMTarget,
|
|
15
|
-
hideDisabledQueries
|
|
16
|
-
} = props;
|
|
17
|
-
const devtools = new TanstackQueryDevtoolsPanel({
|
|
18
|
-
client: client(),
|
|
19
|
-
queryFlavor: "Solid Query",
|
|
20
|
-
version: "5",
|
|
21
|
-
onlineManager,
|
|
22
|
-
buttonPosition: "bottom-left",
|
|
23
|
-
position: "bottom",
|
|
24
|
-
initialIsOpen: true,
|
|
25
|
-
errorTypes,
|
|
26
|
-
styleNonce,
|
|
27
|
-
shadowDOMTarget,
|
|
28
|
-
onClose: props.onClose,
|
|
29
|
-
hideDisabledQueries,
|
|
30
|
-
theme: props.theme
|
|
31
|
-
});
|
|
32
|
-
createEffect(() => client(), (c) => {
|
|
33
|
-
devtools.setClient(c);
|
|
34
|
-
});
|
|
35
|
-
createEffect(() => props.onClose, (onClose) => {
|
|
36
|
-
devtools.setOnClose(onClose ?? (() => {
|
|
37
|
-
}));
|
|
38
|
-
});
|
|
39
|
-
createEffect(() => props.errorTypes, (errorTypes2) => {
|
|
40
|
-
devtools.setErrorTypes(errorTypes2 || []);
|
|
41
|
-
});
|
|
42
|
-
createEffect(() => props.theme, (theme) => {
|
|
43
|
-
devtools.setTheme(theme || "system");
|
|
44
|
-
});
|
|
45
|
-
let mounted = false;
|
|
46
|
-
let disposed = false;
|
|
47
|
-
onSettled(() => {
|
|
48
|
-
queueMicrotask(() => {
|
|
49
|
-
if (disposed) return;
|
|
50
|
-
runWithOwner(null, () => devtools.mount(ref2));
|
|
51
|
-
mounted = true;
|
|
52
|
-
});
|
|
53
|
-
return () => {
|
|
54
|
-
disposed = true;
|
|
55
|
-
if (mounted) {
|
|
56
|
-
devtools.unmount();
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
});
|
|
60
|
-
var _el$ = _tmpl$();
|
|
61
|
-
var _ref$ = ref2;
|
|
62
|
-
typeof _ref$ === "function" || Array.isArray(_ref$) ? ref(() => _ref$, _el$) : ref2 = _el$;
|
|
63
|
-
effect(() => ({
|
|
64
|
-
...props.style
|
|
65
|
-
}), (_v$, _$p) => {
|
|
66
|
-
style(_el$, _v$, _$p);
|
|
67
|
-
});
|
|
68
|
-
return _el$;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export { SolidQueryDevtoolsPanel as default };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
// src/devtoolsPanel.tsx
|
|
2
|
-
import { createEffect, createMemo, onSettled, runWithOwner } from "solid-js";
|
|
3
|
-
import { onlineManager, useQueryClient } from "@tanstack/solid-query";
|
|
4
|
-
import { TanstackQueryDevtoolsPanel } from "@tanstack/query-devtools";
|
|
5
|
-
function SolidQueryDevtoolsPanel(props) {
|
|
6
|
-
const queryClient = useQueryClient(props.client);
|
|
7
|
-
const client = createMemo(() => queryClient);
|
|
8
|
-
let ref;
|
|
9
|
-
const { errorTypes, styleNonce, shadowDOMTarget, hideDisabledQueries } = props;
|
|
10
|
-
const devtools = new TanstackQueryDevtoolsPanel({
|
|
11
|
-
client: client(),
|
|
12
|
-
queryFlavor: "Solid Query",
|
|
13
|
-
version: "5",
|
|
14
|
-
onlineManager,
|
|
15
|
-
buttonPosition: "bottom-left",
|
|
16
|
-
position: "bottom",
|
|
17
|
-
initialIsOpen: true,
|
|
18
|
-
errorTypes,
|
|
19
|
-
styleNonce,
|
|
20
|
-
shadowDOMTarget,
|
|
21
|
-
onClose: props.onClose,
|
|
22
|
-
hideDisabledQueries,
|
|
23
|
-
theme: props.theme
|
|
24
|
-
});
|
|
25
|
-
createEffect(
|
|
26
|
-
() => client(),
|
|
27
|
-
(c) => {
|
|
28
|
-
devtools.setClient(c);
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
createEffect(
|
|
32
|
-
() => props.onClose,
|
|
33
|
-
(onClose) => {
|
|
34
|
-
devtools.setOnClose(onClose ?? (() => {
|
|
35
|
-
}));
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
createEffect(
|
|
39
|
-
() => props.errorTypes,
|
|
40
|
-
(errorTypes2) => {
|
|
41
|
-
devtools.setErrorTypes(errorTypes2 || []);
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
createEffect(
|
|
45
|
-
() => props.theme,
|
|
46
|
-
(theme) => {
|
|
47
|
-
devtools.setTheme(theme || "system");
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
let mounted = false;
|
|
51
|
-
let disposed = false;
|
|
52
|
-
onSettled(() => {
|
|
53
|
-
queueMicrotask(() => {
|
|
54
|
-
if (disposed) return;
|
|
55
|
-
runWithOwner(null, () => devtools.mount(ref));
|
|
56
|
-
mounted = true;
|
|
57
|
-
});
|
|
58
|
-
return () => {
|
|
59
|
-
disposed = true;
|
|
60
|
-
if (mounted) {
|
|
61
|
-
devtools.unmount();
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
});
|
|
65
|
-
return <div
|
|
66
|
-
style={{ height: "500px", ...props.style }}
|
|
67
|
-
class="tsqd-parent-container"
|
|
68
|
-
ref={ref}
|
|
69
|
-
/>;
|
|
70
|
-
}
|
|
71
|
-
export {
|
|
72
|
-
SolidQueryDevtoolsPanel as default
|
|
73
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ref, effect, style, template } from '../chunk/L2WCKKHK.js';
|
|
2
|
-
import { createMemo, createEffect, onSettled, runWithOwner } from 'solid-js';
|
|
3
|
-
import { useQueryClient, onlineManager } from '@tanstack/solid-query';
|
|
4
|
-
import { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools';
|
|
5
|
-
|
|
6
|
-
var _tmpl$ = /* @__PURE__ */ template(`<div class=tsqd-parent-container style=height:500px>`);
|
|
7
|
-
function SolidQueryDevtoolsPanel(props) {
|
|
8
|
-
const queryClient = useQueryClient(props.client);
|
|
9
|
-
const client = createMemo(() => queryClient);
|
|
10
|
-
let ref2;
|
|
11
|
-
const {
|
|
12
|
-
errorTypes,
|
|
13
|
-
styleNonce,
|
|
14
|
-
shadowDOMTarget,
|
|
15
|
-
hideDisabledQueries
|
|
16
|
-
} = props;
|
|
17
|
-
const devtools = new TanstackQueryDevtoolsPanel({
|
|
18
|
-
client: client(),
|
|
19
|
-
queryFlavor: "Solid Query",
|
|
20
|
-
version: "5",
|
|
21
|
-
onlineManager,
|
|
22
|
-
buttonPosition: "bottom-left",
|
|
23
|
-
position: "bottom",
|
|
24
|
-
initialIsOpen: true,
|
|
25
|
-
errorTypes,
|
|
26
|
-
styleNonce,
|
|
27
|
-
shadowDOMTarget,
|
|
28
|
-
onClose: props.onClose,
|
|
29
|
-
hideDisabledQueries,
|
|
30
|
-
theme: props.theme
|
|
31
|
-
});
|
|
32
|
-
createEffect(() => client(), (c) => {
|
|
33
|
-
devtools.setClient(c);
|
|
34
|
-
});
|
|
35
|
-
createEffect(() => props.onClose, (onClose) => {
|
|
36
|
-
devtools.setOnClose(onClose ?? (() => {
|
|
37
|
-
}));
|
|
38
|
-
});
|
|
39
|
-
createEffect(() => props.errorTypes, (errorTypes2) => {
|
|
40
|
-
devtools.setErrorTypes(errorTypes2 || []);
|
|
41
|
-
});
|
|
42
|
-
createEffect(() => props.theme, (theme) => {
|
|
43
|
-
devtools.setTheme(theme || "system");
|
|
44
|
-
});
|
|
45
|
-
let mounted = false;
|
|
46
|
-
let disposed = false;
|
|
47
|
-
onSettled(() => {
|
|
48
|
-
queueMicrotask(() => {
|
|
49
|
-
if (disposed) return;
|
|
50
|
-
runWithOwner(null, () => devtools.mount(ref2));
|
|
51
|
-
mounted = true;
|
|
52
|
-
});
|
|
53
|
-
return () => {
|
|
54
|
-
disposed = true;
|
|
55
|
-
if (mounted) {
|
|
56
|
-
devtools.unmount();
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
});
|
|
60
|
-
var _el$ = _tmpl$();
|
|
61
|
-
var _ref$ = ref2;
|
|
62
|
-
typeof _ref$ === "function" || Array.isArray(_ref$) ? ref(() => _ref$, _el$) : ref2 = _el$;
|
|
63
|
-
effect(() => ({
|
|
64
|
-
...props.style
|
|
65
|
-
}), (_v$, _$p) => {
|
|
66
|
-
style(_el$, _v$, _$p);
|
|
67
|
-
});
|
|
68
|
-
return _el$;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export { SolidQueryDevtoolsPanel as default };
|