@tanstack/preact-query-devtools 5.101.4 → 5.102.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/legacy/PreactQueryDevtools.cjs +55 -92
- package/build/legacy/PreactQueryDevtools.cjs.map +1 -1
- package/build/legacy/PreactQueryDevtools.d.cts +56 -2
- package/build/legacy/PreactQueryDevtools.d.cts.map +1 -0
- package/build/legacy/PreactQueryDevtools.d.ts +56 -2
- package/build/legacy/PreactQueryDevtools.d.ts.map +1 -0
- package/build/legacy/PreactQueryDevtools.js +51 -64
- package/build/legacy/PreactQueryDevtools.js.map +1 -1
- package/build/legacy/PreactQueryDevtoolsPanel.cjs +53 -88
- package/build/legacy/PreactQueryDevtoolsPanel.cjs.map +1 -1
- package/build/legacy/PreactQueryDevtoolsPanel.d.cts +48 -2
- package/build/legacy/PreactQueryDevtoolsPanel.d.cts.map +1 -0
- package/build/legacy/PreactQueryDevtoolsPanel.d.ts +48 -2
- package/build/legacy/PreactQueryDevtoolsPanel.d.ts.map +1 -0
- package/build/legacy/PreactQueryDevtoolsPanel.js +49 -60
- package/build/legacy/PreactQueryDevtoolsPanel.js.map +1 -1
- package/build/legacy/index.cjs +13 -48
- package/build/legacy/index.cjs.map +1 -1
- package/build/legacy/index.d.cts +9 -3
- package/build/legacy/index.d.cts.map +1 -0
- package/build/legacy/index.d.ts +9 -3
- package/build/legacy/index.d.ts.map +1 -0
- package/build/legacy/index.js +12 -13
- package/build/legacy/index.js.map +1 -1
- package/build/legacy/production.cjs +9 -44
- package/build/legacy/production.cjs.map +1 -1
- package/build/legacy/production.d.cts +8 -2
- package/build/legacy/production.d.cts.map +1 -0
- package/build/legacy/production.d.ts +8 -2
- package/build/legacy/production.d.ts.map +1 -0
- package/build/legacy/production.js +8 -9
- package/build/legacy/production.js.map +1 -1
- package/build/legacy/rolldown-runtime-D7D4PA-g.js +13 -0
- package/build/modern/PreactQueryDevtools.cjs +55 -92
- package/build/modern/PreactQueryDevtools.cjs.map +1 -1
- package/build/modern/PreactQueryDevtools.d.cts +56 -2
- package/build/modern/PreactQueryDevtools.d.cts.map +1 -0
- package/build/modern/PreactQueryDevtools.d.ts +56 -2
- package/build/modern/PreactQueryDevtools.d.ts.map +1 -0
- package/build/modern/PreactQueryDevtools.js +51 -64
- package/build/modern/PreactQueryDevtools.js.map +1 -1
- package/build/modern/PreactQueryDevtoolsPanel.cjs +53 -88
- package/build/modern/PreactQueryDevtoolsPanel.cjs.map +1 -1
- package/build/modern/PreactQueryDevtoolsPanel.d.cts +48 -2
- package/build/modern/PreactQueryDevtoolsPanel.d.cts.map +1 -0
- package/build/modern/PreactQueryDevtoolsPanel.d.ts +48 -2
- package/build/modern/PreactQueryDevtoolsPanel.d.ts.map +1 -0
- package/build/modern/PreactQueryDevtoolsPanel.js +49 -60
- package/build/modern/PreactQueryDevtoolsPanel.js.map +1 -1
- package/build/modern/index.cjs +13 -48
- package/build/modern/index.cjs.map +1 -1
- package/build/modern/index.d.cts +9 -3
- package/build/modern/index.d.cts.map +1 -0
- package/build/modern/index.d.ts +9 -3
- package/build/modern/index.d.ts.map +1 -0
- package/build/modern/index.js +12 -13
- package/build/modern/index.js.map +1 -1
- package/build/modern/production.cjs +9 -44
- package/build/modern/production.cjs.map +1 -1
- package/build/modern/production.d.cts +8 -2
- package/build/modern/production.d.cts.map +1 -0
- package/build/modern/production.d.ts +8 -2
- package/build/modern/production.d.ts.map +1 -0
- package/build/modern/production.js +8 -9
- package/build/modern/production.js.map +1 -1
- package/build/modern/rolldown-runtime-D7D4PA-g.js +13 -0
- package/package.json +8 -10
- package/build/legacy/_tsup-dts-rollup.d.cts +0 -123
- package/build/legacy/_tsup-dts-rollup.d.ts +0 -123
- package/build/modern/_tsup-dts-rollup.d.cts +0 -123
- package/build/modern/_tsup-dts-rollup.d.ts +0 -123
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from 'preact';
|
|
2
|
-
import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
|
|
3
|
-
import type { DevtoolsErrorType } from '@tanstack/query-devtools';
|
|
4
|
-
import type { DevtoolsPosition } from '@tanstack/query-devtools';
|
|
5
|
-
import type { QueryClient } from '@tanstack/preact-query';
|
|
6
|
-
import type { Theme } from '@tanstack/query-devtools';
|
|
7
|
-
import type { VNode } from 'preact';
|
|
8
|
-
|
|
9
|
-
declare namespace Devtools {
|
|
10
|
-
export {
|
|
11
|
-
PreactQueryDevtools,
|
|
12
|
-
DevtoolsOptions
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export declare interface DevtoolsOptions {
|
|
17
|
-
/**
|
|
18
|
-
* Set this true if you want the dev tools to default to being open
|
|
19
|
-
*/
|
|
20
|
-
initialIsOpen?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* The position of the TanStack logo to open and close the devtools panel.
|
|
23
|
-
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
|
|
24
|
-
* Defaults to 'bottom-right'.
|
|
25
|
-
*/
|
|
26
|
-
buttonPosition?: DevtoolsButtonPosition;
|
|
27
|
-
/**
|
|
28
|
-
* The position of the Preact Query devtools panel.
|
|
29
|
-
* 'top' | 'bottom' | 'left' | 'right'
|
|
30
|
-
* Defaults to 'bottom'.
|
|
31
|
-
*/
|
|
32
|
-
position?: DevtoolsPosition;
|
|
33
|
-
/**
|
|
34
|
-
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
35
|
-
* nearest QueryClientProvider will be used.
|
|
36
|
-
*/
|
|
37
|
-
client?: QueryClient;
|
|
38
|
-
/**
|
|
39
|
-
* Use this to provide custom error type handlers for the devtools panel.
|
|
40
|
-
*/
|
|
41
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
42
|
-
/**
|
|
43
|
-
* Use this to pass a nonce to the style tag that is added to the document
|
|
44
|
-
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
45
|
-
* nonce to allow inline styles.
|
|
46
|
-
*/
|
|
47
|
-
styleNonce?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Use this to render the devtools inside a Shadow DOM.
|
|
50
|
-
*/
|
|
51
|
-
shadowDOMTarget?: ShadowRoot;
|
|
52
|
-
/**
|
|
53
|
-
* Use this to hide disabled queries from the devtools panel.
|
|
54
|
-
*/
|
|
55
|
-
hideDisabledQueries?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Use this to set the theme of the devtools panel.
|
|
58
|
-
* Defaults to 'system'.
|
|
59
|
-
*/
|
|
60
|
-
theme?: Theme;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare namespace DevtoolsPanel {
|
|
64
|
-
export {
|
|
65
|
-
PreactQueryDevtoolsPanel,
|
|
66
|
-
DevtoolsPanelOptions
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export declare interface DevtoolsPanelOptions {
|
|
71
|
-
/**
|
|
72
|
-
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
73
|
-
* nearest QueryClientProvider will be used.
|
|
74
|
-
*/
|
|
75
|
-
client?: QueryClient;
|
|
76
|
-
/**
|
|
77
|
-
* Custom error types to be shown in the devtools.
|
|
78
|
-
*/
|
|
79
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
80
|
-
/**
|
|
81
|
-
* Use this to pass a nonce to the style tag that is added to the document
|
|
82
|
-
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
83
|
-
* nonce to allow inline styles.
|
|
84
|
-
*/
|
|
85
|
-
styleNonce?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Use this to render the devtools inside a Shadow DOM.
|
|
88
|
-
*/
|
|
89
|
-
shadowDOMTarget?: ShadowRoot;
|
|
90
|
-
/**
|
|
91
|
-
* Custom styles for the devtools panel container.
|
|
92
|
-
*/
|
|
93
|
-
style?: CSSProperties;
|
|
94
|
-
/**
|
|
95
|
-
* Callback function when the devtools panel is closed.
|
|
96
|
-
*/
|
|
97
|
-
onClose?: () => unknown;
|
|
98
|
-
/**
|
|
99
|
-
* Use this to hide disabled queries from the devtools panel.
|
|
100
|
-
*/
|
|
101
|
-
hideDisabledQueries?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Use this to set the theme of the devtools panel.
|
|
104
|
-
* Defaults to 'system'.
|
|
105
|
-
*/
|
|
106
|
-
theme?: Theme;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export declare type DevtoolsPanelOptions_alias_1 = DevtoolsPanel.DevtoolsPanelOptions;
|
|
110
|
-
|
|
111
|
-
export declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
|
|
112
|
-
|
|
113
|
-
export declare const PreactQueryDevtools_alias_1: (typeof Devtools)['PreactQueryDevtools'];
|
|
114
|
-
|
|
115
|
-
export declare const PreactQueryDevtools_alias_2: typeof Devtools.PreactQueryDevtools;
|
|
116
|
-
|
|
117
|
-
export declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
|
|
118
|
-
|
|
119
|
-
export declare const PreactQueryDevtoolsPanel_alias_1: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'];
|
|
120
|
-
|
|
121
|
-
export declare const PreactQueryDevtoolsPanel_alias_2: typeof DevtoolsPanel.PreactQueryDevtoolsPanel;
|
|
122
|
-
|
|
123
|
-
export { }
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from 'preact';
|
|
2
|
-
import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
|
|
3
|
-
import type { DevtoolsErrorType } from '@tanstack/query-devtools';
|
|
4
|
-
import type { DevtoolsPosition } from '@tanstack/query-devtools';
|
|
5
|
-
import type { QueryClient } from '@tanstack/preact-query';
|
|
6
|
-
import type { Theme } from '@tanstack/query-devtools';
|
|
7
|
-
import type { VNode } from 'preact';
|
|
8
|
-
|
|
9
|
-
declare namespace Devtools {
|
|
10
|
-
export {
|
|
11
|
-
PreactQueryDevtools,
|
|
12
|
-
DevtoolsOptions
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export declare interface DevtoolsOptions {
|
|
17
|
-
/**
|
|
18
|
-
* Set this true if you want the dev tools to default to being open
|
|
19
|
-
*/
|
|
20
|
-
initialIsOpen?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* The position of the TanStack logo to open and close the devtools panel.
|
|
23
|
-
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
|
|
24
|
-
* Defaults to 'bottom-right'.
|
|
25
|
-
*/
|
|
26
|
-
buttonPosition?: DevtoolsButtonPosition;
|
|
27
|
-
/**
|
|
28
|
-
* The position of the Preact Query devtools panel.
|
|
29
|
-
* 'top' | 'bottom' | 'left' | 'right'
|
|
30
|
-
* Defaults to 'bottom'.
|
|
31
|
-
*/
|
|
32
|
-
position?: DevtoolsPosition;
|
|
33
|
-
/**
|
|
34
|
-
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
35
|
-
* nearest QueryClientProvider will be used.
|
|
36
|
-
*/
|
|
37
|
-
client?: QueryClient;
|
|
38
|
-
/**
|
|
39
|
-
* Use this to provide custom error type handlers for the devtools panel.
|
|
40
|
-
*/
|
|
41
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
42
|
-
/**
|
|
43
|
-
* Use this to pass a nonce to the style tag that is added to the document
|
|
44
|
-
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
45
|
-
* nonce to allow inline styles.
|
|
46
|
-
*/
|
|
47
|
-
styleNonce?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Use this to render the devtools inside a Shadow DOM.
|
|
50
|
-
*/
|
|
51
|
-
shadowDOMTarget?: ShadowRoot;
|
|
52
|
-
/**
|
|
53
|
-
* Use this to hide disabled queries from the devtools panel.
|
|
54
|
-
*/
|
|
55
|
-
hideDisabledQueries?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Use this to set the theme of the devtools panel.
|
|
58
|
-
* Defaults to 'system'.
|
|
59
|
-
*/
|
|
60
|
-
theme?: Theme;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare namespace DevtoolsPanel {
|
|
64
|
-
export {
|
|
65
|
-
PreactQueryDevtoolsPanel,
|
|
66
|
-
DevtoolsPanelOptions
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export declare interface DevtoolsPanelOptions {
|
|
71
|
-
/**
|
|
72
|
-
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
73
|
-
* nearest QueryClientProvider will be used.
|
|
74
|
-
*/
|
|
75
|
-
client?: QueryClient;
|
|
76
|
-
/**
|
|
77
|
-
* Custom error types to be shown in the devtools.
|
|
78
|
-
*/
|
|
79
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
80
|
-
/**
|
|
81
|
-
* Use this to pass a nonce to the style tag that is added to the document
|
|
82
|
-
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
83
|
-
* nonce to allow inline styles.
|
|
84
|
-
*/
|
|
85
|
-
styleNonce?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Use this to render the devtools inside a Shadow DOM.
|
|
88
|
-
*/
|
|
89
|
-
shadowDOMTarget?: ShadowRoot;
|
|
90
|
-
/**
|
|
91
|
-
* Custom styles for the devtools panel container.
|
|
92
|
-
*/
|
|
93
|
-
style?: CSSProperties;
|
|
94
|
-
/**
|
|
95
|
-
* Callback function when the devtools panel is closed.
|
|
96
|
-
*/
|
|
97
|
-
onClose?: () => unknown;
|
|
98
|
-
/**
|
|
99
|
-
* Use this to hide disabled queries from the devtools panel.
|
|
100
|
-
*/
|
|
101
|
-
hideDisabledQueries?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Use this to set the theme of the devtools panel.
|
|
104
|
-
* Defaults to 'system'.
|
|
105
|
-
*/
|
|
106
|
-
theme?: Theme;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export declare type DevtoolsPanelOptions_alias_1 = DevtoolsPanel.DevtoolsPanelOptions;
|
|
110
|
-
|
|
111
|
-
export declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
|
|
112
|
-
|
|
113
|
-
export declare const PreactQueryDevtools_alias_1: (typeof Devtools)['PreactQueryDevtools'];
|
|
114
|
-
|
|
115
|
-
export declare const PreactQueryDevtools_alias_2: typeof Devtools.PreactQueryDevtools;
|
|
116
|
-
|
|
117
|
-
export declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
|
|
118
|
-
|
|
119
|
-
export declare const PreactQueryDevtoolsPanel_alias_1: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'];
|
|
120
|
-
|
|
121
|
-
export declare const PreactQueryDevtoolsPanel_alias_2: typeof DevtoolsPanel.PreactQueryDevtoolsPanel;
|
|
122
|
-
|
|
123
|
-
export { }
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from 'preact';
|
|
2
|
-
import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
|
|
3
|
-
import type { DevtoolsErrorType } from '@tanstack/query-devtools';
|
|
4
|
-
import type { DevtoolsPosition } from '@tanstack/query-devtools';
|
|
5
|
-
import type { QueryClient } from '@tanstack/preact-query';
|
|
6
|
-
import type { Theme } from '@tanstack/query-devtools';
|
|
7
|
-
import type { VNode } from 'preact';
|
|
8
|
-
|
|
9
|
-
declare namespace Devtools {
|
|
10
|
-
export {
|
|
11
|
-
PreactQueryDevtools,
|
|
12
|
-
DevtoolsOptions
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export declare interface DevtoolsOptions {
|
|
17
|
-
/**
|
|
18
|
-
* Set this true if you want the dev tools to default to being open
|
|
19
|
-
*/
|
|
20
|
-
initialIsOpen?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* The position of the TanStack logo to open and close the devtools panel.
|
|
23
|
-
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
|
|
24
|
-
* Defaults to 'bottom-right'.
|
|
25
|
-
*/
|
|
26
|
-
buttonPosition?: DevtoolsButtonPosition;
|
|
27
|
-
/**
|
|
28
|
-
* The position of the Preact Query devtools panel.
|
|
29
|
-
* 'top' | 'bottom' | 'left' | 'right'
|
|
30
|
-
* Defaults to 'bottom'.
|
|
31
|
-
*/
|
|
32
|
-
position?: DevtoolsPosition;
|
|
33
|
-
/**
|
|
34
|
-
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
35
|
-
* nearest QueryClientProvider will be used.
|
|
36
|
-
*/
|
|
37
|
-
client?: QueryClient;
|
|
38
|
-
/**
|
|
39
|
-
* Use this to provide custom error type handlers for the devtools panel.
|
|
40
|
-
*/
|
|
41
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
42
|
-
/**
|
|
43
|
-
* Use this to pass a nonce to the style tag that is added to the document
|
|
44
|
-
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
45
|
-
* nonce to allow inline styles.
|
|
46
|
-
*/
|
|
47
|
-
styleNonce?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Use this to render the devtools inside a Shadow DOM.
|
|
50
|
-
*/
|
|
51
|
-
shadowDOMTarget?: ShadowRoot;
|
|
52
|
-
/**
|
|
53
|
-
* Use this to hide disabled queries from the devtools panel.
|
|
54
|
-
*/
|
|
55
|
-
hideDisabledQueries?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Use this to set the theme of the devtools panel.
|
|
58
|
-
* Defaults to 'system'.
|
|
59
|
-
*/
|
|
60
|
-
theme?: Theme;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare namespace DevtoolsPanel {
|
|
64
|
-
export {
|
|
65
|
-
PreactQueryDevtoolsPanel,
|
|
66
|
-
DevtoolsPanelOptions
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export declare interface DevtoolsPanelOptions {
|
|
71
|
-
/**
|
|
72
|
-
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
73
|
-
* nearest QueryClientProvider will be used.
|
|
74
|
-
*/
|
|
75
|
-
client?: QueryClient;
|
|
76
|
-
/**
|
|
77
|
-
* Custom error types to be shown in the devtools.
|
|
78
|
-
*/
|
|
79
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
80
|
-
/**
|
|
81
|
-
* Use this to pass a nonce to the style tag that is added to the document
|
|
82
|
-
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
83
|
-
* nonce to allow inline styles.
|
|
84
|
-
*/
|
|
85
|
-
styleNonce?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Use this to render the devtools inside a Shadow DOM.
|
|
88
|
-
*/
|
|
89
|
-
shadowDOMTarget?: ShadowRoot;
|
|
90
|
-
/**
|
|
91
|
-
* Custom styles for the devtools panel container.
|
|
92
|
-
*/
|
|
93
|
-
style?: CSSProperties;
|
|
94
|
-
/**
|
|
95
|
-
* Callback function when the devtools panel is closed.
|
|
96
|
-
*/
|
|
97
|
-
onClose?: () => unknown;
|
|
98
|
-
/**
|
|
99
|
-
* Use this to hide disabled queries from the devtools panel.
|
|
100
|
-
*/
|
|
101
|
-
hideDisabledQueries?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Use this to set the theme of the devtools panel.
|
|
104
|
-
* Defaults to 'system'.
|
|
105
|
-
*/
|
|
106
|
-
theme?: Theme;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export declare type DevtoolsPanelOptions_alias_1 = DevtoolsPanel.DevtoolsPanelOptions;
|
|
110
|
-
|
|
111
|
-
export declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
|
|
112
|
-
|
|
113
|
-
export declare const PreactQueryDevtools_alias_1: (typeof Devtools)['PreactQueryDevtools'];
|
|
114
|
-
|
|
115
|
-
export declare const PreactQueryDevtools_alias_2: typeof Devtools.PreactQueryDevtools;
|
|
116
|
-
|
|
117
|
-
export declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
|
|
118
|
-
|
|
119
|
-
export declare const PreactQueryDevtoolsPanel_alias_1: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'];
|
|
120
|
-
|
|
121
|
-
export declare const PreactQueryDevtoolsPanel_alias_2: typeof DevtoolsPanel.PreactQueryDevtoolsPanel;
|
|
122
|
-
|
|
123
|
-
export { }
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from 'preact';
|
|
2
|
-
import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
|
|
3
|
-
import type { DevtoolsErrorType } from '@tanstack/query-devtools';
|
|
4
|
-
import type { DevtoolsPosition } from '@tanstack/query-devtools';
|
|
5
|
-
import type { QueryClient } from '@tanstack/preact-query';
|
|
6
|
-
import type { Theme } from '@tanstack/query-devtools';
|
|
7
|
-
import type { VNode } from 'preact';
|
|
8
|
-
|
|
9
|
-
declare namespace Devtools {
|
|
10
|
-
export {
|
|
11
|
-
PreactQueryDevtools,
|
|
12
|
-
DevtoolsOptions
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export declare interface DevtoolsOptions {
|
|
17
|
-
/**
|
|
18
|
-
* Set this true if you want the dev tools to default to being open
|
|
19
|
-
*/
|
|
20
|
-
initialIsOpen?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* The position of the TanStack logo to open and close the devtools panel.
|
|
23
|
-
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
|
|
24
|
-
* Defaults to 'bottom-right'.
|
|
25
|
-
*/
|
|
26
|
-
buttonPosition?: DevtoolsButtonPosition;
|
|
27
|
-
/**
|
|
28
|
-
* The position of the Preact Query devtools panel.
|
|
29
|
-
* 'top' | 'bottom' | 'left' | 'right'
|
|
30
|
-
* Defaults to 'bottom'.
|
|
31
|
-
*/
|
|
32
|
-
position?: DevtoolsPosition;
|
|
33
|
-
/**
|
|
34
|
-
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
35
|
-
* nearest QueryClientProvider will be used.
|
|
36
|
-
*/
|
|
37
|
-
client?: QueryClient;
|
|
38
|
-
/**
|
|
39
|
-
* Use this to provide custom error type handlers for the devtools panel.
|
|
40
|
-
*/
|
|
41
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
42
|
-
/**
|
|
43
|
-
* Use this to pass a nonce to the style tag that is added to the document
|
|
44
|
-
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
45
|
-
* nonce to allow inline styles.
|
|
46
|
-
*/
|
|
47
|
-
styleNonce?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Use this to render the devtools inside a Shadow DOM.
|
|
50
|
-
*/
|
|
51
|
-
shadowDOMTarget?: ShadowRoot;
|
|
52
|
-
/**
|
|
53
|
-
* Use this to hide disabled queries from the devtools panel.
|
|
54
|
-
*/
|
|
55
|
-
hideDisabledQueries?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Use this to set the theme of the devtools panel.
|
|
58
|
-
* Defaults to 'system'.
|
|
59
|
-
*/
|
|
60
|
-
theme?: Theme;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare namespace DevtoolsPanel {
|
|
64
|
-
export {
|
|
65
|
-
PreactQueryDevtoolsPanel,
|
|
66
|
-
DevtoolsPanelOptions
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export declare interface DevtoolsPanelOptions {
|
|
71
|
-
/**
|
|
72
|
-
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
73
|
-
* nearest QueryClientProvider will be used.
|
|
74
|
-
*/
|
|
75
|
-
client?: QueryClient;
|
|
76
|
-
/**
|
|
77
|
-
* Custom error types to be shown in the devtools.
|
|
78
|
-
*/
|
|
79
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
80
|
-
/**
|
|
81
|
-
* Use this to pass a nonce to the style tag that is added to the document
|
|
82
|
-
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
83
|
-
* nonce to allow inline styles.
|
|
84
|
-
*/
|
|
85
|
-
styleNonce?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Use this to render the devtools inside a Shadow DOM.
|
|
88
|
-
*/
|
|
89
|
-
shadowDOMTarget?: ShadowRoot;
|
|
90
|
-
/**
|
|
91
|
-
* Custom styles for the devtools panel container.
|
|
92
|
-
*/
|
|
93
|
-
style?: CSSProperties;
|
|
94
|
-
/**
|
|
95
|
-
* Callback function when the devtools panel is closed.
|
|
96
|
-
*/
|
|
97
|
-
onClose?: () => unknown;
|
|
98
|
-
/**
|
|
99
|
-
* Use this to hide disabled queries from the devtools panel.
|
|
100
|
-
*/
|
|
101
|
-
hideDisabledQueries?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Use this to set the theme of the devtools panel.
|
|
104
|
-
* Defaults to 'system'.
|
|
105
|
-
*/
|
|
106
|
-
theme?: Theme;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export declare type DevtoolsPanelOptions_alias_1 = DevtoolsPanel.DevtoolsPanelOptions;
|
|
110
|
-
|
|
111
|
-
export declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
|
|
112
|
-
|
|
113
|
-
export declare const PreactQueryDevtools_alias_1: (typeof Devtools)['PreactQueryDevtools'];
|
|
114
|
-
|
|
115
|
-
export declare const PreactQueryDevtools_alias_2: typeof Devtools.PreactQueryDevtools;
|
|
116
|
-
|
|
117
|
-
export declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
|
|
118
|
-
|
|
119
|
-
export declare const PreactQueryDevtoolsPanel_alias_1: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'];
|
|
120
|
-
|
|
121
|
-
export declare const PreactQueryDevtoolsPanel_alias_2: typeof DevtoolsPanel.PreactQueryDevtoolsPanel;
|
|
122
|
-
|
|
123
|
-
export { }
|