@tanstack/vue-query-devtools 5.83.0 → 5.84.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.
- package/dist/cjs/devtools.vue.cjs +4 -2
- package/dist/cjs/devtools.vue.cjs.map +1 -1
- package/dist/cjs/types.d.cts +4 -0
- package/dist/esm/devtools.vue.js +4 -2
- package/dist/esm/devtools.vue.js.map +1 -1
- package/dist/esm/types.d.ts +4 -0
- package/package.json +4 -4
- package/src/devtools.vue +1 -0
- package/src/types.ts +4 -0
|
@@ -11,7 +11,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
11
11
|
client: {},
|
|
12
12
|
errorTypes: {},
|
|
13
13
|
styleNonce: {},
|
|
14
|
-
shadowDOMTarget: {}
|
|
14
|
+
shadowDOMTarget: {},
|
|
15
|
+
hideDisabledQueries: { type: Boolean }
|
|
15
16
|
},
|
|
16
17
|
setup(__props) {
|
|
17
18
|
const props = __props;
|
|
@@ -27,7 +28,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
27
28
|
initialIsOpen: props.initialIsOpen,
|
|
28
29
|
errorTypes: props.errorTypes,
|
|
29
30
|
styleNonce: props.styleNonce,
|
|
30
|
-
shadowDOMTarget: props.shadowDOMTarget
|
|
31
|
+
shadowDOMTarget: props.shadowDOMTarget,
|
|
32
|
+
hideDisabledQueries: props.hideDisabledQueries
|
|
31
33
|
});
|
|
32
34
|
vue.watchEffect(() => {
|
|
33
35
|
devtools.setButtonPosition(props.buttonPosition || "bottom-right");
|
|
@@ -1 +1 @@
|
|
|
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})\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})\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"],"mappings":"
|
|
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})\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})\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"],"mappings":";;;;;;;;;;;;;;;;;AAMA,UAAM,QAAQ;AAEd,UAAM,MAAMA,IAAAA,IAAiB;AACvB,UAAA,SAAS,MAAM,UAAUC,wBAAe;AACxC,UAAA,WAAW,IAAIC,oCAAsB;AAAA,MACzC;AAAA,MACA,aAAa;AAAA,MACb,SAAS;AAAA,MAAA,eACTC,SAAA;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,IAAA,CAC5B;AAEDC,QAAAA,YAAY,MAAM;AACP,eAAA,kBAAkB,MAAM,kBAAkB,cAAc;AACxD,eAAA,YAAY,MAAM,YAAY,QAAQ;AACtC,eAAA,iBAAiB,MAAM,aAAa;AAC7C,eAAS,cAAc,MAAM,cAAc,CAAA,CAAE;AAAA,IAAA,CAC9C;AAEDC,QAAAA,UAAU,MAAM;AACL,eAAA,MAAM,IAAI,KAAoB;AAAA,IAAA,CACxC;AAEDC,QAAAA,eAAe,MAAM;AACnB,eAAS,QAAQ;AAAA,IAAA,CAClB;;;;;;;;;;;"}
|
package/dist/cjs/types.d.cts
CHANGED
|
@@ -33,4 +33,8 @@ export interface DevtoolsOptions {
|
|
|
33
33
|
* Use this so you can attach the devtool's styles to specific element in the DOM.
|
|
34
34
|
*/
|
|
35
35
|
shadowDOMTarget?: ShadowRoot;
|
|
36
|
+
/**
|
|
37
|
+
* Set this to true to hide disabled queries from the devtools panel.
|
|
38
|
+
*/
|
|
39
|
+
hideDisabledQueries?: boolean;
|
|
36
40
|
}
|
package/dist/esm/devtools.vue.js
CHANGED
|
@@ -10,7 +10,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
client: {},
|
|
11
11
|
errorTypes: {},
|
|
12
12
|
styleNonce: {},
|
|
13
|
-
shadowDOMTarget: {}
|
|
13
|
+
shadowDOMTarget: {},
|
|
14
|
+
hideDisabledQueries: { type: Boolean }
|
|
14
15
|
},
|
|
15
16
|
setup(__props) {
|
|
16
17
|
const props = __props;
|
|
@@ -26,7 +27,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
27
|
initialIsOpen: props.initialIsOpen,
|
|
27
28
|
errorTypes: props.errorTypes,
|
|
28
29
|
styleNonce: props.styleNonce,
|
|
29
|
-
shadowDOMTarget: props.shadowDOMTarget
|
|
30
|
+
shadowDOMTarget: props.shadowDOMTarget,
|
|
31
|
+
hideDisabledQueries: props.hideDisabledQueries
|
|
30
32
|
});
|
|
31
33
|
watchEffect(() => {
|
|
32
34
|
devtools.setButtonPosition(props.buttonPosition || "bottom-right");
|
|
@@ -1 +1 @@
|
|
|
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})\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})\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":[],"mappings":"
|
|
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})\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})\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":[],"mappings":";;;;;;;;;;;;;;;;AAMA,UAAM,QAAQ;AAEd,UAAM,MAAM,IAAiB;AACvB,UAAA,SAAS,MAAM,UAAU,eAAe;AACxC,UAAA,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,IAAA,CAC5B;AAED,gBAAY,MAAM;AACP,eAAA,kBAAkB,MAAM,kBAAkB,cAAc;AACxD,eAAA,YAAY,MAAM,YAAY,QAAQ;AACtC,eAAA,iBAAiB,MAAM,aAAa;AAC7C,eAAS,cAAc,MAAM,cAAc,CAAA,CAAE;AAAA,IAAA,CAC9C;AAED,cAAU,MAAM;AACL,eAAA,MAAM,IAAI,KAAoB;AAAA,IAAA,CACxC;AAED,mBAAe,MAAM;AACnB,eAAS,QAAQ;AAAA,IAAA,CAClB;;;;;;;;;;"}
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -33,4 +33,8 @@ export interface DevtoolsOptions {
|
|
|
33
33
|
* Use this so you can attach the devtool's styles to specific element in the DOM.
|
|
34
34
|
*/
|
|
35
35
|
shadowDOMTarget?: ShadowRoot;
|
|
36
|
+
/**
|
|
37
|
+
* Set this to true to hide disabled queries from the devtools panel.
|
|
38
|
+
*/
|
|
39
|
+
hideDisabledQueries?: boolean;
|
|
36
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/vue-query-devtools",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.84.0",
|
|
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.84.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"vite": "^6.3.5",
|
|
52
52
|
"vue": "^3.4.27",
|
|
53
53
|
"vue-tsc": "^2.2.8",
|
|
54
|
-
"@tanstack/vue-query": "5.83.
|
|
54
|
+
"@tanstack/vue-query": "5.83.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"vue": "^3.3.0",
|
|
58
|
-
"@tanstack/vue-query": "^5.83.
|
|
58
|
+
"@tanstack/vue-query": "^5.83.1"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"clean": "premove ./build ./coverage ./dist-ts",
|
package/src/devtools.vue
CHANGED
package/src/types.ts
CHANGED
|
@@ -38,4 +38,8 @@ export interface DevtoolsOptions {
|
|
|
38
38
|
* Use this so you can attach the devtool's styles to specific element in the DOM.
|
|
39
39
|
*/
|
|
40
40
|
shadowDOMTarget?: ShadowRoot
|
|
41
|
+
/**
|
|
42
|
+
* Set this to true to hide disabled queries from the devtools panel.
|
|
43
|
+
*/
|
|
44
|
+
hideDisabledQueries?: boolean
|
|
41
45
|
}
|