vite-plugin-vue-devtools 0.0.4 → 0.0.6

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 +1 -1
  2. package/dist/client/assets/{VCard-d5dce5dc.js → VCard-365cd722.js} +1 -1
  3. package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-86e98dd0.js → VIcon.vue_vue_type_script_setup_true_lang-d879f03a.js} +1 -1
  4. package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-6bf4d2c5.js → VIconTitle.vue_vue_type_script_setup_true_lang-7e3b636a.js} +1 -1
  5. package/dist/client/assets/{VPanelGrids-01802272.js → VPanelGrids-e269e398.js} +1 -1
  6. package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-2730be3e.js → VTextInput.vue_vue_type_script_setup_true_lang-fd84d253.js} +3 -3
  7. package/dist/client/assets/{__inspecting-1d8af17f.js → __inspecting-dcdfea86.js} +2 -2
  8. package/dist/client/assets/{assets-bdd87b4e.js → assets-43c4f03a.js} +7 -7
  9. package/dist/client/assets/{components-f3ebd9fc.js → components-a684c153.js} +96 -5
  10. package/dist/client/assets/{graph-298bd1af.js → graph-b4acfb90.js} +2 -5
  11. package/dist/client/assets/{index-0fe3b68e.js → index-2a1677bb.js} +38 -198
  12. package/dist/client/assets/index-56f266d3.js +45 -0
  13. package/dist/client/assets/{index-f0fa9f81.css → index-62a10721.css} +1 -1
  14. package/dist/client/assets/{inspect-fc04f168.js → inspect-83db2b32.js} +2 -2
  15. package/dist/client/assets/{overview-4c38bb9d.js → overview-bd834aea.js} +10 -8
  16. package/dist/client/assets/{pages-332f4308.js → pages-b9188b20.js} +4 -4
  17. package/dist/client/assets/{pinia-c92015f4.js → pinia-9d62859f.js} +4 -4
  18. package/dist/client/assets/{routes-42ec2b9a.js → routes-71c9bb6b.js} +6 -5
  19. package/dist/client/assets/{rpc-a3180d73.js → rpc-8cf8610c.js} +1 -1
  20. package/dist/client/assets/{settings-b9471d84.js → settings-a29fd3d3.js} +8 -9
  21. package/dist/client/assets/{splitpanes.es-dcbb9776.js → splitpanes.es-c6654cbc.js} +3 -40
  22. package/dist/client/assets/{timeline-9e30477c.js → timeline-6ffbb5a9.js} +6 -5
  23. package/dist/client/index.html +2 -2
  24. package/package.json +2 -2
  25. package/src/node/Container.vue +127 -13
  26. package/src/node/app.js +4 -4
package/README.md CHANGED
@@ -18,7 +18,7 @@ Vue DevTools <sup>Preview</sup>
18
18
  </p>
19
19
 
20
20
  <p align="center">
21
- <a href="https://stackblitz.com/edit/vitejs-vite-oxbwzk?embed=1&file=vite.config.ts&view=preview"><img src="https://developer.stackblitz.com/img/open_in_stackblitz.svg" alt=""></a>
21
+ <a href="https://stackblitz.com/edit/vitejs-vite-oxbwzk?file=vite.config.ts&view=preview"><img src="https://developer.stackblitz.com/img/open_in_stackblitz.svg" alt=""></a>
22
22
  </p>
23
23
 
24
24
 
@@ -1,4 +1,4 @@
1
- import { aF as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-0fe3b68e.js';
1
+ import { av as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-2a1677bb.js';
2
2
 
3
3
  /* unplugin-vue-components disabled */const _sfc_main = {};
4
4
 
@@ -1,4 +1,4 @@
1
- import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass } from './index-0fe3b68e.js';
1
+ import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass } from './index-2a1677bb.js';
2
2
 
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "VIcon",
@@ -1,4 +1,4 @@
1
- import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass, g as createCommentVNode, f as renderSlot, x as createBaseVNode, y as toDisplayString } from './index-0fe3b68e.js';
1
+ import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass, g as createCommentVNode, f as renderSlot, x as createBaseVNode, y as toDisplayString } from './index-2a1677bb.js';
2
2
 
3
3
  const _hoisted_1 = {
4
4
  flex: "~ gap-3",
@@ -1,4 +1,4 @@
1
- import { aF as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-0fe3b68e.js';
1
+ import { av as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-2a1677bb.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-6bf4d2c5.js';
2
- import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-86e98dd0.js';
3
- import { v as defineComponent, K as useVModel, o as openBlock, e as createElementBlock, x as createBaseVNode, q as normalizeClass, u as createVNode, h as withCtx, f as renderSlot, g as createCommentVNode, c as createBlock, z as unref, d as withDirectives, F as Fragment, b as resolveDirective, R as createTextVNode, y as toDisplayString, p as pushScopeId, a as popScopeId, aF as _export_sfc, aG as vModelDynamic, k as mergeProps, M as isRef } from './index-0fe3b68e.js';
1
+ import { _ as _sfc_main$2 } from './VIconTitle.vue_vue_type_script_setup_true_lang-7e3b636a.js';
2
+ import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-d879f03a.js';
3
+ import { v as defineComponent, K as useVModel, o as openBlock, e as createElementBlock, x as createBaseVNode, q as normalizeClass, u as createVNode, h as withCtx, f as renderSlot, g as createCommentVNode, c as createBlock, z as unref, d as withDirectives, F as Fragment, b as resolveDirective, Q as createTextVNode, y as toDisplayString, p as pushScopeId, a as popScopeId, av as _export_sfc, aw as vModelDynamic, k as mergeProps, M as isRef } from './index-2a1677bb.js';
4
4
 
5
5
  const _withScopeId = (n) => (pushScopeId("data-v-cf2e46eb"), n = n(), popScopeId(), n);
6
6
  const _hoisted_1$1 = ["open"];
@@ -1,5 +1,5 @@
1
- import { _ as __unplugin_components_0 } from './VPanelGrids-01802272.js';
2
- import { v as defineComponent, aI as useEventListener, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, aJ as useDevtoolsClient } from './index-0fe3b68e.js';
1
+ import { _ as __unplugin_components_0 } from './VPanelGrids-e269e398.js';
2
+ import { v as defineComponent, ay as useEventListener, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, az as useDevtoolsClient } from './index-2a1677bb.js';
3
3
 
4
4
  const _hoisted_1 = /* @__PURE__ */ createBaseVNode("div", null, " Inspecting Vue components ", -1);
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,11 +1,11 @@
1
- import { _ as __unplugin_components_0 } from './VPanelGrids-01802272.js';
2
- import { _ as __unplugin_components_7 } from './VCard-d5dce5dc.js';
3
- import { _ as _sfc_main$a } from './VIcon.vue_vue_type_script_setup_true_lang-86e98dd0.js';
4
- import { v as defineComponent, o as openBlock, c as createBlock, h as withCtx, u as createVNode, k as mergeProps, j as resolveDynamicComponent, a0 as ref, ay as useElementSize, az as onClickOutside, e as createElementBlock, x as createBaseVNode, f as renderSlot, z as unref, g as createCommentVNode, aA as Transition, a1 as computed, y as toDisplayString, q as normalizeClass, aB as useStyleTag, l as normalizeStyle, aC as computedAsync, aD as useTimeAgo, F as Fragment, R as createTextVNode, _ as _sfc_main$b, aE as onKeyDown, M as isRef, i as renderList } from './index-0fe3b68e.js';
5
- import { r as rpc } from './rpc-a3180d73.js';
6
- import { _ as _sfc_main$c, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-2730be3e.js';
1
+ import { _ as __unplugin_components_0 } from './VPanelGrids-e269e398.js';
2
+ import { _ as __unplugin_components_7 } from './VCard-365cd722.js';
3
+ import { _ as _sfc_main$a } from './VIcon.vue_vue_type_script_setup_true_lang-d879f03a.js';
4
+ import { v as defineComponent, o as openBlock, c as createBlock, h as withCtx, u as createVNode, k as mergeProps, j as resolveDynamicComponent, $ as ref, ao as useElementSize, ap as onClickOutside, e as createElementBlock, x as createBaseVNode, f as renderSlot, z as unref, g as createCommentVNode, aq as Transition, a0 as computed, y as toDisplayString, q as normalizeClass, ar as useStyleTag, l as normalizeStyle, as as computedAsync, at as useTimeAgo, F as Fragment, Q as createTextVNode, _ as _sfc_main$b, au as onKeyDown, M as isRef, i as renderList } from './index-2a1677bb.js';
5
+ import { r as rpc } from './rpc-8cf8610c.js';
6
+ import { _ as _sfc_main$c, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-fd84d253.js';
7
7
  import { F as Fuse } from './fuse.esm-c317b696.js';
8
- import './VIconTitle.vue_vue_type_script_setup_true_lang-6bf4d2c5.js';
8
+ import './VIconTitle.vue_vue_type_script_setup_true_lang-7e3b636a.js';
9
9
 
10
10
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
11
11
  __name: "VIconButton",
@@ -1,8 +1,99 @@
1
- import { _ as __unplugin_components_0 } from './VPanelGrids-01802272.js';
2
- import { _ as __unplugin_components_7 } from './VCard-d5dce5dc.js';
3
- import { a as _sfc_main$2, g, M, _ as _sfc_main$3 } from './splitpanes.es-dcbb9776.js';
4
- import { aj as getInstanceName, ak as classify, al as kebabize, am as isFragment, an as camelize, ao as returnError, ap as isBeingDestroyed, aq as getUniqueComponentId, ar as getRenderKey, a0 as ref, as as shallowRef, a1 as computed, 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, F as Fragment, i as renderList, g as createCommentVNode, A as onMounted, at as onVueInstanceUpdate, u as createVNode, h as withCtx, ac as reactive, au as instance } from './index-0fe3b68e.js';
5
- import './VIcon.vue_vue_type_script_setup_true_lang-86e98dd0.js';
1
+ import { _ as __unplugin_components_0 } from './VPanelGrids-e269e398.js';
2
+ import { _ as __unplugin_components_7 } from './VCard-365cd722.js';
3
+ import { a as _sfc_main$2, g, M, _ as _sfc_main$3 } from './splitpanes.es-c6654cbc.js';
4
+ import { F as Fragment, $ as ref, ai as shallowRef, a0 as computed, 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, A as onMounted, aj as onVueInstanceUpdate, u as createVNode, h as withCtx, ab as reactive, ak as instance } from './index-2a1677bb.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-d879f03a.js';
6
+ import './index-56f266d3.js';
7
+
8
+ function isBeingDestroyed(instance) {
9
+ return instance._isBeingDestroyed || instance.isUnmounted;
10
+ }
11
+ function isFragment(instance) {
12
+ return Fragment === instance.subTree?.type;
13
+ }
14
+ function getInstanceName(instance) {
15
+ const name = getComponentTypeName(instance.type || {});
16
+ if (name)
17
+ return name;
18
+ if (instance.root === instance)
19
+ return "Root";
20
+ for (const key in instance.parent?.type?.components) {
21
+ if (instance.parent.type.components[key] === instance.type)
22
+ return saveComponentName(instance, key);
23
+ }
24
+ for (const key in instance.appContext?.components) {
25
+ if (instance.appContext.components[key] === instance.type)
26
+ return saveComponentName(instance, key);
27
+ }
28
+ const fileName = getComponentFileName(instance.type || {});
29
+ if (fileName)
30
+ return fileName;
31
+ return "Anonymous Component";
32
+ }
33
+ function saveComponentName(instance, key) {
34
+ return key;
35
+ }
36
+ function getComponentTypeName(options) {
37
+ return options.name || options._componentTag || options.__vdevtools_guessedName || options.__name;
38
+ }
39
+ function getComponentFileName(options) {
40
+ const file = options.__file;
41
+ if (file) {
42
+ const filename = options.__file?.match(/\/?([^/]+?)(\.[^/.]+)?$/)?.[1];
43
+ return filename ?? file;
44
+ }
45
+ }
46
+ function getUniqueComponentId(instance) {
47
+ const appId = "vue-devtools";
48
+ const instanceId = instance === instance.root ? "root" : instance.uid;
49
+ return `${appId}:${instanceId}`;
50
+ }
51
+ function getRenderKey(value) {
52
+ if (value == null)
53
+ return null;
54
+ const type = typeof value;
55
+ if (type === "number")
56
+ return value;
57
+ else if (type === "string")
58
+ return `'${value}'`;
59
+ else if (Array.isArray(value))
60
+ return "Array";
61
+ else
62
+ return "Object";
63
+ }
64
+ function cached(fn) {
65
+ const cache = /* @__PURE__ */ Object.create(null);
66
+ return function cachedFn(str) {
67
+ const hit = cache[str];
68
+ return hit || (cache[str] = fn(str));
69
+ };
70
+ }
71
+ function toUpper(_, c) {
72
+ return c ? c.toUpperCase() : "";
73
+ }
74
+ const camelizeRE = /-(\w)/g;
75
+ const camelize = cached((str) => {
76
+ return str && str.replace(camelizeRE, toUpper);
77
+ });
78
+ const kebabizeRE = /([a-z0-9])([A-Z])/g;
79
+ const kebabize = cached((str) => {
80
+ return str && str.replace(kebabizeRE, (_, lowerCaseCharacter, upperCaseLetter) => {
81
+ return `${lowerCaseCharacter}-${upperCaseLetter}`;
82
+ }).toLowerCase();
83
+ });
84
+ function returnError(cb) {
85
+ try {
86
+ return cb();
87
+ } catch (e) {
88
+ return e;
89
+ }
90
+ }
91
+ const classifyRE = /(?:^|[-_/])(\w)/g;
92
+ const classify = cached((str) => {
93
+ return str && `${str}`.replace(classifyRE, toUpper);
94
+ });
95
+
96
+ /* Injected with object hook! */
6
97
 
7
98
  class ComponentFilter {
8
99
  filter;
@@ -1,6 +1,6 @@
1
- import { a0 as ref, af as useStorage, a1 as computed, v as defineComponent, o as openBlock, e as createElementBlock, d as withDirectives, ag as vModelText, z as unref, x as createBaseVNode, M as isRef, N as vModelCheckbox, ah as useDark, A as onMounted, ai as watch, u as createVNode } from './index-0fe3b68e.js';
1
+ import { $ as ref, ae as useStorage, a0 as computed, v as defineComponent, o as openBlock, e as createElementBlock, d as withDirectives, af as vModelText, z as unref, x as createBaseVNode, M as isRef, N as vModelCheckbox, ag as useDark, A as onMounted, ah as watch, u as createVNode } from './index-2a1677bb.js';
2
2
  import { F as Fuse } from './fuse.esm-c317b696.js';
3
- import { r as rpc } from './rpc-a3180d73.js';
3
+ import { r as rpc } from './rpc-8cf8610c.js';
4
4
 
5
5
  const list = ref(await rpc.componentGraph());
6
6
  const searchText = useStorage("vite-inspect-search-text", "");
@@ -52233,9 +52233,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52233
52233
  }
52234
52234
  };
52235
52235
  const network = new Network(container.value, data.value, options);
52236
- network.on("click", (data2) => {
52237
- data2.nodes?.[0];
52238
- });
52239
52236
  watch(data, () => {
52240
52237
  network.setData(data.value);
52241
52238
  });
@@ -302,12 +302,12 @@ const cacheStringFunction = (fn) => {
302
302
  return hit || (cache[str] = fn(str));
303
303
  });
304
304
  };
305
- const camelizeRE$1 = /-(\w)/g;
305
+ const camelizeRE = /-(\w)/g;
306
306
  /**
307
307
  * @private
308
308
  */
309
- const camelize$1 = cacheStringFunction((str) => {
310
- return str.replace(camelizeRE$1, (_, c) => (c ? c.toUpperCase() : ''));
309
+ const camelize = cacheStringFunction((str) => {
310
+ return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));
311
311
  });
312
312
  const hyphenateRE = /\B([A-Z])/g;
313
313
  /**
@@ -1678,7 +1678,7 @@ function emit(instance, event, ...rawArgs) {
1678
1678
  let handlerName;
1679
1679
  let handler = props[(handlerName = toHandlerKey(event))] ||
1680
1680
  // also try camelCase event handler (#2249)
1681
- props[(handlerName = toHandlerKey(camelize$1(event)))];
1681
+ props[(handlerName = toHandlerKey(camelize(event)))];
1682
1682
  // for v-model update:xxx events, also trigger kebab-case equivalent
1683
1683
  // for props passed via kebab-case
1684
1684
  if (!handler && isModelListener) {
@@ -2836,8 +2836,8 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
2836
2836
  const selfName = getComponentName(Component, false /* do not include inferred name to avoid breaking existing code */);
2837
2837
  if (selfName &&
2838
2838
  (selfName === name ||
2839
- selfName === camelize$1(name) ||
2840
- selfName === capitalize(camelize$1(name)))) {
2839
+ selfName === camelize(name) ||
2840
+ selfName === capitalize(camelize(name)))) {
2841
2841
  return Component;
2842
2842
  }
2843
2843
  }
@@ -2857,8 +2857,8 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
2857
2857
  function resolve(registry, name) {
2858
2858
  return (registry &&
2859
2859
  (registry[name] ||
2860
- registry[camelize$1(name)] ||
2861
- registry[capitalize(camelize$1(name))]));
2860
+ registry[camelize(name)] ||
2861
+ registry[capitalize(camelize(name))]));
2862
2862
  }
2863
2863
 
2864
2864
  /**
@@ -3522,7 +3522,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
3522
3522
  }
3523
3523
  }
3524
3524
  else {
3525
- const camelizedKey = camelize$1(key);
3525
+ const camelizedKey = camelize(key);
3526
3526
  props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false /* isAbsent */);
3527
3527
  }
3528
3528
  }
@@ -3596,7 +3596,7 @@ function setFullProps(instance, rawProps, props, attrs) {
3596
3596
  // prop option names are camelized during normalization, so to support
3597
3597
  // kebab -> camel conversion here we need to camelize the key.
3598
3598
  let camelKey;
3599
- if (options && hasOwn(options, (camelKey = camelize$1(key)))) {
3599
+ if (options && hasOwn(options, (camelKey = camelize(key)))) {
3600
3600
  if (!needCastKeys || !needCastKeys.includes(camelKey)) {
3601
3601
  props[camelKey] = value;
3602
3602
  }
@@ -3694,7 +3694,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
3694
3694
  }
3695
3695
  if (isArray$1(raw)) {
3696
3696
  for (let i = 0; i < raw.length; i++) {
3697
- const normalizedKey = camelize$1(raw[i]);
3697
+ const normalizedKey = camelize(raw[i]);
3698
3698
  if (validatePropName(normalizedKey)) {
3699
3699
  normalized[normalizedKey] = EMPTY_OBJ;
3700
3700
  }
@@ -3702,7 +3702,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
3702
3702
  }
3703
3703
  else if (raw) {
3704
3704
  for (const key in raw) {
3705
- const normalizedKey = camelize$1(key);
3705
+ const normalizedKey = camelize(key);
3706
3706
  if (validatePropName(normalizedKey)) {
3707
3707
  const opt = raw[key];
3708
3708
  const prop = (normalized[normalizedKey] =
@@ -6135,7 +6135,7 @@ function autoPrefix(style, rawName) {
6135
6135
  if (cached) {
6136
6136
  return cached;
6137
6137
  }
6138
- let name = camelize$1(rawName);
6138
+ let name = camelize(rawName);
6139
6139
  if (name !== 'filter' && name in style) {
6140
6140
  return (prefixCache[rawName] = name);
6141
6141
  }
@@ -14157,17 +14157,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
14157
14157
 
14158
14158
  /* Injected with object hook! */
14159
14159
 
14160
- const __pages_import_0__ = () => __vitePreload(() => import('./timeline-9e30477c.js'),true?["./timeline-9e30477c.js","./splitpanes.es-dcbb9776.js","./VIcon.vue_vue_type_script_setup_true_lang-86e98dd0.js","./VPanelGrids-01802272.js","./VCard-d5dce5dc.js","./timeline-b315b2e0.css"]:void 0,import.meta.url);
14161
- const __pages_import_1__ = () => __vitePreload(() => import('./settings-b9471d84.js'),true?["./settings-b9471d84.js","./VIcon.vue_vue_type_script_setup_true_lang-86e98dd0.js","./VIconTitle.vue_vue_type_script_setup_true_lang-6bf4d2c5.js"]:void 0,import.meta.url);
14162
- const __pages_import_2__ = () => __vitePreload(() => import('./routes-42ec2b9a.js'),true?["./routes-42ec2b9a.js","./VPanelGrids-01802272.js","./VCard-d5dce5dc.js","./splitpanes.es-dcbb9776.js","./VIcon.vue_vue_type_script_setup_true_lang-86e98dd0.js"]:void 0,import.meta.url);
14163
- const __pages_import_3__ = () => __vitePreload(() => import('./pinia-c92015f4.js'),true?["./pinia-c92015f4.js","./splitpanes.es-dcbb9776.js","./VIcon.vue_vue_type_script_setup_true_lang-86e98dd0.js"]:void 0,import.meta.url);
14164
- const __pages_import_4__ = () => __vitePreload(() => import('./pages-332f4308.js'),true?["./pages-332f4308.js","./VTextInput.vue_vue_type_script_setup_true_lang-2730be3e.js","./VIconTitle.vue_vue_type_script_setup_true_lang-6bf4d2c5.js","./VIcon.vue_vue_type_script_setup_true_lang-86e98dd0.js","./VTextInput-52804693.css"]:void 0,import.meta.url);
14165
- const __pages_import_5__ = () => __vitePreload(() => import('./overview-4c38bb9d.js'),true?["./overview-4c38bb9d.js","./VPanelGrids-01802272.js","./rpc-a3180d73.js"]:void 0,import.meta.url);
14166
- const __pages_import_6__ = () => __vitePreload(() => import('./inspect-fc04f168.js'),true?["./inspect-fc04f168.js","./rpc-a3180d73.js"]:void 0,import.meta.url);
14167
- const __pages_import_8__ = () => __vitePreload(() => import('./graph-298bd1af.js'),true?["./graph-298bd1af.js","./fuse.esm-c317b696.js","./rpc-a3180d73.js"]:void 0,import.meta.url);
14168
- const __pages_import_9__ = () => __vitePreload(() => import('./components-f3ebd9fc.js'),true?["./components-f3ebd9fc.js","./VPanelGrids-01802272.js","./VCard-d5dce5dc.js","./splitpanes.es-dcbb9776.js","./VIcon.vue_vue_type_script_setup_true_lang-86e98dd0.js"]:void 0,import.meta.url);
14169
- const __pages_import_10__ = () => __vitePreload(() => import('./assets-bdd87b4e.js'),true?["./assets-bdd87b4e.js","./VPanelGrids-01802272.js","./VCard-d5dce5dc.js","./VIcon.vue_vue_type_script_setup_true_lang-86e98dd0.js","./rpc-a3180d73.js","./VTextInput.vue_vue_type_script_setup_true_lang-2730be3e.js","./VIconTitle.vue_vue_type_script_setup_true_lang-6bf4d2c5.js","./VTextInput-52804693.css","./fuse.esm-c317b696.js"]:void 0,import.meta.url);
14170
- const __pages_import_11__ = () => __vitePreload(() => import('./__inspecting-1d8af17f.js'),true?["./__inspecting-1d8af17f.js","./VPanelGrids-01802272.js"]:void 0,import.meta.url);
14160
+ const __pages_import_0__ = () => __vitePreload(() => import('./timeline-6ffbb5a9.js'),true?["./timeline-6ffbb5a9.js","./splitpanes.es-c6654cbc.js","./VIcon.vue_vue_type_script_setup_true_lang-d879f03a.js","./index-56f266d3.js","./VPanelGrids-e269e398.js","./VCard-365cd722.js","./timeline-b315b2e0.css"]:void 0,import.meta.url);
14161
+ const __pages_import_1__ = () => __vitePreload(() => import('./settings-a29fd3d3.js'),true?["./settings-a29fd3d3.js","./VIcon.vue_vue_type_script_setup_true_lang-d879f03a.js","./VIconTitle.vue_vue_type_script_setup_true_lang-7e3b636a.js"]:void 0,import.meta.url);
14162
+ const __pages_import_2__ = () => __vitePreload(() => import('./routes-71c9bb6b.js'),true?["./routes-71c9bb6b.js","./VPanelGrids-e269e398.js","./VCard-365cd722.js","./splitpanes.es-c6654cbc.js","./VIcon.vue_vue_type_script_setup_true_lang-d879f03a.js","./index-56f266d3.js"]:void 0,import.meta.url);
14163
+ const __pages_import_3__ = () => __vitePreload(() => import('./pinia-9d62859f.js'),true?["./pinia-9d62859f.js","./splitpanes.es-c6654cbc.js","./VIcon.vue_vue_type_script_setup_true_lang-d879f03a.js","./index-56f266d3.js"]:void 0,import.meta.url);
14164
+ const __pages_import_4__ = () => __vitePreload(() => import('./pages-b9188b20.js'),true?["./pages-b9188b20.js","./VTextInput.vue_vue_type_script_setup_true_lang-fd84d253.js","./VIconTitle.vue_vue_type_script_setup_true_lang-7e3b636a.js","./VIcon.vue_vue_type_script_setup_true_lang-d879f03a.js","./VTextInput-52804693.css"]:void 0,import.meta.url);
14165
+ const __pages_import_5__ = () => __vitePreload(() => import('./overview-bd834aea.js'),true?["./overview-bd834aea.js","./VPanelGrids-e269e398.js","./rpc-8cf8610c.js","./index-56f266d3.js"]:void 0,import.meta.url);
14166
+ const __pages_import_6__ = () => __vitePreload(() => import('./inspect-83db2b32.js'),true?["./inspect-83db2b32.js","./rpc-8cf8610c.js"]:void 0,import.meta.url);
14167
+ const __pages_import_8__ = () => __vitePreload(() => import('./graph-b4acfb90.js'),true?["./graph-b4acfb90.js","./fuse.esm-c317b696.js","./rpc-8cf8610c.js"]:void 0,import.meta.url);
14168
+ const __pages_import_9__ = () => __vitePreload(() => import('./components-a684c153.js'),true?["./components-a684c153.js","./VPanelGrids-e269e398.js","./VCard-365cd722.js","./splitpanes.es-c6654cbc.js","./VIcon.vue_vue_type_script_setup_true_lang-d879f03a.js","./index-56f266d3.js"]:void 0,import.meta.url);
14169
+ const __pages_import_10__ = () => __vitePreload(() => import('./assets-43c4f03a.js'),true?["./assets-43c4f03a.js","./VPanelGrids-e269e398.js","./VCard-365cd722.js","./VIcon.vue_vue_type_script_setup_true_lang-d879f03a.js","./rpc-8cf8610c.js","./VTextInput.vue_vue_type_script_setup_true_lang-fd84d253.js","./VIconTitle.vue_vue_type_script_setup_true_lang-7e3b636a.js","./VTextInput-52804693.css","./fuse.esm-c317b696.js"]:void 0,import.meta.url);
14170
+ const __pages_import_11__ = () => __vitePreload(() => import('./__inspecting-dcdfea86.js'),true?["./__inspecting-dcdfea86.js","./VPanelGrids-e269e398.js"]:void 0,import.meta.url);
14171
14171
 
14172
14172
  const routes$1 = [{"name":"timeline","path":"/timeline","component":__pages_import_0__,"props":true},{"name":"settings","path":"/settings","component":__pages_import_1__,"props":true},{"name":"routes","path":"/routes","component":__pages_import_2__,"props":true},{"name":"pinia","path":"/pinia","component":__pages_import_3__,"props":true},{"name":"pages","path":"/pages","component":__pages_import_4__,"props":true},{"name":"overview","path":"/overview","component":__pages_import_5__,"props":true},{"name":"inspect","path":"/inspect","component":__pages_import_6__,"props":true},{"name":"index","path":"/","component":_sfc_main$6,"props":true},{"name":"graph","path":"/graph","component":__pages_import_8__,"props":true},{"name":"components","path":"/components","component":__pages_import_9__,"props":true},{"name":"assets","path":"/assets","component":__pages_import_10__,"props":true},{"name":"__inspecting","path":"/__inspecting","component":__pages_import_11__,"props":true}];
14173
14173
  /* Injected with object hook! */
@@ -14324,8 +14324,8 @@ const _hoisted_5$1 = {
14324
14324
  };
14325
14325
  const _hoisted_6$1 = /* @__PURE__ */ createBaseVNode("div", {
14326
14326
  "carbon-sun": "",
14327
- "dark:carbon-moon": "",
14328
- "translate-y--1px": ""
14327
+ "translate-y--1px": "",
14328
+ "dark:carbon-moon": ""
14329
14329
  }, null, -1);
14330
14330
  const _hoisted_7$1 = /* @__PURE__ */ createBaseVNode("div", {
14331
14331
  "carbon-settings": "",
@@ -14359,7 +14359,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
14359
14359
  ];
14360
14360
  function toggle(position) {
14361
14361
  frameState.value.position = position;
14362
- client.value?.panel?.toggle(position);
14362
+ client.value?.panel?.togglePosition(position);
14363
14363
  _position.value = position;
14364
14364
  }
14365
14365
  return (_ctx, _cache) => {
@@ -14704,99 +14704,9 @@ let nanoid = (size = 21) =>
14704
14704
 
14705
14705
  /* Injected with object hook! */
14706
14706
 
14707
- function isBeingDestroyed(instance) {
14708
- return instance._isBeingDestroyed || instance.isUnmounted;
14709
- }
14710
- function isFragment(instance) {
14711
- return Fragment === instance.subTree?.type;
14712
- }
14713
- function getInstanceName(instance) {
14714
- const name = getComponentTypeName(instance.type || {});
14715
- if (name)
14716
- return name;
14717
- if (instance.root === instance)
14718
- return "Root";
14719
- for (const key in instance.parent?.type?.components) {
14720
- if (instance.parent.type.components[key] === instance.type)
14721
- return saveComponentName(instance, key);
14722
- }
14723
- for (const key in instance.appContext?.components) {
14724
- if (instance.appContext.components[key] === instance.type)
14725
- return saveComponentName(instance, key);
14726
- }
14727
- const fileName = getComponentFileName(instance.type || {});
14728
- if (fileName)
14729
- return fileName;
14730
- return "Anonymous Component";
14731
- }
14732
- function saveComponentName(instance, key) {
14733
- return key;
14734
- }
14735
- function getComponentTypeName(options) {
14736
- return options.name || options._componentTag || options.__vdevtools_guessedName || options.__name;
14737
- }
14738
- function getComponentFileName(options) {
14739
- const file = options.__file;
14740
- if (file) {
14741
- const filename = options.__file?.match(/\/?([^/]+?)(\.[^/.]+)?$/)?.[1];
14742
- return filename ?? file;
14743
- }
14744
- }
14745
- function getUniqueComponentId(instance) {
14746
- const appId = "vue-devtools";
14747
- const instanceId = instance === instance.root ? "root" : instance.uid;
14748
- return `${appId}:${instanceId}`;
14749
- }
14750
- function getRenderKey(value) {
14751
- if (value == null)
14752
- return null;
14753
- const type = typeof value;
14754
- if (type === "number")
14755
- return value;
14756
- else if (type === "string")
14757
- return `'${value}'`;
14758
- else if (Array.isArray(value))
14759
- return "Array";
14760
- else
14761
- return "Object";
14762
- }
14763
- function cached(fn) {
14764
- const cache = /* @__PURE__ */ Object.create(null);
14765
- return function cachedFn(str) {
14766
- const hit = cache[str];
14767
- return hit || (cache[str] = fn(str));
14768
- };
14769
- }
14770
- function toUpper(_, c) {
14771
- return c ? c.toUpperCase() : "";
14772
- }
14773
- const camelizeRE = /-(\w)/g;
14774
- const camelize = cached((str) => {
14775
- return str && str.replace(camelizeRE, toUpper);
14776
- });
14777
- const kebabizeRE = /([a-z0-9])([A-Z])/g;
14778
- const kebabize = cached((str) => {
14779
- return str && str.replace(kebabizeRE, (_, lowerCaseCharacter, upperCaseLetter) => {
14780
- return `${lowerCaseCharacter}-${upperCaseLetter}`;
14781
- }).toLowerCase();
14782
- });
14783
- function returnError(cb) {
14784
- try {
14785
- return cb();
14786
- } catch (e) {
14787
- return e;
14788
- }
14789
- }
14790
- const classifyRE = /(?:^|[-_/])(\w)/g;
14791
- const classify = cached((str) => {
14792
- return str && `${str}`.replace(classifyRE, toUpper);
14793
- });
14794
-
14795
- /* Injected with object hook! */
14796
-
14797
14707
  const timelineLayer = ref([]);
14798
14708
  const timelineEvent = ref([]);
14799
- const activeLayerId = ref("performance");
14709
+ const activeLayerId = ref("router");
14800
14710
  const activeTimelineEvents = computed(() => {
14801
14711
  return timelineEvent.value.map((item) => ({ ...item, id: nanoid() })).filter((item) => item.layerId === activeLayerId.value);
14802
14712
  });
@@ -14825,81 +14735,6 @@ const timelineEventDetails = computed(() => {
14825
14735
  value: activeTimelineEvents.value[activeTimelineEventIndex.value]?.event.data
14826
14736
  };
14827
14737
  });
14828
- function addTimelineEvent(event) {
14829
- const [eventType, {
14830
- now,
14831
- app,
14832
- uid,
14833
- component,
14834
- type,
14835
- time,
14836
- sortId
14837
- }] = event;
14838
- const filename = component.type.__name ?? component.type.name ?? getComponentFileName(component.type);
14839
- if (!filename)
14840
- return;
14841
- const item = timelineEvent.value.slice(0).reverse().find((item2) => item2.groupKey === `${uid}-${type}`);
14842
- timelineApi.addTimelineEvent({
14843
- layerId: "performance",
14844
- groupKey: `${uid}-${type}`,
14845
- sortId,
14846
- event: {
14847
- title: filename,
14848
- subtitle: type,
14849
- time,
14850
- now,
14851
- data: {
14852
- component: filename,
14853
- // name,
14854
- type,
14855
- measure: eventType === "perf:start" ? "start" : "end",
14856
- ...eventType === "perf:end" ? { duration: `${time - (item?.event?.time ?? 0)}ms` } : {}
14857
- }
14858
- }
14859
- });
14860
- }
14861
- function initPerfTimeline(events) {
14862
- const performTimelineSortKey = {
14863
- start: -1,
14864
- end: 1
14865
- };
14866
- timelineApi.addTimelineLayer({
14867
- id: "performance",
14868
- label: "Performance"
14869
- });
14870
- events.forEach((event) => {
14871
- addTimelineEvent(event);
14872
- });
14873
- timelineEvent.value = timelineEvent.value.sort((a, b) => a.sortId - b.sortId).sort((a, b) => performTimelineSortKey[a.event.data.measure] - performTimelineSortKey[b.event.data.measure]);
14874
- const client = useDevtoolsClient();
14875
- let sortId = timelineEvent.value.length;
14876
- client.value?.hook?.on("perf:start", (app, uid, component, type, time) => {
14877
- if (component?.root.type?.devtools?.hide)
14878
- return;
14879
- addTimelineEvent(["perf:start", {
14880
- now: Date.now(),
14881
- app,
14882
- uid,
14883
- component,
14884
- type,
14885
- time,
14886
- sortId: sortId++
14887
- }]);
14888
- });
14889
- client.value?.hook?.on("perf:end", (app, uid, component, type, time) => {
14890
- if (component?.root.type?.devtools?.hide)
14891
- return;
14892
- addTimelineEvent(["perf:end", {
14893
- now: Date.now(),
14894
- app,
14895
- uid,
14896
- component,
14897
- type,
14898
- time,
14899
- sortId: sortId++
14900
- }]);
14901
- });
14902
- }
14903
14738
 
14904
14739
  /* Injected with object hook! */
14905
14740
 
@@ -15030,7 +14865,7 @@ function subscribeStore(store) {
15030
14865
  subscribes.value[store.$id].push(stop);
15031
14866
  });
15032
14867
  const subscribe = store.$subscribe(
15033
- ({ events, type }, state) => {
14868
+ ({ events, type }, _) => {
15034
14869
  const eventData = {
15035
14870
  time: Date.now(),
15036
14871
  now: Date.now(),
@@ -15054,7 +14889,7 @@ function subscribeStore(store) {
15054
14889
  { detached: true, flush: "sync" }
15055
14890
  );
15056
14891
  subscribes.value[store.$id].push(subscribe);
15057
- store._hotUpdate = markRaw((newStore) => {
14892
+ store._hotUpdate = markRaw((_) => {
15058
14893
  timeApi.addTimelineEvent({
15059
14894
  layerId: LAYER_ID$1,
15060
14895
  event: {
@@ -15207,7 +15042,7 @@ function produceHook() {
15207
15042
  });
15208
15043
  }
15209
15044
  function ConsumeHook(buffer) {
15210
- buffer.forEach(([eventType, { app, component }]) => {
15045
+ buffer.forEach(([_, { app, component }]) => {
15211
15046
  updatePinia(component);
15212
15047
  updateApp(app, component);
15213
15048
  });
@@ -15397,7 +15232,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15397
15232
  const hookBuffer = client.value.hookBuffer;
15398
15233
  client.value.markClientLoaded();
15399
15234
  hookApi.produce();
15400
- initPerfTimeline(hookBuffer.filter(([type]) => type.startsWith("perf:")));
15401
15235
  hookApi.consume(hookBuffer.filter(([type]) => type.startsWith("component:")));
15402
15236
  initRoutes();
15403
15237
  initPinia();
@@ -15424,6 +15258,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15424
15258
  document.body.style.fontSize = `${scale.value * 15}px`;
15425
15259
  });
15426
15260
  });
15261
+ useEventListener("keydown", (e) => {
15262
+ if (e.code === "KeyD" && e.altKey && e.shiftKey) {
15263
+ const client = useDevtoolsClient();
15264
+ client.value?.panel?.toggle();
15265
+ }
15266
+ });
15427
15267
  router.replace(_route.value);
15428
15268
  return (_ctx, _cache) => {
15429
15269
  const _component_SideNav = _sfc_main$1;
@@ -15482,4 +15322,4 @@ app.mount("#app");
15482
15322
 
15483
15323
  /* Injected with object hook! */
15484
15324
 
15485
- export { __unplugin_components_1 as $, onMounted as A, onUnmounted as B, timelineLayer as C, activeTimelineEvents as D, activeTimelineEventIndex as E, Fragment as F, toggleTimelineEventIndex as G, timelineEventDetails as H, activeLayerId as I, toggleTimelineLayer as J, useVModel as K, vModelSelect as L, isRef as M, vModelCheckbox as N, withKeys as O, useTabs as P, useCategorizedTabs as Q, createTextVNode as R, useDevToolsSettings as S, _sfc_main$3 as T, _sfc_main$5 as U, router$1 as V, routeRecordMatcherState as W, activeRouteRecordMatcherState as X, activeRouteRecordIndex as Y, toggleRouteRecordMatcher as Z, _sfc_main$9 as _, popScopeId as a, ref as a0, computed as a1, piniaStoresCategory as a2, toRaw as a3, piniaState as a4, piniaGetters as a5, withModifiers as a6, currentRoute as a7, routes as a8, vueVersion as a9, Transition as aA, useStyleTag as aB, computedAsync as aC, useTimeAgo as aD, onKeyDown as aE, _export_sfc as aF, vModelDynamic as aG, __vitePreload as aH, useEventListener as aI, useDevtoolsClient as aJ, __unplugin_components_0 as aa, useColorMode as ab, reactive as ac, useElementBounding as ad, watchEffect as ae, useStorage as af, vModelText as ag, useDark as ah, watch as ai, getInstanceName as aj, classify as ak, kebabize as al, isFragment as am, camelize as an, returnError as ao, isBeingDestroyed as ap, getUniqueComponentId as aq, getRenderKey as ar, shallowRef as as, onVueInstanceUpdate as at, instance as au, nanoid as av, vShow as aw, h as ax, useElementSize as ay, onClickOutside as az, resolveDirective as b, createBlock as c, withDirectives as d, createElementBlock as e, renderSlot as f, createCommentVNode as g, withCtx as h, renderList as i, resolveDynamicComponent as j, mergeProps as k, normalizeStyle as l, markRaw as m, nextTick as n, openBlock as o, pushScopeId as p, normalizeClass as q, resolveComponent as r, shallowReactive as s, toHandlers as t, createVNode as u, defineComponent as v, withScopeId as w, createBaseVNode as x, toDisplayString as y, unref as z };
15325
+ export { ref as $, onMounted as A, onUnmounted as B, timelineLayer as C, activeTimelineEvents as D, activeTimelineEventIndex as E, Fragment as F, toggleTimelineEventIndex as G, timelineEventDetails as H, activeLayerId as I, toggleTimelineLayer as J, useVModel as K, vModelSelect as L, isRef as M, vModelCheckbox as N, withKeys as O, useCategorizedTabs as P, createTextVNode as Q, useDevToolsSettings as R, _sfc_main$3 as S, _sfc_main$5 as T, router$1 as U, routeRecordMatcherState as V, activeRouteRecordMatcherState as W, activeRouteRecordIndex as X, toggleRouteRecordMatcher as Y, __unplugin_components_1 as Z, _sfc_main$9 as _, popScopeId as a, computed as a0, piniaStoresCategory as a1, toRaw as a2, piniaState as a3, piniaGetters as a4, withModifiers as a5, currentRoute as a6, routes as a7, vueVersion as a8, __unplugin_components_0 as a9, useColorMode as aa, reactive as ab, useElementBounding as ac, watchEffect as ad, useStorage as ae, vModelText as af, useDark as ag, watch as ah, shallowRef as ai, onVueInstanceUpdate as aj, instance as ak, nanoid as al, vShow as am, h as an, useElementSize as ao, onClickOutside as ap, Transition as aq, useStyleTag as ar, computedAsync as as, useTimeAgo as at, onKeyDown as au, _export_sfc as av, vModelDynamic as aw, __vitePreload as ax, useEventListener as ay, useDevtoolsClient as az, resolveDirective as b, createBlock as c, withDirectives as d, createElementBlock as e, renderSlot as f, createCommentVNode as g, withCtx as h, renderList as i, resolveDynamicComponent as j, mergeProps as k, normalizeStyle as l, markRaw as m, nextTick as n, openBlock as o, pushScopeId as p, normalizeClass as q, resolveComponent as r, shallowReactive as s, toHandlers as t, createVNode as u, defineComponent as v, withScopeId as w, createBaseVNode as x, toDisplayString as y, unref as z };
@@ -0,0 +1,45 @@
1
+ import { M as isRef } from './index-2a1677bb.js';
2
+
3
+ const objectToString = Object.prototype.toString;
4
+ function toTypeString(value) {
5
+ return objectToString.call(value);
6
+ }
7
+ function toRawType(value) {
8
+ return toTypeString(value).slice(8, -1);
9
+ }
10
+ function isPlainObject(val) {
11
+ return toTypeString(val) === "[object Object]";
12
+ }
13
+ const isArray = Array.isArray;
14
+ function isMap(val) {
15
+ return toTypeString(val) === "[object Map]";
16
+ }
17
+ function isSet(val) {
18
+ return toTypeString(val) === "[object Set]";
19
+ }
20
+ function isRegExp(val) {
21
+ return toTypeString(val) === "[object RegExp]";
22
+ }
23
+ function isComputed(raw) {
24
+ return isRef(raw) && !!raw.effect;
25
+ }
26
+ const ESC = {
27
+ "<": "&lt;",
28
+ ">": "&gt;",
29
+ '"': "&quot;",
30
+ "&": "&amp;"
31
+ };
32
+ function escapeChar(a) {
33
+ return ESC[a] || a;
34
+ }
35
+ function escape(s) {
36
+ return s.replace(/[<>"&]/g, escapeChar);
37
+ }
38
+ function isMacOS() {
39
+ return navigator?.platform ? navigator?.platform.toLowerCase().includes("mac") : /Macintosh/.test(navigator.userAgent);
40
+ }
41
+ const pick = (obj, keys) => keys.reduce((pre, cur) => (cur in obj && (pre[cur] = obj[cur]), pre), {});
42
+
43
+ /* Injected with object hook! */
44
+
45
+ export { isComputed as a, isArray as b, isMap as c, isSet as d, isRegExp as e, isPlainObject as f, escape as g, isMacOS as i, pick as p, toRawType as t };