vite-plugin-vue-devtools 0.4.12 → 0.5.0

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 (34) hide show
  1. package/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-97a0e754.js → IframeView.vue_vue_type_script_setup_true_lang-c6f176d1.js} +1 -1
  2. package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-dd6974e1.js → StateFields.vue_vue_type_script_setup_true_lang-617e4d70.js} +20 -5
  3. package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js → VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js} +1 -1
  4. package/dist/client/assets/{VIconButton.vue_vue_type_script_setup_true_lang-4054707d.js → VIconButton.vue_vue_type_script_setup_true_lang-63abce3f.js} +2 -2
  5. package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-4531a0e4.js → VIconTitle.vue_vue_type_script_setup_true_lang-1ad26587.js} +1 -1
  6. package/dist/client/assets/{VPanelGrids-ea9ac4bd.js → VPanelGrids-4b915e62.js} +1 -1
  7. package/dist/client/assets/{VSectionBlock-0d870ae2.js → VSectionBlock-8dcfb48d.js} +3 -3
  8. package/dist/client/assets/{VSwitch.vue_vue_type_script_setup_true_lang-dc4a336f.js → VSwitch.vue_vue_type_script_setup_true_lang-ed954339.js} +2 -2
  9. package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-cd591fdb.js → VTextInput.vue_vue_type_script_setup_true_lang-5edeb245.js} +2 -2
  10. package/dist/client/assets/{__eyedropper-41422dc8.js → __eyedropper-67c21231.js} +23 -9
  11. package/dist/client/assets/{assets-fc847d7b.js → assets-bf6dd9e4.js} +9 -9
  12. package/dist/client/assets/{component-docs-b0456b1b.js → component-docs-b2752be1.js} +5 -5
  13. package/dist/client/assets/{components-41827ea5.js → components-c9aae4bc.js} +115 -11
  14. package/dist/client/assets/{documentations-e948ad25.js → documentations-e0b483de.js} +3 -3
  15. package/dist/client/assets/{graph-ed9ec08f.js → graph-f081d3a5.js} +4 -4
  16. package/dist/client/assets/{index-d268ce4d.js → index-197edebf.js} +2832 -2625
  17. package/dist/client/assets/{index-fb7e673c.js → index-f977bcde.js} +1 -1
  18. package/dist/client/assets/index-fb18df65.css +474 -0
  19. package/dist/client/assets/{inspect-4e046378.js → inspect-8d04bb08.js} +3 -3
  20. package/dist/client/assets/{npm-81f351e2.js → npm-73c6479f.js} +9 -9
  21. package/dist/client/assets/{overview-9d7f0c3c.js → overview-edc8c0a8.js} +5 -5
  22. package/dist/client/assets/{pages-7d46ae82.js → pages-562d1ae5.js} +8 -8
  23. package/dist/client/assets/{pinia-c576b594.js → pinia-89f6b4c0.js} +12 -9
  24. package/dist/client/assets/{routes-56017e0a.js → routes-ddddc2d7.js} +14 -11
  25. package/dist/client/assets/{rpc-6c4cc8d5.js → rpc-b9c94a3a.js} +1 -1
  26. package/dist/client/assets/{settings-4e36485a.js → settings-7722ba4d.js} +24 -41
  27. package/dist/client/assets/{splitpanes.es-db7e975b.js → splitpanes.es-2f5182b4.js} +1 -1
  28. package/dist/client/assets/{timeline-0fd22aff.js → timeline-bc5ea36f.js} +8 -8
  29. package/dist/client/index.html +2 -2
  30. package/package.json +19 -18
  31. package/src/node/views/ComponentInspector.vue +67 -0
  32. package/src/node/views/Main.vue +10 -5
  33. package/src/node/views/composables.ts +40 -0
  34. package/dist/client/assets/index-8135098e.css +0 -474
@@ -1,4 +1,4 @@
1
- import { v as defineComponent, cm as useColorMode, a$ as ref, a1 as computed, aZ as reactive, cn as useElementBounding, aP as onMounted, n as nextTick, bz as watchEffect, aU as onUnmounted, o as openBlock, e as createElementBlock, z as unref, g as createCommentVNode, x as createBaseVNode } from './index-d268ce4d.js';
1
+ import { v as defineComponent, ck as useColorMode, a$ as ref, a1 as computed, aZ as reactive, cl as useElementBounding, aP as onMounted, n as nextTick, bz as watchEffect, aU as onUnmounted, o as openBlock, e as createElementBlock, z as unref, g as createCommentVNode, x as createBaseVNode } from './index-197edebf.js';
2
2
 
3
3
  const _hoisted_1 = {
4
4
  key: 0,
@@ -1,7 +1,7 @@
1
- import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js';
2
- import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, aC as isRef, bd as toRaw, a1 as computed, cq as useCopy, r as resolveComponent, e as createElementBlock, i as renderList, z as unref, cr as nanoid, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, F as Fragment, a$ as ref, u as createVNode, bG as withModifiers, d as withDirectives, bv as vShow } from './index-d268ce4d.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-fb7e673c.js';
4
- import { _ as _sfc_main$4 } from './VIconButton.vue_vue_type_script_setup_true_lang-4054707d.js';
1
+ import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
2
+ import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, aC as isRef, bd as toRaw, a1 as computed, cp as useCopy, r as resolveComponent, e as createElementBlock, i as renderList, z as unref, cq as nanoid, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, F as Fragment, a$ as ref, cr as useNotification, u as createVNode, bG as withModifiers, d as withDirectives, bv as vShow } from './index-197edebf.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-f977bcde.js';
4
+ import { _ as _sfc_main$4 } from './VIconButton.vue_vue_type_script_setup_true_lang-63abce3f.js';
5
5
 
6
6
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7
7
  __name: "VExpandIcon",
@@ -312,6 +312,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
312
312
  setup(__props) {
313
313
  const isExpanded = ref(true);
314
314
  const copy = useCopy();
315
+ const showNotification = useNotification();
315
316
  function toggleExpanded() {
316
317
  isExpanded.value = !isExpanded.value;
317
318
  }
@@ -321,6 +322,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
321
322
  else
322
323
  expandedIdCache.value.push(id);
323
324
  }
325
+ function copyContent(value) {
326
+ try {
327
+ copy(JSON.stringify(value));
328
+ } catch (e) {
329
+ showNotification(
330
+ {
331
+ text: e.message,
332
+ type: "error",
333
+ icon: "carbon-close-outline",
334
+ duration: 5e3
335
+ }
336
+ );
337
+ }
338
+ }
324
339
  return (_ctx, _cache) => {
325
340
  const _component_VExpandIcon = _sfc_main$2;
326
341
  const _component_VIconButton = _sfc_main$4;
@@ -345,7 +360,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
345
360
  "flex-none": "",
346
361
  title: `Copy ${_ctx.data.key} to clipboard`,
347
362
  icon: "carbon-copy",
348
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => unref(copy)(JSON.stringify(_ctx.data.value)), ["stop"]))
363
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => copyContent(_ctx.data.value), ["stop"]))
349
364
  }, null, 8, ["title"])
350
365
  ]),
351
366
  withDirectives(createBaseVNode("div", _hoisted_2, [
@@ -1,4 +1,4 @@
1
- import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass } from './index-d268ce4d.js';
1
+ import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass } from './index-197edebf.js';
2
2
 
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "VIcon",
@@ -1,5 +1,5 @@
1
- import { _ as _sfc_main$1 } from './VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js';
2
- import { v as defineComponent, o as openBlock, c as createBlock, h as withCtx, u as createVNode, k as mergeProps, j as resolveDynamicComponent } from './index-d268ce4d.js';
1
+ import { _ as _sfc_main$1 } from './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
2
+ import { v as defineComponent, o as openBlock, c as createBlock, h as withCtx, u as createVNode, k as mergeProps, j as resolveDynamicComponent } from './index-197edebf.js';
3
3
 
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "VIconButton",
@@ -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-d268ce4d.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-197edebf.js';
2
2
 
3
3
  const _hoisted_1 = {
4
4
  flex: "~ gap-3",
@@ -1,4 +1,4 @@
1
- import { bJ as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-d268ce4d.js';
1
+ import { bJ as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-197edebf.js';
2
2
 
3
3
  /* unplugin-vue-components disabled */const _sfc_main = {};
4
4
 
@@ -1,6 +1,6 @@
1
- import { _ as _sfc_main$1 } from './VIconTitle.vue_vue_type_script_setup_true_lang-4531a0e4.js';
2
- import { _ as _sfc_main$2 } from './VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js';
3
- import { v as defineComponent, bK as useVModel, b as resolveDirective, 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, a9 as createTextVNode, y as toDisplayString, p as pushScopeId, a as popScopeId, bJ as _export_sfc } from './index-d268ce4d.js';
1
+ import { _ as _sfc_main$1 } from './VIconTitle.vue_vue_type_script_setup_true_lang-1ad26587.js';
2
+ import { _ as _sfc_main$2 } from './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
3
+ import { v as defineComponent, bK as useVModel, b as resolveDirective, 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, a9 as createTextVNode, y as toDisplayString, p as pushScopeId, a as popScopeId, bJ as _export_sfc } from './index-197edebf.js';
4
4
 
5
5
  const _withScopeId = (n) => (pushScopeId("data-v-cf2e46eb"), n = n(), popScopeId(), n);
6
6
  const _hoisted_1 = ["open"];
@@ -1,5 +1,5 @@
1
- import { _ as _sfc_main$2 } from './VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js';
2
- import { v as defineComponent, bK as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, bt as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, aC as isRef, c as createBlock, bq as vModelCheckbox, bE as withKeys } from './index-d268ce4d.js';
1
+ import { _ as _sfc_main$2 } from './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
2
+ import { v as defineComponent, bK as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, bt as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, aC as isRef, c as createBlock, bq as vModelCheckbox, bE as withKeys } from './index-197edebf.js';
3
3
 
4
4
  const _hoisted_1$1 = { 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" };
5
5
  const _hoisted_2$1 = ["disabled"];
@@ -1,5 +1,5 @@
1
- import { _ as _sfc_main$1 } from './VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js';
2
- import { v as defineComponent, bK as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, br as vModelDynamic, z as unref, x as createBaseVNode, k as mergeProps, aC as isRef, c as createBlock, g as createCommentVNode } from './index-d268ce4d.js';
1
+ import { _ as _sfc_main$1 } from './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
2
+ import { v as defineComponent, bK as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, br as vModelDynamic, z as unref, x as createBaseVNode, k as mergeProps, aC as isRef, c as createBlock, g as createCommentVNode } from './index-197edebf.js';
3
3
 
4
4
  const _hoisted_1 = { class: "n-text-input flex flex items-center border n-border-base rounded py-1 pl-1 pr-2 focus-within:n-focus-base focus-within:border-context n-bg-base" };
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,6 +1,6 @@
1
- import { _ as __unplugin_components_0 } from './VPanelGrids-ea9ac4bd.js';
2
- import { v as defineComponent, cz as useRouter, a$ as ref, cd as useEventListener, aP as onMounted, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, z as unref, e as createElementBlock, l as normalizeStyle, a9 as createTextVNode, y as toDisplayString, cl as useDevtoolsClient, bY as useFrameState, u as createVNode } from './index-d268ce4d.js';
3
- import { h as checkIsSecurityContext } from './index-fb7e673c.js';
1
+ import { _ as __unplugin_components_0 } from './VPanelGrids-4b915e62.js';
2
+ import { v as defineComponent, cz as useRouter, a$ as ref, a1 as computed, cp as useCopy, cb as useEventListener, aP as onMounted, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, z as unref, e as createElementBlock, l as normalizeStyle, a9 as createTextVNode, y as toDisplayString, cj as useDevtoolsClient, bX as useFrameState, u as createVNode } from './index-197edebf.js';
3
+ import { h as checkIsSecurityContext } from './index-f977bcde.js';
4
4
 
5
5
  const _hoisted_1 = {
6
6
  key: 0
@@ -28,7 +28,16 @@ const _sfc_main = /*#__PURE__*/defineComponent({
28
28
  const client = useDevtoolsClient();
29
29
  const frameState = useFrameState();
30
30
  const router = useRouter();
31
- const color = ref('');
31
+ const hexColor = ref('');
32
+ const showHex = ref(true);
33
+ const color = computed(() => showHex.value ? hexColor.value : hexToRgb(hexColor.value));
34
+ const copy = useCopy();
35
+ function getDecimal(hex, start, end) {
36
+ return Number.parseInt(hex.slice(start, end), 16);
37
+ }
38
+ function hexToRgb(hex) {
39
+ return hex ? `rgb(${getDecimal(hex, 1, 3)},${getDecimal(hex, 3, 5)},${getDecimal(hex, 5, 7)})` : '';
40
+ }
32
41
  useEventListener('keydown', e => {
33
42
  if (e.key === 'Escape') close();
34
43
  });
@@ -47,14 +56,14 @@ const _sfc_main = /*#__PURE__*/defineComponent({
47
56
  return eyeDropper.open();
48
57
  }
49
58
  async function restart() {
50
- color.value = '';
59
+ hexColor.value = '';
51
60
  open().then(res => {
52
- color.value = res.sRGBHex;
61
+ hexColor.value = res.sRGBHex;
53
62
  });
54
63
  }
55
64
  onMounted(() => {
56
65
  open().then(res => {
57
- color.value = res.sRGBHex;
66
+ hexColor.value = res.sRGBHex;
58
67
  });
59
68
  });
60
69
  function ErrorBoundary() {
@@ -103,10 +112,15 @@ const _sfc_main = /*#__PURE__*/defineComponent({
103
112
  border: "",
104
113
  "border-base": "",
105
114
  rounded: "",
115
+ hover: "cursor-pointer border-primary",
106
116
  style: normalizeStyle({
107
117
  backgroundColor: unref(color)
108
- })
109
- }, null, 4), createTextVNode(" : " + toDisplayString(unref(color)), 1)]), createBaseVNode("span", {
118
+ }),
119
+ onClick: _cache[0] || (_cache[0] = $event => showHex.value = !unref(showHex))
120
+ }, null, 4), createTextVNode(" : "), createBaseVNode("span", {
121
+ hover: "underline underline-offset-3 cursor-pointer",
122
+ onClick: _cache[1] || (_cache[1] = $event => unref(copy)(unref(color)))
123
+ }, toDisplayString(unref(color)), 1)]), createBaseVNode("span", {
110
124
  "ml-2": "",
111
125
  flex: "",
112
126
  "cursor-pointer": "",
@@ -1,12 +1,12 @@
1
- import { _ as __unplugin_components_0 } from './VPanelGrids-ea9ac4bd.js';
2
- import { v as defineComponent, a$ as ref, cs as useElementSize, ct as onClickOutside, o as openBlock, c as createBlock, h as withCtx, e as createElementBlock, u as createVNode, x as createBaseVNode, f as renderSlot, k as mergeProps, z as unref, g as createCommentVNode, P as Transition, a1 as computed, y as toDisplayString, q as normalizeClass, cu as useStyleTag, l as normalizeStyle, cv as computedAsync, cq as useCopy, cw as useTimeAgo, F as Fragment, a9 as createTextVNode, cl as useDevtoolsClient, bL as _sfc_main$a, cx as onKeyDown, aC as isRef, i as renderList, _ as __unplugin_components_7 } from './index-d268ce4d.js';
3
- import { _ as _sfc_main$9 } from './VIconButton.vue_vue_type_script_setup_true_lang-4054707d.js';
4
- import { r as rpc } from './rpc-6c4cc8d5.js';
5
- import { _ as __unplugin_components_3 } from './VSectionBlock-0d870ae2.js';
6
- import { _ as _sfc_main$b } from './VTextInput.vue_vue_type_script_setup_true_lang-cd591fdb.js';
7
- import { _ as _sfc_main$c } from './VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js';
1
+ import { _ as __unplugin_components_0 } from './VPanelGrids-4b915e62.js';
2
+ import { v as defineComponent, a$ as ref, cs as useElementSize, ct as onClickOutside, o as openBlock, c as createBlock, h as withCtx, e as createElementBlock, u as createVNode, x as createBaseVNode, f as renderSlot, k as mergeProps, z as unref, g as createCommentVNode, P as Transition, a1 as computed, y as toDisplayString, q as normalizeClass, cu as useStyleTag, l as normalizeStyle, cv as computedAsync, cp as useCopy, cw as useTimeAgo, F as Fragment, a9 as createTextVNode, cj as useDevtoolsClient, bL as _sfc_main$a, cx as onKeyDown, aC as isRef, i as renderList, _ as __unplugin_components_7 } from './index-197edebf.js';
3
+ import { _ as _sfc_main$9 } from './VIconButton.vue_vue_type_script_setup_true_lang-63abce3f.js';
4
+ import { r as rpc } from './rpc-b9c94a3a.js';
5
+ import { _ as __unplugin_components_3 } from './VSectionBlock-8dcfb48d.js';
6
+ import { _ as _sfc_main$b } from './VTextInput.vue_vue_type_script_setup_true_lang-5edeb245.js';
7
+ import { _ as _sfc_main$c } from './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
8
8
  import { F as Fuse } from './fuse.esm-c317b696.js';
9
- import './VIconTitle.vue_vue_type_script_setup_true_lang-4531a0e4.js';
9
+ import './VIconTitle.vue_vue_type_script_setup_true_lang-1ad26587.js';
10
10
 
11
11
  const _hoisted_1$7 = {
12
12
  relative: "",
@@ -763,8 +763,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
763
763
  createBaseVNode("pre", {
764
764
  "max-h-10rem": "",
765
765
  "of-hidden": "",
766
- "font-mono": "",
767
766
  "text-xs": "",
767
+ "font-mono": "",
768
768
  textContent: toDisplayString(_ctx.textContent)
769
769
  }, null, 8, _hoisted_5$2)
770
770
  ])) : (openBlock(), createElementBlock("div", _hoisted_6$2))