vite-plugin-vue-devtools 0.1.0 → 0.1.2

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 (35) hide show
  1. package/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-0449d6b9.js → IframeView.vue_vue_type_script_setup_true_lang-2e28be97.js} +21 -3
  2. package/dist/client/assets/StateFields.vue_vue_type_script_setup_true_lang-79e496d1.js +367 -0
  3. package/dist/client/assets/{VCard-29b1adce.js → VCard-7f086ce2.js} +1 -1
  4. package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-f66901cc.js → VIcon.vue_vue_type_script_setup_true_lang-4e5c5629.js} +1 -1
  5. package/dist/client/assets/{VIconButton.vue_vue_type_script_setup_true_lang-d5adb3a3.js → VIconButton.vue_vue_type_script_setup_true_lang-aa76fcd1.js} +2 -2
  6. package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-88051acd.js → VIconTitle.vue_vue_type_script_setup_true_lang-f04635a9.js} +1 -1
  7. package/dist/client/assets/{VPanelGrids-abfaa973.js → VPanelGrids-52d64f52.js} +1 -1
  8. package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-1c9578c9.js → VSectionBlock-597971e4.js} +10 -45
  9. package/dist/client/assets/VTextInput.vue_vue_type_script_setup_true_lang-a597f8b8.js +39 -0
  10. package/dist/client/assets/{__inspecting-10ac6572.js → __inspecting-d57587e1.js} +2 -2
  11. package/dist/client/assets/{assets-845f9f7f.js → assets-1330e489.js} +9 -8
  12. package/dist/client/assets/component-doc-351d62d5.css +114 -0
  13. package/dist/client/assets/component-doc-e26a9fbd.js +1692 -0
  14. package/dist/client/assets/{components-2ebcce62.js → components-9fbf887f.js} +8 -7
  15. package/dist/client/assets/{documentations-e7bc5c48.js → documentations-b3725461.js} +4 -4
  16. package/dist/client/assets/{graph-9547ed1e.js → graph-03cdd540.js} +2 -2
  17. package/dist/client/assets/{index-d015c21f.css → index-4825b66d.css} +1 -1
  18. package/dist/client/assets/{index-f0b756d9.js → index-71609956.js} +27 -19
  19. package/dist/client/assets/{index-92885597.js → index-930a3e08.js} +1 -1
  20. package/dist/client/assets/{inspect-14ec3ba4.js → inspect-0e407b47.js} +3 -3
  21. package/dist/client/assets/{npm-20e4b0ab.js → npm-16e1ac25.js} +7 -6
  22. package/dist/client/assets/{overview-4e60a278.js → overview-7c9d6d24.js} +5 -5
  23. package/dist/client/assets/{pages-c7c02f81.js → pages-e045d444.js} +5 -4
  24. package/dist/client/assets/{pinia-1020b7d8.js → pinia-979b088d.js} +6 -5
  25. package/dist/client/assets/{routes-9fac0370.js → routes-0206c13d.js} +8 -7
  26. package/dist/client/assets/{rpc-d18195f5.js → rpc-4e27506e.js} +1 -1
  27. package/dist/client/assets/{settings-d7601de4.js → settings-2660dfcc.js} +28 -6
  28. package/dist/client/assets/{splitpanes.es-af9ab4de.js → splitpanes.es-0a01f462.js} +2 -366
  29. package/dist/client/assets/{timeline-e220561d.js → timeline-7ed97430.js} +8 -7
  30. package/dist/client/index.html +2 -2
  31. package/dist/index.cjs +19 -0
  32. package/dist/index.mjs +19 -0
  33. package/package.json +4 -1
  34. package/src/node/Container.vue +54 -20
  35. /package/dist/client/assets/{VTextInput-52804693.css → VSectionBlock-52804693.css} +0 -0
@@ -1,9 +1,10 @@
1
- import { v as defineComponent, Z as ref, a5 as onMounted, aa as useEventListener, ab as hookApi, o as openBlock, e as createElementBlock, ac as useScrollLock, ad as watch, ae as useInfiniteScroll, r as resolveComponent, b as resolveDirective, x as createBaseVNode, u as createVNode, z as unref, K as isRef, h as withCtx, F as Fragment, i as renderList, c as createBlock, g as createCommentVNode, y as toDisplayString, O as createTextVNode, d as withDirectives, q as normalizeClass, Q as _sfc_main$3 } from './index-f0b756d9.js';
2
- import { _ as _sfc_main$2, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-1c9578c9.js';
1
+ import { v as defineComponent, $ as ref, a6 as onMounted, ab as useEventListener, ac as hookApi, o as openBlock, e as createElementBlock, ad as useScrollLock, ae as watch, af as useInfiniteScroll, r as resolveComponent, b as resolveDirective, x as createBaseVNode, u as createVNode, z as unref, K as isRef, h as withCtx, F as Fragment, i as renderList, c as createBlock, g as createCommentVNode, y as toDisplayString, O as createTextVNode, d as withDirectives, q as normalizeClass, R as _sfc_main$3 } from './index-71609956.js';
2
+ import { _ as __unplugin_components_3 } from './VSectionBlock-597971e4.js';
3
+ import { _ as _sfc_main$2 } from './VTextInput.vue_vue_type_script_setup_true_lang-a597f8b8.js';
3
4
  import { g as getDefaultExportFromCjs, c as commonjsGlobal } from './_commonjsHelpers-c0d8ada0.js';
4
- import { r as rpc } from './rpc-d18195f5.js';
5
- import './VIconTitle.vue_vue_type_script_setup_true_lang-88051acd.js';
6
- import './VIcon.vue_vue_type_script_setup_true_lang-f66901cc.js';
5
+ import { r as rpc } from './rpc-4e27506e.js';
6
+ import './VIconTitle.vue_vue_type_script_setup_true_lang-f04635a9.js';
7
+ import './VIcon.vue_vue_type_script_setup_true_lang-4e5c5629.js';
7
8
 
8
9
  var xterm$1 = {exports: {}};/* Injected with object hook! */
9
10
 
@@ -187,7 +188,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
187
188
  terminalVisible.value = true;
188
189
  locked.value = true;
189
190
  rpc.installPackage([`${item.name}@${item.activeVersion ?? item.version}`], { isDev });
190
- hookApi.hook.on("__vue-devtools:terminal:exit__", (data) => {
191
+ hookApi.hook.on("__vue-devtools:terminal:exit__", () => {
191
192
  setTimeout(() => {
192
193
  terminalVisible.value = false;
193
194
  locked.value = false;
@@ -1,9 +1,9 @@
1
- import { _ as __unplugin_components_0$1 } from './VPanelGrids-abfaa973.js';
2
- import { Z as ref, $ as computed, a7 as routes, v as defineComponent, r as resolveComponent, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, u as createVNode, y as toDisplayString, z as unref, a8 as vueVersion, O as createTextVNode, e as createElementBlock, F as Fragment, a9 as __unplugin_components_0, Y as __unplugin_components_1, Q as _sfc_main$1 } from './index-f0b756d9.js';
3
- import { r as rpc } from './rpc-d18195f5.js';
4
- import { i as isMacOS } from './index-92885597.js';
1
+ import { _ as __unplugin_components_0$1 } from './VPanelGrids-52d64f52.js';
2
+ import { $ as ref, a0 as computed, a8 as routes, v as defineComponent, r as resolveComponent, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, u as createVNode, y as toDisplayString, z as unref, a9 as vueVersion, O as createTextVNode, e as createElementBlock, F as Fragment, aa as __unplugin_components_0, Z as __unplugin_components_1, R as _sfc_main$1 } from './index-71609956.js';
3
+ import { r as rpc } from './rpc-4e27506e.js';
4
+ import { i as isMacOS } from './index-930a3e08.js';
5
5
 
6
- const version = "0.1.0";
6
+ const version = "0.1.2";
7
7
 
8
8
  /* Injected with object hook! */
9
9
 
@@ -1,7 +1,8 @@
1
- import { _ as _sfc_main$3, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-1c9578c9.js';
2
- import { v as defineComponent, Z as ref, $ as computed, r as resolveComponent, z as unref, o as openBlock, e as createElementBlock, x as createBaseVNode, y as toDisplayString, c as createBlock, h as withCtx, a4 as withModifiers, F as Fragment, i as renderList, g as createCommentVNode, u as createVNode, O as createTextVNode, q as normalizeClass, Q as _sfc_main$4, Y as __unplugin_components_1, a5 as onMounted, a6 as currentRoute, T as router, K as isRef, M as withKeys, a7 as routes } from './index-f0b756d9.js';
3
- import './VIconTitle.vue_vue_type_script_setup_true_lang-88051acd.js';
4
- import './VIcon.vue_vue_type_script_setup_true_lang-f66901cc.js';
1
+ import { _ as __unplugin_components_3 } from './VSectionBlock-597971e4.js';
2
+ import { v as defineComponent, $ as ref, a0 as computed, r as resolveComponent, z as unref, o as openBlock, e as createElementBlock, x as createBaseVNode, y as toDisplayString, c as createBlock, h as withCtx, a5 as withModifiers, F as Fragment, i as renderList, g as createCommentVNode, u as createVNode, O as createTextVNode, q as normalizeClass, R as _sfc_main$4, Z as __unplugin_components_1, a6 as onMounted, a7 as currentRoute, U as router, K as isRef, M as withKeys, a8 as routes } from './index-71609956.js';
3
+ import { _ as _sfc_main$3 } from './VTextInput.vue_vue_type_script_setup_true_lang-a597f8b8.js';
4
+ import './VIconTitle.vue_vue_type_script_setup_true_lang-f04635a9.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-4e5c5629.js';
5
6
 
6
7
  const _hoisted_1$2 = {
7
8
  block: "",
@@ -1,8 +1,9 @@
1
- import { g, M, _ as _sfc_main$1 } from './splitpanes.es-af9ab4de.js';
2
- import { v as defineComponent, Z as ref, $ as computed, a0 as piniaStoresCategory, a1 as toRaw, a2 as piniaState, a3 as piniaGetters, z as unref, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, q as normalizeClass, y as toDisplayString, c as createBlock } from './index-f0b756d9.js';
3
- import { p as pick } from './index-92885597.js';
4
- import './VIcon.vue_vue_type_script_setup_true_lang-f66901cc.js';
5
- import './VIconButton.vue_vue_type_script_setup_true_lang-d5adb3a3.js';
1
+ import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-79e496d1.js';
2
+ import { g, M } from './splitpanes.es-0a01f462.js';
3
+ import { v as defineComponent, $ as ref, a0 as computed, a1 as piniaStoresCategory, a2 as toRaw, a3 as piniaState, a4 as piniaGetters, z as unref, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, q as normalizeClass, y as toDisplayString, c as createBlock } from './index-71609956.js';
4
+ import { p as pick } from './index-930a3e08.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-4e5c5629.js';
6
+ import './VIconButton.vue_vue_type_script_setup_true_lang-aa76fcd1.js';
6
7
 
7
8
  const _hoisted_1 = {
8
9
  "h-screen": "",
@@ -1,10 +1,11 @@
1
- import { _ as __unplugin_components_0 } from './VPanelGrids-abfaa973.js';
2
- import { _ as __unplugin_components_7 } from './VCard-29b1adce.js';
3
- import { v as defineComponent, z as unref, T as router, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, U as routeRecordMatcherState, V as activeRouteRecordMatcherState, c as createBlock, S as _sfc_main$2, q as normalizeClass, W as activeRouteRecordIndex, X as toggleRouteRecordMatcher, O as createTextVNode, y as toDisplayString, l as normalizeStyle, g as createCommentVNode, Y as __unplugin_components_1 } from './index-f0b756d9.js';
4
- import { g, M, _ as _sfc_main$1 } from './splitpanes.es-af9ab4de.js';
5
- import './VIcon.vue_vue_type_script_setup_true_lang-f66901cc.js';
6
- import './index-92885597.js';
7
- import './VIconButton.vue_vue_type_script_setup_true_lang-d5adb3a3.js';
1
+ import { _ as __unplugin_components_0 } from './VPanelGrids-52d64f52.js';
2
+ import { _ as __unplugin_components_7 } from './VCard-7f086ce2.js';
3
+ import { v as defineComponent, z as unref, U as router, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, V as routeRecordMatcherState, W as activeRouteRecordMatcherState, c as createBlock, T as _sfc_main$2, q as normalizeClass, X as activeRouteRecordIndex, Y as toggleRouteRecordMatcher, O as createTextVNode, y as toDisplayString, l as normalizeStyle, g as createCommentVNode, Z as __unplugin_components_1 } from './index-71609956.js';
4
+ import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-79e496d1.js';
5
+ import { g, M } from './splitpanes.es-0a01f462.js';
6
+ import './VIcon.vue_vue_type_script_setup_true_lang-4e5c5629.js';
7
+ import './index-930a3e08.js';
8
+ import './VIconButton.vue_vue_type_script_setup_true_lang-aa76fcd1.js';
8
9
 
9
10
  const _hoisted_1 = {
10
11
  key: 0,
@@ -1,4 +1,4 @@
1
- import { aD as __vitePreload, ab as hookApi } from './index-f0b756d9.js';
1
+ import { aH as __vitePreload, ac as hookApi } from './index-71609956.js';
2
2
 
3
3
  async function getViteClient(base = "/", warning = true) {
4
4
  try {
@@ -1,6 +1,6 @@
1
- import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-f66901cc.js';
2
- import { v as defineComponent, I as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, J as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, K as isRef, c as createBlock, L as vModelCheckbox, M as withKeys, N as useCategorizedTabs, u as createVNode, F as Fragment, i as renderList, h as withCtx, O as createTextVNode, P as useDevToolsSettings, _ as _sfc_main$5, Q as _sfc_main$6, R as _sfc_main$7, q as normalizeClass, S as _sfc_main$8 } from './index-f0b756d9.js';
3
- import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-88051acd.js';
1
+ import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-4e5c5629.js';
2
+ import { v as defineComponent, I as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, J as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, K as isRef, c as createBlock, L as vModelCheckbox, M as withKeys, N as useCategorizedTabs, u as createVNode, F as Fragment, i as renderList, h as withCtx, O as createTextVNode, P as useDevToolsSettings, Q as useFrameState, _ as _sfc_main$5, R as _sfc_main$6, S as _sfc_main$7, q as normalizeClass, T as _sfc_main$8 } from './index-71609956.js';
3
+ import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-f04635a9.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"];
@@ -64,7 +64,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
64
64
  const checked = useVModel(props, "modelValue", emit, { passive: true });
65
65
  return (_ctx, _cache) => {
66
66
  return openBlock(), createElementBlock("label", {
67
- class: "n-switch n-switch-base n-disabled:n-disabled cursor-pointer",
67
+ class: "n-switch n-switch-base cursor-pointer n-disabled:n-disabled",
68
68
  checked: unref(checked) || null,
69
69
  disabled: _ctx.disabled || null
70
70
  }, [
@@ -140,8 +140,8 @@ const _hoisted_11 = /* @__PURE__ */ createBaseVNode("h3", {
140
140
  }, " Appearance ", -1);
141
141
  const _hoisted_12 = /* @__PURE__ */ createBaseVNode("div", {
142
142
  "carbon-sun": "",
143
- "dark:carbon-moon": "",
144
- "translate-y--1px": ""
143
+ "translate-y--1px": "",
144
+ "dark:carbon-moon": ""
145
145
  }, null, -1);
146
146
  const _hoisted_13 = {
147
147
  py3: "",
@@ -152,6 +152,14 @@ const _hoisted_14 = /* @__PURE__ */ createBaseVNode("h3", {
152
152
  "text-lg": ""
153
153
  }, " UI Scale ", -1);
154
154
  const _hoisted_15 = ["value"];
155
+ const _hoisted_16 = {
156
+ py3: "",
157
+ flex: "~ justify-between gap-1"
158
+ };
159
+ const _hoisted_17 = /* @__PURE__ */ createBaseVNode("h3", {
160
+ mb1: "",
161
+ "text-lg": ""
162
+ }, " Close DevTools when clicking outside ", -1);
155
163
  const _sfc_main = /* @__PURE__ */ defineComponent({
156
164
  __name: "settings",
157
165
  setup(__props) {
@@ -160,6 +168,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
160
168
  hiddenTabs,
161
169
  hiddenTabCategories
162
170
  } = useDevToolsSettings();
171
+ const { closeOnOutsideClick } = useFrameState();
163
172
  const scaleOptions = [
164
173
  ["Tiny", 12 / 15],
165
174
  ["Small", 14 / 15],
@@ -180,6 +189,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
180
189
  else
181
190
  hiddenTabCategories.value.push(name);
182
191
  }
192
+ function toggleClickOutside() {
193
+ closeOnOutsideClick.value = !closeOnOutsideClick.value;
194
+ }
183
195
  return (_ctx, _cache) => {
184
196
  const _component_VIconTitle = _sfc_main$4;
185
197
  const _component_VSwitch = _sfc_main$1;
@@ -299,6 +311,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
299
311
  ]),
300
312
  _: 1
301
313
  }, 8, ["modelValue"])
314
+ ]),
315
+ createBaseVNode("div", _hoisted_16, [
316
+ _hoisted_17,
317
+ createVNode(_component_VSwitch, {
318
+ flex: "~ row-reverse",
319
+ py1: "",
320
+ "n-primary": "",
321
+ "model-value": unref(closeOnOutsideClick),
322
+ "onUpdate:modelValue": toggleClickOutside
323
+ }, null, 8, ["model-value"])
302
324
  ])
303
325
  ])
304
326
  ])
@@ -1,368 +1,4 @@
1
- import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-f66901cc.js';
2
- import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, K as isRef, a1 as toRaw, $ as computed, r as resolveComponent, e as createElementBlock, i as renderList, z as unref, ar as nanoid, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, F as Fragment, Z as ref, u as createVNode, a4 as withModifiers, d as withDirectives, as as vShow, at as h, f as renderSlot, l as normalizeStyle } from './index-f0b756d9.js';
3
- import { a as isComputed, b as isArray, c as isMap, d as isSet, e as isRegExp, t as toRawType, f as isPlainObject, g as escape } from './index-92885597.js';
4
- import { u as useCopy, _ as _sfc_main$4 } from './VIconButton.vue_vue_type_script_setup_true_lang-d5adb3a3.js';
5
-
6
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7
- __name: "VExpandIcon",
8
- props: {
9
- value: { type: Boolean }
10
- },
11
- setup(__props) {
12
- return (_ctx, _cache) => {
13
- const _component_VIcon = _sfc_main$3;
14
- return openBlock(), createBlock(_component_VIcon, {
15
- class: normalizeClass(["material-symbols:arrow-right", {
16
- "transform rotate-90": _ctx.value
17
- }]),
18
- "text-5": "",
19
- "op-50": "",
20
- "n-transition": ""
21
- }, null, 8, ["class"]);
22
- };
23
- }
24
- });
25
-
26
- /* Injected with object hook! */
27
-
28
- function getFuntionDetails(func) {
29
- let string = "";
30
- let matches = null;
31
- try {
32
- string = Function.prototype.toString.call(func);
33
- matches = String.prototype.match.call(string, /\([\s\S]*?\)/);
34
- } catch (e) {
35
- }
36
- const match = matches && matches[0];
37
- const args = typeof match === "string" ? match : "(?)";
38
- const name = typeof func.name === "string" ? func.name : "";
39
- return `<span style="opacity:.5;">function</span> ${escape(name)}${args}`;
40
- }
41
- function formatWithExtraType(value, type) {
42
- return `${value} <span style="color:#6b7280;padding:'0 5px';">(${type})</span>`;
43
- }
44
- function formatStateType(value) {
45
- if (isComputed(value)) {
46
- const state = formatStateType(value.value);
47
- return {
48
- ...state,
49
- ...state.recursive ? { rawDisplay: formatWithExtraType(state.rawDisplay, "Computed") } : { value: formatWithExtraType(state.value, "Computed") }
50
- };
51
- } else if (isRef(value)) {
52
- const state = formatStateType(toRaw(value.value));
53
- return {
54
- ...state,
55
- ...state.recursive ? { rawDisplay: formatWithExtraType(state.rawDisplay, "Ref") } : { value: formatWithExtraType(state.value, "Ref") }
56
- };
57
- } else if (isArray(value)) {
58
- return {
59
- rawType: "object",
60
- rawDisplay: `Array[${value.length}]`,
61
- recursive: true,
62
- value
63
- };
64
- } else if (typeof value === "function") {
65
- return {
66
- rawType: "function",
67
- recursive: false,
68
- value: getFuntionDetails(value)
69
- };
70
- } else if (typeof value === "bigint") {
71
- const stringifiedBigInt = BigInt.prototype.toString.call(value);
72
- return {
73
- rawType: "string",
74
- rawDisplay: `BigInt(${stringifiedBigInt})`,
75
- recursive: false,
76
- value: stringifiedBigInt
77
- };
78
- } else if (Number.isNaN(value)) {
79
- return {
80
- rawType: "literal",
81
- recursive: false,
82
- value: "NaN"
83
- };
84
- } else if (value === Infinity) {
85
- return {
86
- rawType: "literal",
87
- recursive: false,
88
- value: "Infinity"
89
- };
90
- } else if (value === -Infinity) {
91
- return {
92
- rawType: "literal",
93
- recursive: false,
94
- value: "-Infinity"
95
- };
96
- } else if (typeof value === "symbol") {
97
- return {
98
- rawType: "literal",
99
- recursive: false,
100
- value: Symbol.prototype.toString.call(value)
101
- };
102
- } else if (value === null) {
103
- return {
104
- rawType: "null",
105
- recursive: false,
106
- value: "null"
107
- };
108
- } else if (typeof value === "undefined") {
109
- return {
110
- rawType: "null",
111
- recursive: false,
112
- value: "undefined"
113
- };
114
- } else if (typeof value === "string") {
115
- return {
116
- rawType: "string",
117
- recursive: false,
118
- value: `"${value}"`
119
- };
120
- } else if (value !== "null" && typeof value === "object") {
121
- if (isMap(value)) {
122
- return {
123
- rawType: "object",
124
- rawDisplay: "Map",
125
- recursive: true,
126
- value: Array.from(value.entries()).map(([key, value2]) => ({ key, value: value2 }))
127
- };
128
- } else if (isSet(value)) {
129
- const list = Array.from(value);
130
- return {
131
- rawType: "object",
132
- rawDisplay: `Set[${list.length}]`,
133
- recursive: true,
134
- value: list
135
- };
136
- } else if (isRegExp(value)) {
137
- return {
138
- rawType: "string",
139
- recursive: false,
140
- value: RegExp.prototype.toString.call(value)
141
- };
142
- } else if (toRawType(value) === "Error") {
143
- return {
144
- rawType: "string",
145
- recursive: false,
146
- // @ts-expect-error skip
147
- value: `${value?.message}: ${value?.stack}`
148
- };
149
- } else if (value?.state && value._vm || value.constructor?.name === "Store" && value._wrappedGetters) {
150
- return {
151
- rawType: "string",
152
- recursive: false,
153
- value: '"[object Store]"'
154
- };
155
- } else if (value.constructor && value.constructor.name === "VueRouter" || value.currentRoute) {
156
- return {
157
- rawType: "string",
158
- recursive: false,
159
- value: '"[object Router]"'
160
- };
161
- } else if (typeof value.render === "function") {
162
- return {
163
- rawType: "object",
164
- recursive: false,
165
- // @ts-expect-error skip
166
- value: formatWithExtraType(value.__name, "Component") ?? "Vue Component"
167
- };
168
- } else if (isPlainObject(value)) {
169
- return {
170
- rawType: "object",
171
- rawDisplay: "Object",
172
- recursive: true,
173
- value
174
- };
175
- } else {
176
- return {
177
- rawType: "string",
178
- recursive: false,
179
- value: `"${toRawType(value)}"`
180
- };
181
- }
182
- } else {
183
- return {
184
- rawType: "literal",
185
- recursive: false,
186
- value
187
- };
188
- }
189
- }
190
-
191
- /* Injected with object hook! */
192
-
193
- const _hoisted_1$1 = ["onClick"];
194
- const _hoisted_2$1 = {
195
- key: 1,
196
- "inline-block": "",
197
- "h-6": "",
198
- "w-6": ""
199
- };
200
- const _hoisted_3 = {
201
- "text-purple-700": "",
202
- "dark:text-purple-300": ""
203
- };
204
- const _hoisted_4 = /* @__PURE__ */ createBaseVNode("span", {
205
- "px-1": "",
206
- "op-60": ""
207
- }, ":", -1);
208
- const _hoisted_5 = ["innerHTML"];
209
- const _hoisted_6 = ["onClick", "innerHTML"];
210
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
211
- __name: "StateFieldsTree",
212
- props: {
213
- id: {},
214
- data: {},
215
- depth: { default: 0 },
216
- expandedId: {}
217
- },
218
- emits: ["updateExpanded"],
219
- setup(__props, { emit: emits }) {
220
- const props = __props;
221
- const rawTypeStyles = { literal: "raw-literal", string: "raw-string", object: "raw-object", function: "raw-function", null: "raw-null" };
222
- const list = computed(() => {
223
- if (Array.isArray(props.data)) {
224
- return props.data.map((item) => {
225
- return formatStateType(item);
226
- });
227
- } else if (typeof props.data === "object" && props.data !== null) {
228
- const o = {};
229
- for (const k in props.data) {
230
- const key = k;
231
- o[key] = formatStateType(props.data[k]);
232
- }
233
- const sorted = {};
234
- Object.keys(o).sort().forEach((key) => {
235
- sorted[key] = o[key];
236
- });
237
- return sorted;
238
- } else {
239
- return formatStateType("");
240
- }
241
- });
242
- function toggleExpand(id) {
243
- emits("updateExpanded", id);
244
- }
245
- const copy = useCopy();
246
- return (_ctx, _cache) => {
247
- const _component_VExpandIcon = _sfc_main$2;
248
- const _component_StateFieldsTree = resolveComponent("StateFieldsTree", true);
249
- return openBlock(true), createElementBlock(Fragment, null, renderList(unref(list), (item, index) => {
250
- return openBlock(), createElementBlock("code", {
251
- key: unref(nanoid)(),
252
- block: "",
253
- "select-none": "",
254
- "pl-2": "",
255
- "text-sm": ""
256
- }, [
257
- createBaseVNode("p", {
258
- flex: "",
259
- "items-center": "",
260
- class: normalizeClass([item?.recursive && "cursor-pointer"]),
261
- onClick: ($event) => item?.recursive ? toggleExpand(`${_ctx.id}-${_ctx.depth}-${index}`) : () => {
262
- }
263
- }, [
264
- item?.recursive ? (openBlock(), createBlock(_component_VExpandIcon, {
265
- key: 0,
266
- value: _ctx.expandedId.includes(`${_ctx.id}-${_ctx.depth}-${index}`)
267
- }, null, 8, ["value"])) : (openBlock(), createElementBlock("i", _hoisted_2$1)),
268
- createBaseVNode("span", _hoisted_3, toDisplayString(index), 1),
269
- _hoisted_4,
270
- item?.recursive ? (openBlock(), createElementBlock("span", {
271
- key: 2,
272
- class: normalizeClass(rawTypeStyles[item.rawType]),
273
- "max-w": "[75%]",
274
- truncate: "",
275
- innerHTML: item?.rawDisplay
276
- }, null, 10, _hoisted_5)) : (openBlock(), createElementBlock("span", {
277
- key: 3,
278
- class: normalizeClass(rawTypeStyles[item.rawType]),
279
- "max-w": "[75%]",
280
- truncate: "",
281
- hover: "underline underline-offset-3 cursor-pointer",
282
- onClick: ($event) => unref(copy)(String(item?.value)),
283
- innerHTML: item?.value
284
- }, null, 10, _hoisted_6))
285
- ], 10, _hoisted_1$1),
286
- _ctx.expandedId.includes(`${_ctx.id}-${_ctx.depth}-${index}`) && item?.recursive ? (openBlock(), createBlock(_component_StateFieldsTree, {
287
- key: 0,
288
- id: _ctx.id,
289
- data: item?.value,
290
- depth: _ctx.depth + 1,
291
- "expanded-id": _ctx.expandedId,
292
- onUpdateExpanded: toggleExpand
293
- }, null, 8, ["id", "data", "depth", "expanded-id"])) : createCommentVNode("", true)
294
- ]);
295
- }), 128);
296
- };
297
- }
298
- });
299
-
300
- /* Injected with object hook! */
301
-
302
- const _hoisted_1 = { "text-primary": "" };
303
- const _hoisted_2 = { "pl-3": "" };
304
- const expandedIdCache = ref([]);
305
- const _sfc_main = /* @__PURE__ */ defineComponent({
306
- __name: "StateFields",
307
- props: {
308
- data: {},
309
- id: { default: 0 }
310
- },
311
- setup(__props) {
312
- const isExpanded = ref(true);
313
- const copy = useCopy();
314
- function toggleExpanded() {
315
- isExpanded.value = !isExpanded.value;
316
- }
317
- function updateExpandedIdCache(id) {
318
- if (expandedIdCache.value.includes(id))
319
- expandedIdCache.value = expandedIdCache.value.filter((i) => i !== id);
320
- else
321
- expandedIdCache.value.push(id);
322
- }
323
- return (_ctx, _cache) => {
324
- const _component_VExpandIcon = _sfc_main$2;
325
- const _component_VIconButton = _sfc_main$4;
326
- const _component_StateFieldsTree = _sfc_main$1;
327
- return openBlock(), createElementBlock("div", null, [
328
- createBaseVNode("h3", {
329
- flex: "",
330
- "cursor-pointer": "",
331
- "items-center": "",
332
- "justify-between": "",
333
- rounded: "",
334
- "py-1": "",
335
- class: "hover:bg-[#c2e9d7] hover:dark:bg-[#2c3e50]",
336
- onClick: toggleExpanded
337
- }, [
338
- createBaseVNode("div", null, [
339
- createVNode(_component_VExpandIcon, { value: unref(isExpanded) }, null, 8, ["value"]),
340
- createBaseVNode("span", _hoisted_1, toDisplayString(_ctx.data.key), 1)
341
- ]),
342
- createVNode(_component_VIconButton, {
343
- mr2: "",
344
- "flex-none": "",
345
- title: `Copy ${_ctx.data.key} to clipboard`,
346
- icon: "carbon-copy",
347
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => unref(copy)(JSON.stringify(_ctx.data.value)), ["stop"]))
348
- }, null, 8, ["title"])
349
- ]),
350
- withDirectives(createBaseVNode("div", _hoisted_2, [
351
- createVNode(_component_StateFieldsTree, {
352
- id: _ctx.id,
353
- data: _ctx.data.value,
354
- "expanded-id": unref(expandedIdCache),
355
- onUpdateExpanded: updateExpandedIdCache
356
- }, null, 8, ["id", "data", "expanded-id"])
357
- ], 512), [
358
- [vShow, unref(isExpanded)]
359
- ])
360
- ]);
361
- };
362
- }
363
- });
364
-
365
- /* Injected with object hook! */
1
+ import { av as h, o as openBlock, e as createElementBlock, f as renderSlot, l as normalizeStyle } from './index-71609956.js';
366
2
 
367
3
  const M = {
368
4
  name: "splitpanes",
@@ -704,4 +340,4 @@ const g = /* @__PURE__ */ S(x, [["render", P]]);
704
340
 
705
341
  /* Injected with object hook! */
706
342
 
707
- export { M, _sfc_main as _, _sfc_main$2 as a, g };
343
+ export { M, g };
@@ -1,11 +1,12 @@
1
- import { g, M, _ as _sfc_main$2 } from './splitpanes.es-af9ab4de.js';
2
- import { _ as __unplugin_components_0 } from './VPanelGrids-abfaa973.js';
3
- import { _ as __unplugin_components_7 } from './VCard-29b1adce.js';
1
+ import { _ as _sfc_main$2 } from './StateFields.vue_vue_type_script_setup_true_lang-79e496d1.js';
2
+ import { _ as __unplugin_components_0 } from './VPanelGrids-52d64f52.js';
3
+ import { _ as __unplugin_components_7 } from './VCard-7f086ce2.js';
4
4
  import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-c0d8ada0.js';
5
- import { p as pushScopeId, a as popScopeId, n as nextTick, o as openBlock, c as createBlock, w as withScopeId, m as markRaw, s as shallowReactive, r as resolveComponent, b as resolveDirective, d as withDirectives, e as createElementBlock, f as renderSlot, g as createCommentVNode, h as withCtx, F as Fragment, i as renderList, j as resolveDynamicComponent, k as mergeProps, t as toHandlers, l as normalizeStyle, q as normalizeClass, u as createVNode, v as defineComponent, x as createBaseVNode, y as toDisplayString, z as unref, A as timelineLayer, B as activeTimelineEvents, C as activeTimelineEventIndex, D as toggleTimelineEventIndex, E as timelineEventDetails, G as activeLayerId, H as toggleTimelineLayer } from './index-f0b756d9.js';
6
- import './VIcon.vue_vue_type_script_setup_true_lang-f66901cc.js';
7
- import './index-92885597.js';
8
- import './VIconButton.vue_vue_type_script_setup_true_lang-d5adb3a3.js';
5
+ import { p as pushScopeId, a as popScopeId, n as nextTick, o as openBlock, c as createBlock, w as withScopeId, m as markRaw, s as shallowReactive, r as resolveComponent, b as resolveDirective, d as withDirectives, e as createElementBlock, f as renderSlot, g as createCommentVNode, h as withCtx, F as Fragment, i as renderList, j as resolveDynamicComponent, k as mergeProps, t as toHandlers, l as normalizeStyle, q as normalizeClass, u as createVNode, v as defineComponent, x as createBaseVNode, y as toDisplayString, z as unref, A as timelineLayer, B as activeTimelineEvents, C as activeTimelineEventIndex, D as toggleTimelineEventIndex, E as timelineEventDetails, G as activeLayerId, H as toggleTimelineLayer } from './index-71609956.js';
6
+ import { g, M } from './splitpanes.es-0a01f462.js';
7
+ import './VIcon.vue_vue_type_script_setup_true_lang-4e5c5629.js';
8
+ import './index-930a3e08.js';
9
+ import './VIconButton.vue_vue_type_script_setup_true_lang-aa76fcd1.js';
9
10
 
10
11
  var dayjs_min = {exports: {}};/* Injected with object hook! */
11
12
 
@@ -5,8 +5,8 @@
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-f0b756d9.js"></script>
9
- <link rel="stylesheet" href="./assets/index-d015c21f.css">
8
+ <script type="module" crossorigin src="./assets/index-71609956.js"></script>
9
+ <link rel="stylesheet" href="./assets/index-4825b66d.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="app"></div>
package/dist/index.cjs CHANGED
@@ -25,6 +25,7 @@ const require$$0$3$1 = require('assert');
25
25
  const require$$0$5 = require('buffer');
26
26
  const node_util = require('node:util');
27
27
  const require$$1 = require('tty');
28
+ const vuedocParser = require('@webfansplz/vuedoc-parser');
28
29
 
29
30
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
30
31
 
@@ -13671,6 +13672,22 @@ async function installPackage(packages, options = {}) {
13671
13672
  });
13672
13673
  }
13673
13674
 
13675
+ async function getVueSFCList(root) {
13676
+ const files = await fg([
13677
+ "**/*.vue"
13678
+ ], {
13679
+ cwd: root,
13680
+ onlyFiles: true,
13681
+ ignore: ["**/node_modules/**", "**/dist/**"]
13682
+ });
13683
+ return files;
13684
+ }
13685
+ async function getComponentInfo(root, filename) {
13686
+ return await vuedocParser.parseComponent({
13687
+ filename: path$3__default.resolve(root, filename)
13688
+ });
13689
+ }
13690
+
13674
13691
  const NAME = "vite-plugin-vue-devtools";
13675
13692
  function getVueDevtoolsPath() {
13676
13693
  const pluginPath = vite.normalizePath(path$3__default.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href)))));
@@ -13695,6 +13712,8 @@ function VitePluginVueDevTools(options = { appendTo: "" }) {
13695
13712
  getImageMeta,
13696
13713
  getTextAssetContent,
13697
13714
  getPackages: () => getPackages(config.root),
13715
+ getVueSFCList: () => getVueSFCList(config.root),
13716
+ getComponentInfo: (filename) => getComponentInfo(config.root, filename),
13698
13717
  installPackage: (packages, options2 = {}) => installPackage(packages, {
13699
13718
  ...options2,
13700
13719
  cwd: config.root,