@tanstack/svelte-query-devtools 6.4.3 → 6.4.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.
|
@@ -39,14 +39,22 @@
|
|
|
39
39
|
*/
|
|
40
40
|
errorTypes?: Array<DevtoolsErrorType>
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need
|
|
43
|
+
* no nonce. This option does nothing.
|
|
43
44
|
*/
|
|
44
45
|
styleNonce?: string
|
|
45
46
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
47
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
48
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
49
|
+
* they do not render in a shadow root.
|
|
48
50
|
*/
|
|
49
51
|
shadowDOMTarget?: ShadowRoot
|
|
52
|
+
/**
|
|
53
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
54
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
55
|
+
* The devtools only pass it their own markup.
|
|
56
|
+
*/
|
|
57
|
+
trustedTypesPolicy?: { createHTML: (html: string) => unknown }
|
|
50
58
|
/**
|
|
51
59
|
* Set this to true to hide disabled queries from the devtools panel.
|
|
52
60
|
*/
|
|
@@ -65,8 +73,8 @@
|
|
|
65
73
|
position = 'bottom',
|
|
66
74
|
client = useQueryClient(),
|
|
67
75
|
errorTypes = [],
|
|
68
|
-
styleNonce = undefined,
|
|
69
76
|
shadowDOMTarget = undefined,
|
|
77
|
+
trustedTypesPolicy = undefined,
|
|
70
78
|
hideDisabledQueries = false,
|
|
71
79
|
theme,
|
|
72
80
|
}: DevtoolsOptions = $props()
|
|
@@ -88,8 +96,8 @@
|
|
|
88
96
|
position,
|
|
89
97
|
initialIsOpen,
|
|
90
98
|
errorTypes,
|
|
91
|
-
styleNonce,
|
|
92
99
|
shadowDOMTarget,
|
|
100
|
+
trustedTypesPolicy,
|
|
93
101
|
hideDisabledQueries,
|
|
94
102
|
theme,
|
|
95
103
|
})
|
|
@@ -28,14 +28,24 @@ interface DevtoolsOptions {
|
|
|
28
28
|
*/
|
|
29
29
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need
|
|
32
|
+
* no nonce. This option does nothing.
|
|
32
33
|
*/
|
|
33
34
|
styleNonce?: string;
|
|
34
35
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
36
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
37
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
38
|
+
* they do not render in a shadow root.
|
|
37
39
|
*/
|
|
38
40
|
shadowDOMTarget?: ShadowRoot;
|
|
41
|
+
/**
|
|
42
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
43
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
44
|
+
* The devtools only pass it their own markup.
|
|
45
|
+
*/
|
|
46
|
+
trustedTypesPolicy?: {
|
|
47
|
+
createHTML: (html: string) => unknown;
|
|
48
|
+
};
|
|
39
49
|
/**
|
|
40
50
|
* Set this to true to hide disabled queries from the devtools panel.
|
|
41
51
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SvelteQueryDevtools.svelte.d.ts","sourceRoot":"","sources":["../src/SvelteQueryDevtools.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACR,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAEhB,KAAK,EACN,MAAM,0BAA0B,CAAA;AACnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGxD,UAAU,eAAe;IACvB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,sBAAsB,CAAA;IACvC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACrC
|
|
1
|
+
{"version":3,"file":"SvelteQueryDevtools.svelte.d.ts","sourceRoot":"","sources":["../src/SvelteQueryDevtools.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACR,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAEhB,KAAK,EACN,MAAM,0BAA0B,CAAA;AACnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGxD,UAAU,eAAe;IACvB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,sBAAsB,CAAA;IACvC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACrC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;OAIG;IACH,eAAe,CAAC,EAAE,UAAU,CAAA;IAC5B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE;QAAE,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;KAAE,CAAA;IAC9D;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAA;CACd;AA2EH,QAAA,MAAM,mBAAmB,qDAAwC,CAAC;AAClE,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAClE,eAAe,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/svelte-query-devtools",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.5",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack/svelte-query cache",
|
|
5
5
|
"author": "Lachlan Collins",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"!src/__tests__"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@tanstack/query-devtools": "5.108.
|
|
47
|
+
"@tanstack/query-devtools": "5.108.2",
|
|
48
48
|
"esm-env": "^1.2.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@sveltejs/package": "^2.5.8",
|
|
52
52
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
53
|
-
"@tanstack/svelte-query": "6.4.
|
|
53
|
+
"@tanstack/svelte-query": "6.4.5",
|
|
54
54
|
"@testing-library/svelte": "^5.2.8",
|
|
55
55
|
"@typescript-eslint/parser": "^8.72.1",
|
|
56
56
|
"eslint-plugin-svelte": "^3.23.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"typescript": "6.0.3"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@tanstack/svelte-query": "^6.4.
|
|
62
|
+
"@tanstack/svelte-query": "^6.4.5",
|
|
63
63
|
"svelte": "^5.25.0"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
@@ -39,14 +39,22 @@
|
|
|
39
39
|
*/
|
|
40
40
|
errorTypes?: Array<DevtoolsErrorType>
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need
|
|
43
|
+
* no nonce. This option does nothing.
|
|
43
44
|
*/
|
|
44
45
|
styleNonce?: string
|
|
45
46
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
47
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
48
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
49
|
+
* they do not render in a shadow root.
|
|
48
50
|
*/
|
|
49
51
|
shadowDOMTarget?: ShadowRoot
|
|
52
|
+
/**
|
|
53
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
54
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
55
|
+
* The devtools only pass it their own markup.
|
|
56
|
+
*/
|
|
57
|
+
trustedTypesPolicy?: { createHTML: (html: string) => unknown }
|
|
50
58
|
/**
|
|
51
59
|
* Set this to true to hide disabled queries from the devtools panel.
|
|
52
60
|
*/
|
|
@@ -65,8 +73,8 @@
|
|
|
65
73
|
position = 'bottom',
|
|
66
74
|
client = useQueryClient(),
|
|
67
75
|
errorTypes = [],
|
|
68
|
-
styleNonce = undefined,
|
|
69
76
|
shadowDOMTarget = undefined,
|
|
77
|
+
trustedTypesPolicy = undefined,
|
|
70
78
|
hideDisabledQueries = false,
|
|
71
79
|
theme,
|
|
72
80
|
}: DevtoolsOptions = $props()
|
|
@@ -88,8 +96,8 @@
|
|
|
88
96
|
position,
|
|
89
97
|
initialIsOpen,
|
|
90
98
|
errorTypes,
|
|
91
|
-
styleNonce,
|
|
92
99
|
shadowDOMTarget,
|
|
100
|
+
trustedTypesPolicy,
|
|
93
101
|
hideDisabledQueries,
|
|
94
102
|
theme,
|
|
95
103
|
})
|