vite-plugin-vue-devtools 0.4.14 → 0.5.1
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.
- package/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-a1185393.js → IframeView.vue_vue_type_script_setup_true_lang-8e5b8335.js} +1 -1
- package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-400324ec.js → StateFields.vue_vue_type_script_setup_true_lang-fe7c7e4d.js} +20 -5
- package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-53acfb91.js → VIcon.vue_vue_type_script_setup_true_lang-3e22beca.js} +1 -1
- package/dist/client/assets/{VIconButton.vue_vue_type_script_setup_true_lang-64de857d.js → VIconButton.vue_vue_type_script_setup_true_lang-ff741416.js} +2 -2
- package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-47b8a07a.js → VIconTitle.vue_vue_type_script_setup_true_lang-02e99d8a.js} +1 -1
- package/dist/client/assets/{VPanelGrids-6b407e75.js → VPanelGrids-885eb297.js} +1 -1
- package/dist/client/assets/{VSectionBlock-bada460c.js → VSectionBlock-2f35c742.js} +3 -3
- package/dist/client/assets/{VSwitch.vue_vue_type_script_setup_true_lang-9db804e8.js → VSwitch.vue_vue_type_script_setup_true_lang-a0d66c22.js} +2 -2
- package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-1ec609c7.js → VTextInput.vue_vue_type_script_setup_true_lang-ae0954a4.js} +2 -2
- package/dist/client/assets/{__eyedropper-c919226e.js → __eyedropper-4021b943.js} +24 -10
- package/dist/client/assets/{assets-09e0693c.js → assets-02a93a40.js} +10 -10
- package/dist/client/assets/{component-docs-554bae64.js → component-docs-add44d87.js} +5 -5
- package/dist/client/assets/{components-81f4a69f.js → components-c141317d.js} +233 -16
- package/dist/client/assets/{documentations-cee1b26d.js → documentations-30350ca6.js} +3 -3
- package/dist/client/assets/{graph-b9e616a5.js → graph-ca7151be.js} +5 -5
- package/dist/client/assets/{index-07eaeded.js → index-133eebe9.js} +1 -1
- package/dist/client/assets/{index-12ebe994.js → index-14f26dd8.js} +2818 -2576
- package/dist/client/assets/index-d3dcbe9e.css +474 -0
- package/dist/client/assets/{inspect-517cfc3b.js → inspect-5ed32f17.js} +3 -3
- package/dist/client/assets/{npm-5ff3b150.js → npm-804ed8d6.js} +9 -9
- package/dist/client/assets/{overview-ddb35c98.js → overview-84e0d21c.js} +5 -5
- package/dist/client/assets/{pages-0f764a73.js → pages-6df9c706.js} +8 -8
- package/dist/client/assets/{pinia-68a51789.js → pinia-760b2ad2.js} +6 -6
- package/dist/client/assets/{routes-f7af2877.js → routes-6636ff43.js} +7 -7
- package/dist/client/assets/{rpc-97467545.js → rpc-acb85b35.js} +1 -1
- package/dist/client/assets/{settings-f852d24f.js → settings-85b594bd.js} +9 -9
- package/dist/client/assets/{splitpanes.es-56cabd81.js → splitpanes.es-34ce2868.js} +1 -1
- package/dist/client/assets/{timeline-28278daa.js → timeline-34b2c182.js} +7 -7
- package/dist/client/index.html +2 -2
- package/package.json +17 -17
- package/src/node/views/ComponentInspector.vue +67 -0
- package/src/node/views/Main.vue +25 -2
- package/src/node/views/composables.ts +40 -0
- package/dist/client/assets/index-8fbe34c5.css +0 -474
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-14f26dd8.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-
|
|
2
|
-
import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, aC as isRef, bd as toRaw, a1 as computed,
|
|
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-
|
|
4
|
-
import { _ as _sfc_main$4 } from './VIconButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-3e22beca.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-14f26dd8.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-133eebe9.js';
|
|
4
|
+
import { _ as _sfc_main$4 } from './VIconButton.vue_vue_type_script_setup_true_lang-ff741416.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) =>
|
|
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-
|
|
1
|
+
import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass } from './index-14f26dd8.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-
|
|
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-
|
|
1
|
+
import { _ as _sfc_main$1 } from './VIcon.vue_vue_type_script_setup_true_lang-3e22beca.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-14f26dd8.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-
|
|
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-14f26dd8.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-
|
|
1
|
+
import { bJ as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-14f26dd8.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-
|
|
2
|
-
import { _ as _sfc_main$2 } from './VIcon.vue_vue_type_script_setup_true_lang-
|
|
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-
|
|
1
|
+
import { _ as _sfc_main$1 } from './VIconTitle.vue_vue_type_script_setup_true_lang-02e99d8a.js';
|
|
2
|
+
import { _ as _sfc_main$2 } from './VIcon.vue_vue_type_script_setup_true_lang-3e22beca.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-14f26dd8.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-
|
|
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-
|
|
1
|
+
import { _ as _sfc_main$2 } from './VIcon.vue_vue_type_script_setup_true_lang-3e22beca.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-14f26dd8.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-
|
|
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-
|
|
1
|
+
import { _ as _sfc_main$1 } from './VIcon.vue_vue_type_script_setup_true_lang-3e22beca.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-14f26dd8.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-
|
|
2
|
-
import { v as defineComponent,
|
|
3
|
-
import { h as checkIsSecurityContext } from './index-
|
|
1
|
+
import { _ as __unplugin_components_0 } from './VPanelGrids-885eb297.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-14f26dd8.js';
|
|
3
|
+
import { h as checkIsSecurityContext } from './index-133eebe9.js';
|
|
4
4
|
|
|
5
5
|
const _hoisted_1 = {
|
|
6
6
|
key: 0
|
|
@@ -25,10 +25,19 @@ const _hoisted_6 = [_hoisted_5];
|
|
|
25
25
|
const _sfc_main = /*#__PURE__*/defineComponent({
|
|
26
26
|
__name: '__eyedropper',
|
|
27
27
|
setup(__props) {
|
|
28
|
-
const client =
|
|
28
|
+
const client = useDevToolsClient();
|
|
29
29
|
const frameState = useFrameState();
|
|
30
30
|
const router = useRouter();
|
|
31
|
-
const
|
|
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
|
-
|
|
59
|
+
hexColor.value = '';
|
|
51
60
|
open().then(res => {
|
|
52
|
-
|
|
61
|
+
hexColor.value = res.sRGBHex;
|
|
53
62
|
});
|
|
54
63
|
}
|
|
55
64
|
onMounted(() => {
|
|
56
65
|
open().then(res => {
|
|
57
|
-
|
|
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
|
-
|
|
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-
|
|
2
|
-
import { v as defineComponent, a$ as ref,
|
|
3
|
-
import { _ as _sfc_main$9 } from './VIconButton.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { r as rpc } from './rpc-
|
|
5
|
-
import { _ as __unplugin_components_3 } from './VSectionBlock-
|
|
6
|
-
import { _ as _sfc_main$b } from './VTextInput.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as _sfc_main$c } from './VIcon.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as __unplugin_components_0 } from './VPanelGrids-885eb297.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-14f26dd8.js';
|
|
3
|
+
import { _ as _sfc_main$9 } from './VIconButton.vue_vue_type_script_setup_true_lang-ff741416.js';
|
|
4
|
+
import { r as rpc } from './rpc-acb85b35.js';
|
|
5
|
+
import { _ as __unplugin_components_3 } from './VSectionBlock-2f35c742.js';
|
|
6
|
+
import { _ as _sfc_main$b } from './VTextInput.vue_vue_type_script_setup_true_lang-ae0954a4.js';
|
|
7
|
+
import { _ as _sfc_main$c } from './VIcon.vue_vue_type_script_setup_true_lang-3e22beca.js';
|
|
8
8
|
import { F as Fuse } from './fuse.esm-c317b696.js';
|
|
9
|
-
import './VIconTitle.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import './VIconTitle.vue_vue_type_script_setup_true_lang-02e99d8a.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))
|
|
@@ -943,7 +943,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
943
943
|
"font"
|
|
944
944
|
].includes(props.asset.type);
|
|
945
945
|
});
|
|
946
|
-
const client =
|
|
946
|
+
const client = useDevToolsClient();
|
|
947
947
|
return (_ctx, _cache) => {
|
|
948
948
|
const _component_AssetPreview = _sfc_main$5;
|
|
949
949
|
const _component_FilepathItem = _sfc_main$7;
|