@tanstack/preact-query-devtools 5.92.0 → 5.94.5

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 (29) hide show
  1. package/build/legacy/PreactQueryDevtools.d.cts +2 -4
  2. package/build/legacy/PreactQueryDevtools.d.ts +2 -4
  3. package/build/legacy/PreactQueryDevtoolsPanel.d.cts +2 -4
  4. package/build/legacy/PreactQueryDevtoolsPanel.d.ts +2 -4
  5. package/build/legacy/_tsup-dts-rollup.d.cts +149 -0
  6. package/build/legacy/_tsup-dts-rollup.d.ts +149 -0
  7. package/build/legacy/index.d.cts +3 -11
  8. package/build/legacy/index.d.ts +3 -11
  9. package/build/legacy/production.d.cts +2 -10
  10. package/build/legacy/production.d.ts +2 -10
  11. package/build/modern/PreactQueryDevtools.d.cts +2 -4
  12. package/build/modern/PreactQueryDevtools.d.ts +2 -4
  13. package/build/modern/PreactQueryDevtoolsPanel.d.cts +2 -4
  14. package/build/modern/PreactQueryDevtoolsPanel.d.ts +2 -4
  15. package/build/modern/_tsup-dts-rollup.d.cts +149 -0
  16. package/build/modern/_tsup-dts-rollup.d.ts +149 -0
  17. package/build/modern/index.d.cts +3 -11
  18. package/build/modern/index.d.ts +3 -11
  19. package/build/modern/production.d.cts +2 -10
  20. package/build/modern/production.d.ts +2 -10
  21. package/package.json +8 -8
  22. package/build/legacy/PreactQueryDevtools-BKJv-YAr.d.cts +0 -57
  23. package/build/legacy/PreactQueryDevtools-BKJv-YAr.d.ts +0 -57
  24. package/build/legacy/PreactQueryDevtoolsPanel-tSWW-AUr.d.cts +0 -51
  25. package/build/legacy/PreactQueryDevtoolsPanel-tSWW-AUr.d.ts +0 -51
  26. package/build/modern/PreactQueryDevtools-BKJv-YAr.d.cts +0 -57
  27. package/build/modern/PreactQueryDevtools-BKJv-YAr.d.ts +0 -57
  28. package/build/modern/PreactQueryDevtoolsPanel-tSWW-AUr.d.cts +0 -51
  29. package/build/modern/PreactQueryDevtoolsPanel-tSWW-AUr.d.ts +0 -51
@@ -1,4 +1,2 @@
1
- import '@tanstack/query-devtools';
2
- import '@tanstack/preact-query';
3
- import 'preact';
4
- export { a as DevtoolsOptions, P as PreactQueryDevtools } from './PreactQueryDevtools-BKJv-YAr.cjs';
1
+ export { PreactQueryDevtools } from './_tsup-dts-rollup.cjs';
2
+ export { DevtoolsOptions } from './_tsup-dts-rollup.cjs';
@@ -1,4 +1,2 @@
1
- import '@tanstack/query-devtools';
2
- import '@tanstack/preact-query';
3
- import 'preact';
4
- export { a as DevtoolsOptions, P as PreactQueryDevtools } from './PreactQueryDevtools-BKJv-YAr.js';
1
+ export { PreactQueryDevtools } from './_tsup-dts-rollup.js';
2
+ export { DevtoolsOptions } from './_tsup-dts-rollup.js';
@@ -1,4 +1,2 @@
1
- import '@tanstack/query-devtools';
2
- import '@tanstack/preact-query';
3
- import 'preact';
4
- export { D as DevtoolsPanelOptions, P as PreactQueryDevtoolsPanel } from './PreactQueryDevtoolsPanel-tSWW-AUr.cjs';
1
+ export { PreactQueryDevtoolsPanel } from './_tsup-dts-rollup.cjs';
2
+ export { DevtoolsPanelOptions } from './_tsup-dts-rollup.cjs';
@@ -1,4 +1,2 @@
1
- import '@tanstack/query-devtools';
2
- import '@tanstack/preact-query';
3
- import 'preact';
4
- export { D as DevtoolsPanelOptions, P as PreactQueryDevtoolsPanel } from './PreactQueryDevtoolsPanel-tSWW-AUr.js';
1
+ export { PreactQueryDevtoolsPanel } from './_tsup-dts-rollup.js';
2
+ export { DevtoolsPanelOptions } from './_tsup-dts-rollup.js';
@@ -0,0 +1,149 @@
1
+ import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
2
+ import type { DevtoolsErrorType } from '@tanstack/query-devtools';
3
+ import type { DevtoolsPosition } from '@tanstack/query-devtools';
4
+ import type { JSX } from 'preact';
5
+ import { Options } from 'tsup';
6
+ import type { QueryClient } from '@tanstack/preact-query';
7
+ import type { Theme } from '@tanstack/query-devtools';
8
+ import type { UserConfig } from 'vite';
9
+ import type { VNode } from 'preact';
10
+
11
+ export declare const default_alias: any[];
12
+
13
+ export declare const default_alias_1: any[];
14
+
15
+ export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
16
+
17
+ export declare const default_alias_3: UserConfig;
18
+
19
+ declare namespace Devtools {
20
+ export {
21
+ PreactQueryDevtools,
22
+ DevtoolsOptions
23
+ }
24
+ }
25
+
26
+ export declare interface DevtoolsOptions {
27
+ /**
28
+ * Set this true if you want the dev tools to default to being open
29
+ */
30
+ initialIsOpen?: boolean;
31
+ /**
32
+ * The position of the TanStack logo to open and close the devtools panel.
33
+ * Defaults to 'bottom-right'.
34
+ */
35
+ buttonPosition?: DevtoolsButtonPosition;
36
+ /**
37
+ * The position of the Preact Query devtools panel.
38
+ * Defaults to 'bottom'.
39
+ */
40
+ position?: DevtoolsPosition;
41
+ /**
42
+ * Use this to provide a custom QueryClient. Otherwise, the one from the
43
+ * nearest QueryClientProvider will be used.
44
+ */
45
+ client?: QueryClient;
46
+ /**
47
+ * Use this to provide custom error type handlers for the devtools panel.
48
+ */
49
+ errorTypes?: Array<DevtoolsErrorType>;
50
+ /**
51
+ * Use this to pass a nonce to the style tag that is added to the document
52
+ * head. This is useful if you are using a Content Security Policy (CSP)
53
+ * nonce to allow inline styles.
54
+ */
55
+ styleNonce?: string;
56
+ /**
57
+ * Use this to render the devtools inside a Shadow DOM.
58
+ */
59
+ shadowDOMTarget?: ShadowRoot;
60
+ /**
61
+ * Use this to hide disabled queries from the devtools panel.
62
+ */
63
+ hideDisabledQueries?: boolean;
64
+ /**
65
+ * Use this to set the theme of the devtools panel.
66
+ * Defaults to 'system'.
67
+ */
68
+ theme?: Theme;
69
+ }
70
+
71
+ declare namespace DevtoolsPanel {
72
+ export {
73
+ PreactQueryDevtoolsPanel,
74
+ DevtoolsPanelOptions
75
+ }
76
+ }
77
+
78
+ export declare interface DevtoolsPanelOptions {
79
+ /**
80
+ * Use this to provide a custom QueryClient. Otherwise, the one from the
81
+ * nearest QueryClientProvider will be used.
82
+ */
83
+ client?: QueryClient;
84
+ /**
85
+ * Custom error types to be shown in the devtools.
86
+ */
87
+ errorTypes?: Array<DevtoolsErrorType>;
88
+ /**
89
+ * Use this to pass a nonce to the style tag that is added to the document
90
+ * head. This is useful if you are using a Content Security Policy (CSP)
91
+ * nonce to allow inline styles.
92
+ */
93
+ styleNonce?: string;
94
+ /**
95
+ * Use this to render the devtools inside a Shadow DOM.
96
+ */
97
+ shadowDOMTarget?: ShadowRoot;
98
+ /**
99
+ * Custom styles for the devtools panel container.
100
+ */
101
+ style?: JSX.CSSProperties;
102
+ /**
103
+ * Callback function when the devtools panel is closed.
104
+ */
105
+ onClose?: () => unknown;
106
+ /**
107
+ * Use this to hide disabled queries from the devtools panel.
108
+ */
109
+ hideDisabledQueries?: boolean;
110
+ /**
111
+ * Use this to set the theme of the devtools panel.
112
+ * Defaults to 'system'.
113
+ */
114
+ theme?: Theme;
115
+ }
116
+
117
+ export declare type DevtoolsPanelOptions_alias_1 = DevtoolsPanel.DevtoolsPanelOptions;
118
+
119
+ /**
120
+ * @param {Object} opts - Options for building configurations.
121
+ * @param {string[]} opts.entry - The entry array.
122
+ * @returns {import('tsup').Options}
123
+ */
124
+ export declare function legacyConfig(opts: {
125
+ entry: string[];
126
+ }): Options;
127
+
128
+ /**
129
+ * @param {Object} opts - Options for building configurations.
130
+ * @param {string[]} opts.entry - The entry array.
131
+ * @returns {import('tsup').Options}
132
+ */
133
+ export declare function modernConfig(opts: {
134
+ entry: string[];
135
+ }): Options;
136
+
137
+ export declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
138
+
139
+ export declare const PreactQueryDevtools_alias_1: (typeof Devtools)['PreactQueryDevtools'];
140
+
141
+ export declare const PreactQueryDevtools_alias_2: typeof Devtools.PreactQueryDevtools;
142
+
143
+ export declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
144
+
145
+ export declare const PreactQueryDevtoolsPanel_alias_1: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'];
146
+
147
+ export declare const PreactQueryDevtoolsPanel_alias_2: typeof DevtoolsPanel.PreactQueryDevtoolsPanel;
148
+
149
+ export { }
@@ -0,0 +1,149 @@
1
+ import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
2
+ import type { DevtoolsErrorType } from '@tanstack/query-devtools';
3
+ import type { DevtoolsPosition } from '@tanstack/query-devtools';
4
+ import type { JSX } from 'preact';
5
+ import { Options } from 'tsup';
6
+ import type { QueryClient } from '@tanstack/preact-query';
7
+ import type { Theme } from '@tanstack/query-devtools';
8
+ import type { UserConfig } from 'vite';
9
+ import type { VNode } from 'preact';
10
+
11
+ export declare const default_alias: any[];
12
+
13
+ export declare const default_alias_1: any[];
14
+
15
+ export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
16
+
17
+ export declare const default_alias_3: UserConfig;
18
+
19
+ declare namespace Devtools {
20
+ export {
21
+ PreactQueryDevtools,
22
+ DevtoolsOptions
23
+ }
24
+ }
25
+
26
+ export declare interface DevtoolsOptions {
27
+ /**
28
+ * Set this true if you want the dev tools to default to being open
29
+ */
30
+ initialIsOpen?: boolean;
31
+ /**
32
+ * The position of the TanStack logo to open and close the devtools panel.
33
+ * Defaults to 'bottom-right'.
34
+ */
35
+ buttonPosition?: DevtoolsButtonPosition;
36
+ /**
37
+ * The position of the Preact Query devtools panel.
38
+ * Defaults to 'bottom'.
39
+ */
40
+ position?: DevtoolsPosition;
41
+ /**
42
+ * Use this to provide a custom QueryClient. Otherwise, the one from the
43
+ * nearest QueryClientProvider will be used.
44
+ */
45
+ client?: QueryClient;
46
+ /**
47
+ * Use this to provide custom error type handlers for the devtools panel.
48
+ */
49
+ errorTypes?: Array<DevtoolsErrorType>;
50
+ /**
51
+ * Use this to pass a nonce to the style tag that is added to the document
52
+ * head. This is useful if you are using a Content Security Policy (CSP)
53
+ * nonce to allow inline styles.
54
+ */
55
+ styleNonce?: string;
56
+ /**
57
+ * Use this to render the devtools inside a Shadow DOM.
58
+ */
59
+ shadowDOMTarget?: ShadowRoot;
60
+ /**
61
+ * Use this to hide disabled queries from the devtools panel.
62
+ */
63
+ hideDisabledQueries?: boolean;
64
+ /**
65
+ * Use this to set the theme of the devtools panel.
66
+ * Defaults to 'system'.
67
+ */
68
+ theme?: Theme;
69
+ }
70
+
71
+ declare namespace DevtoolsPanel {
72
+ export {
73
+ PreactQueryDevtoolsPanel,
74
+ DevtoolsPanelOptions
75
+ }
76
+ }
77
+
78
+ export declare interface DevtoolsPanelOptions {
79
+ /**
80
+ * Use this to provide a custom QueryClient. Otherwise, the one from the
81
+ * nearest QueryClientProvider will be used.
82
+ */
83
+ client?: QueryClient;
84
+ /**
85
+ * Custom error types to be shown in the devtools.
86
+ */
87
+ errorTypes?: Array<DevtoolsErrorType>;
88
+ /**
89
+ * Use this to pass a nonce to the style tag that is added to the document
90
+ * head. This is useful if you are using a Content Security Policy (CSP)
91
+ * nonce to allow inline styles.
92
+ */
93
+ styleNonce?: string;
94
+ /**
95
+ * Use this to render the devtools inside a Shadow DOM.
96
+ */
97
+ shadowDOMTarget?: ShadowRoot;
98
+ /**
99
+ * Custom styles for the devtools panel container.
100
+ */
101
+ style?: JSX.CSSProperties;
102
+ /**
103
+ * Callback function when the devtools panel is closed.
104
+ */
105
+ onClose?: () => unknown;
106
+ /**
107
+ * Use this to hide disabled queries from the devtools panel.
108
+ */
109
+ hideDisabledQueries?: boolean;
110
+ /**
111
+ * Use this to set the theme of the devtools panel.
112
+ * Defaults to 'system'.
113
+ */
114
+ theme?: Theme;
115
+ }
116
+
117
+ export declare type DevtoolsPanelOptions_alias_1 = DevtoolsPanel.DevtoolsPanelOptions;
118
+
119
+ /**
120
+ * @param {Object} opts - Options for building configurations.
121
+ * @param {string[]} opts.entry - The entry array.
122
+ * @returns {import('tsup').Options}
123
+ */
124
+ export declare function legacyConfig(opts: {
125
+ entry: string[];
126
+ }): Options;
127
+
128
+ /**
129
+ * @param {Object} opts - Options for building configurations.
130
+ * @param {string[]} opts.entry - The entry array.
131
+ * @returns {import('tsup').Options}
132
+ */
133
+ export declare function modernConfig(opts: {
134
+ entry: string[];
135
+ }): Options;
136
+
137
+ export declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
138
+
139
+ export declare const PreactQueryDevtools_alias_1: (typeof Devtools)['PreactQueryDevtools'];
140
+
141
+ export declare const PreactQueryDevtools_alias_2: typeof Devtools.PreactQueryDevtools;
142
+
143
+ export declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
144
+
145
+ export declare const PreactQueryDevtoolsPanel_alias_1: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'];
146
+
147
+ export declare const PreactQueryDevtoolsPanel_alias_2: typeof DevtoolsPanel.PreactQueryDevtoolsPanel;
148
+
149
+ export { }
@@ -1,11 +1,3 @@
1
- import { D as Devtools } from './PreactQueryDevtools-BKJv-YAr.cjs';
2
- import { D as DevtoolsPanelOptions$1, a as DevtoolsPanel } from './PreactQueryDevtoolsPanel-tSWW-AUr.cjs';
3
- import '@tanstack/query-devtools';
4
- import '@tanstack/preact-query';
5
- import 'preact';
6
-
7
- declare const PreactQueryDevtools: (typeof Devtools)['PreactQueryDevtools'];
8
- declare const PreactQueryDevtoolsPanel: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'];
9
- type DevtoolsPanelOptions = DevtoolsPanelOptions$1;
10
-
11
- export { type DevtoolsPanelOptions, PreactQueryDevtools, PreactQueryDevtoolsPanel };
1
+ export { PreactQueryDevtools_alias_1 as PreactQueryDevtools } from './_tsup-dts-rollup.cjs';
2
+ export { PreactQueryDevtoolsPanel_alias_1 as PreactQueryDevtoolsPanel } from './_tsup-dts-rollup.cjs';
3
+ export { DevtoolsPanelOptions_alias_1 as DevtoolsPanelOptions } from './_tsup-dts-rollup.cjs';
@@ -1,11 +1,3 @@
1
- import { D as Devtools } from './PreactQueryDevtools-BKJv-YAr.js';
2
- import { D as DevtoolsPanelOptions$1, a as DevtoolsPanel } from './PreactQueryDevtoolsPanel-tSWW-AUr.js';
3
- import '@tanstack/query-devtools';
4
- import '@tanstack/preact-query';
5
- import 'preact';
6
-
7
- declare const PreactQueryDevtools: (typeof Devtools)['PreactQueryDevtools'];
8
- declare const PreactQueryDevtoolsPanel: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'];
9
- type DevtoolsPanelOptions = DevtoolsPanelOptions$1;
10
-
11
- export { type DevtoolsPanelOptions, PreactQueryDevtools, PreactQueryDevtoolsPanel };
1
+ export { PreactQueryDevtools_alias_1 as PreactQueryDevtools } from './_tsup-dts-rollup.js';
2
+ export { PreactQueryDevtoolsPanel_alias_1 as PreactQueryDevtoolsPanel } from './_tsup-dts-rollup.js';
3
+ export { DevtoolsPanelOptions_alias_1 as DevtoolsPanelOptions } from './_tsup-dts-rollup.js';
@@ -1,10 +1,2 @@
1
- import { P as PreactQueryDevtools$1 } from './PreactQueryDevtools-BKJv-YAr.cjs';
2
- import { P as PreactQueryDevtoolsPanel$1 } from './PreactQueryDevtoolsPanel-tSWW-AUr.cjs';
3
- import '@tanstack/query-devtools';
4
- import '@tanstack/preact-query';
5
- import 'preact';
6
-
7
- declare const PreactQueryDevtools: typeof PreactQueryDevtools$1;
8
- declare const PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel$1;
9
-
10
- export { PreactQueryDevtools, PreactQueryDevtoolsPanel };
1
+ export { PreactQueryDevtools_alias_2 as PreactQueryDevtools } from './_tsup-dts-rollup.cjs';
2
+ export { PreactQueryDevtoolsPanel_alias_2 as PreactQueryDevtoolsPanel } from './_tsup-dts-rollup.cjs';
@@ -1,10 +1,2 @@
1
- import { P as PreactQueryDevtools$1 } from './PreactQueryDevtools-BKJv-YAr.js';
2
- import { P as PreactQueryDevtoolsPanel$1 } from './PreactQueryDevtoolsPanel-tSWW-AUr.js';
3
- import '@tanstack/query-devtools';
4
- import '@tanstack/preact-query';
5
- import 'preact';
6
-
7
- declare const PreactQueryDevtools: typeof PreactQueryDevtools$1;
8
- declare const PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel$1;
9
-
10
- export { PreactQueryDevtools, PreactQueryDevtoolsPanel };
1
+ export { PreactQueryDevtools_alias_2 as PreactQueryDevtools } from './_tsup-dts-rollup.js';
2
+ export { PreactQueryDevtoolsPanel_alias_2 as PreactQueryDevtoolsPanel } from './_tsup-dts-rollup.js';
@@ -1,4 +1,2 @@
1
- import '@tanstack/query-devtools';
2
- import '@tanstack/preact-query';
3
- import 'preact';
4
- export { a as DevtoolsOptions, P as PreactQueryDevtools } from './PreactQueryDevtools-BKJv-YAr.cjs';
1
+ export { PreactQueryDevtools } from './_tsup-dts-rollup.cjs';
2
+ export { DevtoolsOptions } from './_tsup-dts-rollup.cjs';
@@ -1,4 +1,2 @@
1
- import '@tanstack/query-devtools';
2
- import '@tanstack/preact-query';
3
- import 'preact';
4
- export { a as DevtoolsOptions, P as PreactQueryDevtools } from './PreactQueryDevtools-BKJv-YAr.js';
1
+ export { PreactQueryDevtools } from './_tsup-dts-rollup.js';
2
+ export { DevtoolsOptions } from './_tsup-dts-rollup.js';
@@ -1,4 +1,2 @@
1
- import '@tanstack/query-devtools';
2
- import '@tanstack/preact-query';
3
- import 'preact';
4
- export { D as DevtoolsPanelOptions, P as PreactQueryDevtoolsPanel } from './PreactQueryDevtoolsPanel-tSWW-AUr.cjs';
1
+ export { PreactQueryDevtoolsPanel } from './_tsup-dts-rollup.cjs';
2
+ export { DevtoolsPanelOptions } from './_tsup-dts-rollup.cjs';
@@ -1,4 +1,2 @@
1
- import '@tanstack/query-devtools';
2
- import '@tanstack/preact-query';
3
- import 'preact';
4
- export { D as DevtoolsPanelOptions, P as PreactQueryDevtoolsPanel } from './PreactQueryDevtoolsPanel-tSWW-AUr.js';
1
+ export { PreactQueryDevtoolsPanel } from './_tsup-dts-rollup.js';
2
+ export { DevtoolsPanelOptions } from './_tsup-dts-rollup.js';
@@ -0,0 +1,149 @@
1
+ import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
2
+ import type { DevtoolsErrorType } from '@tanstack/query-devtools';
3
+ import type { DevtoolsPosition } from '@tanstack/query-devtools';
4
+ import type { JSX } from 'preact';
5
+ import { Options } from 'tsup';
6
+ import type { QueryClient } from '@tanstack/preact-query';
7
+ import type { Theme } from '@tanstack/query-devtools';
8
+ import type { UserConfig } from 'vite';
9
+ import type { VNode } from 'preact';
10
+
11
+ export declare const default_alias: any[];
12
+
13
+ export declare const default_alias_1: any[];
14
+
15
+ export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
16
+
17
+ export declare const default_alias_3: UserConfig;
18
+
19
+ declare namespace Devtools {
20
+ export {
21
+ PreactQueryDevtools,
22
+ DevtoolsOptions
23
+ }
24
+ }
25
+
26
+ export declare interface DevtoolsOptions {
27
+ /**
28
+ * Set this true if you want the dev tools to default to being open
29
+ */
30
+ initialIsOpen?: boolean;
31
+ /**
32
+ * The position of the TanStack logo to open and close the devtools panel.
33
+ * Defaults to 'bottom-right'.
34
+ */
35
+ buttonPosition?: DevtoolsButtonPosition;
36
+ /**
37
+ * The position of the Preact Query devtools panel.
38
+ * Defaults to 'bottom'.
39
+ */
40
+ position?: DevtoolsPosition;
41
+ /**
42
+ * Use this to provide a custom QueryClient. Otherwise, the one from the
43
+ * nearest QueryClientProvider will be used.
44
+ */
45
+ client?: QueryClient;
46
+ /**
47
+ * Use this to provide custom error type handlers for the devtools panel.
48
+ */
49
+ errorTypes?: Array<DevtoolsErrorType>;
50
+ /**
51
+ * Use this to pass a nonce to the style tag that is added to the document
52
+ * head. This is useful if you are using a Content Security Policy (CSP)
53
+ * nonce to allow inline styles.
54
+ */
55
+ styleNonce?: string;
56
+ /**
57
+ * Use this to render the devtools inside a Shadow DOM.
58
+ */
59
+ shadowDOMTarget?: ShadowRoot;
60
+ /**
61
+ * Use this to hide disabled queries from the devtools panel.
62
+ */
63
+ hideDisabledQueries?: boolean;
64
+ /**
65
+ * Use this to set the theme of the devtools panel.
66
+ * Defaults to 'system'.
67
+ */
68
+ theme?: Theme;
69
+ }
70
+
71
+ declare namespace DevtoolsPanel {
72
+ export {
73
+ PreactQueryDevtoolsPanel,
74
+ DevtoolsPanelOptions
75
+ }
76
+ }
77
+
78
+ export declare interface DevtoolsPanelOptions {
79
+ /**
80
+ * Use this to provide a custom QueryClient. Otherwise, the one from the
81
+ * nearest QueryClientProvider will be used.
82
+ */
83
+ client?: QueryClient;
84
+ /**
85
+ * Custom error types to be shown in the devtools.
86
+ */
87
+ errorTypes?: Array<DevtoolsErrorType>;
88
+ /**
89
+ * Use this to pass a nonce to the style tag that is added to the document
90
+ * head. This is useful if you are using a Content Security Policy (CSP)
91
+ * nonce to allow inline styles.
92
+ */
93
+ styleNonce?: string;
94
+ /**
95
+ * Use this to render the devtools inside a Shadow DOM.
96
+ */
97
+ shadowDOMTarget?: ShadowRoot;
98
+ /**
99
+ * Custom styles for the devtools panel container.
100
+ */
101
+ style?: JSX.CSSProperties;
102
+ /**
103
+ * Callback function when the devtools panel is closed.
104
+ */
105
+ onClose?: () => unknown;
106
+ /**
107
+ * Use this to hide disabled queries from the devtools panel.
108
+ */
109
+ hideDisabledQueries?: boolean;
110
+ /**
111
+ * Use this to set the theme of the devtools panel.
112
+ * Defaults to 'system'.
113
+ */
114
+ theme?: Theme;
115
+ }
116
+
117
+ export declare type DevtoolsPanelOptions_alias_1 = DevtoolsPanel.DevtoolsPanelOptions;
118
+
119
+ /**
120
+ * @param {Object} opts - Options for building configurations.
121
+ * @param {string[]} opts.entry - The entry array.
122
+ * @returns {import('tsup').Options}
123
+ */
124
+ export declare function legacyConfig(opts: {
125
+ entry: string[];
126
+ }): Options;
127
+
128
+ /**
129
+ * @param {Object} opts - Options for building configurations.
130
+ * @param {string[]} opts.entry - The entry array.
131
+ * @returns {import('tsup').Options}
132
+ */
133
+ export declare function modernConfig(opts: {
134
+ entry: string[];
135
+ }): Options;
136
+
137
+ export declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
138
+
139
+ export declare const PreactQueryDevtools_alias_1: (typeof Devtools)['PreactQueryDevtools'];
140
+
141
+ export declare const PreactQueryDevtools_alias_2: typeof Devtools.PreactQueryDevtools;
142
+
143
+ export declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
144
+
145
+ export declare const PreactQueryDevtoolsPanel_alias_1: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'];
146
+
147
+ export declare const PreactQueryDevtoolsPanel_alias_2: typeof DevtoolsPanel.PreactQueryDevtoolsPanel;
148
+
149
+ export { }
@@ -0,0 +1,149 @@
1
+ import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
2
+ import type { DevtoolsErrorType } from '@tanstack/query-devtools';
3
+ import type { DevtoolsPosition } from '@tanstack/query-devtools';
4
+ import type { JSX } from 'preact';
5
+ import { Options } from 'tsup';
6
+ import type { QueryClient } from '@tanstack/preact-query';
7
+ import type { Theme } from '@tanstack/query-devtools';
8
+ import type { UserConfig } from 'vite';
9
+ import type { VNode } from 'preact';
10
+
11
+ export declare const default_alias: any[];
12
+
13
+ export declare const default_alias_1: any[];
14
+
15
+ export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
16
+
17
+ export declare const default_alias_3: UserConfig;
18
+
19
+ declare namespace Devtools {
20
+ export {
21
+ PreactQueryDevtools,
22
+ DevtoolsOptions
23
+ }
24
+ }
25
+
26
+ export declare interface DevtoolsOptions {
27
+ /**
28
+ * Set this true if you want the dev tools to default to being open
29
+ */
30
+ initialIsOpen?: boolean;
31
+ /**
32
+ * The position of the TanStack logo to open and close the devtools panel.
33
+ * Defaults to 'bottom-right'.
34
+ */
35
+ buttonPosition?: DevtoolsButtonPosition;
36
+ /**
37
+ * The position of the Preact Query devtools panel.
38
+ * Defaults to 'bottom'.
39
+ */
40
+ position?: DevtoolsPosition;
41
+ /**
42
+ * Use this to provide a custom QueryClient. Otherwise, the one from the
43
+ * nearest QueryClientProvider will be used.
44
+ */
45
+ client?: QueryClient;
46
+ /**
47
+ * Use this to provide custom error type handlers for the devtools panel.
48
+ */
49
+ errorTypes?: Array<DevtoolsErrorType>;
50
+ /**
51
+ * Use this to pass a nonce to the style tag that is added to the document
52
+ * head. This is useful if you are using a Content Security Policy (CSP)
53
+ * nonce to allow inline styles.
54
+ */
55
+ styleNonce?: string;
56
+ /**
57
+ * Use this to render the devtools inside a Shadow DOM.
58
+ */
59
+ shadowDOMTarget?: ShadowRoot;
60
+ /**
61
+ * Use this to hide disabled queries from the devtools panel.
62
+ */
63
+ hideDisabledQueries?: boolean;
64
+ /**
65
+ * Use this to set the theme of the devtools panel.
66
+ * Defaults to 'system'.
67
+ */
68
+ theme?: Theme;
69
+ }
70
+
71
+ declare namespace DevtoolsPanel {
72
+ export {
73
+ PreactQueryDevtoolsPanel,
74
+ DevtoolsPanelOptions
75
+ }
76
+ }
77
+
78
+ export declare interface DevtoolsPanelOptions {
79
+ /**
80
+ * Use this to provide a custom QueryClient. Otherwise, the one from the
81
+ * nearest QueryClientProvider will be used.
82
+ */
83
+ client?: QueryClient;
84
+ /**
85
+ * Custom error types to be shown in the devtools.
86
+ */
87
+ errorTypes?: Array<DevtoolsErrorType>;
88
+ /**
89
+ * Use this to pass a nonce to the style tag that is added to the document
90
+ * head. This is useful if you are using a Content Security Policy (CSP)
91
+ * nonce to allow inline styles.
92
+ */
93
+ styleNonce?: string;
94
+ /**
95
+ * Use this to render the devtools inside a Shadow DOM.
96
+ */
97
+ shadowDOMTarget?: ShadowRoot;
98
+ /**
99
+ * Custom styles for the devtools panel container.
100
+ */
101
+ style?: JSX.CSSProperties;
102
+ /**
103
+ * Callback function when the devtools panel is closed.
104
+ */
105
+ onClose?: () => unknown;
106
+ /**
107
+ * Use this to hide disabled queries from the devtools panel.
108
+ */
109
+ hideDisabledQueries?: boolean;
110
+ /**
111
+ * Use this to set the theme of the devtools panel.
112
+ * Defaults to 'system'.
113
+ */
114
+ theme?: Theme;
115
+ }
116
+
117
+ export declare type DevtoolsPanelOptions_alias_1 = DevtoolsPanel.DevtoolsPanelOptions;
118
+
119
+ /**
120
+ * @param {Object} opts - Options for building configurations.
121
+ * @param {string[]} opts.entry - The entry array.
122
+ * @returns {import('tsup').Options}
123
+ */
124
+ export declare function legacyConfig(opts: {
125
+ entry: string[];
126
+ }): Options;
127
+
128
+ /**
129
+ * @param {Object} opts - Options for building configurations.
130
+ * @param {string[]} opts.entry - The entry array.
131
+ * @returns {import('tsup').Options}
132
+ */
133
+ export declare function modernConfig(opts: {
134
+ entry: string[];
135
+ }): Options;
136
+
137
+ export declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
138
+
139
+ export declare const PreactQueryDevtools_alias_1: (typeof Devtools)['PreactQueryDevtools'];
140
+
141
+ export declare const PreactQueryDevtools_alias_2: typeof Devtools.PreactQueryDevtools;
142
+
143
+ export declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
144
+
145
+ export declare const PreactQueryDevtoolsPanel_alias_1: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'];
146
+
147
+ export declare const PreactQueryDevtoolsPanel_alias_2: typeof DevtoolsPanel.PreactQueryDevtoolsPanel;
148
+
149
+ export { }
@@ -1,11 +1,3 @@
1
- import { D as Devtools } from './PreactQueryDevtools-BKJv-YAr.cjs';
2
- import { D as DevtoolsPanelOptions$1, a as DevtoolsPanel } from './PreactQueryDevtoolsPanel-tSWW-AUr.cjs';
3
- import '@tanstack/query-devtools';
4
- import '@tanstack/preact-query';
5
- import 'preact';
6
-
7
- declare const PreactQueryDevtools: (typeof Devtools)['PreactQueryDevtools'];
8
- declare const PreactQueryDevtoolsPanel: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'];
9
- type DevtoolsPanelOptions = DevtoolsPanelOptions$1;
10
-
11
- export { type DevtoolsPanelOptions, PreactQueryDevtools, PreactQueryDevtoolsPanel };
1
+ export { PreactQueryDevtools_alias_1 as PreactQueryDevtools } from './_tsup-dts-rollup.cjs';
2
+ export { PreactQueryDevtoolsPanel_alias_1 as PreactQueryDevtoolsPanel } from './_tsup-dts-rollup.cjs';
3
+ export { DevtoolsPanelOptions_alias_1 as DevtoolsPanelOptions } from './_tsup-dts-rollup.cjs';
@@ -1,11 +1,3 @@
1
- import { D as Devtools } from './PreactQueryDevtools-BKJv-YAr.js';
2
- import { D as DevtoolsPanelOptions$1, a as DevtoolsPanel } from './PreactQueryDevtoolsPanel-tSWW-AUr.js';
3
- import '@tanstack/query-devtools';
4
- import '@tanstack/preact-query';
5
- import 'preact';
6
-
7
- declare const PreactQueryDevtools: (typeof Devtools)['PreactQueryDevtools'];
8
- declare const PreactQueryDevtoolsPanel: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'];
9
- type DevtoolsPanelOptions = DevtoolsPanelOptions$1;
10
-
11
- export { type DevtoolsPanelOptions, PreactQueryDevtools, PreactQueryDevtoolsPanel };
1
+ export { PreactQueryDevtools_alias_1 as PreactQueryDevtools } from './_tsup-dts-rollup.js';
2
+ export { PreactQueryDevtoolsPanel_alias_1 as PreactQueryDevtoolsPanel } from './_tsup-dts-rollup.js';
3
+ export { DevtoolsPanelOptions_alias_1 as DevtoolsPanelOptions } from './_tsup-dts-rollup.js';
@@ -1,10 +1,2 @@
1
- import { P as PreactQueryDevtools$1 } from './PreactQueryDevtools-BKJv-YAr.cjs';
2
- import { P as PreactQueryDevtoolsPanel$1 } from './PreactQueryDevtoolsPanel-tSWW-AUr.cjs';
3
- import '@tanstack/query-devtools';
4
- import '@tanstack/preact-query';
5
- import 'preact';
6
-
7
- declare const PreactQueryDevtools: typeof PreactQueryDevtools$1;
8
- declare const PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel$1;
9
-
10
- export { PreactQueryDevtools, PreactQueryDevtoolsPanel };
1
+ export { PreactQueryDevtools_alias_2 as PreactQueryDevtools } from './_tsup-dts-rollup.cjs';
2
+ export { PreactQueryDevtoolsPanel_alias_2 as PreactQueryDevtoolsPanel } from './_tsup-dts-rollup.cjs';
@@ -1,10 +1,2 @@
1
- import { P as PreactQueryDevtools$1 } from './PreactQueryDevtools-BKJv-YAr.js';
2
- import { P as PreactQueryDevtoolsPanel$1 } from './PreactQueryDevtoolsPanel-tSWW-AUr.js';
3
- import '@tanstack/query-devtools';
4
- import '@tanstack/preact-query';
5
- import 'preact';
6
-
7
- declare const PreactQueryDevtools: typeof PreactQueryDevtools$1;
8
- declare const PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel$1;
9
-
10
- export { PreactQueryDevtools, PreactQueryDevtoolsPanel };
1
+ export { PreactQueryDevtools_alias_2 as PreactQueryDevtools } from './_tsup-dts-rollup.js';
2
+ export { PreactQueryDevtoolsPanel_alias_2 as PreactQueryDevtoolsPanel } from './_tsup-dts-rollup.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/preact-query-devtools",
3
- "version": "5.92.0",
3
+ "version": "5.94.5",
4
4
  "description": "Developer tools to interact with and visualize the TanStack/preact-query cache",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -59,7 +59,7 @@
59
59
  "!src/__tests__"
60
60
  ],
61
61
  "dependencies": {
62
- "@tanstack/query-devtools": "5.93.0"
62
+ "@tanstack/query-devtools": "5.94.5"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@preact/preset-vite": "^2.10.2",
@@ -67,27 +67,27 @@
67
67
  "eslint-config-preact": "^2.0.0",
68
68
  "npm-run-all2": "^5.0.0",
69
69
  "preact": "^10.28.0",
70
+ "typescript": "5.9.3",
70
71
  "typescript-eslint": "^8.54.0",
71
- "@tanstack/preact-query": "5.93.0"
72
+ "@tanstack/preact-query": "5.94.5"
72
73
  },
73
74
  "peerDependencies": {
74
75
  "preact": "^10.0.0",
75
- "@tanstack/preact-query": "^5.93.0"
76
+ "@tanstack/preact-query": "^5.94.5"
76
77
  },
77
78
  "scripts": {
78
79
  "clean": "premove ./build ./coverage ./dist-ts",
79
80
  "compile": "tsc --build",
80
81
  "test:eslint": "eslint --concurrency=auto ./src",
81
82
  "test:types": "npm-run-all --serial test:types:*",
82
- "test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js --build tsconfig.legacy.json",
83
- "test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js --build tsconfig.legacy.json",
84
- "test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js --build tsconfig.legacy.json",
85
- "test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js --build tsconfig.legacy.json",
86
83
  "test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js --build tsconfig.legacy.json",
87
84
  "test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js --build tsconfig.legacy.json",
88
85
  "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json",
89
86
  "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json",
87
+ "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json",
88
+ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json",
90
89
  "test:types:tscurrent": "tsc --build",
90
+ "test:types:ts60": "node ../../node_modules/typescript60/lib/tsc.js --build tsconfig.legacy.json",
91
91
  "test:build": "publint --strict && attw --pack",
92
92
  "build": "tsup --tsconfig tsconfig.prod.json",
93
93
  "build:dev": "tsup --watch"
@@ -1,57 +0,0 @@
1
- import { DevtoolsButtonPosition, DevtoolsPosition, DevtoolsErrorType, Theme } from '@tanstack/query-devtools';
2
- import { QueryClient } from '@tanstack/preact-query';
3
- import { VNode } from 'preact';
4
-
5
- interface DevtoolsOptions {
6
- /**
7
- * Set this true if you want the dev tools to default to being open
8
- */
9
- initialIsOpen?: boolean;
10
- /**
11
- * The position of the TanStack logo to open and close the devtools panel.
12
- * Defaults to 'bottom-right'.
13
- */
14
- buttonPosition?: DevtoolsButtonPosition;
15
- /**
16
- * The position of the Preact Query devtools panel.
17
- * Defaults to 'bottom'.
18
- */
19
- position?: DevtoolsPosition;
20
- /**
21
- * Use this to provide a custom QueryClient. Otherwise, the one from the
22
- * nearest QueryClientProvider will be used.
23
- */
24
- client?: QueryClient;
25
- /**
26
- * Use this to provide custom error type handlers for the devtools panel.
27
- */
28
- errorTypes?: Array<DevtoolsErrorType>;
29
- /**
30
- * Use this to pass a nonce to the style tag that is added to the document
31
- * head. This is useful if you are using a Content Security Policy (CSP)
32
- * nonce to allow inline styles.
33
- */
34
- styleNonce?: string;
35
- /**
36
- * Use this to render the devtools inside a Shadow DOM.
37
- */
38
- shadowDOMTarget?: ShadowRoot;
39
- /**
40
- * Use this to hide disabled queries from the devtools panel.
41
- */
42
- hideDisabledQueries?: boolean;
43
- /**
44
- * Use this to set the theme of the devtools panel.
45
- * Defaults to 'system'.
46
- */
47
- theme?: Theme;
48
- }
49
- declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
50
-
51
- type Devtools_DevtoolsOptions = DevtoolsOptions;
52
- declare const Devtools_PreactQueryDevtools: typeof PreactQueryDevtools;
53
- declare namespace Devtools {
54
- export { type Devtools_DevtoolsOptions as DevtoolsOptions, Devtools_PreactQueryDevtools as PreactQueryDevtools };
55
- }
56
-
57
- export { Devtools as D, PreactQueryDevtools as P, type DevtoolsOptions as a };
@@ -1,57 +0,0 @@
1
- import { DevtoolsButtonPosition, DevtoolsPosition, DevtoolsErrorType, Theme } from '@tanstack/query-devtools';
2
- import { QueryClient } from '@tanstack/preact-query';
3
- import { VNode } from 'preact';
4
-
5
- interface DevtoolsOptions {
6
- /**
7
- * Set this true if you want the dev tools to default to being open
8
- */
9
- initialIsOpen?: boolean;
10
- /**
11
- * The position of the TanStack logo to open and close the devtools panel.
12
- * Defaults to 'bottom-right'.
13
- */
14
- buttonPosition?: DevtoolsButtonPosition;
15
- /**
16
- * The position of the Preact Query devtools panel.
17
- * Defaults to 'bottom'.
18
- */
19
- position?: DevtoolsPosition;
20
- /**
21
- * Use this to provide a custom QueryClient. Otherwise, the one from the
22
- * nearest QueryClientProvider will be used.
23
- */
24
- client?: QueryClient;
25
- /**
26
- * Use this to provide custom error type handlers for the devtools panel.
27
- */
28
- errorTypes?: Array<DevtoolsErrorType>;
29
- /**
30
- * Use this to pass a nonce to the style tag that is added to the document
31
- * head. This is useful if you are using a Content Security Policy (CSP)
32
- * nonce to allow inline styles.
33
- */
34
- styleNonce?: string;
35
- /**
36
- * Use this to render the devtools inside a Shadow DOM.
37
- */
38
- shadowDOMTarget?: ShadowRoot;
39
- /**
40
- * Use this to hide disabled queries from the devtools panel.
41
- */
42
- hideDisabledQueries?: boolean;
43
- /**
44
- * Use this to set the theme of the devtools panel.
45
- * Defaults to 'system'.
46
- */
47
- theme?: Theme;
48
- }
49
- declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
50
-
51
- type Devtools_DevtoolsOptions = DevtoolsOptions;
52
- declare const Devtools_PreactQueryDevtools: typeof PreactQueryDevtools;
53
- declare namespace Devtools {
54
- export { type Devtools_DevtoolsOptions as DevtoolsOptions, Devtools_PreactQueryDevtools as PreactQueryDevtools };
55
- }
56
-
57
- export { Devtools as D, PreactQueryDevtools as P, type DevtoolsOptions as a };
@@ -1,51 +0,0 @@
1
- import { DevtoolsErrorType, Theme } from '@tanstack/query-devtools';
2
- import { QueryClient } from '@tanstack/preact-query';
3
- import { JSX, VNode } from 'preact';
4
-
5
- interface DevtoolsPanelOptions {
6
- /**
7
- * Use this to provide a custom QueryClient. Otherwise, the one from the
8
- * nearest QueryClientProvider will be used.
9
- */
10
- client?: QueryClient;
11
- /**
12
- * Custom error types to be shown in the devtools.
13
- */
14
- errorTypes?: Array<DevtoolsErrorType>;
15
- /**
16
- * Use this to pass a nonce to the style tag that is added to the document
17
- * head. This is useful if you are using a Content Security Policy (CSP)
18
- * nonce to allow inline styles.
19
- */
20
- styleNonce?: string;
21
- /**
22
- * Use this to render the devtools inside a Shadow DOM.
23
- */
24
- shadowDOMTarget?: ShadowRoot;
25
- /**
26
- * Custom styles for the devtools panel container.
27
- */
28
- style?: JSX.CSSProperties;
29
- /**
30
- * Callback function when the devtools panel is closed.
31
- */
32
- onClose?: () => unknown;
33
- /**
34
- * Use this to hide disabled queries from the devtools panel.
35
- */
36
- hideDisabledQueries?: boolean;
37
- /**
38
- * Use this to set the theme of the devtools panel.
39
- * Defaults to 'system'.
40
- */
41
- theme?: Theme;
42
- }
43
- declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
44
-
45
- type DevtoolsPanel_DevtoolsPanelOptions = DevtoolsPanelOptions;
46
- declare const DevtoolsPanel_PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel;
47
- declare namespace DevtoolsPanel {
48
- export { type DevtoolsPanel_DevtoolsPanelOptions as DevtoolsPanelOptions, DevtoolsPanel_PreactQueryDevtoolsPanel as PreactQueryDevtoolsPanel };
49
- }
50
-
51
- export { type DevtoolsPanelOptions as D, PreactQueryDevtoolsPanel as P, DevtoolsPanel as a };
@@ -1,51 +0,0 @@
1
- import { DevtoolsErrorType, Theme } from '@tanstack/query-devtools';
2
- import { QueryClient } from '@tanstack/preact-query';
3
- import { JSX, VNode } from 'preact';
4
-
5
- interface DevtoolsPanelOptions {
6
- /**
7
- * Use this to provide a custom QueryClient. Otherwise, the one from the
8
- * nearest QueryClientProvider will be used.
9
- */
10
- client?: QueryClient;
11
- /**
12
- * Custom error types to be shown in the devtools.
13
- */
14
- errorTypes?: Array<DevtoolsErrorType>;
15
- /**
16
- * Use this to pass a nonce to the style tag that is added to the document
17
- * head. This is useful if you are using a Content Security Policy (CSP)
18
- * nonce to allow inline styles.
19
- */
20
- styleNonce?: string;
21
- /**
22
- * Use this to render the devtools inside a Shadow DOM.
23
- */
24
- shadowDOMTarget?: ShadowRoot;
25
- /**
26
- * Custom styles for the devtools panel container.
27
- */
28
- style?: JSX.CSSProperties;
29
- /**
30
- * Callback function when the devtools panel is closed.
31
- */
32
- onClose?: () => unknown;
33
- /**
34
- * Use this to hide disabled queries from the devtools panel.
35
- */
36
- hideDisabledQueries?: boolean;
37
- /**
38
- * Use this to set the theme of the devtools panel.
39
- * Defaults to 'system'.
40
- */
41
- theme?: Theme;
42
- }
43
- declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
44
-
45
- type DevtoolsPanel_DevtoolsPanelOptions = DevtoolsPanelOptions;
46
- declare const DevtoolsPanel_PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel;
47
- declare namespace DevtoolsPanel {
48
- export { type DevtoolsPanel_DevtoolsPanelOptions as DevtoolsPanelOptions, DevtoolsPanel_PreactQueryDevtoolsPanel as PreactQueryDevtoolsPanel };
49
- }
50
-
51
- export { type DevtoolsPanelOptions as D, PreactQueryDevtoolsPanel as P, DevtoolsPanel as a };
@@ -1,57 +0,0 @@
1
- import { DevtoolsButtonPosition, DevtoolsPosition, DevtoolsErrorType, Theme } from '@tanstack/query-devtools';
2
- import { QueryClient } from '@tanstack/preact-query';
3
- import { VNode } from 'preact';
4
-
5
- interface DevtoolsOptions {
6
- /**
7
- * Set this true if you want the dev tools to default to being open
8
- */
9
- initialIsOpen?: boolean;
10
- /**
11
- * The position of the TanStack logo to open and close the devtools panel.
12
- * Defaults to 'bottom-right'.
13
- */
14
- buttonPosition?: DevtoolsButtonPosition;
15
- /**
16
- * The position of the Preact Query devtools panel.
17
- * Defaults to 'bottom'.
18
- */
19
- position?: DevtoolsPosition;
20
- /**
21
- * Use this to provide a custom QueryClient. Otherwise, the one from the
22
- * nearest QueryClientProvider will be used.
23
- */
24
- client?: QueryClient;
25
- /**
26
- * Use this to provide custom error type handlers for the devtools panel.
27
- */
28
- errorTypes?: Array<DevtoolsErrorType>;
29
- /**
30
- * Use this to pass a nonce to the style tag that is added to the document
31
- * head. This is useful if you are using a Content Security Policy (CSP)
32
- * nonce to allow inline styles.
33
- */
34
- styleNonce?: string;
35
- /**
36
- * Use this to render the devtools inside a Shadow DOM.
37
- */
38
- shadowDOMTarget?: ShadowRoot;
39
- /**
40
- * Use this to hide disabled queries from the devtools panel.
41
- */
42
- hideDisabledQueries?: boolean;
43
- /**
44
- * Use this to set the theme of the devtools panel.
45
- * Defaults to 'system'.
46
- */
47
- theme?: Theme;
48
- }
49
- declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
50
-
51
- type Devtools_DevtoolsOptions = DevtoolsOptions;
52
- declare const Devtools_PreactQueryDevtools: typeof PreactQueryDevtools;
53
- declare namespace Devtools {
54
- export { type Devtools_DevtoolsOptions as DevtoolsOptions, Devtools_PreactQueryDevtools as PreactQueryDevtools };
55
- }
56
-
57
- export { Devtools as D, PreactQueryDevtools as P, type DevtoolsOptions as a };
@@ -1,57 +0,0 @@
1
- import { DevtoolsButtonPosition, DevtoolsPosition, DevtoolsErrorType, Theme } from '@tanstack/query-devtools';
2
- import { QueryClient } from '@tanstack/preact-query';
3
- import { VNode } from 'preact';
4
-
5
- interface DevtoolsOptions {
6
- /**
7
- * Set this true if you want the dev tools to default to being open
8
- */
9
- initialIsOpen?: boolean;
10
- /**
11
- * The position of the TanStack logo to open and close the devtools panel.
12
- * Defaults to 'bottom-right'.
13
- */
14
- buttonPosition?: DevtoolsButtonPosition;
15
- /**
16
- * The position of the Preact Query devtools panel.
17
- * Defaults to 'bottom'.
18
- */
19
- position?: DevtoolsPosition;
20
- /**
21
- * Use this to provide a custom QueryClient. Otherwise, the one from the
22
- * nearest QueryClientProvider will be used.
23
- */
24
- client?: QueryClient;
25
- /**
26
- * Use this to provide custom error type handlers for the devtools panel.
27
- */
28
- errorTypes?: Array<DevtoolsErrorType>;
29
- /**
30
- * Use this to pass a nonce to the style tag that is added to the document
31
- * head. This is useful if you are using a Content Security Policy (CSP)
32
- * nonce to allow inline styles.
33
- */
34
- styleNonce?: string;
35
- /**
36
- * Use this to render the devtools inside a Shadow DOM.
37
- */
38
- shadowDOMTarget?: ShadowRoot;
39
- /**
40
- * Use this to hide disabled queries from the devtools panel.
41
- */
42
- hideDisabledQueries?: boolean;
43
- /**
44
- * Use this to set the theme of the devtools panel.
45
- * Defaults to 'system'.
46
- */
47
- theme?: Theme;
48
- }
49
- declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
50
-
51
- type Devtools_DevtoolsOptions = DevtoolsOptions;
52
- declare const Devtools_PreactQueryDevtools: typeof PreactQueryDevtools;
53
- declare namespace Devtools {
54
- export { type Devtools_DevtoolsOptions as DevtoolsOptions, Devtools_PreactQueryDevtools as PreactQueryDevtools };
55
- }
56
-
57
- export { Devtools as D, PreactQueryDevtools as P, type DevtoolsOptions as a };
@@ -1,51 +0,0 @@
1
- import { DevtoolsErrorType, Theme } from '@tanstack/query-devtools';
2
- import { QueryClient } from '@tanstack/preact-query';
3
- import { JSX, VNode } from 'preact';
4
-
5
- interface DevtoolsPanelOptions {
6
- /**
7
- * Use this to provide a custom QueryClient. Otherwise, the one from the
8
- * nearest QueryClientProvider will be used.
9
- */
10
- client?: QueryClient;
11
- /**
12
- * Custom error types to be shown in the devtools.
13
- */
14
- errorTypes?: Array<DevtoolsErrorType>;
15
- /**
16
- * Use this to pass a nonce to the style tag that is added to the document
17
- * head. This is useful if you are using a Content Security Policy (CSP)
18
- * nonce to allow inline styles.
19
- */
20
- styleNonce?: string;
21
- /**
22
- * Use this to render the devtools inside a Shadow DOM.
23
- */
24
- shadowDOMTarget?: ShadowRoot;
25
- /**
26
- * Custom styles for the devtools panel container.
27
- */
28
- style?: JSX.CSSProperties;
29
- /**
30
- * Callback function when the devtools panel is closed.
31
- */
32
- onClose?: () => unknown;
33
- /**
34
- * Use this to hide disabled queries from the devtools panel.
35
- */
36
- hideDisabledQueries?: boolean;
37
- /**
38
- * Use this to set the theme of the devtools panel.
39
- * Defaults to 'system'.
40
- */
41
- theme?: Theme;
42
- }
43
- declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
44
-
45
- type DevtoolsPanel_DevtoolsPanelOptions = DevtoolsPanelOptions;
46
- declare const DevtoolsPanel_PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel;
47
- declare namespace DevtoolsPanel {
48
- export { type DevtoolsPanel_DevtoolsPanelOptions as DevtoolsPanelOptions, DevtoolsPanel_PreactQueryDevtoolsPanel as PreactQueryDevtoolsPanel };
49
- }
50
-
51
- export { type DevtoolsPanelOptions as D, PreactQueryDevtoolsPanel as P, DevtoolsPanel as a };
@@ -1,51 +0,0 @@
1
- import { DevtoolsErrorType, Theme } from '@tanstack/query-devtools';
2
- import { QueryClient } from '@tanstack/preact-query';
3
- import { JSX, VNode } from 'preact';
4
-
5
- interface DevtoolsPanelOptions {
6
- /**
7
- * Use this to provide a custom QueryClient. Otherwise, the one from the
8
- * nearest QueryClientProvider will be used.
9
- */
10
- client?: QueryClient;
11
- /**
12
- * Custom error types to be shown in the devtools.
13
- */
14
- errorTypes?: Array<DevtoolsErrorType>;
15
- /**
16
- * Use this to pass a nonce to the style tag that is added to the document
17
- * head. This is useful if you are using a Content Security Policy (CSP)
18
- * nonce to allow inline styles.
19
- */
20
- styleNonce?: string;
21
- /**
22
- * Use this to render the devtools inside a Shadow DOM.
23
- */
24
- shadowDOMTarget?: ShadowRoot;
25
- /**
26
- * Custom styles for the devtools panel container.
27
- */
28
- style?: JSX.CSSProperties;
29
- /**
30
- * Callback function when the devtools panel is closed.
31
- */
32
- onClose?: () => unknown;
33
- /**
34
- * Use this to hide disabled queries from the devtools panel.
35
- */
36
- hideDisabledQueries?: boolean;
37
- /**
38
- * Use this to set the theme of the devtools panel.
39
- * Defaults to 'system'.
40
- */
41
- theme?: Theme;
42
- }
43
- declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
44
-
45
- type DevtoolsPanel_DevtoolsPanelOptions = DevtoolsPanelOptions;
46
- declare const DevtoolsPanel_PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel;
47
- declare namespace DevtoolsPanel {
48
- export { type DevtoolsPanel_DevtoolsPanelOptions as DevtoolsPanelOptions, DevtoolsPanel_PreactQueryDevtoolsPanel as PreactQueryDevtoolsPanel };
49
- }
50
-
51
- export { type DevtoolsPanelOptions as D, PreactQueryDevtoolsPanel as P, DevtoolsPanel as a };