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

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 (23) hide show
  1. package/dist/client/assets/{VCard-71dc6c0a.js → VCard-9037cc6c.js} +1 -1
  2. package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-527d8187.js → VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js} +1 -1
  3. package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-e9a02b1e.js → VIconTitle.vue_vue_type_script_setup_true_lang-cb9f1433.js} +1 -1
  4. package/dist/client/assets/{VPanelGrids-0fa9ab66.js → VPanelGrids-1bf7082d.js} +1 -1
  5. package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-3269f8e0.js → VTextInput.vue_vue_type_script_setup_true_lang-b905b78e.js} +3 -3
  6. package/dist/client/assets/{__inspecting-e003e6f0.js → __inspecting-62c3dbcc.js} +2 -2
  7. package/dist/client/assets/{assets-d5f2037f.js → assets-95a58404.js} +7 -7
  8. package/dist/client/assets/{components-ce0097f5.js → components-a220bbbe.js} +3 -3
  9. package/dist/client/assets/{graph-c308dc8c.js → graph-92ab6145.js} +2 -2
  10. package/dist/client/assets/{index-bed0f7d1.js → index-5b5586cd.js} +327 -500
  11. package/dist/client/assets/{inspect-1db9f22a.js → inspect-82ea9761.js} +2 -2
  12. package/dist/client/assets/{overview-8afd7e36.js → overview-bfce273d.js} +13 -12
  13. package/dist/client/assets/{pages-d25b8928.js → pages-fe1fbff1.js} +4 -6
  14. package/dist/client/assets/{pinia-622c9a72.js → pinia-09a6969e.js} +6 -42
  15. package/dist/client/assets/{routes-abe90ae8.js → routes-48f13761.js} +6 -6
  16. package/dist/client/assets/{rpc-9c16d07a.js → rpc-85ddbc2c.js} +1 -1
  17. package/dist/client/assets/{settings-256557dc.js → settings-7d02fcf4.js} +3 -3
  18. package/dist/client/assets/{splitpanes.es-012cdbb8.js → splitpanes.es-48981724.js} +2 -2
  19. package/dist/client/assets/{timeline-d6eff46a.js → timeline-8ad30834.js} +5 -5
  20. package/dist/client/index.html +1 -1
  21. package/package.json +1 -1
  22. package/src/node/Container.vue +1 -1
  23. package/dist/client/assets/pages-1eda0955.js +0 -21
@@ -1,5 +1,5 @@
1
- import { d as defineComponent, a1 as useColorMode, P as ref, Q as computed, a2 as reactive, a3 as useElementBounding, f as onMounted, a4 as nextTick, a5 as watchEffect, g as onUnmounted, o as openBlock, c as createElementBlock, b as createVNode, u as unref } from './index-bed0f7d1.js';
2
- import { i as inspectClientUrl } from './rpc-9c16d07a.js';
1
+ import { d as defineComponent, a3 as useColorMode, Q as ref, R as computed, a4 as reactive, a5 as useElementBounding, f as onMounted, a6 as nextTick, a7 as watchEffect, g as onUnmounted, o as openBlock, c as createElementBlock, b as createVNode, u as unref } from './index-5b5586cd.js';
2
+ import { i as inspectClientUrl } from './rpc-85ddbc2c.js';
3
3
 
4
4
  const iframeCacheMap = /* @__PURE__ */ new Map();
5
5
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
@@ -1,13 +1,11 @@
1
- import { _ as __unplugin_components_0$1 } from './VPanelGrids-0fa9ab66.js';
2
- import { P as ref, Q as computed, d as defineComponent, o as openBlock, a as createBlock, w as withCtx, e as createBaseVNode, b as createVNode, t as toDisplayString, u as unref, Y as vueVersion, E as createTextVNode, c as createElementBlock, F as Fragment, Z as __unplugin_components_0, O as __unplugin_components_1, W as resolveComponent, _ as _sfc_main$1 } from './index-bed0f7d1.js';
3
- import { r as rpc } from './rpc-9c16d07a.js';
4
- import { i as initPages, a as routes } from './pages-1eda0955.js';
1
+ import { _ as __unplugin_components_0$1 } from './VPanelGrids-1bf7082d.js';
2
+ import { Q as ref, R as computed, a0 as routes, d as defineComponent, o as openBlock, a as createBlock, w as withCtx, e as createBaseVNode, b as createVNode, t as toDisplayString, u as unref, a1 as vueVersion, E as createTextVNode, c as createElementBlock, F as Fragment, a2 as __unplugin_components_0, P as __unplugin_components_1, X as resolveComponent, _ as _sfc_main$1 } from './index-5b5586cd.js';
3
+ import { r as rpc } from './rpc-85ddbc2c.js';
5
4
 
6
- const version = "0.0.1-alpha.1";
5
+ const version = "0.0.1-alpha.3";
7
6
 
8
7
  /* Injected with object hook! */
9
8
 
10
- initPages();
11
9
  const modules = ref(await rpc.componentGraph());
12
10
  const vueModules = computed(() => modules.value.filter((i) => i.id.match(/\.vue($|\?v=)/)));
13
11
  const pageCount = computed(() => routes.value.length);
@@ -175,11 +173,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
175
173
  createBaseVNode("code", null, "v" + toDisplayString(unref(vueVersion)), 1)
176
174
  ]),
177
175
  createVNode(_component_RouterLink, {
176
+ flex: "~ col auto",
177
+ to: "/pages",
178
+ replace: "",
178
179
  "min-w-40": "",
179
180
  p4: "",
180
- "theme-card-lime": "",
181
- flex: "~ col auto",
182
- to: "/pages"
181
+ "theme-card-lime": ""
183
182
  }, {
184
183
  default: withCtx(() => [
185
184
  _hoisted_12,
@@ -188,11 +187,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
188
187
  _: 1
189
188
  }),
190
189
  createVNode(_component_RouterLink, {
190
+ flex: "~ col auto",
191
+ to: "/components",
192
+ replace: "",
191
193
  "min-w-40": "",
192
194
  p4: "",
193
- "theme-card-lime": "",
194
- flex: "~ col auto",
195
- to: "/components"
195
+ "theme-card-lime": ""
196
196
  }, {
197
197
  default: withCtx(() => [
198
198
  _hoisted_13,
@@ -209,6 +209,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
209
209
  createVNode(_component_RouterLink, {
210
210
  to: "/settings",
211
211
  flex: "~ gap1",
212
+ replace: "",
212
213
  "inline-block": "",
213
214
  "items-center": "",
214
215
  op50: "",
@@ -1,8 +1,7 @@
1
- import { _ as _sfc_main$3, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-3269f8e0.js';
2
- import { d as defineComponent, P as ref, Q as computed, W as resolveComponent, u as unref, o as openBlock, c as createElementBlock, e as createBaseVNode, t as toDisplayString, a as createBlock, w as withCtx, X as withModifiers, F as Fragment, r as renderList, m as createCommentVNode, b as createVNode, E as createTextVNode, n as normalizeClass, _ as _sfc_main$4, O as __unplugin_components_1, f as onMounted, z as isRef, B as withKeys } from './index-bed0f7d1.js';
3
- import { i as initPages, c as currentRoute, r as router, a as routes } from './pages-1eda0955.js';
4
- import './VIconTitle.vue_vue_type_script_setup_true_lang-e9a02b1e.js';
5
- import './VIcon.vue_vue_type_script_setup_true_lang-527d8187.js';
1
+ import { _ as _sfc_main$3, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-b905b78e.js';
2
+ import { d as defineComponent, Q as ref, R as computed, X as resolveComponent, u as unref, o as openBlock, c as createElementBlock, e as createBaseVNode, t as toDisplayString, a as createBlock, w as withCtx, Y as withModifiers, F as Fragment, r as renderList, m as createCommentVNode, b as createVNode, E as createTextVNode, n as normalizeClass, _ as _sfc_main$4, P as __unplugin_components_1, f as onMounted, Z as currentRoute, $ as router, z as isRef, B as withKeys, a0 as routes } from './index-5b5586cd.js';
3
+ import './VIconTitle.vue_vue_type_script_setup_true_lang-cb9f1433.js';
4
+ import './VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js';
6
5
 
7
6
  const _hoisted_1$2 = {
8
7
  block: "",
@@ -246,7 +245,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
246
245
  setup(__props) {
247
246
  const routeInput = ref("");
248
247
  onMounted(() => {
249
- initPages();
250
248
  routeInput.value = currentRoute.value?.path ?? "/";
251
249
  });
252
250
  const routeInputMatched = computed(() => {
@@ -1,11 +1,8 @@
1
- import { _ as __unplugin_components_0 } from './VPanelGrids-0fa9ab66.js';
2
- import { _ as __unplugin_components_7 } from './VCard-71dc6c0a.js';
3
- import { d as defineComponent, P as ref, Q as computed, R as piniaStoresId, S as reactivePick, T as toRaw, U as piniaState, V as piniaGetters, u as unref, o as openBlock, c as createElementBlock, b as createVNode, w as withCtx, e as createBaseVNode, F as Fragment, r as renderList, a as createBlock, I as _sfc_main$1, n as normalizeClass, t as toDisplayString } from './index-bed0f7d1.js';
4
- import { g, M, _ as _sfc_main$2 } from './splitpanes.es-012cdbb8.js';
5
- import './VIcon.vue_vue_type_script_setup_true_lang-527d8187.js';
1
+ import { g, M, _ as _sfc_main$1 } from './splitpanes.es-48981724.js';
2
+ import { d as defineComponent, Q as ref, R as computed, S as piniaStoresId, T as reactivePick, U as toRaw, V as piniaState, W as piniaGetters, u as unref, o as openBlock, c as createElementBlock, b as createVNode, w as withCtx, e as createBaseVNode, F as Fragment, r as renderList, n as normalizeClass, t as toDisplayString, a as createBlock } from './index-5b5586cd.js';
3
+ import './VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js';
6
4
 
7
5
  const _hoisted_1 = {
8
- key: 0,
9
6
  "h-screen": "",
10
7
  "n-panel-grids": ""
11
8
  };
@@ -25,11 +22,6 @@ const _hoisted_5 = {
25
22
  "p-2": "",
26
23
  class: "no-scrollbar"
27
24
  };
28
- const _hoisted_6 = /* @__PURE__ */ createBaseVNode("h1", { "text-xl": "" }, " Install Pinia ", -1);
29
- const _hoisted_7 = /* @__PURE__ */ createBaseVNode("p", {
30
- "text-sm": "",
31
- op50: ""
32
- }, " It seems you don't have pinia installed. ", -1);
33
25
  const _sfc_main = /* @__PURE__ */ defineComponent({
34
26
  __name: "pinia",
35
27
  setup(__props) {
@@ -57,11 +49,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
57
49
  ].filter(Boolean);
58
50
  });
59
51
  return (_ctx, _cache) => {
60
- const _component_StateFields = _sfc_main$2;
61
- const _component_TabIcon = _sfc_main$1;
62
- const _component_VCard = __unplugin_components_7;
63
- const _component_VPanelGrids = __unplugin_components_0;
64
- return unref(piniaStoresId).length > 1 ? (openBlock(), createElementBlock("div", _hoisted_1, [
52
+ const _component_StateFields = _sfc_main$1;
53
+ return openBlock(), createElementBlock("div", _hoisted_1, [
65
54
  createVNode(unref(M), null, {
66
55
  default: withCtx(() => [
67
56
  createVNode(unref(g), { border: "r base" }, {
@@ -102,32 +91,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
102
91
  ]),
103
92
  _: 1
104
93
  })
105
- ])) : (openBlock(), createBlock(_component_VPanelGrids, {
106
- key: 1,
107
- px5: ""
108
- }, {
109
- default: withCtx(() => [
110
- createVNode(_component_VCard, {
111
- flex: "~ col gap2",
112
- "min-w-30": "",
113
- "items-center": "",
114
- p3: ""
115
- }, {
116
- default: withCtx(() => [
117
- createVNode(_component_TabIcon, {
118
- mb2: "",
119
- "text-5xl": "",
120
- icon: "icon-park-outline:pineapple",
121
- title: "Pinia"
122
- }),
123
- _hoisted_6,
124
- _hoisted_7
125
- ]),
126
- _: 1
127
- })
128
- ]),
129
- _: 1
130
- }));
94
+ ]);
131
95
  };
132
96
  }
133
97
  });
@@ -1,8 +1,8 @@
1
- import { _ as __unplugin_components_0 } from './VPanelGrids-0fa9ab66.js';
2
- import { _ as __unplugin_components_7 } from './VCard-71dc6c0a.js';
3
- import { d as defineComponent, f as onMounted, u as unref, J as routeRecordMatcherState, o as openBlock, c as createElementBlock, b as createVNode, w as withCtx, e as createBaseVNode, F as Fragment, r as renderList, K as activeRouteRecordMatcherState, a as createBlock, I as _sfc_main$2, n as normalizeClass, L as activeRouteRecordIndex, M as toggleRouteRecordMatcher, E as createTextVNode, t as toDisplayString, N as normalizeStyle, O as __unplugin_components_1 } from './index-bed0f7d1.js';
4
- import { g, M, _ as _sfc_main$1 } from './splitpanes.es-012cdbb8.js';
5
- import './VIcon.vue_vue_type_script_setup_true_lang-527d8187.js';
1
+ import { _ as __unplugin_components_0 } from './VPanelGrids-1bf7082d.js';
2
+ import { _ as __unplugin_components_7 } from './VCard-9037cc6c.js';
3
+ import { d as defineComponent, f as onMounted, u as unref, J as router, o as openBlock, c as createElementBlock, b as createVNode, w as withCtx, e as createBaseVNode, F as Fragment, r as renderList, K as routeRecordMatcherState, L as activeRouteRecordMatcherState, a as createBlock, I as _sfc_main$2, n as normalizeClass, M as activeRouteRecordIndex, N as toggleRouteRecordMatcher, E as createTextVNode, t as toDisplayString, O as normalizeStyle, P as __unplugin_components_1 } from './index-5b5586cd.js';
4
+ import { g, M, _ as _sfc_main$1 } from './splitpanes.es-48981724.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js';
6
6
 
7
7
  const _hoisted_1 = {
8
8
  key: 0,
@@ -41,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  const _component_TabIcon = _sfc_main$2;
42
42
  const _component_VCard = __unplugin_components_7;
43
43
  const _component_VPanelGrids = __unplugin_components_0;
44
- return unref(routeRecordMatcherState)?.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
44
+ return unref(router) ? (openBlock(), createElementBlock("div", _hoisted_1, [
45
45
  createVNode(unref(M), null, {
46
46
  default: withCtx(() => [
47
47
  createVNode(unref(g), { border: "r base" }, {
@@ -1,4 +1,4 @@
1
- import { aB as __vitePreload } from './index-bed0f7d1.js';
1
+ import { aD as __vitePreload } from './index-5b5586cd.js';
2
2
 
3
3
  const DEFAULT_TIMEOUT = 6e4;
4
4
  function defaultSerialize(i) {
@@ -1,6 +1,6 @@
1
- import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-527d8187.js';
2
- import { d as defineComponent, s as useVModel, o as openBlock, c as createElementBlock, v as renderSlot, x as withDirectives, y as vModelSelect, u as unref, e as createBaseVNode, t as toDisplayString, m as createCommentVNode, z as isRef, a as createBlock, A as vModelCheckbox, B as withKeys, C as useTabs, D as useCategorizedTabs, b as createVNode, F as Fragment, r as renderList, w as withCtx, E as createTextVNode, G as useDevToolsSettings, _ as _sfc_main$5, H as _sfc_main$6, n as normalizeClass, I as _sfc_main$7 } from './index-bed0f7d1.js';
3
- import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-e9a02b1e.js';
1
+ import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js';
2
+ import { d as defineComponent, s as useVModel, o as openBlock, c as createElementBlock, v as renderSlot, x as withDirectives, y as vModelSelect, u as unref, e as createBaseVNode, t as toDisplayString, m as createCommentVNode, z as isRef, a as createBlock, A as vModelCheckbox, B as withKeys, C as useTabs, D as useCategorizedTabs, b as createVNode, F as Fragment, r as renderList, w as withCtx, E as createTextVNode, G as useDevToolsSettings, _ as _sfc_main$5, H as _sfc_main$6, n as normalizeClass, I as _sfc_main$7 } from './index-5b5586cd.js';
3
+ import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-cb9f1433.js';
4
4
 
5
5
  const _hoisted_1$2 = { class: "n-text-input flex flex items-center border n-border-base rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base" };
6
6
  const _hoisted_2$2 = ["disabled"];
@@ -1,5 +1,5 @@
1
- import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-527d8187.js';
2
- import { d as defineComponent, o as openBlock, a as createBlock, n as normalizeClass, z as isRef, T as toRaw, Q as computed, W as resolveComponent, c as createElementBlock, r as renderList, e as createBaseVNode, t as toDisplayString, m as createCommentVNode, u as unref, F as Fragment, P as ref, b as createVNode, am as h, v as renderSlot, N as normalizeStyle } from './index-bed0f7d1.js';
1
+ import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js';
2
+ import { d as defineComponent, o as openBlock, a as createBlock, n as normalizeClass, z as isRef, U as toRaw, R as computed, X as resolveComponent, c as createElementBlock, r as renderList, e as createBaseVNode, t as toDisplayString, m as createCommentVNode, u as unref, F as Fragment, Q as ref, b as createVNode, ao as h, v as renderSlot, O as normalizeStyle } from './index-5b5586cd.js';
3
3
 
4
4
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
5
5
  __name: "VExpandIcon",
@@ -1,8 +1,8 @@
1
- import { g, M, _ as _sfc_main$2 } from './splitpanes.es-012cdbb8.js';
2
- import { _ as __unplugin_components_0 } from './VPanelGrids-0fa9ab66.js';
3
- import { _ as __unplugin_components_7 } from './VCard-71dc6c0a.js';
4
- import { d as defineComponent, o as openBlock, c as createElementBlock, F as Fragment, r as renderList, a as createBlock, w as withCtx, b as createVNode, e as createBaseVNode, n as normalizeClass, t as toDisplayString, u as unref, f as onMounted, g as onUnmounted, h as timelineLayer, i as activeTimelineEvents, j as activeTimelineEventIndex, k as toggleTimelineEventIndex, l as timelineEventDetails, m as createCommentVNode, p as activeLayerId, q as toggleTimelineLayer } from './index-bed0f7d1.js';
5
- import './VIcon.vue_vue_type_script_setup_true_lang-527d8187.js';
1
+ import { g, M, _ as _sfc_main$2 } from './splitpanes.es-48981724.js';
2
+ import { _ as __unplugin_components_0 } from './VPanelGrids-1bf7082d.js';
3
+ import { _ as __unplugin_components_7 } from './VCard-9037cc6c.js';
4
+ import { d as defineComponent, o as openBlock, c as createElementBlock, F as Fragment, r as renderList, a as createBlock, w as withCtx, b as createVNode, e as createBaseVNode, n as normalizeClass, t as toDisplayString, u as unref, f as onMounted, g as onUnmounted, h as timelineLayer, i as activeTimelineEvents, j as activeTimelineEventIndex, k as toggleTimelineEventIndex, l as timelineEventDetails, m as createCommentVNode, p as activeLayerId, q as toggleTimelineLayer } from './index-5b5586cd.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js';
6
6
 
7
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
8
 
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <link rel="icon" href="/favicon.svg" type="image/svg+xml">
7
7
  <title>Vue Devtools</title>
8
- <script type="module" crossorigin src="./assets/index-bed0f7d1.js"></script>
8
+ <script type="module" crossorigin src="./assets/index-5b5586cd.js"></script>
9
9
  <link rel="stylesheet" href="./assets/index-f0fa9f81.css">
10
10
  </head>
11
11
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-vue-devtools",
3
- "version": "0.0.1-alpha.1",
3
+ "version": "0.0.1-alpha.3",
4
4
  "packageManager": "pnpm@7.30.0",
5
5
  "description": "A vite plugin for Vue Devtools",
6
6
  "author": "webfansplz",
@@ -191,7 +191,7 @@ function collectHookBuffer() {
191
191
  }
192
192
 
193
193
  function skipCollect(component) {
194
- return component?.root.type?.devtools?.hide || iframe.value?.contentWindow?.__VUE_DEVTOOLS_VIEW__
194
+ return component?.root?.type?.devtools?.hide || iframe.value?.contentWindow?.__VUE_DEVTOOLS_VIEW__
195
195
  }
196
196
  props.hook.on(DevtoolsHooks.PERF_START, (app, uid, component, type, time) => {
197
197
  if (skipCollect(component))
@@ -1,21 +0,0 @@
1
- import { P as ref, Q as computed, u as unref, $ as app, a0 as triggerRef } from './index-bed0f7d1.js';
2
-
3
- const router = ref();
4
- const currentRoute = computed(() => unref(router.value?.currentRoute));
5
- const routes = computed(() => {
6
- return (router.value?.getRoutes() || []).map((i) => {
7
- return {
8
- ...i
9
- };
10
- });
11
- });
12
- function initPages() {
13
- router.value = app.value?.config.globalProperties.$router;
14
- router.value?.afterEach(() => {
15
- triggerRef(router);
16
- });
17
- }
18
-
19
- /* Injected with object hook! */
20
-
21
- export { routes as a, currentRoute as c, initPages as i, router as r };