vite-plugin-vue-devtools 1.0.0-beta.5 → 1.0.0-rc.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 (43) hide show
  1. package/README.md +2 -1
  2. package/README.zh-CN.md +2 -1
  3. package/client.d.ts +10 -0
  4. package/dist/client/assets/DrawerRight.vue_vue_type_script_setup_true_lang-1c7d425a.js +81 -0
  5. package/dist/client/assets/{Icon.vue_vue_type_script_setup_true_lang-d08cd842.js → Icon.vue_vue_type_script_setup_true_lang-9de05d3b.js} +1 -1
  6. package/dist/client/assets/{IconButton.vue_vue_type_script_setup_true_lang-4cfd93a4.js → IconButton.vue_vue_type_script_setup_true_lang-622357e4.js} +2 -2
  7. package/dist/client/assets/{IconTitle.vue_vue_type_script_setup_true_lang-49104706.js → IconTitle.vue_vue_type_script_setup_true_lang-bcafabb3.js} +1 -1
  8. package/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-44366dc8.js → IframeView.vue_vue_type_script_setup_true_lang-b73dcd77.js} +1 -1
  9. package/dist/client/assets/{PanelGrids-ed6a1457.js → PanelGrids-c56fbbf0.js} +1 -1
  10. package/dist/client/assets/{SectionBlock-13c3495f.js → SectionBlock-9ede7475.js} +3 -3
  11. package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-26d7d382.js → StateFields.vue_vue_type_script_setup_true_lang-161af888.js} +4 -4
  12. package/dist/client/assets/{Switch.vue_vue_type_script_setup_true_lang-32354ae4.js → Switch.vue_vue_type_script_setup_true_lang-748b1466.js} +2 -2
  13. package/dist/client/assets/{TextInput.vue_vue_type_script_setup_true_lang-d100073c.js → TextInput.vue_vue_type_script_setup_true_lang-d27ac230.js} +2 -2
  14. package/dist/client/assets/{__eyedropper-7b934b64.js → __eyedropper-b5ed0401.js} +3 -3
  15. package/dist/client/assets/{assets-0f9235a3.js → assets-89b84b37.js} +250 -124
  16. package/dist/client/assets/component-docs-6e4ea513.js +196 -0
  17. package/dist/client/assets/{components-e048284d.js → components-2c9b75a9.js} +56 -29
  18. package/dist/client/assets/{data-37773a62.js → data-81561f44.js} +1 -1
  19. package/dist/client/assets/{documentations-6fd78b0c.js → documentations-a46fb478.js} +3 -8
  20. package/dist/client/assets/{graph-23026554.js → graph-be701e92.js} +3 -3
  21. package/dist/client/assets/{index-c2b0ba3e.js → index-2db58fe3.js} +265 -132
  22. package/dist/client/assets/{index-b327a261.js → index-4023636e.js} +1 -1
  23. package/dist/client/assets/index-676da66b.css +480 -0
  24. package/dist/client/assets/{inspect-9bd11a46.js → inspect-da0c5569.js} +2 -2
  25. package/dist/client/assets/{component-docs-516f2bde.js → jse-theme-dark-240b48cd.js} +2 -194
  26. package/dist/client/assets/{npm-c03c6e14.js → npm-a20081f9.js} +5 -5
  27. package/dist/client/assets/{overview-dfa4c675.js → overview-77b33c1a.js} +4 -4
  28. package/dist/client/assets/{pages-09d83e7f.js → pages-bb7b4a52.js} +101 -13
  29. package/dist/client/assets/{pinia-84d8d62d.js → pinia-a88c92af.js} +6 -6
  30. package/dist/client/assets/{rerender-trace-ce322913.js → rerender-trace-d5598a03.js} +2 -2
  31. package/dist/client/assets/{routes-a1298ce3.js → routes-678fe5ea.js} +7 -7
  32. package/dist/client/assets/{settings-2ebfa83e.js → settings-26a733d8.js} +51 -14
  33. package/dist/client/assets/{splitpanes.es-695b5d63.js → splitpanes.es-25f54bfc.js} +1 -1
  34. package/dist/client/assets/{timeline-052b0db1.js → timeline-1fccb3ee.js} +7 -7
  35. package/dist/client/index.html +2 -2
  36. package/dist/vite.cjs +36 -5
  37. package/dist/vite.mjs +36 -5
  38. package/package.json +8 -8
  39. package/src/views/FrameBox.vue +23 -4
  40. package/src/views/Main.vue +47 -21
  41. package/src/views/composables.ts +59 -1
  42. package/dist/client/assets/index-f4f0a93b.css +0 -480
  43. /package/dist/client/assets/{component-docs-351d62d5.css → jse-theme-dark-351d62d5.css} +0 -0
package/README.md CHANGED
@@ -17,7 +17,8 @@ English | <a href="./README.zh-CN.md">简体中文</a>
17
17
 
18
18
  <p align="center">
19
19
  <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/1">💡 Ideas & Suggestions</a> |
20
- <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/2">🗺️ Project Roadmap</a>
20
+ <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/2">🗺️ Project Roadmap</a> |
21
+ <a href="https://discord.gg/sHyy7gVPUG">🧑‍💻 Discord Channel</a>
21
22
  </p>
22
23
 
23
24
  <p align="center">
package/README.zh-CN.md CHANGED
@@ -17,7 +17,8 @@ Vue DevTools <sup>预览</sup>
17
17
 
18
18
  <p align="center">
19
19
  <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/1">💡 想法 & 建议</a> |
20
- <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/2">🗺️ 项目路线图</a>
20
+ <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/2">🗺️ 项目路线图</a> |
21
+ <a href="https://discord.gg/sHyy7gVPUG">🧑‍💻 Discord 频道</a>
21
22
  </p>
22
23
 
23
24
  <p align="center">
package/client.d.ts CHANGED
@@ -37,11 +37,14 @@ declare interface RPCFunctions {
37
37
  staticAssets(): Promise<AssetInfo[]>
38
38
  getImageMeta(path: string): Promise<ImageMeta | undefined>
39
39
  getTextAssetContent(path: string): Promise<string | undefined>
40
+ deleteStaticAsset(path: string): Promise<string | undefined>
41
+ renameStaticAsset(oldPath: string, newPath: string): Promise<string | undefined>
40
42
  getPackages(): Promise<Record<string, Omit<PackageMeta, 'name'>>>
41
43
  getVueSFCList(): Promise<string[]>
42
44
  getComponentInfo(filename: string): Promise<Record<string, unknown>>
43
45
  onTerminalData(_: { id?: string; data: string }): void
44
46
  onTerminalExit(_: { id?: string; data?: string }): void
47
+ onFileWatch(_: { event: string; path: string }): void
45
48
  installPackage(packages: string[], options?: ExecNpmScriptOptions): Promise<void>
46
49
  uninstallPackage(packages: string[], options?: ExecNpmScriptOptions): Promise<void>
47
50
  root(): string
@@ -53,3 +56,10 @@ declare interface PackageMeta {
53
56
  version: string
54
57
  name: string
55
58
  }
59
+
60
+ /**
61
+ * - `xs` for functions that should only be available in the small view mode, e.g. `__EyeDropper`
62
+ * - `default` is the default view mode
63
+ * - `fullscreen` for fullscreen the whole devtool
64
+ */
65
+ declare type ViewMode = 'xs' | 'default' | 'fullscreen'
@@ -0,0 +1,81 @@
1
+ import { _ as _sfc_main$1 } from './IconButton.vue_vue_type_script_setup_true_lang-622357e4.js';
2
+ import { v as defineComponent, a$ as ref, cC as useElementSize, cD 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 } from './index-2db58fe3.js';
3
+
4
+ const _hoisted_1 = {
5
+ relative: "",
6
+ "h-full": "",
7
+ "w-full": "",
8
+ "of-auto": ""
9
+ };
10
+ const __default__ = {
11
+ inheritAttrs: false
12
+ };
13
+ const _sfc_main = /* @__PURE__ */ defineComponent({
14
+ ...__default__,
15
+ __name: "DrawerRight",
16
+ props: {
17
+ modelValue: { type: Boolean },
18
+ navbar: {},
19
+ autoClose: { type: Boolean }
20
+ },
21
+ emits: ["close"],
22
+ setup(__props, { emit }) {
23
+ const props = __props;
24
+ const el = ref();
25
+ const { height: top } = useElementSize(() => props.navbar, void 0, { box: "border-box" });
26
+ onClickOutside(el, () => {
27
+ if (props.modelValue && props.autoClose)
28
+ emit("close");
29
+ }, {
30
+ ignore: ["a", "button", "summary", '[role="dialog"]']
31
+ });
32
+ return (_ctx, _cache) => {
33
+ const _component_VDIconButton = _sfc_main$1;
34
+ return openBlock(), createBlock(Transition, {
35
+ "enter-active-class": "duration-200 ease-in",
36
+ "enter-from-class": "transform translate-x-1/1",
37
+ "enter-to-class": "opacity-100",
38
+ "leave-active-class": "duration-200 ease-out",
39
+ "leave-from-class": "opacity-100",
40
+ "leave-to-class": "transform translate-x-1/1"
41
+ }, {
42
+ default: withCtx(() => [
43
+ _ctx.modelValue ? (openBlock(), createElementBlock("div", mergeProps({
44
+ key: 0,
45
+ ref_key: "el",
46
+ ref: el,
47
+ border: "l base",
48
+ flex: "~ col gap-1",
49
+ absolute: "",
50
+ "bottom-0": "",
51
+ "right-0": "",
52
+ "z-10": "",
53
+ "z-20": "",
54
+ "of-auto": "",
55
+ "text-sm": "",
56
+ "glass-effect": "",
57
+ style: { top: `${unref(top)}px` }
58
+ }, _ctx.$attrs), [
59
+ createVNode(_component_VDIconButton, {
60
+ absolute: "",
61
+ "right-2": "",
62
+ "top-2": "",
63
+ "z-20": "",
64
+ "text-xl": "",
65
+ icon: "carbon-close",
66
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
67
+ }),
68
+ createBaseVNode("div", _hoisted_1, [
69
+ renderSlot(_ctx.$slots, "default")
70
+ ])
71
+ ], 16)) : createCommentVNode("", true)
72
+ ]),
73
+ _: 3
74
+ });
75
+ };
76
+ }
77
+ });
78
+
79
+ /* Injected with object hook! */
80
+
81
+ export { _sfc_main as _ };
@@ -1,4 +1,4 @@
1
- import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass } from './index-c2b0ba3e.js';
1
+ import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass } from './index-2db58fe3.js';
2
2
 
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "Icon",
@@ -1,5 +1,5 @@
1
- import { _ as _sfc_main$1 } from './Icon.vue_vue_type_script_setup_true_lang-d08cd842.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-c2b0ba3e.js';
1
+ import { _ as _sfc_main$1 } from './Icon.vue_vue_type_script_setup_true_lang-9de05d3b.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-2db58fe3.js';
3
3
 
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "IconButton",
@@ -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-c2b0ba3e.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-2db58fe3.js';
2
2
 
3
3
  const _hoisted_1 = {
4
4
  flex: "~ gap-3",
@@ -1,4 +1,4 @@
1
- import { v as defineComponent, cp as useColorMode, a$ as ref, a1 as computed, aZ as reactive, cq 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-c2b0ba3e.js';
1
+ import { v as defineComponent, ca as useColorMode, a$ as ref, a1 as computed, aZ as reactive, cq 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-2db58fe3.js';
2
2
 
3
3
  const _hoisted_1 = {
4
4
  key: 0,
@@ -1,4 +1,4 @@
1
- import { bJ as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-c2b0ba3e.js';
1
+ import { bJ as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-2db58fe3.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 './IconTitle.vue_vue_type_script_setup_true_lang-49104706.js';
2
- import { _ as _sfc_main$2 } from './Icon.vue_vue_type_script_setup_true_lang-d08cd842.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-c2b0ba3e.js';
1
+ import { _ as _sfc_main$1 } from './IconTitle.vue_vue_type_script_setup_true_lang-bcafabb3.js';
2
+ import { _ as _sfc_main$2 } from './Icon.vue_vue_type_script_setup_true_lang-9de05d3b.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-2db58fe3.js';
4
4
 
5
5
  const _withScopeId = (n) => (pushScopeId("data-v-e966339e"), n = n(), popScopeId(), n);
6
6
  const _hoisted_1 = ["open"];
@@ -1,7 +1,7 @@
1
- import { _ as _sfc_main$3 } from './Icon.vue_vue_type_script_setup_true_lang-d08cd842.js';
2
- import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, aC as isRef, bd as toRaw, a1 as computed, cu as useCopy, r as resolveComponent, e as createElementBlock, i as renderList, z as unref, cv as nanoid, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, F as Fragment, a$ as ref, cw as useNotification, u as createVNode, bG as withModifiers, d as withDirectives, bv as vShow } from './index-c2b0ba3e.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-b327a261.js';
4
- import { _ as _sfc_main$4 } from './IconButton.vue_vue_type_script_setup_true_lang-4cfd93a4.js';
1
+ import { _ as _sfc_main$3 } from './Icon.vue_vue_type_script_setup_true_lang-9de05d3b.js';
2
+ import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, aC as isRef, bd as toRaw, a1 as computed, cu as useCopy, r as resolveComponent, e as createElementBlock, i as renderList, z as unref, cv as nanoid, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, F as Fragment, a$ as ref, cw as useNotification, u as createVNode, bG as withModifiers, d as withDirectives, bv as vShow } from './index-2db58fe3.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-4023636e.js';
4
+ import { _ as _sfc_main$4 } from './IconButton.vue_vue_type_script_setup_true_lang-622357e4.js';
5
5
 
6
6
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7
7
  __name: "ExpandIcon",
@@ -1,5 +1,5 @@
1
- import { _ as _sfc_main$2 } from './Icon.vue_vue_type_script_setup_true_lang-d08cd842.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-c2b0ba3e.js';
1
+ import { _ as _sfc_main$2 } from './Icon.vue_vue_type_script_setup_true_lang-9de05d3b.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-2db58fe3.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 './Icon.vue_vue_type_script_setup_true_lang-d08cd842.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-c2b0ba3e.js';
1
+ import { _ as _sfc_main$1 } from './Icon.vue_vue_type_script_setup_true_lang-9de05d3b.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-2db58fe3.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 './PanelGrids-ed6a1457.js';
2
- import { v as defineComponent, cD as useRouter, a$ as ref, a1 as computed, cu as useCopy, cf 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, c5 as useDevToolsClient, bX as useFrameState, u as createVNode } from './index-c2b0ba3e.js';
3
- import { h as checkIsSecurityContext } from './index-b327a261.js';
1
+ import { _ as __unplugin_components_0 } from './PanelGrids-c56fbbf0.js';
2
+ import { v as defineComponent, cE as useRouter, a$ as ref, a1 as computed, cu as useCopy, cg 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, c5 as useDevToolsClient, bX as useFrameState, u as createVNode } from './index-2db58fe3.js';
3
+ import { h as checkIsSecurityContext } from './index-4023636e.js';
4
4
 
5
5
  const _hoisted_1 = {
6
6
  key: 0