@tanstack/vue-query-devtools 6.3.5 → 6.3.7
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/dist/_virtual/_/plugin-vue/export-helper.js +1 -2
- package/dist/devtools.js +1 -2
- package/dist/devtools.js.map +1 -1
- package/dist/devtools.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/devtools.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/devtoolsPanel.js +1 -2
- package/dist/devtoolsPanel.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/stub.d.ts +0 -2
- package/dist/stub.d.ts.map +1 -1
- package/dist/stub.js +1 -2
- package/dist/types.d.ts +4 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -4
- package/src/devtools.vue +1 -1
- package/src/types.ts +4 -2
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
// \0/plugin-vue/export-helper
|
|
2
2
|
var export_helper_default = (sfc, props) => {
|
|
3
3
|
const target = sfc.__vccOpts || sfc;
|
|
4
4
|
for (const [key, val] of props) target[key] = val;
|
|
5
5
|
return target;
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { export_helper_default as default };
|
package/dist/devtools.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import devtools_vue_vue_type_script_setup_true_lang_default from "./devtools.vue_vue_type_script_setup_true_lang.js";
|
|
2
2
|
import export_helper_default from "./_virtual/_/plugin-vue/export-helper.js";
|
|
3
3
|
import { createElementBlock, openBlock } from "vue";
|
|
4
|
-
|
|
4
|
+
// src/devtools.vue
|
|
5
5
|
const _hoisted_1 = {
|
|
6
6
|
class: "tsqd-parent-container",
|
|
7
7
|
ref: "div"
|
|
@@ -10,7 +10,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10
10
|
return openBlock(), createElementBlock("div", _hoisted_1, null, 512);
|
|
11
11
|
}
|
|
12
12
|
var devtools_default = /*#__PURE__*/ export_helper_default(devtools_vue_vue_type_script_setup_true_lang_default, [["render", _sfc_render], ["__file", "/home/runner/work/query/query/packages/vue-query-devtools/src/devtools.vue"]]);
|
|
13
|
-
//#endregion
|
|
14
13
|
export { devtools_default as default };
|
|
15
14
|
|
|
16
15
|
//# sourceMappingURL=devtools.js.map
|
package/dist/devtools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools.js","names":["_openBlock","_createElementBlock","_sfc_main"],"sources":["../src/devtools.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { onMounted, onScopeDispose, ref, watchEffect } from 'vue'\nimport { onlineManager, useQueryClient } from '@tanstack/vue-query'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport type { DevtoolsOptions } from './types'\n\nconst props = defineProps<DevtoolsOptions>()\n\nconst div = ref<HTMLElement>()\nconst client = props.client || useQueryClient()\nconst devtools = new TanstackQueryDevtools({\n client,\n queryFlavor: 'Vue Query',\n version: '5',\n onlineManager,\n buttonPosition: props.buttonPosition,\n position: props.position,\n initialIsOpen: props.initialIsOpen,\n errorTypes: props.errorTypes,\n styleNonce: props.styleNonce,\n shadowDOMTarget: props.shadowDOMTarget,\n hideDisabledQueries: props.hideDisabledQueries,\n theme: props.theme,\n})\n\nwatchEffect(() => {\n devtools.setClient(props.client || client)\n devtools.setButtonPosition(props.buttonPosition || 'bottom-right')\n devtools.setPosition(props.position || 'bottom')\n devtools.setInitialIsOpen(props.initialIsOpen)\n devtools.setErrorTypes(props.errorTypes || [])\n devtools.setTheme(props.theme
|
|
1
|
+
{"version":3,"file":"devtools.js","names":["_openBlock","_createElementBlock","_sfc_main"],"sources":["../src/devtools.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { onMounted, onScopeDispose, ref, watchEffect } from 'vue'\nimport { onlineManager, useQueryClient } from '@tanstack/vue-query'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport type { DevtoolsOptions } from './types'\n\nconst props = defineProps<DevtoolsOptions>()\n\nconst div = ref<HTMLElement>()\nconst client = props.client || useQueryClient()\nconst devtools = new TanstackQueryDevtools({\n client,\n queryFlavor: 'Vue Query',\n version: '5',\n onlineManager,\n buttonPosition: props.buttonPosition,\n position: props.position,\n initialIsOpen: props.initialIsOpen,\n errorTypes: props.errorTypes,\n styleNonce: props.styleNonce,\n shadowDOMTarget: props.shadowDOMTarget,\n hideDisabledQueries: props.hideDisabledQueries,\n theme: props.theme,\n})\n\nwatchEffect(() => {\n devtools.setClient(props.client || client)\n devtools.setButtonPosition(props.buttonPosition || 'bottom-right')\n devtools.setPosition(props.position || 'bottom')\n devtools.setInitialIsOpen(props.initialIsOpen)\n devtools.setErrorTypes(props.errorTypes || [])\n devtools.setTheme(props.theme)\n})\n\nonMounted(() => {\n devtools.mount(div.value as HTMLElement)\n onScopeDispose(() => {\n devtools.unmount()\n })\n})\n</script>\n\n<template>\n <div class=\"tsqd-parent-container\" ref=\"div\"></div>\n</template>\n"],"mappings":";;;;;CA2CO,OAAM;CAAwB,KAAI;;;CAAvC,OAAAA,UAAA,GAAAC,mBAAmD,OAAnD,YAAmD,MAAA,GAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, onMounted, onScopeDispose, ref, watchEffect } from "vue";
|
|
2
2
|
import { onlineManager, useQueryClient } from "@tanstack/vue-query";
|
|
3
3
|
import { TanstackQueryDevtools } from "@tanstack/query-devtools";
|
|
4
|
-
|
|
4
|
+
// src/devtools.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var devtools_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
6
6
|
__name: "devtools",
|
|
7
7
|
props: {
|
|
@@ -67,7 +67,7 @@ var devtools_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
67
67
|
devtools.setPosition(props.position || "bottom");
|
|
68
68
|
devtools.setInitialIsOpen(props.initialIsOpen);
|
|
69
69
|
devtools.setErrorTypes(props.errorTypes || []);
|
|
70
|
-
devtools.setTheme(props.theme
|
|
70
|
+
devtools.setTheme(props.theme);
|
|
71
71
|
});
|
|
72
72
|
onMounted(() => {
|
|
73
73
|
devtools.mount(div.value);
|
|
@@ -88,7 +88,6 @@ var devtools_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
88
88
|
return __returned__;
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
|
-
//#endregion
|
|
92
91
|
export { devtools_vue_vue_type_script_setup_true_lang_default as default };
|
|
93
92
|
|
|
94
93
|
//# sourceMappingURL=devtools.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../src/devtools.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { onMounted, onScopeDispose, ref, watchEffect } from 'vue'\nimport { onlineManager, useQueryClient } from '@tanstack/vue-query'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport type { DevtoolsOptions } from './types'\n\nconst props = defineProps<DevtoolsOptions>()\n\nconst div = ref<HTMLElement>()\nconst client = props.client || useQueryClient()\nconst devtools = new TanstackQueryDevtools({\n client,\n queryFlavor: 'Vue Query',\n version: '5',\n onlineManager,\n buttonPosition: props.buttonPosition,\n position: props.position,\n initialIsOpen: props.initialIsOpen,\n errorTypes: props.errorTypes,\n styleNonce: props.styleNonce,\n shadowDOMTarget: props.shadowDOMTarget,\n hideDisabledQueries: props.hideDisabledQueries,\n theme: props.theme,\n})\n\nwatchEffect(() => {\n devtools.setClient(props.client || client)\n devtools.setButtonPosition(props.buttonPosition || 'bottom-right')\n devtools.setPosition(props.position || 'bottom')\n devtools.setInitialIsOpen(props.initialIsOpen)\n devtools.setErrorTypes(props.errorTypes || [])\n devtools.setTheme(props.theme
|
|
1
|
+
{"version":3,"file":"devtools.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../src/devtools.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { onMounted, onScopeDispose, ref, watchEffect } from 'vue'\nimport { onlineManager, useQueryClient } from '@tanstack/vue-query'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport type { DevtoolsOptions } from './types'\n\nconst props = defineProps<DevtoolsOptions>()\n\nconst div = ref<HTMLElement>()\nconst client = props.client || useQueryClient()\nconst devtools = new TanstackQueryDevtools({\n client,\n queryFlavor: 'Vue Query',\n version: '5',\n onlineManager,\n buttonPosition: props.buttonPosition,\n position: props.position,\n initialIsOpen: props.initialIsOpen,\n errorTypes: props.errorTypes,\n styleNonce: props.styleNonce,\n shadowDOMTarget: props.shadowDOMTarget,\n hideDisabledQueries: props.hideDisabledQueries,\n theme: props.theme,\n})\n\nwatchEffect(() => {\n devtools.setClient(props.client || client)\n devtools.setButtonPosition(props.buttonPosition || 'bottom-right')\n devtools.setPosition(props.position || 'bottom')\n devtools.setInitialIsOpen(props.initialIsOpen)\n devtools.setErrorTypes(props.errorTypes || [])\n devtools.setTheme(props.theme)\n})\n\nonMounted(() => {\n devtools.mount(div.value as HTMLElement)\n onScopeDispose(() => {\n devtools.unmount()\n })\n})\n</script>\n\n<template>\n <div class=\"tsqd-parent-container\" ref=\"div\"></div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMA,MAAM,QAAQ;EAEd,MAAM,MAAM,IAAiB;EAC7B,MAAM,SAAS,MAAM,UAAU,eAAe;EAC9C,MAAM,WAAW,IAAI,sBAAsB;GACzC;GACA,aAAa;GACb,SAAS;GACT;GACA,gBAAgB,MAAM;GACtB,UAAU,MAAM;GAChB,eAAe,MAAM;GACrB,YAAY,MAAM;GAClB,YAAY,MAAM;GAClB,iBAAiB,MAAM;GACvB,qBAAqB,MAAM;GAC3B,OAAO,MAAM;EACf,CAAC;EAED,kBAAkB;GAChB,SAAS,UAAU,MAAM,UAAU,MAAM;GACzC,SAAS,kBAAkB,MAAM,kBAAkB,cAAc;GACjE,SAAS,YAAY,MAAM,YAAY,QAAQ;GAC/C,SAAS,iBAAiB,MAAM,aAAa;GAC7C,SAAS,cAAc,MAAM,cAAc,CAAC,CAAC;GAC7C,SAAS,SAAS,MAAM,KAAK;EAC/B,CAAC;EAED,gBAAgB;GACd,SAAS,MAAM,IAAI,KAAoB;GACvC,qBAAqB;IACnB,SAAS,QAAQ;GACnB,CAAC;EACH,CAAC"}
|
package/dist/devtoolsPanel.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import export_helper_default from "./_virtual/_/plugin-vue/export-helper.js";
|
|
2
2
|
import devtoolsPanel_vue_vue_type_script_setup_true_lang_default from "./devtoolsPanel.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
import { createElementBlock, normalizeStyle, openBlock } from "vue";
|
|
4
|
-
|
|
4
|
+
// src/devtoolsPanel.vue
|
|
5
5
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6
6
|
return openBlock(), createElementBlock("div", {
|
|
7
7
|
style: normalizeStyle($setup.style),
|
|
@@ -10,7 +10,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10
10
|
}, null, 4);
|
|
11
11
|
}
|
|
12
12
|
var devtoolsPanel_default = /*#__PURE__*/ export_helper_default(devtoolsPanel_vue_vue_type_script_setup_true_lang_default, [["render", _sfc_render], ["__file", "/home/runner/work/query/query/packages/vue-query-devtools/src/devtoolsPanel.vue"]]);
|
|
13
|
-
//#endregion
|
|
14
13
|
export { devtoolsPanel_default as default };
|
|
15
14
|
|
|
16
15
|
//# sourceMappingURL=devtoolsPanel.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, defineComponent, onMounted, onScopeDispose, ref, watchEffect } from "vue";
|
|
2
2
|
import { onlineManager, useQueryClient } from "@tanstack/vue-query";
|
|
3
3
|
import { TanstackQueryDevtoolsPanel } from "@tanstack/query-devtools";
|
|
4
|
-
|
|
4
|
+
// src/devtoolsPanel.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var devtoolsPanel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
6
6
|
__name: "devtoolsPanel",
|
|
7
7
|
props: {
|
|
@@ -90,7 +90,6 @@ var devtoolsPanel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
90
90
|
return __returned__;
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
//#endregion
|
|
94
93
|
export { devtoolsPanel_vue_vue_type_script_setup_true_lang_default as default };
|
|
95
94
|
|
|
96
95
|
//# sourceMappingURL=devtoolsPanel.vue_vue_type_script_setup_true_lang.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { DevtoolsOptions, DevtoolsPanelOptions } from "./types.js";
|
|
2
2
|
import { DefineComponent } from "vue";
|
|
3
|
-
//#region src/index.d.ts
|
|
4
3
|
export declare const VueQueryDevtools: DefineComponent<DevtoolsOptions, {}, unknown>;
|
|
5
4
|
export declare const VueQueryDevtoolsPanel: DefineComponent<DevtoolsPanelOptions, {}, unknown>;
|
|
6
|
-
//#endregion
|
|
7
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;qBAKa,kBAA+B,gBAC1C;qBAKW,uBAAyC,gBACpD"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import devtools_default from "./devtools.js";
|
|
2
2
|
import devtoolsPanel_default from "./devtoolsPanel.js";
|
|
3
|
-
|
|
3
|
+
// src/index.ts
|
|
4
4
|
const VueQueryDevtools = devtools_default;
|
|
5
5
|
const VueQueryDevtoolsPanel = devtoolsPanel_default;
|
|
6
|
-
//#endregion
|
|
7
6
|
export { VueQueryDevtools, VueQueryDevtoolsPanel };
|
|
8
7
|
|
|
9
8
|
//# sourceMappingURL=index.js.map
|
package/dist/stub.d.ts
CHANGED
package/dist/stub.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stub.d.ts","names":[],"sources":["../src/stub.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stub.d.ts","names":[],"sources":["../src/stub.ts"],"mappings":"A,qBAAa;qBAIA"}
|
package/dist/stub.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
// src/stub.ts
|
|
2
2
|
const VueQueryDevtools = function() {
|
|
3
3
|
return null;
|
|
4
4
|
};
|
|
5
5
|
const VueQueryDevtoolsPanel = function() {
|
|
6
6
|
return null;
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { VueQueryDevtools, VueQueryDevtoolsPanel };
|
|
10
9
|
|
|
11
10
|
//# sourceMappingURL=stub.js.map
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { QueryClient } from "@tanstack/vue-query";
|
|
2
2
|
import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
|
|
3
|
-
//#region src/types.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The props of `VueQueryDevtools`, which renders the devtools with a toggle button that opens them.
|
|
6
5
|
*/
|
|
@@ -44,7 +43,8 @@ export interface DevtoolsOptions {
|
|
|
44
43
|
hideDisabledQueries?: boolean;
|
|
45
44
|
/**
|
|
46
45
|
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
47
|
-
*
|
|
46
|
+
* This overrides the theme selected in the devtools Settings menu. When omitted, the
|
|
47
|
+
* selected theme is used, or `'system'` if none is selected.
|
|
48
48
|
*/
|
|
49
49
|
theme?: Theme;
|
|
50
50
|
}
|
|
@@ -86,9 +86,9 @@ export interface DevtoolsPanelOptions {
|
|
|
86
86
|
hideDisabledQueries?: boolean;
|
|
87
87
|
/**
|
|
88
88
|
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
89
|
-
*
|
|
89
|
+
* This overrides the theme selected in the devtools Settings menu. When omitted, the
|
|
90
|
+
* selected theme is used, or `'system'` if none is selected.
|
|
90
91
|
*/
|
|
91
92
|
theme?: Theme;
|
|
92
93
|
}
|
|
93
|
-
//#endregion
|
|
94
94
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;iBAWiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;EAIX,SAAS;;;;EAIT,aAAa,MAAM;;;;EAInB;;;;;EAKA,kBAAkB;;;;EAIlB;;;;;;EAMA,QAAQ;;;;;iBAMO;;;;EAIf,SAAS;;;;EAIT,aAAa,MAAM;;;;EAInB;;;;;EAKA,kBAAkB;;;;;;;EAQlB,QAAQ,QAAQ;;;;EAKhB;;;;EAIA;;;;;;EAMA,QAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/vue-query-devtools",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.7",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack/vue-query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
"!src/__tests__"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@tanstack/query-devtools": "5.
|
|
41
|
+
"@tanstack/query-devtools": "5.105.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@tanstack/vue-query": "5.
|
|
44
|
+
"@tanstack/vue-query": "5.105.1",
|
|
45
45
|
"typescript": "6.0.3",
|
|
46
46
|
"unplugin-vue": "^8.0.0",
|
|
47
47
|
"vue": "^3.5.43",
|
|
48
48
|
"vue-tsc": "^2.2.8"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@tanstack/vue-query": "^5.
|
|
51
|
+
"@tanstack/vue-query": "^5.105.1",
|
|
52
52
|
"vue": "^3.3.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
@@ -60,6 +60,8 @@
|
|
|
60
60
|
"test:types:ts58": "node -e \"process.argv.splice(1, 0, ''); require('vue-tsc').run(require.resolve('typescript58/lib/tsc'))\" -- --project tsconfig.legacy.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo",
|
|
61
61
|
"test:types:ts59": "node -e \"process.argv.splice(1, 0, ''); require('vue-tsc').run(require.resolve('typescript59/lib/tsc'))\" -- --project tsconfig.legacy.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo",
|
|
62
62
|
"test:types:tscurrent": "vue-tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo",
|
|
63
|
+
"test:lib": "vitest",
|
|
64
|
+
"test:lib:dev": "pnpm run test:lib --watch",
|
|
63
65
|
"test:build": "publint --strict && attw --pack",
|
|
64
66
|
"build": "tsdown"
|
|
65
67
|
}
|
package/src/devtools.vue
CHANGED
|
@@ -29,7 +29,7 @@ watchEffect(() => {
|
|
|
29
29
|
devtools.setPosition(props.position || 'bottom')
|
|
30
30
|
devtools.setInitialIsOpen(props.initialIsOpen)
|
|
31
31
|
devtools.setErrorTypes(props.errorTypes || [])
|
|
32
|
-
devtools.setTheme(props.theme
|
|
32
|
+
devtools.setTheme(props.theme)
|
|
33
33
|
})
|
|
34
34
|
|
|
35
35
|
onMounted(() => {
|
package/src/types.ts
CHANGED
|
@@ -49,7 +49,8 @@ export interface DevtoolsOptions {
|
|
|
49
49
|
hideDisabledQueries?: boolean
|
|
50
50
|
/**
|
|
51
51
|
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
52
|
-
*
|
|
52
|
+
* This overrides the theme selected in the devtools Settings menu. When omitted, the
|
|
53
|
+
* selected theme is used, or `'system'` if none is selected.
|
|
53
54
|
*/
|
|
54
55
|
theme?: Theme
|
|
55
56
|
}
|
|
@@ -94,7 +95,8 @@ export interface DevtoolsPanelOptions {
|
|
|
94
95
|
hideDisabledQueries?: boolean
|
|
95
96
|
/**
|
|
96
97
|
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
97
|
-
*
|
|
98
|
+
* This overrides the theme selected in the devtools Settings menu. When omitted, the
|
|
99
|
+
* selected theme is used, or `'system'` if none is selected.
|
|
98
100
|
*/
|
|
99
101
|
theme?: Theme
|
|
100
102
|
}
|