@tanstack/query-devtools 5.0.0-alpha.84 → 5.0.0-alpha.87

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.
Files changed (44) hide show
  1. package/build/Devtools/OYHFZDAP.jsx +6711 -0
  2. package/build/Devtools/QBS7PB6D.js +5885 -0
  3. package/build/Devtools/QPWQM7BG.js +6068 -0
  4. package/build/Devtools/RZF5MSB2.jsx +6637 -0
  5. package/build/chunk/DFC6JMPR.jsx +1280 -0
  6. package/build/chunk/LOJK4LQB.jsx +1280 -0
  7. package/{dist/esm/index-7c6d68e3.js → build/chunk/MZOCHHZD.js} +648 -416
  8. package/{dist/cjs/index-edbb2275.cjs → build/chunk/YHTPXJWR.js} +648 -446
  9. package/build/dev.cjs +8116 -0
  10. package/build/dev.js +99 -0
  11. package/build/dev.jsx +98 -0
  12. package/build/index.cjs +7940 -0
  13. package/build/index.d.cts +55 -0
  14. package/build/index.d.ts +55 -0
  15. package/build/index.js +99 -0
  16. package/build/index.jsx +98 -0
  17. package/package.json +24 -18
  18. package/src/Devtools.tsx +1 -3
  19. package/dist/cjs/Devtools-0f2840bd.cjs +0 -6766
  20. package/dist/cjs/Devtools-0f2840bd.cjs.map +0 -1
  21. package/dist/cjs/index-edbb2275.cjs.map +0 -1
  22. package/dist/cjs/index.cjs +0 -8
  23. package/dist/cjs/index.cjs.map +0 -1
  24. package/dist/esm/Devtools-26de9f2c.js +0 -6758
  25. package/dist/esm/Devtools-26de9f2c.js.map +0 -1
  26. package/dist/esm/index-7c6d68e3.js.map +0 -1
  27. package/dist/esm/index.js +0 -2
  28. package/dist/esm/index.js.map +0 -1
  29. package/dist/source/Context.js +0 -10
  30. package/dist/source/Devtools.jsx +0 -1512
  31. package/dist/source/Explorer.jsx +0 -264
  32. package/dist/source/fonts.js +0 -7
  33. package/dist/source/icons/index.jsx +0 -344
  34. package/dist/source/index.jsx +0 -88
  35. package/dist/source/theme.js +0 -304
  36. package/dist/source/utils.jsx +0 -77
  37. package/dist/types/Context.d.ts +0 -28
  38. package/dist/types/Devtools.d.ts +0 -22
  39. package/dist/types/Explorer.d.ts +0 -21
  40. package/dist/types/fonts.d.ts +0 -1
  41. package/dist/types/icons/index.d.ts +0 -11
  42. package/dist/types/index.d.ts +0 -29
  43. package/dist/types/theme.d.ts +0 -296
  44. package/dist/types/utils.d.ts +0 -23
package/build/dev.js ADDED
@@ -0,0 +1,99 @@
1
+ import { createSignal, render, lazy, createComponent, mergeProps } from './chunk/YHTPXJWR.js';
2
+
3
+ // src/index.tsx
4
+ var TanstackQueryDevtools = class {
5
+ isMounted = false;
6
+ constructor(config) {
7
+ const {
8
+ client,
9
+ queryFlavor,
10
+ version,
11
+ onlineManager,
12
+ buttonPosition,
13
+ position,
14
+ initialIsOpen,
15
+ errorTypes
16
+ } = config;
17
+ this.client = createSignal(client);
18
+ this.queryFlavor = queryFlavor;
19
+ this.version = version;
20
+ this.onlineManager = onlineManager;
21
+ this.buttonPosition = createSignal(buttonPosition);
22
+ this.position = createSignal(position);
23
+ this.initialIsOpen = createSignal(initialIsOpen);
24
+ this.errorTypes = createSignal(errorTypes);
25
+ }
26
+ setButtonPosition(position) {
27
+ this.buttonPosition[1](position);
28
+ }
29
+ setPosition(position) {
30
+ this.position[1](position);
31
+ }
32
+ setInitialIsOpen(isOpen) {
33
+ this.initialIsOpen[1](isOpen);
34
+ }
35
+ setErrorTypes(errorTypes) {
36
+ this.errorTypes[1](errorTypes);
37
+ }
38
+ setClient(client) {
39
+ this.client[1](client);
40
+ }
41
+ mount(el) {
42
+ if (this.isMounted) {
43
+ throw new Error("Devtools is already mounted");
44
+ }
45
+ const dispose = render(() => {
46
+ const [btnPosition] = this.buttonPosition;
47
+ const [pos] = this.position;
48
+ const [isOpen] = this.initialIsOpen;
49
+ const [errors] = this.errorTypes;
50
+ const [queryClient] = this.client;
51
+ let Devtools;
52
+ if (this.Component) {
53
+ Devtools = this.Component;
54
+ } else {
55
+ Devtools = lazy(() => import('./Devtools/QPWQM7BG.js'));
56
+ this.Component = Devtools;
57
+ }
58
+ const _self$ = this;
59
+ return createComponent(Devtools, mergeProps({
60
+ get queryFlavor() {
61
+ return _self$.queryFlavor;
62
+ },
63
+ get version() {
64
+ return _self$.version;
65
+ },
66
+ get onlineManager() {
67
+ return _self$.onlineManager;
68
+ }
69
+ }, {
70
+ get client() {
71
+ return queryClient();
72
+ },
73
+ get buttonPosition() {
74
+ return btnPosition();
75
+ },
76
+ get position() {
77
+ return pos();
78
+ },
79
+ get initialIsOpen() {
80
+ return isOpen();
81
+ },
82
+ get errorTypes() {
83
+ return errors();
84
+ }
85
+ }));
86
+ }, el);
87
+ this.isMounted = true;
88
+ this.dispose = dispose;
89
+ }
90
+ unmount() {
91
+ if (!this.isMounted) {
92
+ throw new Error("Devtools is not mounted");
93
+ }
94
+ this.dispose?.();
95
+ this.isMounted = false;
96
+ }
97
+ };
98
+
99
+ export { TanstackQueryDevtools };
package/build/dev.jsx ADDED
@@ -0,0 +1,98 @@
1
+ import {
2
+ createSignal,
3
+ lazy,
4
+ render
5
+ } from "./chunk/DFC6JMPR.jsx";
6
+
7
+ // src/index.tsx
8
+ var TanstackQueryDevtools = class {
9
+ constructor(config) {
10
+ this.isMounted = false;
11
+ const {
12
+ client,
13
+ queryFlavor,
14
+ version,
15
+ onlineManager,
16
+ buttonPosition,
17
+ position,
18
+ initialIsOpen,
19
+ errorTypes
20
+ } = config;
21
+ this.client = createSignal(client);
22
+ this.queryFlavor = queryFlavor;
23
+ this.version = version;
24
+ this.onlineManager = onlineManager;
25
+ this.buttonPosition = createSignal(buttonPosition);
26
+ this.position = createSignal(position);
27
+ this.initialIsOpen = createSignal(initialIsOpen);
28
+ this.errorTypes = createSignal(errorTypes);
29
+ }
30
+ setButtonPosition(position) {
31
+ this.buttonPosition[1](position);
32
+ }
33
+ setPosition(position) {
34
+ this.position[1](position);
35
+ }
36
+ setInitialIsOpen(isOpen) {
37
+ this.initialIsOpen[1](isOpen);
38
+ }
39
+ setErrorTypes(errorTypes) {
40
+ this.errorTypes[1](errorTypes);
41
+ }
42
+ setClient(client) {
43
+ this.client[1](client);
44
+ }
45
+ mount(el) {
46
+ if (this.isMounted) {
47
+ throw new Error("Devtools is already mounted");
48
+ }
49
+ const dispose = render(() => {
50
+ const [btnPosition] = this.buttonPosition;
51
+ const [pos] = this.position;
52
+ const [isOpen] = this.initialIsOpen;
53
+ const [errors] = this.errorTypes;
54
+ const [queryClient] = this.client;
55
+ let Devtools;
56
+ if (this.Component) {
57
+ Devtools = this.Component;
58
+ } else {
59
+ Devtools = lazy(() => import("./Devtools/OYHFZDAP.jsx"));
60
+ this.Component = Devtools;
61
+ }
62
+ return <Devtools
63
+ queryFlavor={this.queryFlavor}
64
+ version={this.version}
65
+ onlineManager={this.onlineManager}
66
+ {...{
67
+ get client() {
68
+ return queryClient();
69
+ },
70
+ get buttonPosition() {
71
+ return btnPosition();
72
+ },
73
+ get position() {
74
+ return pos();
75
+ },
76
+ get initialIsOpen() {
77
+ return isOpen();
78
+ },
79
+ get errorTypes() {
80
+ return errors();
81
+ }
82
+ }}
83
+ />;
84
+ }, el);
85
+ this.isMounted = true;
86
+ this.dispose = dispose;
87
+ }
88
+ unmount() {
89
+ if (!this.isMounted) {
90
+ throw new Error("Devtools is not mounted");
91
+ }
92
+ this.dispose?.();
93
+ this.isMounted = false;
94
+ }
95
+ };
96
+ export {
97
+ TanstackQueryDevtools
98
+ };