vite-plugin-vue-devtools 0.0.1-alpha.1 → 0.0.1-alpha.10

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 (26) hide show
  1. package/README.md +54 -2
  2. package/dist/client/assets/{VCard-71dc6c0a.js → VCard-a170ad08.js} +1 -1
  3. package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-527d8187.js → VIcon.vue_vue_type_script_setup_true_lang-a4edf3e5.js} +1 -1
  4. package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-e9a02b1e.js → VIconTitle.vue_vue_type_script_setup_true_lang-9439512c.js} +1 -1
  5. package/dist/client/assets/{VPanelGrids-0fa9ab66.js → VPanelGrids-be68fa6b.js} +1 -1
  6. package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-3269f8e0.js → VTextInput.vue_vue_type_script_setup_true_lang-dc4dd54b.js} +3 -3
  7. package/dist/client/assets/{__inspecting-e003e6f0.js → __inspecting-4f115373.js} +3 -3
  8. package/dist/client/assets/{assets-d5f2037f.js → assets-c99f1e16.js} +7 -7
  9. package/dist/client/assets/{components-ce0097f5.js → components-75b28a99.js} +15 -7
  10. package/dist/client/assets/{graph-c308dc8c.js → graph-343c0f62.js} +2 -2
  11. package/dist/client/assets/index-9e80b3a5.css +454 -0
  12. package/dist/client/assets/{index-bed0f7d1.js → index-e01add57.js} +246 -414
  13. package/dist/client/assets/{inspect-1db9f22a.js → inspect-2996e67b.js} +2 -2
  14. package/dist/client/assets/{overview-8afd7e36.js → overview-c8403ea4.js} +13 -12
  15. package/dist/client/assets/{pages-d25b8928.js → pages-5b2396a9.js} +5 -6
  16. package/dist/client/assets/{pinia-622c9a72.js → pinia-1b012d3e.js} +6 -42
  17. package/dist/client/assets/{routes-abe90ae8.js → routes-745400d8.js} +21 -21
  18. package/dist/client/assets/{rpc-9c16d07a.js → rpc-37f08871.js} +1 -1
  19. package/dist/client/assets/{settings-256557dc.js → settings-8a177a6f.js} +3 -3
  20. package/dist/client/assets/{splitpanes.es-012cdbb8.js → splitpanes.es-bc19a858.js} +2 -2
  21. package/dist/client/assets/{timeline-d6eff46a.js → timeline-fff87fa0.js} +5 -5
  22. package/dist/client/index.html +2 -2
  23. package/package.json +3 -4
  24. package/src/node/Container.vue +34 -13
  25. package/dist/client/assets/index-f0fa9f81.css +0 -454
  26. package/dist/client/assets/pages-1eda0955.js +0 -21
package/README.md CHANGED
@@ -1,2 +1,54 @@
1
- # vite-plugin-vue-devtools
2
- Vue Devtools
1
+ <h1>
2
+ Vue DevTools <sup>Preview</sup>
3
+ </h1>
4
+
5
+ ## 📖 Introduction
6
+
7
+ `vite-plugin-vue-devtools` is a Vite plugin designed to enhance the Vue developer experience.
8
+
9
+ <!-- <p>
10
+ <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/1">💡 Ideas & Suggestions</a> |
11
+ <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/2">🗺️ Project Roadmap</a> |
12
+ </p> -->
13
+
14
+
15
+ ## 📦 Installation
16
+
17
+ ```
18
+
19
+ # vite-plugin-vue-devtools
20
+
21
+ pnpm install vite-plugin-vue-devtools -D
22
+
23
+ ```
24
+
25
+ ## 🦄 Usage
26
+
27
+ ### Configuration Vite
28
+
29
+ ```ts
30
+ import { defineConfig } from 'vite'
31
+ import VueDevtools from 'vite-plugin-vue-devtools'
32
+
33
+ export default defineConfig({
34
+ plugins: [
35
+ VueDevtools(),
36
+ vue(),
37
+ ],
38
+ })
39
+ ```
40
+
41
+ ## 💡 Notice
42
+
43
+ - Only available in development mode.
44
+ - Only support Vue3.0+.
45
+ - Doesn't support SSR (If you're using Nuxt, use [nuxt/devtools](https://github.com/nuxt/devtools) directly).
46
+
47
+ ## 🌸 Credits
48
+
49
+ - This project is highly inspired by [nuxt/devtools](https://github.com/nuxt/devtools).
50
+
51
+ ## 📄 License
52
+
53
+ [MIT LICENSE](./LICENSE)
54
+
@@ -1,4 +1,4 @@
1
- import { aw as _export_sfc, o as openBlock, c as createElementBlock, v as renderSlot } from './index-bed0f7d1.js';
1
+ import { ax as _export_sfc, o as openBlock, c as createElementBlock, v as renderSlot } from './index-e01add57.js';
2
2
 
3
3
  /* unplugin-vue-components disabled */const _sfc_main = {};
4
4
 
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, o as openBlock, c as createElementBlock, n as normalizeClass } from './index-bed0f7d1.js';
1
+ import { d as defineComponent, o as openBlock, c as createElementBlock, n as normalizeClass } from './index-e01add57.js';
2
2
 
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "VIcon",
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, o as openBlock, c as createElementBlock, n as normalizeClass, m as createCommentVNode, v as renderSlot, e as createBaseVNode, t as toDisplayString } from './index-bed0f7d1.js';
1
+ import { d as defineComponent, o as openBlock, c as createElementBlock, n as normalizeClass, m as createCommentVNode, v as renderSlot, e as createBaseVNode, t as toDisplayString } from './index-e01add57.js';
2
2
 
3
3
  const _hoisted_1 = {
4
4
  flex: "~ gap-3",
@@ -1,4 +1,4 @@
1
- import { aw as _export_sfc, o as openBlock, c as createElementBlock, v as renderSlot } from './index-bed0f7d1.js';
1
+ import { ax as _export_sfc, o as openBlock, c as createElementBlock, v as renderSlot } from './index-e01add57.js';
2
2
 
3
3
  /* unplugin-vue-components disabled */const _sfc_main = {};
4
4
 
@@ -1,6 +1,6 @@
1
- import { _ as _sfc_main$2 } from './VIconTitle.vue_vue_type_script_setup_true_lang-e9a02b1e.js';
2
- import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-527d8187.js';
3
- import { d as defineComponent, s as useVModel, o as openBlock, c as createElementBlock, e as createBaseVNode, n as normalizeClass, b as createVNode, w as withCtx, v as renderSlot, m as createCommentVNode, a as createBlock, u as unref, x as withDirectives, F as Fragment, ax as resolveDirective, E as createTextVNode, t as toDisplayString, ay as pushScopeId, az as popScopeId, aw as _export_sfc, aA as vModelDynamic, an as mergeProps, z as isRef } from './index-bed0f7d1.js';
1
+ import { _ as _sfc_main$2 } from './VIconTitle.vue_vue_type_script_setup_true_lang-9439512c.js';
2
+ import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-a4edf3e5.js';
3
+ import { d as defineComponent, s as useVModel, o as openBlock, c as createElementBlock, e as createBaseVNode, n as normalizeClass, b as createVNode, w as withCtx, v as renderSlot, m as createCommentVNode, a as createBlock, u as unref, x as withDirectives, F as Fragment, ay as resolveDirective, E as createTextVNode, t as toDisplayString, az as pushScopeId, aA as popScopeId, ax as _export_sfc, aB as vModelDynamic, ao as mergeProps, z as isRef } from './index-e01add57.js';
4
4
 
5
5
  const _withScopeId = (n) => (pushScopeId("data-v-cf2e46eb"), n = n(), popScopeId(), n);
6
6
  const _hoisted_1$1 = ["open"];
@@ -1,11 +1,11 @@
1
- import { _ as __unplugin_components_0 } from './VPanelGrids-0fa9ab66.js';
2
- import { d as defineComponent, aC as useEventListener, o as openBlock, a as createBlock, w as withCtx, e as createBaseVNode, aD as useClient } from './index-bed0f7d1.js';
1
+ import { _ as __unplugin_components_0 } from './VPanelGrids-be68fa6b.js';
2
+ import { d as defineComponent, aD as useEventListener, o as openBlock, a as createBlock, w as withCtx, e as createBaseVNode, aE as useDevtoolsClient } from './index-e01add57.js';
3
3
 
4
4
  const _hoisted_1 = /* @__PURE__ */ createBaseVNode("div", null, " Inspecting Vue components ", -1);
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "__inspecting",
7
7
  setup(__props) {
8
- const client = useClient();
8
+ const client = useDevtoolsClient();
9
9
  useEventListener("keydown", (e) => {
10
10
  if (e.key === "Escape")
11
11
  close();
@@ -1,11 +1,11 @@
1
- import { _ as __unplugin_components_0 } from './VPanelGrids-0fa9ab66.js';
2
- import { _ as __unplugin_components_7 } from './VCard-71dc6c0a.js';
3
- import { _ as _sfc_main$a } from './VIcon.vue_vue_type_script_setup_true_lang-527d8187.js';
4
- import { d as defineComponent, o as openBlock, a as createBlock, w as withCtx, b as createVNode, an as mergeProps, ao as resolveDynamicComponent, P as ref, ap as useElementSize, aq as onClickOutside, c as createElementBlock, e as createBaseVNode, v as renderSlot, u as unref, m as createCommentVNode, ar as Transition, Q as computed, t as toDisplayString, n as normalizeClass, as as useStyleTag, N as normalizeStyle, at as computedAsync, au as useTimeAgo, F as Fragment, E as createTextVNode, _ as _sfc_main$b, av as onKeyDown, z as isRef, r as renderList } from './index-bed0f7d1.js';
5
- import { r as rpc } from './rpc-9c16d07a.js';
6
- import { _ as _sfc_main$c, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-3269f8e0.js';
1
+ import { _ as __unplugin_components_0 } from './VPanelGrids-be68fa6b.js';
2
+ import { _ as __unplugin_components_7 } from './VCard-a170ad08.js';
3
+ import { _ as _sfc_main$a } from './VIcon.vue_vue_type_script_setup_true_lang-a4edf3e5.js';
4
+ import { d as defineComponent, o as openBlock, a as createBlock, w as withCtx, b as createVNode, ao as mergeProps, ap as resolveDynamicComponent, Q as ref, aq as useElementSize, ar as onClickOutside, c as createElementBlock, e as createBaseVNode, v as renderSlot, u as unref, m as createCommentVNode, as as Transition, R as computed, t as toDisplayString, n as normalizeClass, at as useStyleTag, O as normalizeStyle, au as computedAsync, av as useTimeAgo, F as Fragment, E as createTextVNode, _ as _sfc_main$b, aw as onKeyDown, z as isRef, r as renderList } from './index-e01add57.js';
5
+ import { r as rpc } from './rpc-37f08871.js';
6
+ import { _ as _sfc_main$c, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-dc4dd54b.js';
7
7
  import { F as Fuse } from './fuse.esm-c317b696.js';
8
- import './VIconTitle.vue_vue_type_script_setup_true_lang-e9a02b1e.js';
8
+ import './VIconTitle.vue_vue_type_script_setup_true_lang-9439512c.js';
9
9
 
10
10
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
11
11
  __name: "VIconButton",
@@ -1,6 +1,6 @@
1
- import { a as _sfc_main$2, g, M, _ as _sfc_main$3 } from './splitpanes.es-012cdbb8.js';
2
- import { aa as getInstanceName, ab as classify, ac as kebabize, ad as isFragment, ae as camelize, af as returnError, ag as isBeingDestroyed, ah as getUniqueComponentId, ai as getRenderKey, P as ref, aj as shallowRef, Q as computed, d as defineComponent, W as resolveComponent, o as openBlock, c as createElementBlock, e as createBaseVNode, u as unref, a as createBlock, n as normalizeClass, t as toDisplayString, N as normalizeStyle, F as Fragment, r as renderList, m as createCommentVNode, f as onMounted, ak as onVueInstanceUpdate, b as createVNode, w as withCtx, a2 as reactive, al as instance } from './index-bed0f7d1.js';
3
- import './VIcon.vue_vue_type_script_setup_true_lang-527d8187.js';
1
+ import { a as _sfc_main$2, g, M, _ as _sfc_main$3 } from './splitpanes.es-bc19a858.js';
2
+ import { ab as getInstanceName, ac as classify, ad as kebabize, ae as isFragment, af as camelize, ag as returnError, ah as isBeingDestroyed, ai as getUniqueComponentId, aj as getRenderKey, Q as ref, ak as shallowRef, R as computed, d as defineComponent, X as resolveComponent, o as openBlock, c as createElementBlock, e as createBaseVNode, u as unref, a as createBlock, n as normalizeClass, t as toDisplayString, O as normalizeStyle, F as Fragment, r as renderList, m as createCommentVNode, f as onMounted, al as onVueInstanceUpdate, b as createVNode, w as withCtx, a3 as reactive, am as instance } from './index-e01add57.js';
3
+ import './VIcon.vue_vue_type_script_setup_true_lang-a4edf3e5.js';
4
4
 
5
5
  class ComponentFilter {
6
6
  filter;
@@ -595,7 +595,13 @@ const _hoisted_1 = {
595
595
  "h-screen": "",
596
596
  "n-panel-grids": ""
597
597
  };
598
- const _hoisted_2 = { "p-2": "" };
598
+ const _hoisted_2 = {
599
+ "h-screen": "",
600
+ "select-none": "",
601
+ "overflow-scroll": "",
602
+ "p-2": "",
603
+ class: "no-scrollbar"
604
+ };
599
605
  const _hoisted_3 = {
600
606
  "h-screen": "",
601
607
  "select-none": "",
@@ -646,9 +652,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
646
652
  });
647
653
  }
648
654
  onMounted(() => {
649
- onVueInstanceUpdate(() => {
650
- init();
651
- selected.value = "vue-devtools:root";
655
+ onVueInstanceUpdate((v) => {
656
+ if (v) {
657
+ init();
658
+ selected.value = "vue-devtools:root";
659
+ }
652
660
  });
653
661
  });
654
662
  return (_ctx, _cache) => {
@@ -1,6 +1,6 @@
1
- import { P as ref, a6 as useStorage, Q as computed, d as defineComponent, o as openBlock, c as createElementBlock, x as withDirectives, a7 as vModelText, u as unref, e as createBaseVNode, z as isRef, A as vModelCheckbox, a8 as useDark, f as onMounted, a9 as watch, b as createVNode } from './index-bed0f7d1.js';
1
+ import { Q as ref, a7 as useStorage, R as computed, d as defineComponent, o as openBlock, c as createElementBlock, x as withDirectives, a8 as vModelText, u as unref, e as createBaseVNode, z as isRef, A as vModelCheckbox, a9 as useDark, f as onMounted, aa as watch, b as createVNode } from './index-e01add57.js';
2
2
  import { F as Fuse } from './fuse.esm-c317b696.js';
3
- import { r as rpc } from './rpc-9c16d07a.js';
3
+ import { r as rpc } from './rpc-37f08871.js';
4
4
 
5
5
  const list = ref(await rpc.componentGraph());
6
6
  const searchText = useStorage("vite-inspect-search-text", "");