vite-plugin-vue-devtools 0.5.0 → 1.0.0-alpha.1

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.
Files changed (46) hide show
  1. package/client.d.ts +55 -0
  2. package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js → Icon.vue_vue_type_script_setup_true_lang-f867c918.js} +2 -2
  3. package/dist/client/assets/{VIconButton.vue_vue_type_script_setup_true_lang-63abce3f.js → IconButton.vue_vue_type_script_setup_true_lang-74db1ae6.js} +4 -5
  4. package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-1ad26587.js → IconTitle.vue_vue_type_script_setup_true_lang-d82eff77.js} +2 -2
  5. package/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-c6f176d1.js → IframeView.vue_vue_type_script_setup_true_lang-778923b2.js} +1 -1
  6. package/dist/client/assets/{VPanelGrids-4b915e62.js → PanelGrids-93648569.js} +1 -1
  7. package/dist/client/assets/SectionBlock-0024395a.css +18 -0
  8. package/dist/client/assets/{VSectionBlock-8dcfb48d.js → SectionBlock-a8928e3c.js} +11 -11
  9. package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-617e4d70.js → StateFields.vue_vue_type_script_setup_true_lang-019c8d08.js} +13 -13
  10. package/dist/client/assets/{VSwitch.vue_vue_type_script_setup_true_lang-ed954339.js → Switch.vue_vue_type_script_setup_true_lang-3e126052.js} +6 -6
  11. package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-5edeb245.js → TextInput.vue_vue_type_script_setup_true_lang-13bb76a1.js} +5 -5
  12. package/dist/client/assets/{__eyedropper-67c21231.js → __eyedropper-44f84f34.js} +10 -6
  13. package/dist/client/assets/{assets-bf6dd9e4.js → assets-114c5f0e.js} +27 -28
  14. package/dist/client/assets/{component-docs-b2752be1.js → component-docs-6d7e057c.js} +9 -10
  15. package/dist/client/assets/{components-c9aae4bc.js → components-fc711123.js} +134 -21
  16. package/dist/client/assets/{documentations-e0b483de.js → documentations-4d7aa8fe.js} +4 -5
  17. package/dist/client/assets/{graph-f081d3a5.js → graph-0860970b.js} +8 -9
  18. package/dist/client/assets/{index-f977bcde.js → index-95398468.js} +1 -1
  19. package/dist/client/assets/{index-197edebf.js → index-9f1190d8.js} +475 -121
  20. package/dist/client/assets/index-d3dcbe9e.css +474 -0
  21. package/dist/client/assets/{inspect-8d04bb08.js → inspect-6bd0f86e.js} +2 -3
  22. package/dist/client/assets/{npm-73c6479f.js → npm-ee43d18c.js} +17 -18
  23. package/dist/client/assets/{overview-edc8c0a8.js → overview-8e63c4fa.js} +15 -16
  24. package/dist/client/assets/{pages-562d1ae5.js → pages-323386ca.js} +16 -16
  25. package/dist/client/assets/{pinia-89f6b4c0.js → pinia-58865e70.js} +6 -6
  26. package/dist/client/assets/{routes-ddddc2d7.js → routes-cd907bae.js} +13 -13
  27. package/dist/client/assets/{settings-3815e37a.css → settings-7bce89ae.css} +3 -3
  28. package/dist/client/assets/{settings-7722ba4d.js → settings-b93aee1f.js} +37 -39
  29. package/dist/client/assets/{splitpanes.es-2f5182b4.js → splitpanes.es-36fe45c8.js} +1 -1
  30. package/dist/client/assets/{timeline-bc5ea36f.js → timeline-8ce18510.js} +11 -11
  31. package/dist/client/index.html +2 -2
  32. package/dist/{index.cjs → vite.cjs} +9 -40
  33. package/dist/{index.mjs → vite.mjs} +7 -38
  34. package/package.json +26 -89
  35. package/src/app.js +4 -0
  36. package/src/{node/views → views}/ComponentInspector.vue +6 -6
  37. package/src/{node/views → views}/Main.vue +30 -24
  38. package/README.md +0 -166
  39. package/dist/client/assets/VSectionBlock-52804693.css +0 -18
  40. package/dist/client/assets/index-fb18df65.css +0 -474
  41. package/dist/client/assets/rpc-b9c94a3a.js +0 -145
  42. package/src/node/app.js +0 -31
  43. /package/dist/{index.d.ts → vite.d.ts} +0 -0
  44. /package/src/{node/views → views}/FrameBox.vue +0 -0
  45. /package/src/{node/views → views}/composables.ts +0 -0
  46. /package/src/{node/views → views}/utils.ts +0 -0
@@ -1,10 +1,10 @@
1
- import { _ as __unplugin_components_0 } from './VPanelGrids-4b915e62.js';
2
- import { F as Fragment, a$ as ref, b8 as shallowRef, a1 as computed, cm as useThrottleFn, cj as useDevtoolsClient, v as defineComponent, r as resolveComponent, o as openBlock, e as createElementBlock, x as createBaseVNode, z as unref, c as createBlock, q as normalizeClass, y as toDisplayString, l as normalizeStyle, i as renderList, g as createCommentVNode, aP as onMounted, cn as onVueInstanceUpdate, u as createVNode, h as withCtx, aZ as reactive, _ as __unplugin_components_7, co as instance } from './index-197edebf.js';
3
- import { a as _sfc_main$2, _ as _sfc_main$3 } from './StateFields.vue_vue_type_script_setup_true_lang-617e4d70.js';
4
- import { g, M } from './splitpanes.es-2f5182b4.js';
5
- import './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
6
- import './index-f977bcde.js';
7
- import './VIconButton.vue_vue_type_script_setup_true_lang-63abce3f.js';
1
+ import { _ as __unplugin_components_0 } from './PanelGrids-93648569.js';
2
+ import { F as Fragment, a$ as ref, a1 as computed, b8 as shallowRef, cl as useDevToolsClient, cp as useThrottleFn, v as defineComponent, r as resolveComponent, o as openBlock, e as createElementBlock, x as createBaseVNode, z as unref, c as createBlock, q as normalizeClass, y as toDisplayString, l as normalizeStyle, i as renderList, g as createCommentVNode, aP as onMounted, cq as onVueInstanceUpdate, u as createVNode, h as withCtx, cm as rootPath, aZ as reactive, _ as __unplugin_components_7, cr as instance } from './index-9f1190d8.js';
3
+ import { a as _sfc_main$2, _ as _sfc_main$3 } from './StateFields.vue_vue_type_script_setup_true_lang-019c8d08.js';
4
+ import { g, M } from './splitpanes.es-36fe45c8.js';
5
+ import './Icon.vue_vue_type_script_setup_true_lang-f867c918.js';
6
+ import './index-95398468.js';
7
+ import './IconButton.vue_vue_type_script_setup_true_lang-74db1ae6.js';
8
8
 
9
9
  function isBeingDestroyed(instance) {
10
10
  return instance._isBeingDestroyed || instance.isUnmounted;
@@ -274,6 +274,14 @@ const vueBuiltins = [
274
274
  "withDirectives",
275
275
  "withModifiers"
276
276
  ];
277
+ function getInstanceDetails(instance) {
278
+ return {
279
+ id: getUniqueComponentId(instance),
280
+ name: getInstanceName(instance),
281
+ file: instance?.type?.__file,
282
+ state: getInstanceState(instance)
283
+ };
284
+ }
277
285
  function getInstanceState(instance) {
278
286
  const mergedType = resolveMergedOptions(instance);
279
287
  return processProps(instance).concat(
@@ -683,15 +691,20 @@ class ComponentWalker {
683
691
  /* Injected with object hook! */
684
692
 
685
693
  const selected = ref("vue-devtools:root");
694
+ const selectedComponentName = ref("");
695
+ const selectedComponentNode = ref();
696
+ const selectedComponentNodeFilePath = computed(() => selectedComponentNode.value?.instance ? getInstanceDetails(selectedComponentNode.value.instance)?.file : null);
686
697
  const expandedMap = ref({
687
698
  "vue-devtools:root": true
688
699
  });
689
700
  const selectedComponent = ref();
690
701
  const selectedComponentState = shallowRef([]);
691
702
  function useComponent(instance) {
692
- function select(id) {
693
- selected.value = id;
694
- selectedComponentState.value = InstanceMap.get(id);
703
+ function select(data) {
704
+ selected.value = data.id;
705
+ selectedComponentName.value = data.name;
706
+ selectedComponentState.value = InstanceMap.get(data.id);
707
+ selectedComponentNode.value = data;
695
708
  }
696
709
  function toggleExpand(id) {
697
710
  expandedMap.value[id] = !expandedMap.value[id];
@@ -701,7 +714,7 @@ function useComponent(instance) {
701
714
  return { isSelected, select, isExpanded, toggleExpand };
702
715
  }
703
716
  function useHighlightComponent(node) {
704
- const client = useDevtoolsClient();
717
+ const client = useDevToolsClient();
705
718
  const highlight = useThrottleFn(() => {
706
719
  const instance = node.instance;
707
720
  const bounds = getInstanceOrVnodeRect(instance);
@@ -716,6 +729,30 @@ function useHighlightComponent(node) {
716
729
  unhighlight
717
730
  };
718
731
  }
732
+ scrollToComponent.timer = null;
733
+ function scrollToComponent() {
734
+ if (scrollToComponent.timer)
735
+ clearTimeout(scrollToComponent.timer);
736
+ const client = useDevToolsClient();
737
+ const { highlight, unhighlight } = useHighlightComponent(selectedComponentNode.value);
738
+ const instance = selectedComponentNode.value.instance;
739
+ const [el] = getRootElementsFromComponentInstance(instance);
740
+ if (typeof el.scrollIntoView === "function") {
741
+ el.scrollIntoView({
742
+ behavior: "smooth"
743
+ });
744
+ } else {
745
+ const _bounds = getInstanceOrVnodeRect(instance);
746
+ client.value.componentInspector.scrollToComponent(_bounds);
747
+ }
748
+ scrollToComponent.timer = setTimeout(() => {
749
+ highlight();
750
+ scrollToComponent.timer = setTimeout(() => {
751
+ unhighlight();
752
+ scrollToComponent.timer = null;
753
+ }, 1500);
754
+ }, 1200);
755
+ }
719
756
 
720
757
  /* Injected with object hook! */
721
758
 
@@ -737,7 +774,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
737
774
  const { isSelected, select, isExpanded, toggleExpand } = useComponent(props.data);
738
775
  const { highlight, unhighlight } = useHighlightComponent(props.data);
739
776
  return (_ctx, _cache) => {
740
- const _component_VExpandIcon = _sfc_main$2;
777
+ const _component_VDExpandIcon = _sfc_main$2;
741
778
  const _component_ComponentTreeNode = resolveComponent("ComponentTreeNode", true);
742
779
  return openBlock(), createElementBlock(Fragment, null, [
743
780
  createBaseVNode("div", {
@@ -746,7 +783,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
746
783
  }),
747
784
  "vue-block": "",
748
785
  class: normalizeClass([unref(isSelected) ? "vue-block-active" : "vue-block-hover"]),
749
- onClick: _cache[1] || (_cache[1] = ($event) => unref(select)(_ctx.data.id)),
786
+ onClick: _cache[1] || (_cache[1] = ($event) => unref(select)(_ctx.data)),
750
787
  onMouseover: _cache[2] || (_cache[2] = //@ts-ignore
751
788
  (...args) => unref(highlight) && unref(highlight)(...args)),
752
789
  onMouseleave: _cache[3] || (_cache[3] = //@ts-ignore
@@ -757,7 +794,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
757
794
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.data.hasChildren ? unref(toggleExpand)(_ctx.data.id) : () => {
758
795
  })
759
796
  }, [
760
- _ctx.data.hasChildren ? (openBlock(), createBlock(_component_VExpandIcon, {
797
+ _ctx.data.hasChildren ? (openBlock(), createBlock(_component_VDExpandIcon, {
761
798
  key: 0,
762
799
  value: unref(isExpanded)
763
800
  }, null, 8, ["value"])) : (openBlock(), createElementBlock("i", _hoisted_1$1)),
@@ -805,13 +842,40 @@ const _hoisted_2 = {
805
842
  };
806
843
  const _hoisted_3 = {
807
844
  key: 0,
845
+ border: "b base",
846
+ flex: "",
847
+ "justify-between": "",
848
+ "px-4": "",
849
+ "py-2": ""
850
+ };
851
+ const _hoisted_4 = {
852
+ key: 0,
853
+ "text-sm": "",
854
+ "text-primary": "",
855
+ op90: ""
856
+ };
857
+ const _hoisted_5 = { flex: "" };
858
+ const _hoisted_6 = /* @__PURE__ */ createBaseVNode("p", {
859
+ "text-xs": "",
860
+ "op-50": ""
861
+ }, " Scroll to component ", -1);
862
+ const _hoisted_7 = {
863
+ key: 0,
864
+ "pl-2": ""
865
+ };
866
+ const _hoisted_8 = {
867
+ "text-xs": "",
868
+ "op-50": ""
869
+ };
870
+ const _hoisted_9 = {
871
+ key: 1,
808
872
  "h-screen": "",
809
873
  "select-none": "",
810
874
  "overflow-scroll": "",
811
875
  "p-2": "",
812
876
  class: "no-scrollbar"
813
877
  };
814
- const _hoisted_4 = /* @__PURE__ */ createBaseVNode("h1", {
878
+ const _hoisted_10 = /* @__PURE__ */ createBaseVNode("h1", {
815
879
  "text-sm": "",
816
880
  italic: "",
817
881
  op50: ""
@@ -856,6 +920,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
856
920
  selectedComponentState.value = getInstanceState(instance.value);
857
921
  walker.getComponentTree(instance.value).then((res) => {
858
922
  componentTree.value = res;
923
+ selectedComponentName.value = res?.[0]?.name ?? "";
924
+ selectedComponentNode.value = res?.[0];
859
925
  });
860
926
  }
861
927
  onMounted(() => {
@@ -866,11 +932,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
866
932
  }
867
933
  });
868
934
  });
935
+ function openInEditor() {
936
+ const client = useDevToolsClient();
937
+ client.value.openInEditor(selectedComponentNodeFilePath.value);
938
+ }
869
939
  return (_ctx, _cache) => {
870
940
  const _component_ComponentTreeNode = _sfc_main$1;
941
+ const _component_VTooltip = resolveComponent("VTooltip");
871
942
  const _component_StateFields = _sfc_main$3;
872
- const _component_VCard = __unplugin_components_7;
873
- const _component_VPanelGrids = __unplugin_components_0;
943
+ const _component_VDCard = __unplugin_components_7;
944
+ const _component_VDPanelGrids = __unplugin_components_0;
874
945
  return openBlock(), createElementBlock("div", _hoisted_1, [
875
946
  createVNode(unref(M), null, {
876
947
  default: withCtx(() => [
@@ -890,6 +961,48 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
890
961
  createVNode(unref(g), null, {
891
962
  default: withCtx(() => [
892
963
  unref(normalizedComponentState).length ? (openBlock(), createElementBlock("div", _hoisted_3, [
964
+ unref(selectedComponentName) ? (openBlock(), createElementBlock("span", _hoisted_4, "<" + toDisplayString(unref(selectedComponentName)) + ">", 1)) : createCommentVNode("", true),
965
+ createBaseVNode("p", _hoisted_5, [
966
+ createBaseVNode("span", null, [
967
+ createVNode(_component_VTooltip, { placement: "bottom" }, {
968
+ popper: withCtx(() => [
969
+ _hoisted_6
970
+ ]),
971
+ default: withCtx(() => [
972
+ createBaseVNode("i", {
973
+ "gg:scroll-h": "",
974
+ "cursor-pointer": "",
975
+ "text-xl": "",
976
+ op70: "",
977
+ hover: "op100",
978
+ onClick: _cache[0] || (_cache[0] = //@ts-ignore
979
+ (...args) => unref(scrollToComponent) && unref(scrollToComponent)(...args))
980
+ })
981
+ ]),
982
+ _: 1
983
+ })
984
+ ]),
985
+ unref(selectedComponentNodeFilePath) ? (openBlock(), createElementBlock("span", _hoisted_7, [
986
+ createVNode(_component_VTooltip, { placement: "bottom" }, {
987
+ popper: withCtx(() => [
988
+ createBaseVNode("p", _hoisted_8, " Open " + toDisplayString(unref(selectedComponentNodeFilePath).replace(unref(rootPath), "")) + " in editor ", 1)
989
+ ]),
990
+ default: withCtx(() => [
991
+ createBaseVNode("i", {
992
+ "carbon-launch": "",
993
+ "cursor-pointer": "",
994
+ "text-sm": "",
995
+ op70: "",
996
+ hover: "op100",
997
+ onClick: openInEditor
998
+ })
999
+ ]),
1000
+ _: 1
1001
+ })
1002
+ ])) : createCommentVNode("", true)
1003
+ ])
1004
+ ])) : createCommentVNode("", true),
1005
+ unref(normalizedComponentState).length ? (openBlock(), createElementBlock("div", _hoisted_9, [
893
1006
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(normalizedComponentState), (item, index) => {
894
1007
  return openBlock(), createBlock(_component_StateFields, {
895
1008
  id: index,
@@ -897,19 +1010,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
897
1010
  data: item
898
1011
  }, null, 8, ["id", "data"]);
899
1012
  }), 128))
900
- ])) : (openBlock(), createBlock(_component_VPanelGrids, {
901
- key: 1,
1013
+ ])) : (openBlock(), createBlock(_component_VDPanelGrids, {
1014
+ key: 2,
902
1015
  px5: ""
903
1016
  }, {
904
1017
  default: withCtx(() => [
905
- createVNode(_component_VCard, {
1018
+ createVNode(_component_VDCard, {
906
1019
  flex: "~ col gap2",
907
1020
  "min-w-30": "",
908
1021
  "items-center": "",
909
1022
  p3: ""
910
1023
  }, {
911
1024
  default: withCtx(() => [
912
- _hoisted_4
1025
+ _hoisted_10
913
1026
  ]),
914
1027
  _: 1
915
1028
  })
@@ -1,6 +1,5 @@
1
- import { v as defineComponent, r as resolveComponent, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, a9 as createTextVNode, y as toDisplayString, g as createCommentVNode, e as createElementBlock, bG as withModifiers, f as renderSlot, _ as __unplugin_components_7, a$ as ref, z as unref, u as createVNode, T as Teleport, F as Fragment, i as renderList } from './index-197edebf.js';
2
- import { _ as _sfc_main$2 } from './IframeView.vue_vue_type_script_setup_true_lang-c6f176d1.js';
3
- import { r as rpc } from './rpc-b9c94a3a.js';
1
+ import { v as defineComponent, r as resolveComponent, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, a9 as createTextVNode, y as toDisplayString, g as createCommentVNode, e as createElementBlock, bG as withModifiers, f as renderSlot, _ as __unplugin_components_7, a$ as ref, c9 as rpc, z as unref, u as createVNode, T as Teleport, F as Fragment, i as renderList } from './index-9f1190d8.js';
2
+ import { _ as _sfc_main$2 } from './IframeView.vue_vue_type_script_setup_true_lang-778923b2.js';
4
3
 
5
4
  const _hoisted_1$1 = {
6
5
  flex: "~ col gap2",
@@ -75,8 +74,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
75
74
  }
76
75
  return (_ctx, _cache) => {
77
76
  const _component_VTooltip = resolveComponent("VTooltip");
78
- const _component_VCard = __unplugin_components_7;
79
- return openBlock(), createBlock(_component_VCard, {
77
+ const _component_VDCard = __unplugin_components_7;
78
+ return openBlock(), createBlock(_component_VDCard, {
80
79
  flex: "~ gap2",
81
80
  "max-h": "50vh",
82
81
  "cursor-pointer": "",
@@ -1,9 +1,8 @@
1
- import { a$ as ref, cf as useLocalStorage, a1 as computed, aN as onDeactivated, aL as onBeforeUnmount, v as defineComponent, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, e as createElementBlock, i as renderList, F as Fragment, z as unref, aC as isRef, bM as _sfc_main$3, y as toDisplayString, g as createCommentVNode, j as resolveDynamicComponent, u as createVNode, aF as isVNode, cg as useStorage, d as withDirectives, bu as vModelText, bq as vModelCheckbox, f as renderSlot, ch as useDark, b8 as shallowRef, ci as useMagicKeys, aP as onMounted, by as watch, q as normalizeClass, cj as useDevtoolsClient } from './index-197edebf.js';
2
- import { a as _sfc_main$4, _ as _sfc_main$5 } from './VSwitch.vue_vue_type_script_setup_true_lang-ed954339.js';
1
+ import { a$ as ref, ch as useLocalStorage, a1 as computed, aN as onDeactivated, aL as onBeforeUnmount, v as defineComponent, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, e as createElementBlock, i as renderList, F as Fragment, z as unref, aC as isRef, bM as _sfc_main$3, y as toDisplayString, g as createCommentVNode, j as resolveDynamicComponent, u as createVNode, aF as isVNode, c9 as rpc, ci as useStorage, d as withDirectives, bu as vModelText, bq as vModelCheckbox, f as renderSlot, cj as useDark, b8 as shallowRef, ck as useMagicKeys, aP as onMounted, by as watch, q as normalizeClass, cl as useDevToolsClient, cm as rootPath } from './index-9f1190d8.js';
2
+ import { a as _sfc_main$4, _ as _sfc_main$5 } from './Switch.vue_vue_type_script_setup_true_lang-3e126052.js';
3
3
  import { F as Fuse } from './fuse.esm-c317b696.js';
4
4
  import { g as getDefaultExportFromCjs$2 } from './_commonjsHelpers-65004790.js';
5
- import { r as rpc } from './rpc-b9c94a3a.js';
6
- import './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
5
+ import './Icon.vue_vue_type_script_setup_true_lang-f867c918.js';
7
6
 
8
7
  const showGraphSetting = ref(false);
9
8
  const graphSettingsInStorage = useLocalStorage("__vue-devtools-graph-settings__", {
@@ -63,6 +62,7 @@ function _isSlot(s) {
63
62
  const _sfc_main$2 = /*#__PURE__*/defineComponent({
64
63
  __name: 'GraphSettings',
65
64
  setup(__props) {
65
+ // @ts-expect-error missing type
66
66
  const {
67
67
  showGraphSetting,
68
68
  graphSettings
@@ -118,8 +118,8 @@ const _sfc_main$2 = /*#__PURE__*/defineComponent({
118
118
  }, null)
119
119
  }];
120
120
  return (_ctx, _cache) => {
121
- const _component_VDialog = _sfc_main$3;
122
- return openBlock(), createBlock(_component_VDialog, {
121
+ const _component_VDDialog = _sfc_main$3;
122
+ return openBlock(), createBlock(_component_VDDialog, {
123
123
  modelValue: unref(showGraphSetting),
124
124
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => isRef(showGraphSetting) ? showGraphSetting.value = $event : null),
125
125
  class: "z-2000 min-w-500px w-50vw flex flex-col gap6 p6",
@@ -2196,7 +2196,6 @@ const list = ref(await rpc.componentGraph());
2196
2196
  const searchText = useStorage("vite-inspect-search-text", "");
2197
2197
  const includeNodeModules = useStorage("vite-inspect-include-node-modules", false);
2198
2198
  const includeVirtual = useStorage("vite-inspect-include-virtual", false);
2199
- const rootPath = ref(await rpc.root());
2200
2199
  const userCustomGlobPattern = useStorage("__vue-devtools-graph-glob__", "");
2201
2200
  function getDepsByExactId(data, searchId) {
2202
2201
  const result = /* @__PURE__ */ new Set();
@@ -54444,7 +54443,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54444
54443
  });
54445
54444
  const isHoveringNode = ref(false);
54446
54445
  const lastSelectedNode = ref();
54447
- const client = useDevtoolsClient();
54446
+ const client = useDevToolsClient();
54448
54447
  function getHoverPath(level, fullPath, rootPath2) {
54449
54448
  switch (level) {
54450
54449
  case "absolute":
@@ -54472,7 +54471,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54472
54471
  return {
54473
54472
  id,
54474
54473
  label: isInMain ? `<b>${pathSegments.at(-1)}</b>` : pathSegments.at(-1),
54475
- title: getHoverPath(settings.graphSettings.value.hoverPathLevel, path, rootPath.value),
54474
+ title: getHoverPath(settings.graphSettings.value.hoverPathLevel, path, rootPath),
54476
54475
  group: path.match(/\.(\w+)$/)?.[1] || "unknown",
54477
54476
  size: 15 + Math.min(mod.deps.length / 2, 8),
54478
54477
  font: {
@@ -1,4 +1,4 @@
1
- import { aC as isRef } from './index-197edebf.js';
1
+ import { aC as isRef } from './index-9f1190d8.js';
2
2
 
3
3
  const objectToString = Object.prototype.toString;
4
4
  function toTypeString(value) {