@tanstack/solid-query-devtools 5.91.3 → 6.0.0-alpha.0

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.
@@ -0,0 +1,119 @@
1
+ import type { Component } from 'solid-js';
2
+ import type { ComponentProps } from 'solid-js';
3
+ import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
4
+ import type { DevtoolsErrorType } from '@tanstack/query-devtools';
5
+ import type { DevtoolsPosition } from '@tanstack/query-devtools';
6
+ import { JSX } from 'solid-js';
7
+ import { Options } from 'tsup';
8
+ import type { QueryClient } from '@tanstack/solid-query';
9
+ import type { Theme } from '@tanstack/query-devtools';
10
+ import { UserConfig } from 'vite';
11
+
12
+ export declare function default_alias<T extends Component<any>>(fn: () => Promise<{
13
+ default: T;
14
+ }>): (props: ComponentProps<T> & {
15
+ fallback?: JSX.Element;
16
+ }) => any;
17
+
18
+ export declare function default_alias_1(props: DevtoolsOptions): JSX;
19
+
20
+ export declare function default_alias_2(props: DevtoolsPanelOptions): JSX.Element;
21
+
22
+ export declare const default_alias_3: any[];
23
+
24
+ export declare const default_alias_4: any[];
25
+
26
+ export declare const default_alias_5: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
27
+
28
+ export declare const default_alias_6: UserConfig;
29
+
30
+ declare interface DevtoolsOptions {
31
+ /**
32
+ * Set this true if you want the dev tools to default to being open
33
+ */
34
+ initialIsOpen?: boolean;
35
+ /**
36
+ * The position of the React Query logo to open and close the devtools panel.
37
+ * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
38
+ * Defaults to 'bottom-right'.
39
+ */
40
+ buttonPosition?: DevtoolsButtonPosition;
41
+ /**
42
+ * The position of the React Query devtools panel.
43
+ * 'top' | 'bottom' | 'left' | 'right'
44
+ * Defaults to 'bottom'.
45
+ */
46
+ position?: DevtoolsPosition;
47
+ /**
48
+ * Custom instance of QueryClient
49
+ */
50
+ client?: QueryClient;
51
+ /**
52
+ * Use this so you can define custom errors that can be shown in the devtools.
53
+ */
54
+ errorTypes?: Array<DevtoolsErrorType>;
55
+ /**
56
+ * Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
57
+ */
58
+ styleNonce?: string;
59
+ /**
60
+ * Use this so you can attach the devtool's styles to specific element in the DOM.
61
+ */
62
+ shadowDOMTarget?: ShadowRoot;
63
+ /**
64
+ * Set this to true to hide disabled queries from the devtools panel.
65
+ */
66
+ hideDisabledQueries?: boolean;
67
+ /**
68
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
69
+ * Defaults to 'system'.
70
+ */
71
+ theme?: Theme;
72
+ }
73
+
74
+ declare interface DevtoolsPanelOptions {
75
+ /**
76
+ * Custom instance of QueryClient
77
+ */
78
+ client?: QueryClient;
79
+ /**
80
+ * Use this so you can define custom errors that can be shown in the devtools.
81
+ */
82
+ errorTypes?: Array<DevtoolsErrorType>;
83
+ /**
84
+ * Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
85
+ */
86
+ styleNonce?: string;
87
+ /**
88
+ * Use this so you can attach the devtool's styles to specific element in the DOM.
89
+ */
90
+ shadowDOMTarget?: ShadowRoot;
91
+ /**
92
+ * Custom styles for the devtools panel
93
+ * @default { height: '500px' }
94
+ * @example { height: '100%' }
95
+ * @example { height: '100%', width: '100%' }
96
+ */
97
+ style?: JSX.CSSProperties;
98
+ /**
99
+ * Callback function that is called when the devtools panel is closed
100
+ */
101
+ onClose?: () => unknown;
102
+ /**
103
+ * Set this to true to hide disabled queries from the devtools panel.
104
+ */
105
+ hideDisabledQueries?: boolean;
106
+ /**
107
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
108
+ * Defaults to 'system'.
109
+ */
110
+ theme?: Theme;
111
+ }
112
+ export { DevtoolsPanelOptions }
113
+ export { DevtoolsPanelOptions as DevtoolsPanelOptions_alias_1 }
114
+
115
+ export declare const SolidQueryDevtools: typeof default_alias_1;
116
+
117
+ export declare const SolidQueryDevtoolsPanel: typeof default_alias_2;
118
+
119
+ export { }
@@ -0,0 +1,119 @@
1
+ import type { Component } from 'solid-js';
2
+ import type { ComponentProps } from 'solid-js';
3
+ import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
4
+ import type { DevtoolsErrorType } from '@tanstack/query-devtools';
5
+ import type { DevtoolsPosition } from '@tanstack/query-devtools';
6
+ import { JSX } from 'solid-js';
7
+ import { Options } from 'tsup';
8
+ import type { QueryClient } from '@tanstack/solid-query';
9
+ import type { Theme } from '@tanstack/query-devtools';
10
+ import { UserConfig } from 'vite';
11
+
12
+ export declare function default_alias<T extends Component<any>>(fn: () => Promise<{
13
+ default: T;
14
+ }>): (props: ComponentProps<T> & {
15
+ fallback?: JSX.Element;
16
+ }) => any;
17
+
18
+ export declare function default_alias_1(props: DevtoolsOptions): JSX;
19
+
20
+ export declare function default_alias_2(props: DevtoolsPanelOptions): JSX.Element;
21
+
22
+ export declare const default_alias_3: any[];
23
+
24
+ export declare const default_alias_4: any[];
25
+
26
+ export declare const default_alias_5: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
27
+
28
+ export declare const default_alias_6: UserConfig;
29
+
30
+ declare interface DevtoolsOptions {
31
+ /**
32
+ * Set this true if you want the dev tools to default to being open
33
+ */
34
+ initialIsOpen?: boolean;
35
+ /**
36
+ * The position of the React Query logo to open and close the devtools panel.
37
+ * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
38
+ * Defaults to 'bottom-right'.
39
+ */
40
+ buttonPosition?: DevtoolsButtonPosition;
41
+ /**
42
+ * The position of the React Query devtools panel.
43
+ * 'top' | 'bottom' | 'left' | 'right'
44
+ * Defaults to 'bottom'.
45
+ */
46
+ position?: DevtoolsPosition;
47
+ /**
48
+ * Custom instance of QueryClient
49
+ */
50
+ client?: QueryClient;
51
+ /**
52
+ * Use this so you can define custom errors that can be shown in the devtools.
53
+ */
54
+ errorTypes?: Array<DevtoolsErrorType>;
55
+ /**
56
+ * Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
57
+ */
58
+ styleNonce?: string;
59
+ /**
60
+ * Use this so you can attach the devtool's styles to specific element in the DOM.
61
+ */
62
+ shadowDOMTarget?: ShadowRoot;
63
+ /**
64
+ * Set this to true to hide disabled queries from the devtools panel.
65
+ */
66
+ hideDisabledQueries?: boolean;
67
+ /**
68
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
69
+ * Defaults to 'system'.
70
+ */
71
+ theme?: Theme;
72
+ }
73
+
74
+ declare interface DevtoolsPanelOptions {
75
+ /**
76
+ * Custom instance of QueryClient
77
+ */
78
+ client?: QueryClient;
79
+ /**
80
+ * Use this so you can define custom errors that can be shown in the devtools.
81
+ */
82
+ errorTypes?: Array<DevtoolsErrorType>;
83
+ /**
84
+ * Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
85
+ */
86
+ styleNonce?: string;
87
+ /**
88
+ * Use this so you can attach the devtool's styles to specific element in the DOM.
89
+ */
90
+ shadowDOMTarget?: ShadowRoot;
91
+ /**
92
+ * Custom styles for the devtools panel
93
+ * @default { height: '500px' }
94
+ * @example { height: '100%' }
95
+ * @example { height: '100%', width: '100%' }
96
+ */
97
+ style?: JSX.CSSProperties;
98
+ /**
99
+ * Callback function that is called when the devtools panel is closed
100
+ */
101
+ onClose?: () => unknown;
102
+ /**
103
+ * Set this to true to hide disabled queries from the devtools panel.
104
+ */
105
+ hideDisabledQueries?: boolean;
106
+ /**
107
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
108
+ * Defaults to 'system'.
109
+ */
110
+ theme?: Theme;
111
+ }
112
+ export { DevtoolsPanelOptions }
113
+ export { DevtoolsPanelOptions as DevtoolsPanelOptions_alias_1 }
114
+
115
+ export declare const SolidQueryDevtools: typeof default_alias_1;
116
+
117
+ export declare const SolidQueryDevtoolsPanel: typeof default_alias_2;
118
+
119
+ export { }