@tanstack/vue-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.
- package/dist/devtools.js.map +1 -1
- package/dist/devtools.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/devtools.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/devtoolsPanel.js +1 -1
- package/dist/devtoolsPanel.js.map +1 -1
- package/dist/devtoolsPanel.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/devtoolsPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/types.d.ts +26 -6
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/devtools.vue +1 -1
- package/src/devtoolsPanel.vue +1 -1
- package/src/types.ts +22 -6
package/dist/devtools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools.js","names":["_openBlock","_createElementBlock"
|
|
1
|
+
{"version":3,"file":"devtools.js","names":["_openBlock","_createElementBlock"],"sources":["../src/devtools.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/vue-query'\nimport { onMounted, onScopeDispose, ref, watchEffect } from 'vue'\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 shadowDOMTarget: props.shadowDOMTarget,\n trustedTypesPolicy: props.trustedTypesPolicy,\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"}
|
|
@@ -33,6 +33,10 @@ var devtools_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
33
33
|
type: null,
|
|
34
34
|
required: false
|
|
35
35
|
},
|
|
36
|
+
trustedTypesPolicy: {
|
|
37
|
+
type: Object,
|
|
38
|
+
required: false
|
|
39
|
+
},
|
|
36
40
|
hideDisabledQueries: {
|
|
37
41
|
type: Boolean,
|
|
38
42
|
required: false
|
|
@@ -56,8 +60,8 @@ var devtools_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
56
60
|
position: props.position,
|
|
57
61
|
initialIsOpen: props.initialIsOpen,
|
|
58
62
|
errorTypes: props.errorTypes,
|
|
59
|
-
styleNonce: props.styleNonce,
|
|
60
63
|
shadowDOMTarget: props.shadowDOMTarget,
|
|
64
|
+
trustedTypesPolicy: props.trustedTypesPolicy,
|
|
61
65
|
hideDisabledQueries: props.hideDisabledQueries,
|
|
62
66
|
theme: props.theme
|
|
63
67
|
});
|
|
@@ -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 { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/vue-query'\nimport { onMounted, onScopeDispose, ref, watchEffect } from 'vue'\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
|
|
1
|
+
{"version":3,"file":"devtools.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../src/devtools.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/vue-query'\nimport { onMounted, onScopeDispose, ref, watchEffect } from 'vue'\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 shadowDOMTarget: props.shadowDOMTarget,\n trustedTypesPolicy: props.trustedTypesPolicy,\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,iBAAiB,MAAM;GACvB,oBAAoB,MAAM;GAC1B,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,5 +1,5 @@
|
|
|
1
|
-
import export_helper_default from "./_virtual/_/plugin-vue/export-helper.js";
|
|
2
1
|
import devtoolsPanel_vue_vue_type_script_setup_true_lang_default from "./devtoolsPanel.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
import export_helper_default from "./_virtual/_/plugin-vue/export-helper.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) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtoolsPanel.js","names":["_openBlock","_createElementBlock","_normalizeStyle"
|
|
1
|
+
{"version":3,"file":"devtoolsPanel.js","names":["_openBlock","_createElementBlock","_normalizeStyle"],"sources":["../src/devtoolsPanel.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/vue-query'\nimport { computed, onMounted, onScopeDispose, ref, watchEffect } from 'vue'\nimport type { DevtoolsPanelOptions } from './types'\n\nconst props = defineProps<DevtoolsPanelOptions>()\nconst style = computed<any>(() => {\n return {\n height: '100%',\n display: 'flex',\n flexDirection: 'column',\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 shadowDOMTarget: props.shadowDOMTarget,\n trustedTypesPolicy: props.trustedTypesPolicy,\n hideDisabledQueries: props.hideDisabledQueries,\n onClose: props.onClose,\n theme: props.theme,\n})\n\nwatchEffect(() => {\n devtools.setClient(props.client || client)\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 onScopeDispose(() => {\n devtools.unmount()\n })\n})\n</script>\n\n<template>\n <div :style=\"style\" class=\"tsqd-parent-container\" ref=\"div\"></div>\n</template>\n"],"mappings":";;;;;CAkDE,OAAAA,UAAA,GAAAC,mBAAkE,OAAA;EAA5D,OAAKC,eAAE,OAAA,KAAK;EAAE,OAAM;EAAwB,KAAI"}
|
|
@@ -21,6 +21,10 @@ var devtoolsPanel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
21
21
|
type: null,
|
|
22
22
|
required: false
|
|
23
23
|
},
|
|
24
|
+
trustedTypesPolicy: {
|
|
25
|
+
type: Object,
|
|
26
|
+
required: false
|
|
27
|
+
},
|
|
24
28
|
style: {
|
|
25
29
|
type: Object,
|
|
26
30
|
required: false
|
|
@@ -60,8 +64,8 @@ var devtoolsPanel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
60
64
|
position: "bottom",
|
|
61
65
|
initialIsOpen: true,
|
|
62
66
|
errorTypes: props.errorTypes,
|
|
63
|
-
styleNonce: props.styleNonce,
|
|
64
67
|
shadowDOMTarget: props.shadowDOMTarget,
|
|
68
|
+
trustedTypesPolicy: props.trustedTypesPolicy,
|
|
65
69
|
hideDisabledQueries: props.hideDisabledQueries,
|
|
66
70
|
onClose: props.onClose,
|
|
67
71
|
theme: props.theme
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtoolsPanel.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../src/devtoolsPanel.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/vue-query'\nimport { computed, onMounted, onScopeDispose, ref, watchEffect } from 'vue'\nimport type { DevtoolsPanelOptions } from './types'\n\nconst props = defineProps<DevtoolsPanelOptions>()\nconst style = computed<any>(() => {\n return {\n height: '100%',\n display: 'flex',\n flexDirection: 'column',\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
|
|
1
|
+
{"version":3,"file":"devtoolsPanel.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../src/devtoolsPanel.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/vue-query'\nimport { computed, onMounted, onScopeDispose, ref, watchEffect } from 'vue'\nimport type { DevtoolsPanelOptions } from './types'\n\nconst props = defineProps<DevtoolsPanelOptions>()\nconst style = computed<any>(() => {\n return {\n height: '100%',\n display: 'flex',\n flexDirection: 'column',\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 shadowDOMTarget: props.shadowDOMTarget,\n trustedTypesPolicy: props.trustedTypesPolicy,\n hideDisabledQueries: props.hideDisabledQueries,\n onClose: props.onClose,\n theme: props.theme,\n})\n\nwatchEffect(() => {\n devtools.setClient(props.client || client)\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 onScopeDispose(() => {\n devtools.unmount()\n })\n})\n</script>\n\n<template>\n <div :style=\"style\" class=\"tsqd-parent-container\" ref=\"div\"></div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMA,MAAM,QAAQ;EACd,MAAM,QAAQ,eAAoB;GAChC,OAAO;IACL,QAAQ;IACR,SAAS;IACT,eAAe;IACf,GAAG,MAAM;GACX;EACF,CAAC;EAED,MAAM,MAAM,IAAiB;EAC7B,MAAM,SAAS,MAAM,UAAU,eAAe;EAC9C,MAAM,WAAW,IAAI,2BAA2B;GAC9C;GACA,aAAa;GACb,SAAS;GACT;GACA,gBAAgB;GAChB,UAAU;GACV,eAAe;GACf,YAAY,MAAM;GAClB,iBAAiB,MAAM;GACvB,oBAAoB,MAAM;GAC1B,qBAAqB,MAAM;GAC3B,SAAS,MAAM;GACf,OAAO,MAAM;EACf,CAAC;EAED,kBAAkB;GAChB,SAAS,UAAU,MAAM,UAAU,MAAM;GACzC,SAAS,WAAW,MAAM,kBAAkB,CAAC,EAAE;GAC/C,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/types.d.ts
CHANGED
|
@@ -29,14 +29,24 @@ export interface DevtoolsOptions {
|
|
|
29
29
|
*/
|
|
30
30
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
33
|
+
* nonce. This option does nothing.
|
|
33
34
|
*/
|
|
34
35
|
styleNonce?: string;
|
|
35
36
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
37
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
38
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
39
|
+
* they do not render in a shadow root.
|
|
38
40
|
*/
|
|
39
41
|
shadowDOMTarget?: ShadowRoot;
|
|
42
|
+
/**
|
|
43
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
44
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
45
|
+
* The devtools only pass it their own markup.
|
|
46
|
+
*/
|
|
47
|
+
trustedTypesPolicy?: {
|
|
48
|
+
createHTML: (html: string) => unknown;
|
|
49
|
+
};
|
|
40
50
|
/**
|
|
41
51
|
* Set this to true to hide disabled queries from the devtools panel.
|
|
42
52
|
*/
|
|
@@ -61,14 +71,24 @@ export interface DevtoolsPanelOptions {
|
|
|
61
71
|
*/
|
|
62
72
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
63
73
|
/**
|
|
64
|
-
*
|
|
74
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
75
|
+
* nonce. This option does nothing.
|
|
65
76
|
*/
|
|
66
77
|
styleNonce?: string;
|
|
67
78
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
79
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
80
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
81
|
+
* they do not render in a shadow root.
|
|
70
82
|
*/
|
|
71
83
|
shadowDOMTarget?: ShadowRoot;
|
|
84
|
+
/**
|
|
85
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
86
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
87
|
+
* The devtools only pass it their own markup.
|
|
88
|
+
*/
|
|
89
|
+
trustedTypesPolicy?: {
|
|
90
|
+
createHTML: (html: string) => unknown;
|
|
91
|
+
};
|
|
72
92
|
/**
|
|
73
93
|
* Custom styles for the devtools panel
|
|
74
94
|
* @default { height: '100%', display: 'flex', flexDirection: 'column' }
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;iBAWiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;EAIX,SAAS;;;;EAIT,aAAa,MAAM
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;iBAWiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;EAIX,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;EAIpC;;;;;;EAMA,QAAQ;;;;;iBAMO;;;;EAIf,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;;;;EAQpC,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.4.
|
|
3
|
+
"version": "6.4.5",
|
|
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.108.
|
|
41
|
+
"@tanstack/query-devtools": "5.108.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@tanstack/vue-query": "5.108.
|
|
44
|
+
"@tanstack/vue-query": "5.108.2",
|
|
45
45
|
"typescript": "6.0.3",
|
|
46
46
|
"unplugin-vue": "^8.0.0",
|
|
47
47
|
"vue": "^3.5.44",
|
|
48
48
|
"vue-tsc": "^2.2.8"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@tanstack/vue-query": "^5.108.
|
|
51
|
+
"@tanstack/vue-query": "^5.108.2",
|
|
52
52
|
"vue": "^3.3.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
package/src/devtools.vue
CHANGED
|
@@ -17,8 +17,8 @@ const devtools = new TanstackQueryDevtools({
|
|
|
17
17
|
position: props.position,
|
|
18
18
|
initialIsOpen: props.initialIsOpen,
|
|
19
19
|
errorTypes: props.errorTypes,
|
|
20
|
-
styleNonce: props.styleNonce,
|
|
21
20
|
shadowDOMTarget: props.shadowDOMTarget,
|
|
21
|
+
trustedTypesPolicy: props.trustedTypesPolicy,
|
|
22
22
|
hideDisabledQueries: props.hideDisabledQueries,
|
|
23
23
|
theme: props.theme,
|
|
24
24
|
})
|
package/src/devtoolsPanel.vue
CHANGED
|
@@ -25,8 +25,8 @@ const devtools = new TanstackQueryDevtoolsPanel({
|
|
|
25
25
|
position: 'bottom',
|
|
26
26
|
initialIsOpen: true,
|
|
27
27
|
errorTypes: props.errorTypes,
|
|
28
|
-
styleNonce: props.styleNonce,
|
|
29
28
|
shadowDOMTarget: props.shadowDOMTarget,
|
|
29
|
+
trustedTypesPolicy: props.trustedTypesPolicy,
|
|
30
30
|
hideDisabledQueries: props.hideDisabledQueries,
|
|
31
31
|
onClose: props.onClose,
|
|
32
32
|
theme: props.theme,
|
package/src/types.ts
CHANGED
|
@@ -35,14 +35,22 @@ export interface DevtoolsOptions {
|
|
|
35
35
|
*/
|
|
36
36
|
errorTypes?: Array<DevtoolsErrorType>
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
39
|
+
* nonce. This option does nothing.
|
|
39
40
|
*/
|
|
40
41
|
styleNonce?: string
|
|
41
42
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
43
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
44
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
45
|
+
* they do not render in a shadow root.
|
|
44
46
|
*/
|
|
45
47
|
shadowDOMTarget?: ShadowRoot
|
|
48
|
+
/**
|
|
49
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
50
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
51
|
+
* The devtools only pass it their own markup.
|
|
52
|
+
*/
|
|
53
|
+
trustedTypesPolicy?: { createHTML: (html: string) => unknown }
|
|
46
54
|
/**
|
|
47
55
|
* Set this to true to hide disabled queries from the devtools panel.
|
|
48
56
|
*/
|
|
@@ -68,14 +76,22 @@ export interface DevtoolsPanelOptions {
|
|
|
68
76
|
*/
|
|
69
77
|
errorTypes?: Array<DevtoolsErrorType>
|
|
70
78
|
/**
|
|
71
|
-
*
|
|
79
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
80
|
+
* nonce. This option does nothing.
|
|
72
81
|
*/
|
|
73
82
|
styleNonce?: string
|
|
74
83
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
84
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
85
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
86
|
+
* they do not render in a shadow root.
|
|
77
87
|
*/
|
|
78
88
|
shadowDOMTarget?: ShadowRoot
|
|
89
|
+
/**
|
|
90
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
91
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
92
|
+
* The devtools only pass it their own markup.
|
|
93
|
+
*/
|
|
94
|
+
trustedTypesPolicy?: { createHTML: (html: string) => unknown }
|
|
79
95
|
|
|
80
96
|
/**
|
|
81
97
|
* Custom styles for the devtools panel
|