@tanstack/query-devtools 5.52.3 → 5.55.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/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
- };