@tanstack/vue-query-devtools 6.1.5 → 6.1.6
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/package.json +4 -4
- package/dist/cjs/devtools.vue.cjs +0 -59
- package/dist/cjs/devtools.vue.cjs.map +0 -1
- package/dist/cjs/devtools.vue.d.cts +0 -3
- package/dist/cjs/devtools.vue2.cjs +0 -4
- package/dist/cjs/devtools.vue2.cjs.map +0 -1
- package/dist/cjs/devtoolsPanel.vue.cjs +0 -65
- package/dist/cjs/devtoolsPanel.vue.cjs.map +0 -1
- package/dist/cjs/devtoolsPanel.vue.d.cts +0 -3
- package/dist/cjs/devtoolsPanel.vue2.cjs +0 -4
- package/dist/cjs/devtoolsPanel.vue2.cjs.map +0 -1
- package/dist/cjs/index.cjs +0 -13
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/index.d.cts +0 -4
- package/dist/cjs/production.cjs +0 -4
- package/dist/cjs/production.cjs.map +0 -1
- package/dist/cjs/production.d.cts +0 -2
- package/dist/cjs/types.d.cts +0 -83
- package/dist/esm/devtools.vue.d.ts +0 -3
- package/dist/esm/devtools.vue.js +0 -60
- package/dist/esm/devtools.vue.js.map +0 -1
- package/dist/esm/devtools.vue2.js +0 -5
- package/dist/esm/devtools.vue2.js.map +0 -1
- package/dist/esm/devtoolsPanel.vue.d.ts +0 -3
- package/dist/esm/devtoolsPanel.vue.js +0 -66
- package/dist/esm/devtoolsPanel.vue.js.map +0 -1
- package/dist/esm/devtoolsPanel.vue2.js +0 -5
- package/dist/esm/devtoolsPanel.vue2.js.map +0 -1
- package/dist/esm/index.d.ts +0 -4
- package/dist/esm/index.js +0 -13
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/production.d.ts +0 -2
- package/dist/esm/production.js +0 -5
- package/dist/esm/production.js.map +0 -1
- package/dist/esm/types.d.ts +0 -83
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/vue-query-devtools",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.6",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack/vue-query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"!src/__tests__"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@tanstack/query-devtools": "5.
|
|
45
|
+
"@tanstack/query-devtools": "5.94.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"vite": "^6.4.1",
|
|
52
52
|
"vue": "^3.4.27",
|
|
53
53
|
"vue-tsc": "^2.2.8",
|
|
54
|
-
"@tanstack/vue-query": "5.
|
|
54
|
+
"@tanstack/vue-query": "5.94.4"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"vue": "^3.3.0",
|
|
58
|
-
"@tanstack/vue-query": "^5.
|
|
58
|
+
"@tanstack/vue-query": "^5.94.4"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"clean": "premove ./build ./coverage ./dist-ts",
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const vue = require("vue");
|
|
3
|
-
const vueQuery = require("@tanstack/vue-query");
|
|
4
|
-
const queryDevtools = require("@tanstack/query-devtools");
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
6
|
-
__name: "devtools",
|
|
7
|
-
props: {
|
|
8
|
-
initialIsOpen: { type: Boolean },
|
|
9
|
-
buttonPosition: {},
|
|
10
|
-
position: {},
|
|
11
|
-
client: {},
|
|
12
|
-
errorTypes: {},
|
|
13
|
-
styleNonce: {},
|
|
14
|
-
shadowDOMTarget: {},
|
|
15
|
-
hideDisabledQueries: { type: Boolean },
|
|
16
|
-
theme: {}
|
|
17
|
-
},
|
|
18
|
-
setup(__props) {
|
|
19
|
-
const props = __props;
|
|
20
|
-
const div = vue.ref();
|
|
21
|
-
const client = props.client || vueQuery.useQueryClient();
|
|
22
|
-
const devtools = new queryDevtools.TanstackQueryDevtools({
|
|
23
|
-
client,
|
|
24
|
-
queryFlavor: "Vue Query",
|
|
25
|
-
version: "5",
|
|
26
|
-
onlineManager: vueQuery.onlineManager,
|
|
27
|
-
buttonPosition: props.buttonPosition,
|
|
28
|
-
position: props.position,
|
|
29
|
-
initialIsOpen: props.initialIsOpen,
|
|
30
|
-
errorTypes: props.errorTypes,
|
|
31
|
-
styleNonce: props.styleNonce,
|
|
32
|
-
shadowDOMTarget: props.shadowDOMTarget,
|
|
33
|
-
hideDisabledQueries: props.hideDisabledQueries,
|
|
34
|
-
theme: props.theme
|
|
35
|
-
});
|
|
36
|
-
vue.watchEffect(() => {
|
|
37
|
-
devtools.setButtonPosition(props.buttonPosition || "bottom-right");
|
|
38
|
-
devtools.setPosition(props.position || "bottom");
|
|
39
|
-
devtools.setInitialIsOpen(props.initialIsOpen);
|
|
40
|
-
devtools.setErrorTypes(props.errorTypes || []);
|
|
41
|
-
devtools.setTheme(props.theme || "system");
|
|
42
|
-
});
|
|
43
|
-
vue.onMounted(() => {
|
|
44
|
-
devtools.mount(div.value);
|
|
45
|
-
});
|
|
46
|
-
vue.onScopeDispose(() => {
|
|
47
|
-
devtools.unmount();
|
|
48
|
-
});
|
|
49
|
-
return (_ctx, _cache) => {
|
|
50
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
51
|
-
className: "tsqd-parent-container",
|
|
52
|
-
ref_key: "div",
|
|
53
|
-
ref: div
|
|
54
|
-
}, null, 512);
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
module.exports = _sfc_main;
|
|
59
|
-
//# sourceMappingURL=devtools.vue.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtools.vue.cjs","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.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 || 'system')\n})\n\nonMounted(() => {\n devtools.mount(div.value as HTMLElement)\n})\n\nonScopeDispose(() => {\n devtools.unmount()\n})\n</script>\n\n<template>\n <div className=\"tsqd-parent-container\" ref=\"div\"></div>\n</template>\n"],"names":["ref","useQueryClient","TanstackQueryDevtools","onlineManager","watchEffect","onMounted","onScopeDispose","_createElementBlock"],"mappings":";;;;;;;;;;;;;;;;;;AAMA,UAAM,QAAQ;AAEd,UAAM,MAAMA,IAAAA,IAAA;AACZ,UAAM,SAAS,MAAM,UAAUC,wBAAA;AAC/B,UAAM,WAAW,IAAIC,oCAAsB;AAAA,MACzC;AAAA,MACA,aAAa;AAAA,MACb,SAAS;AAAA,MAAA,eACTC,SAAAA;AAAAA,MACA,gBAAgB,MAAM;AAAA,MACtB,UAAU,MAAM;AAAA,MAChB,eAAe,MAAM;AAAA,MACrB,YAAY,MAAM;AAAA,MAClB,YAAY,MAAM;AAAA,MAClB,iBAAiB,MAAM;AAAA,MACvB,qBAAqB,MAAM;AAAA,MAC3B,OAAO,MAAM;AAAA,IAAA,CACd;AAEDC,QAAAA,YAAY,MAAM;AAChB,eAAS,kBAAkB,MAAM,kBAAkB,cAAc;AACjE,eAAS,YAAY,MAAM,YAAY,QAAQ;AAC/C,eAAS,iBAAiB,MAAM,aAAa;AAC7C,eAAS,cAAc,MAAM,cAAc,CAAA,CAAE;AAC7C,eAAS,SAAS,MAAM,SAAS,QAAQ;AAAA,IAC3C,CAAC;AAEDC,QAAAA,UAAU,MAAM;AACd,eAAS,MAAM,IAAI,KAAoB;AAAA,IACzC,CAAC;AAEDC,QAAAA,eAAe,MAAM;AACnB,eAAS,QAAA;AAAA,IACX,CAAC;;8BAICC,IAAAA,mBAAuD,OAAA;AAAA,QAAlD,WAAU;AAAA,iBAA4B;AAAA,QAAJ,KAAI;AAAA,MAAA;;;;;"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { DevtoolsOptions } from './types.cjs';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<DevtoolsOptions, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DevtoolsOptions> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtools.vue2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const vue = require("vue");
|
|
3
|
-
const vueQuery = require("@tanstack/vue-query");
|
|
4
|
-
const queryDevtools = require("@tanstack/query-devtools");
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
6
|
-
__name: "devtoolsPanel",
|
|
7
|
-
props: {
|
|
8
|
-
client: {},
|
|
9
|
-
errorTypes: {},
|
|
10
|
-
styleNonce: {},
|
|
11
|
-
shadowDOMTarget: {},
|
|
12
|
-
style: {},
|
|
13
|
-
onClose: { type: Function },
|
|
14
|
-
hideDisabledQueries: { type: Boolean },
|
|
15
|
-
theme: {}
|
|
16
|
-
},
|
|
17
|
-
setup(__props) {
|
|
18
|
-
const props = __props;
|
|
19
|
-
const style = vue.computed(() => {
|
|
20
|
-
return {
|
|
21
|
-
height: "500px",
|
|
22
|
-
...props.style
|
|
23
|
-
};
|
|
24
|
-
});
|
|
25
|
-
const div = vue.ref();
|
|
26
|
-
const client = props.client || vueQuery.useQueryClient();
|
|
27
|
-
const devtools = new queryDevtools.TanstackQueryDevtoolsPanel({
|
|
28
|
-
client,
|
|
29
|
-
queryFlavor: "Vue Query",
|
|
30
|
-
version: "5",
|
|
31
|
-
onlineManager: vueQuery.onlineManager,
|
|
32
|
-
buttonPosition: "bottom-left",
|
|
33
|
-
position: "bottom",
|
|
34
|
-
initialIsOpen: true,
|
|
35
|
-
errorTypes: props.errorTypes,
|
|
36
|
-
styleNonce: props.styleNonce,
|
|
37
|
-
shadowDOMTarget: props.shadowDOMTarget,
|
|
38
|
-
hideDisabledQueries: props.hideDisabledQueries,
|
|
39
|
-
onClose: props.onClose,
|
|
40
|
-
theme: props.theme
|
|
41
|
-
});
|
|
42
|
-
vue.watchEffect(() => {
|
|
43
|
-
devtools.setOnClose(props.onClose ?? (() => {
|
|
44
|
-
}));
|
|
45
|
-
devtools.setErrorTypes(props.errorTypes || []);
|
|
46
|
-
devtools.setTheme(props.theme);
|
|
47
|
-
});
|
|
48
|
-
vue.onMounted(() => {
|
|
49
|
-
devtools.mount(div.value);
|
|
50
|
-
});
|
|
51
|
-
vue.onScopeDispose(() => {
|
|
52
|
-
devtools.unmount();
|
|
53
|
-
});
|
|
54
|
-
return (_ctx, _cache) => {
|
|
55
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
56
|
-
style: vue.normalizeStyle(style.value),
|
|
57
|
-
className: "tsqd-parent-container",
|
|
58
|
-
ref_key: "div",
|
|
59
|
-
ref: div
|
|
60
|
-
}, null, 4);
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
module.exports = _sfc_main;
|
|
65
|
-
//# sourceMappingURL=devtoolsPanel.vue.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtoolsPanel.vue.cjs","sources":["../../src/devtoolsPanel.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onMounted, onScopeDispose, ref, watchEffect } from 'vue'\nimport { onlineManager, useQueryClient } from '@tanstack/vue-query'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport type { DevtoolsPanelOptions } from './types'\n\nconst props = defineProps<DevtoolsPanelOptions>()\nconst style = computed<any>(() => {\n return {\n height: '500px',\n ...props.style,\n }\n})\n\nconst div = ref<HTMLElement>()\nconst client = props.client || useQueryClient()\nconst devtools = new TanstackQueryDevtoolsPanel({\n client,\n queryFlavor: 'Vue Query',\n version: '5',\n onlineManager,\n buttonPosition: 'bottom-left',\n position: 'bottom',\n initialIsOpen: true,\n errorTypes: props.errorTypes,\n styleNonce: props.styleNonce,\n shadowDOMTarget: props.shadowDOMTarget,\n hideDisabledQueries: props.hideDisabledQueries,\n onClose: props.onClose,\n theme: props.theme,\n})\n\nwatchEffect(() => {\n devtools.setOnClose(props.onClose ?? (() => {}))\n devtools.setErrorTypes(props.errorTypes || [])\n devtools.setTheme(props.theme)\n})\n\nonMounted(() => {\n devtools.mount(div.value as HTMLElement)\n})\n\nonScopeDispose(() => {\n devtools.unmount()\n})\n</script>\n\n<template>\n <div :style=\"style\" className=\"tsqd-parent-container\" ref=\"div\"></div>\n</template>\n"],"names":["computed","ref","useQueryClient","TanstackQueryDevtoolsPanel","onlineManager","watchEffect","onMounted","onScopeDispose","_createElementBlock"],"mappings":";;;;;;;;;;;;;;;;;AAMA,UAAM,QAAQ;AACd,UAAM,QAAQA,IAAAA,SAAc,MAAM;AAChC,aAAO;AAAA,QACL,QAAQ;AAAA,QACR,GAAG,MAAM;AAAA,MAAA;AAAA,IAEb,CAAC;AAED,UAAM,MAAMC,IAAAA,IAAA;AACZ,UAAM,SAAS,MAAM,UAAUC,wBAAA;AAC/B,UAAM,WAAW,IAAIC,yCAA2B;AAAA,MAC9C;AAAA,MACA,aAAa;AAAA,MACb,SAAS;AAAA,MAAA,eACTC,SAAAA;AAAAA,MACA,gBAAgB;AAAA,MAChB,UAAU;AAAA,MACV,eAAe;AAAA,MACf,YAAY,MAAM;AAAA,MAClB,YAAY,MAAM;AAAA,MAClB,iBAAiB,MAAM;AAAA,MACvB,qBAAqB,MAAM;AAAA,MAC3B,SAAS,MAAM;AAAA,MACf,OAAO,MAAM;AAAA,IAAA,CACd;AAEDC,QAAAA,YAAY,MAAM;AAChB,eAAS,WAAW,MAAM,YAAY,MAAM;AAAA,MAAC,EAAE;AAC/C,eAAS,cAAc,MAAM,cAAc,CAAA,CAAE;AAC7C,eAAS,SAAS,MAAM,KAAK;AAAA,IAC/B,CAAC;AAEDC,QAAAA,UAAU,MAAM;AACd,eAAS,MAAM,IAAI,KAAoB;AAAA,IACzC,CAAC;AAEDC,QAAAA,eAAe,MAAM;AACnB,eAAS,QAAA;AAAA,IACX,CAAC;;8BAICC,IAAAA,mBAAsE,OAAA;AAAA,QAAhE,0BAAO,MAAA,KAAK;AAAA,QAAE,WAAU;AAAA,iBAA4B;AAAA,QAAJ,KAAI;AAAA,MAAA;;;;;"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { DevtoolsPanelOptions } from './types.cjs';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<DevtoolsPanelOptions, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DevtoolsPanelOptions> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtoolsPanel.vue2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
package/dist/cjs/index.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const devtools_vue_vue_type_script_setup_true_lang = require("./devtools.vue.cjs");
|
|
4
|
-
const devtoolsPanel_vue_vue_type_script_setup_true_lang = require("./devtoolsPanel.vue.cjs");
|
|
5
|
-
const VueQueryDevtools = process.env.NODE_ENV !== "development" ? function() {
|
|
6
|
-
return null;
|
|
7
|
-
} : devtools_vue_vue_type_script_setup_true_lang;
|
|
8
|
-
const VueQueryDevtoolsPanel = process.env.NODE_ENV !== "development" ? function() {
|
|
9
|
-
return null;
|
|
10
|
-
} : devtoolsPanel_vue_vue_type_script_setup_true_lang;
|
|
11
|
-
exports.VueQueryDevtools = VueQueryDevtools;
|
|
12
|
-
exports.VueQueryDevtoolsPanel = VueQueryDevtoolsPanel;
|
|
13
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../src/index.ts"],"sourcesContent":["import devtools from './devtools.vue'\nimport devtoolsPanel from './devtoolsPanel.vue'\nimport type { DefineComponent } from 'vue'\nimport type { DevtoolsOptions, DevtoolsPanelOptions } from './types'\n\nexport const VueQueryDevtools = (\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : devtools\n) as DefineComponent<DevtoolsOptions, {}, unknown>\n\nexport const VueQueryDevtoolsPanel = (\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : devtoolsPanel\n) as DefineComponent<DevtoolsPanelOptions, {}, unknown>\n"],"names":["devtools","devtoolsPanel"],"mappings":";;;;AAKO,MAAM,mBACX,QAAQ,IAAI,aAAa,gBACrB,WAAY;AACV,SAAO;AACT,IACAA;AAGC,MAAM,wBACX,QAAQ,IAAI,aAAa,gBACrB,WAAY;AACV,SAAO;AACT,IACAC;;;"}
|
package/dist/cjs/index.d.cts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DefineComponent } from 'vue';
|
|
2
|
-
import { DevtoolsOptions, DevtoolsPanelOptions } from './types.cjs';
|
|
3
|
-
export declare const VueQueryDevtools: DefineComponent<DevtoolsOptions, {}, unknown>;
|
|
4
|
-
export declare const VueQueryDevtoolsPanel: DefineComponent<DevtoolsPanelOptions, {}, unknown>;
|
package/dist/cjs/production.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"production.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
package/dist/cjs/types.d.cts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from '@tanstack/query-devtools';
|
|
2
|
-
import { QueryClient } from '@tanstack/vue-query';
|
|
3
|
-
export interface DevtoolsOptions {
|
|
4
|
-
/**
|
|
5
|
-
* Set this true if you want the dev tools to default to being open
|
|
6
|
-
*/
|
|
7
|
-
initialIsOpen?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* The position of the React Query logo to open and close the devtools panel.
|
|
10
|
-
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
|
|
11
|
-
* Defaults to 'bottom-right'.
|
|
12
|
-
*/
|
|
13
|
-
buttonPosition?: DevtoolsButtonPosition;
|
|
14
|
-
/**
|
|
15
|
-
* The position of the React Query devtools panel.
|
|
16
|
-
* 'top' | 'bottom' | 'left' | 'right'
|
|
17
|
-
* Defaults to 'bottom'.
|
|
18
|
-
*/
|
|
19
|
-
position?: DevtoolsPosition;
|
|
20
|
-
/**
|
|
21
|
-
* Custom instance of QueryClient
|
|
22
|
-
*/
|
|
23
|
-
client?: QueryClient;
|
|
24
|
-
/**
|
|
25
|
-
* Use this so you can define custom errors that can be shown in the devtools.
|
|
26
|
-
*/
|
|
27
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
28
|
-
/**
|
|
29
|
-
* 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.
|
|
30
|
-
*/
|
|
31
|
-
styleNonce?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Use this so you can attach the devtool's styles to specific element in the DOM.
|
|
34
|
-
*/
|
|
35
|
-
shadowDOMTarget?: ShadowRoot;
|
|
36
|
-
/**
|
|
37
|
-
* Set this to true to hide disabled queries from the devtools panel.
|
|
38
|
-
*/
|
|
39
|
-
hideDisabledQueries?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
42
|
-
* Defaults to 'system'.
|
|
43
|
-
*/
|
|
44
|
-
theme?: Theme;
|
|
45
|
-
}
|
|
46
|
-
export interface DevtoolsPanelOptions {
|
|
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
|
-
* Custom styles for the devtools panel
|
|
65
|
-
* @default { height: '500px' }
|
|
66
|
-
* @example { height: '100%' }
|
|
67
|
-
* @example { height: '100%', width: '100%' }
|
|
68
|
-
*/
|
|
69
|
-
style?: Partial<CSSStyleDeclaration>;
|
|
70
|
-
/**
|
|
71
|
-
* Callback function that is called when the devtools panel is closed
|
|
72
|
-
*/
|
|
73
|
-
onClose?: () => unknown;
|
|
74
|
-
/**
|
|
75
|
-
* Set this to true to hide disabled queries from the devtools panel.
|
|
76
|
-
*/
|
|
77
|
-
hideDisabledQueries?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
80
|
-
* Defaults to 'system'.
|
|
81
|
-
*/
|
|
82
|
-
theme?: Theme;
|
|
83
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { DevtoolsOptions } from './types.js';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<DevtoolsOptions, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DevtoolsOptions> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
-
export default _default;
|
package/dist/esm/devtools.vue.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, watchEffect, onMounted, onScopeDispose, openBlock, createElementBlock } from "vue";
|
|
2
|
-
import { useQueryClient, onlineManager } from "@tanstack/vue-query";
|
|
3
|
-
import { TanstackQueryDevtools } from "@tanstack/query-devtools";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "devtools",
|
|
6
|
-
props: {
|
|
7
|
-
initialIsOpen: { type: Boolean },
|
|
8
|
-
buttonPosition: {},
|
|
9
|
-
position: {},
|
|
10
|
-
client: {},
|
|
11
|
-
errorTypes: {},
|
|
12
|
-
styleNonce: {},
|
|
13
|
-
shadowDOMTarget: {},
|
|
14
|
-
hideDisabledQueries: { type: Boolean },
|
|
15
|
-
theme: {}
|
|
16
|
-
},
|
|
17
|
-
setup(__props) {
|
|
18
|
-
const props = __props;
|
|
19
|
-
const div = ref();
|
|
20
|
-
const client = props.client || useQueryClient();
|
|
21
|
-
const devtools = new TanstackQueryDevtools({
|
|
22
|
-
client,
|
|
23
|
-
queryFlavor: "Vue Query",
|
|
24
|
-
version: "5",
|
|
25
|
-
onlineManager,
|
|
26
|
-
buttonPosition: props.buttonPosition,
|
|
27
|
-
position: props.position,
|
|
28
|
-
initialIsOpen: props.initialIsOpen,
|
|
29
|
-
errorTypes: props.errorTypes,
|
|
30
|
-
styleNonce: props.styleNonce,
|
|
31
|
-
shadowDOMTarget: props.shadowDOMTarget,
|
|
32
|
-
hideDisabledQueries: props.hideDisabledQueries,
|
|
33
|
-
theme: props.theme
|
|
34
|
-
});
|
|
35
|
-
watchEffect(() => {
|
|
36
|
-
devtools.setButtonPosition(props.buttonPosition || "bottom-right");
|
|
37
|
-
devtools.setPosition(props.position || "bottom");
|
|
38
|
-
devtools.setInitialIsOpen(props.initialIsOpen);
|
|
39
|
-
devtools.setErrorTypes(props.errorTypes || []);
|
|
40
|
-
devtools.setTheme(props.theme || "system");
|
|
41
|
-
});
|
|
42
|
-
onMounted(() => {
|
|
43
|
-
devtools.mount(div.value);
|
|
44
|
-
});
|
|
45
|
-
onScopeDispose(() => {
|
|
46
|
-
devtools.unmount();
|
|
47
|
-
});
|
|
48
|
-
return (_ctx, _cache) => {
|
|
49
|
-
return openBlock(), createElementBlock("div", {
|
|
50
|
-
className: "tsqd-parent-container",
|
|
51
|
-
ref_key: "div",
|
|
52
|
-
ref: div
|
|
53
|
-
}, null, 512);
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
export {
|
|
58
|
-
_sfc_main as default
|
|
59
|
-
};
|
|
60
|
-
//# sourceMappingURL=devtools.vue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtools.vue.js","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.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 || 'system')\n})\n\nonMounted(() => {\n devtools.mount(div.value as HTMLElement)\n})\n\nonScopeDispose(() => {\n devtools.unmount()\n})\n</script>\n\n<template>\n <div className=\"tsqd-parent-container\" ref=\"div\"></div>\n</template>\n"],"names":["_createElementBlock"],"mappings":";;;;;;;;;;;;;;;;;AAMA,UAAM,QAAQ;AAEd,UAAM,MAAM,IAAA;AACZ,UAAM,SAAS,MAAM,UAAU,eAAA;AAC/B,UAAM,WAAW,IAAI,sBAAsB;AAAA,MACzC;AAAA,MACA,aAAa;AAAA,MACb,SAAS;AAAA,MACT;AAAA,MACA,gBAAgB,MAAM;AAAA,MACtB,UAAU,MAAM;AAAA,MAChB,eAAe,MAAM;AAAA,MACrB,YAAY,MAAM;AAAA,MAClB,YAAY,MAAM;AAAA,MAClB,iBAAiB,MAAM;AAAA,MACvB,qBAAqB,MAAM;AAAA,MAC3B,OAAO,MAAM;AAAA,IAAA,CACd;AAED,gBAAY,MAAM;AAChB,eAAS,kBAAkB,MAAM,kBAAkB,cAAc;AACjE,eAAS,YAAY,MAAM,YAAY,QAAQ;AAC/C,eAAS,iBAAiB,MAAM,aAAa;AAC7C,eAAS,cAAc,MAAM,cAAc,CAAA,CAAE;AAC7C,eAAS,SAAS,MAAM,SAAS,QAAQ;AAAA,IAC3C,CAAC;AAED,cAAU,MAAM;AACd,eAAS,MAAM,IAAI,KAAoB;AAAA,IACzC,CAAC;AAED,mBAAe,MAAM;AACnB,eAAS,QAAA;AAAA,IACX,CAAC;;0BAICA,mBAAuD,OAAA;AAAA,QAAlD,WAAU;AAAA,iBAA4B;AAAA,QAAJ,KAAI;AAAA,MAAA;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtools.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { DevtoolsPanelOptions } from './types.js';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<DevtoolsPanelOptions, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DevtoolsPanelOptions> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
-
export default _default;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watchEffect, onMounted, onScopeDispose, openBlock, createElementBlock, normalizeStyle } from "vue";
|
|
2
|
-
import { useQueryClient, onlineManager } from "@tanstack/vue-query";
|
|
3
|
-
import { TanstackQueryDevtoolsPanel } from "@tanstack/query-devtools";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "devtoolsPanel",
|
|
6
|
-
props: {
|
|
7
|
-
client: {},
|
|
8
|
-
errorTypes: {},
|
|
9
|
-
styleNonce: {},
|
|
10
|
-
shadowDOMTarget: {},
|
|
11
|
-
style: {},
|
|
12
|
-
onClose: { type: Function },
|
|
13
|
-
hideDisabledQueries: { type: Boolean },
|
|
14
|
-
theme: {}
|
|
15
|
-
},
|
|
16
|
-
setup(__props) {
|
|
17
|
-
const props = __props;
|
|
18
|
-
const style = computed(() => {
|
|
19
|
-
return {
|
|
20
|
-
height: "500px",
|
|
21
|
-
...props.style
|
|
22
|
-
};
|
|
23
|
-
});
|
|
24
|
-
const div = ref();
|
|
25
|
-
const client = props.client || useQueryClient();
|
|
26
|
-
const devtools = new TanstackQueryDevtoolsPanel({
|
|
27
|
-
client,
|
|
28
|
-
queryFlavor: "Vue Query",
|
|
29
|
-
version: "5",
|
|
30
|
-
onlineManager,
|
|
31
|
-
buttonPosition: "bottom-left",
|
|
32
|
-
position: "bottom",
|
|
33
|
-
initialIsOpen: true,
|
|
34
|
-
errorTypes: props.errorTypes,
|
|
35
|
-
styleNonce: props.styleNonce,
|
|
36
|
-
shadowDOMTarget: props.shadowDOMTarget,
|
|
37
|
-
hideDisabledQueries: props.hideDisabledQueries,
|
|
38
|
-
onClose: props.onClose,
|
|
39
|
-
theme: props.theme
|
|
40
|
-
});
|
|
41
|
-
watchEffect(() => {
|
|
42
|
-
devtools.setOnClose(props.onClose ?? (() => {
|
|
43
|
-
}));
|
|
44
|
-
devtools.setErrorTypes(props.errorTypes || []);
|
|
45
|
-
devtools.setTheme(props.theme);
|
|
46
|
-
});
|
|
47
|
-
onMounted(() => {
|
|
48
|
-
devtools.mount(div.value);
|
|
49
|
-
});
|
|
50
|
-
onScopeDispose(() => {
|
|
51
|
-
devtools.unmount();
|
|
52
|
-
});
|
|
53
|
-
return (_ctx, _cache) => {
|
|
54
|
-
return openBlock(), createElementBlock("div", {
|
|
55
|
-
style: normalizeStyle(style.value),
|
|
56
|
-
className: "tsqd-parent-container",
|
|
57
|
-
ref_key: "div",
|
|
58
|
-
ref: div
|
|
59
|
-
}, null, 4);
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
export {
|
|
64
|
-
_sfc_main as default
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=devtoolsPanel.vue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtoolsPanel.vue.js","sources":["../../src/devtoolsPanel.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onMounted, onScopeDispose, ref, watchEffect } from 'vue'\nimport { onlineManager, useQueryClient } from '@tanstack/vue-query'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport type { DevtoolsPanelOptions } from './types'\n\nconst props = defineProps<DevtoolsPanelOptions>()\nconst style = computed<any>(() => {\n return {\n height: '500px',\n ...props.style,\n }\n})\n\nconst div = ref<HTMLElement>()\nconst client = props.client || useQueryClient()\nconst devtools = new TanstackQueryDevtoolsPanel({\n client,\n queryFlavor: 'Vue Query',\n version: '5',\n onlineManager,\n buttonPosition: 'bottom-left',\n position: 'bottom',\n initialIsOpen: true,\n errorTypes: props.errorTypes,\n styleNonce: props.styleNonce,\n shadowDOMTarget: props.shadowDOMTarget,\n hideDisabledQueries: props.hideDisabledQueries,\n onClose: props.onClose,\n theme: props.theme,\n})\n\nwatchEffect(() => {\n devtools.setOnClose(props.onClose ?? (() => {}))\n devtools.setErrorTypes(props.errorTypes || [])\n devtools.setTheme(props.theme)\n})\n\nonMounted(() => {\n devtools.mount(div.value as HTMLElement)\n})\n\nonScopeDispose(() => {\n devtools.unmount()\n})\n</script>\n\n<template>\n <div :style=\"style\" className=\"tsqd-parent-container\" ref=\"div\"></div>\n</template>\n"],"names":["_createElementBlock"],"mappings":";;;;;;;;;;;;;;;;AAMA,UAAM,QAAQ;AACd,UAAM,QAAQ,SAAc,MAAM;AAChC,aAAO;AAAA,QACL,QAAQ;AAAA,QACR,GAAG,MAAM;AAAA,MAAA;AAAA,IAEb,CAAC;AAED,UAAM,MAAM,IAAA;AACZ,UAAM,SAAS,MAAM,UAAU,eAAA;AAC/B,UAAM,WAAW,IAAI,2BAA2B;AAAA,MAC9C;AAAA,MACA,aAAa;AAAA,MACb,SAAS;AAAA,MACT;AAAA,MACA,gBAAgB;AAAA,MAChB,UAAU;AAAA,MACV,eAAe;AAAA,MACf,YAAY,MAAM;AAAA,MAClB,YAAY,MAAM;AAAA,MAClB,iBAAiB,MAAM;AAAA,MACvB,qBAAqB,MAAM;AAAA,MAC3B,SAAS,MAAM;AAAA,MACf,OAAO,MAAM;AAAA,IAAA,CACd;AAED,gBAAY,MAAM;AAChB,eAAS,WAAW,MAAM,YAAY,MAAM;AAAA,MAAC,EAAE;AAC/C,eAAS,cAAc,MAAM,cAAc,CAAA,CAAE;AAC7C,eAAS,SAAS,MAAM,KAAK;AAAA,IAC/B,CAAC;AAED,cAAU,MAAM;AACd,eAAS,MAAM,IAAI,KAAoB;AAAA,IACzC,CAAC;AAED,mBAAe,MAAM;AACnB,eAAS,QAAA;AAAA,IACX,CAAC;;0BAICA,mBAAsE,OAAA;AAAA,QAAhE,sBAAO,MAAA,KAAK;AAAA,QAAE,WAAU;AAAA,iBAA4B;AAAA,QAAJ,KAAI;AAAA,MAAA;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtoolsPanel.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/esm/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DefineComponent } from 'vue';
|
|
2
|
-
import { DevtoolsOptions, DevtoolsPanelOptions } from './types.js';
|
|
3
|
-
export declare const VueQueryDevtools: DefineComponent<DevtoolsOptions, {}, unknown>;
|
|
4
|
-
export declare const VueQueryDevtoolsPanel: DefineComponent<DevtoolsPanelOptions, {}, unknown>;
|
package/dist/esm/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./devtools.vue.js";
|
|
2
|
-
import _sfc_main$1 from "./devtoolsPanel.vue.js";
|
|
3
|
-
const VueQueryDevtools = process.env.NODE_ENV !== "development" ? function() {
|
|
4
|
-
return null;
|
|
5
|
-
} : _sfc_main;
|
|
6
|
-
const VueQueryDevtoolsPanel = process.env.NODE_ENV !== "development" ? function() {
|
|
7
|
-
return null;
|
|
8
|
-
} : _sfc_main$1;
|
|
9
|
-
export {
|
|
10
|
-
VueQueryDevtools,
|
|
11
|
-
VueQueryDevtoolsPanel
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import devtools from './devtools.vue'\nimport devtoolsPanel from './devtoolsPanel.vue'\nimport type { DefineComponent } from 'vue'\nimport type { DevtoolsOptions, DevtoolsPanelOptions } from './types'\n\nexport const VueQueryDevtools = (\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : devtools\n) as DefineComponent<DevtoolsOptions, {}, unknown>\n\nexport const VueQueryDevtoolsPanel = (\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : devtoolsPanel\n) as DefineComponent<DevtoolsPanelOptions, {}, unknown>\n"],"names":["devtools","devtoolsPanel"],"mappings":";;AAKO,MAAM,mBACX,QAAQ,IAAI,aAAa,gBACrB,WAAY;AACV,SAAO;AACT,IACAA;AAGC,MAAM,wBACX,QAAQ,IAAI,aAAa,gBACrB,WAAY;AACV,SAAO;AACT,IACAC;"}
|
package/dist/esm/production.d.ts
DELETED
package/dist/esm/production.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"production.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/esm/types.d.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from '@tanstack/query-devtools';
|
|
2
|
-
import { QueryClient } from '@tanstack/vue-query';
|
|
3
|
-
export interface DevtoolsOptions {
|
|
4
|
-
/**
|
|
5
|
-
* Set this true if you want the dev tools to default to being open
|
|
6
|
-
*/
|
|
7
|
-
initialIsOpen?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* The position of the React Query logo to open and close the devtools panel.
|
|
10
|
-
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
|
|
11
|
-
* Defaults to 'bottom-right'.
|
|
12
|
-
*/
|
|
13
|
-
buttonPosition?: DevtoolsButtonPosition;
|
|
14
|
-
/**
|
|
15
|
-
* The position of the React Query devtools panel.
|
|
16
|
-
* 'top' | 'bottom' | 'left' | 'right'
|
|
17
|
-
* Defaults to 'bottom'.
|
|
18
|
-
*/
|
|
19
|
-
position?: DevtoolsPosition;
|
|
20
|
-
/**
|
|
21
|
-
* Custom instance of QueryClient
|
|
22
|
-
*/
|
|
23
|
-
client?: QueryClient;
|
|
24
|
-
/**
|
|
25
|
-
* Use this so you can define custom errors that can be shown in the devtools.
|
|
26
|
-
*/
|
|
27
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
28
|
-
/**
|
|
29
|
-
* 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.
|
|
30
|
-
*/
|
|
31
|
-
styleNonce?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Use this so you can attach the devtool's styles to specific element in the DOM.
|
|
34
|
-
*/
|
|
35
|
-
shadowDOMTarget?: ShadowRoot;
|
|
36
|
-
/**
|
|
37
|
-
* Set this to true to hide disabled queries from the devtools panel.
|
|
38
|
-
*/
|
|
39
|
-
hideDisabledQueries?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
42
|
-
* Defaults to 'system'.
|
|
43
|
-
*/
|
|
44
|
-
theme?: Theme;
|
|
45
|
-
}
|
|
46
|
-
export interface DevtoolsPanelOptions {
|
|
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
|
-
* Custom styles for the devtools panel
|
|
65
|
-
* @default { height: '500px' }
|
|
66
|
-
* @example { height: '100%' }
|
|
67
|
-
* @example { height: '100%', width: '100%' }
|
|
68
|
-
*/
|
|
69
|
-
style?: Partial<CSSStyleDeclaration>;
|
|
70
|
-
/**
|
|
71
|
-
* Callback function that is called when the devtools panel is closed
|
|
72
|
-
*/
|
|
73
|
-
onClose?: () => unknown;
|
|
74
|
-
/**
|
|
75
|
-
* Set this to true to hide disabled queries from the devtools panel.
|
|
76
|
-
*/
|
|
77
|
-
hideDisabledQueries?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
80
|
-
* Defaults to 'system'.
|
|
81
|
-
*/
|
|
82
|
-
theme?: Theme;
|
|
83
|
-
}
|