vite-plugin-vue-devtools 1.0.0-rc.2 → 1.0.0-rc.4

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 +3 -2
  2. package/README.zh-CN.md +4 -4
  3. package/dist/client/assets/{DrawerRight.vue_vue_type_script_setup_true_lang-51475cef.js → DrawerRight.vue_vue_type_script_setup_true_lang-c5e61967.js} +2 -2
  4. package/dist/client/assets/{Icon.vue_vue_type_script_setup_true_lang-7c6b9476.js → Icon.vue_vue_type_script_setup_true_lang-66500aa3.js} +1 -1
  5. package/dist/client/assets/{IconButton.vue_vue_type_script_setup_true_lang-d3a7c1db.js → IconButton.vue_vue_type_script_setup_true_lang-0986c643.js} +2 -2
  6. package/dist/client/assets/{IconTitle.vue_vue_type_script_setup_true_lang-7e44f67f.js → IconTitle.vue_vue_type_script_setup_true_lang-6c8cd627.js} +1 -1
  7. package/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-21a4afa9.js → IframeView.vue_vue_type_script_setup_true_lang-960de27c.js} +3 -4
  8. package/dist/client/assets/{PanelGrids-432bddc5.js → PanelGrids-b286bc3a.js} +1 -1
  9. package/dist/client/assets/{SectionBlock-deaf9b55.js → SectionBlock-0efb0258.js} +3 -3
  10. package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-b537a695.js → StateFields.vue_vue_type_script_setup_true_lang-9d374998.js} +4 -4
  11. package/dist/client/assets/{Switch.vue_vue_type_script_setup_true_lang-f5874ec0.js → Switch.vue_vue_type_script_setup_true_lang-1cb456df.js} +2 -2
  12. package/dist/client/assets/{TextInput.vue_vue_type_script_setup_true_lang-4b26bae9.js → TextInput.vue_vue_type_script_setup_true_lang-f48c06e7.js} +2 -2
  13. package/dist/client/assets/{__eyedropper-f873503e.js → __eyedropper-64cf5368.js} +5 -5
  14. package/dist/client/assets/{assets-856469f8.js → assets-097cb67f.js} +129 -98
  15. package/dist/client/assets/{component-docs-12ec4df4.js → component-docs-4685eecc.js} +5 -5
  16. package/dist/client/assets/{components-7617ccac.js → components-a345a26a.js} +37 -19
  17. package/dist/client/assets/{data-791a8f60.js → data-b08ac93e.js} +1 -1
  18. package/dist/client/assets/{documentations-0fe92ea7.js → documentations-1ee105b0.js} +2 -2
  19. package/dist/client/assets/{graph-89665cd7.js → graph-b5237ca6.js} +3 -3
  20. package/dist/client/assets/index-08df55bc.css +482 -0
  21. package/dist/client/assets/{index-c93154b0.js → index-645ed09c.js} +1 -1
  22. package/dist/client/assets/{index-51e380e6.js → index-e9eb3ad5.js} +190 -424
  23. package/dist/client/assets/{inspect-908c931d.js → inspect-7d1f032a.js} +2 -2
  24. package/dist/client/assets/jse-theme-dark-8bbe1465.js +1558 -0
  25. package/dist/client/assets/npm-ca738914.js +550 -0
  26. package/dist/client/assets/{overview-06f1b815.js → overview-696cca4c.js} +4 -4
  27. package/dist/client/assets/{pages-a5e1fd59.js → pages-70fafa60.js} +8 -8
  28. package/dist/client/assets/{pinia-af4f0dc0.js → pinia-cc53425d.js} +7 -6
  29. package/dist/client/assets/{rerender-trace-5563db31.js → rerender-trace-3fb4c93e.js} +2 -2
  30. package/dist/client/assets/{routes-61fb3b9b.js → routes-99d63142.js} +7 -7
  31. package/dist/client/assets/{settings-89dedbbe.js → settings-cbef4d71.js} +7 -7
  32. package/dist/client/assets/{splitpanes.es-d4dcf006.js → splitpanes.es-ec1c26e9.js} +1 -1
  33. package/dist/client/assets/{timeline-01ba97b0.js → timeline-5bfd21e0.js} +7 -7
  34. package/dist/client/index.html +2 -2
  35. package/dist/vite.cjs +4 -4
  36. package/dist/vite.d.cts +29 -0
  37. package/dist/vite.d.mts +29 -0
  38. package/dist/vite.d.ts +1 -1
  39. package/dist/vite.mjs +3 -3
  40. package/package.json +7 -7
  41. package/dist/client/assets/index-4490b2f3.css +0 -480
  42. package/dist/client/assets/jse-theme-dark-ad635760.js +0 -1555
  43. package/dist/client/assets/npm-9d8749a5.js +0 -550
package/README.md CHANGED
@@ -12,6 +12,7 @@ English | <a href="./README.zh-CN.md">简体中文</a>
12
12
  <p align="center">
13
13
  <a href="https://www.npmjs.com/package/vite-plugin-vue-devtools" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/npm/v/vite-plugin-vue-devtools" alt="NPM Version" /></a>
14
14
  <a href="https://www.npmjs.com/package/vite-plugin-vue-devtools" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/npm/dt/vite-plugin-vue-devtools" alt="NPM Downloads" /></a>
15
+ <a href="https://www.npmjs.com/package/vite-plugin-vue-devtools" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/node/v/vite-plugin-vue-devtools" alt="Node Compatibility" /></a>
15
16
  <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/blob/main/LICENSE" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/github/license/webfansplz/vite-plugin-vue-devtools" alt="License" /></a>
16
17
  </p>
17
18
 
@@ -55,7 +56,7 @@ Assets tab that shows all your static assets and their information. You can open
55
56
 
56
57
  ### Timeline
57
58
 
58
- Timeline tab has three categories: Performance, Router Navigations, and Pinia. You can switch between them to see the state changes and timelines.
59
+ Timeline tab has three categories: Performance, Router Navigations, and [Pinia](https://github.com/vuejs/pinia). You can switch between them to see the state changes and timelines.
59
60
 
60
61
  <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/timeline.png" />
61
62
 
@@ -79,7 +80,7 @@ Graph tab provides a graph view that show the relationship between components.
79
80
 
80
81
  ### Inspect
81
82
 
82
- Inspect expose the [vite-plugin-inspect](https://github.com/antfu/vite-plugin-inspect) integration, allowing you to inspect transformation steps of Vite. It can be helpful to understand how each plugin is transforming your code and spot potential issues.
83
+ Inspect expose the [vite-plugin-inspect](https://github.com/antfu/vite-plugin-inspect) integration, allowing you to inspect transformation steps of [Vite](https://vitejs.dev/). It can be helpful to understand how each plugin is transforming your code and spot potential issues.
83
84
 
84
85
  <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/inspect.png" />
85
86
 
package/README.zh-CN.md CHANGED
@@ -55,7 +55,7 @@ Vue DevTools <sup>预览</sup>
55
55
 
56
56
  ### Timeline
57
57
 
58
- `Timeline` 选项卡包含三个类别:性能、路由导航和 Pinia,您可以在它们之间切换以查看状态变化和时间线。
58
+ `Timeline` 选项卡包含三个类别:性能、路由导航和 [Pinia](https://github.com/vuejs/pinia),您可以在它们之间切换以查看状态变化和时间线。
59
59
 
60
60
  <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/timeline.png" />
61
61
 
@@ -79,13 +79,13 @@ Vue DevTools <sup>预览</sup>
79
79
 
80
80
  ### Inspect
81
81
 
82
- `Inspect` 公开 [vite-plugin-inspect](https://github.com/antfu/vite-plugin-inspect) 集成,允许您检查 Vite 的转换步骤,了解每个插件如何改变您的代码并发现潜在问题可能会有所帮助。
82
+ `Inspect` 公开 [vite-plugin-inspect](https://github.com/antfu/vite-plugin-inspect) 集成,允许您检查 [Vite](https://vitejs.dev/) 的转换步骤,了解每个插件如何改变您的代码并发现潜在问题可能会有所帮助。
83
83
 
84
84
  <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/inspect.png" />
85
85
 
86
86
  ### Inspector
87
87
 
88
- 您还可以使用 `Inspector` 功能来检查 `DOM` 树并查看哪个组件正在渲染它,单击可转到特定行的编辑器,使更改变得更加容易,而无需彻底了解项目结构。 (该功能基于 [vite-plugin-vue-inspector](https://github.com/webfansplz/vite-plugin-vue-inspector))
88
+ 您还可以使用 `Inspector` 功能来检查 `DOM` 树并查看哪个组件正在渲染它,单击可转到编辑器的特定行,使更改变得更加容易,而无需彻底了解项目结构。 (该功能基于 [vite-plugin-vue-inspector](https://github.com/webfansplz/vite-plugin-vue-inspector))
89
89
 
90
90
  <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/inspector.png" height=450 />
91
91
 
@@ -150,7 +150,7 @@ interface VitePluginVueDevToolsOptions {
150
150
  - 仅在 `开发模式` 下可用。
151
151
  - 仅支持 `Vue3.0+` 。
152
152
  - 仅支持单实例 `Vue` 应用程序。
153
- - 不支持 `SSR` (如果您使用 `Nuxt` ,请使用 [nuxt/devtools](https://github.com/nuxt/devtools))。
153
+ - 不支持 `SSR` (如果您使用 `Nuxt` ,请使用 [nuxt/devtools](https://github.com/nuxt/devtools))。
154
154
  - 该插件遵循 `Vue` 的 `DevTools` 配置,因此如果您配置了 `hide` 选项,它也将应用于该插件。例如
155
155
 
156
156
  ```js
@@ -1,5 +1,5 @@
1
- import { _ as _sfc_main$1 } from './IconButton.vue_vue_type_script_setup_true_lang-d3a7c1db.js';
2
- import { v as defineComponent, a$ as ref, cE 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-51e380e6.js';
1
+ import { _ as _sfc_main$1 } from './IconButton.vue_vue_type_script_setup_true_lang-0986c643.js';
2
+ import { v as defineComponent, a$ as ref, cE 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-e9eb3ad5.js';
3
3
 
4
4
  const _hoisted_1 = {
5
5
  relative: "",
@@ -1,4 +1,4 @@
1
- import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass } from './index-51e380e6.js';
1
+ import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass } from './index-e9eb3ad5.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-7c6b9476.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-51e380e6.js';
1
+ import { _ as _sfc_main$1 } from './Icon.vue_vue_type_script_setup_true_lang-66500aa3.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-e9eb3ad5.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-51e380e6.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-e9eb3ad5.js';
2
2
 
3
3
  const _hoisted_1 = {
4
4
  flex: "~ gap-3",
@@ -1,4 +1,4 @@
1
- import { v as defineComponent, ca as useColorMode, a$ as ref, a1 as computed, aZ as reactive, cs 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-51e380e6.js';
1
+ import { v as defineComponent, ca as useColorMode, a$ as ref, a1 as computed, aZ as reactive, cs 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-e9eb3ad5.js';
2
2
 
3
3
  const _hoisted_1 = {
4
4
  key: 0,
@@ -30,6 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
30
  if (iframeCacheMap.get(key.value)) {
31
31
  iframeEl.value = iframeCacheMap.get(key.value);
32
32
  iframeEl.value.style.visibility = "visible";
33
+ iframeLoaded.value = true;
33
34
  } else {
34
35
  iframeEl.value = document.createElement("iframe");
35
36
  iframeCacheMap.set(key.value, iframeEl.value);
@@ -52,10 +53,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
53
  watchEffect(updateIframeBox);
53
54
  watchEffect(syncColorMode);
54
55
  onUnmounted(() => {
55
- if (iframeEl.value) {
56
+ if (iframeEl.value)
56
57
  iframeEl.value.style.visibility = "hidden";
57
- iframeLoaded.value = false;
58
- }
59
58
  });
60
59
  function syncColorMode() {
61
60
  if (!iframeEl.value || !iframeEl.value.contentWindow)
@@ -1,4 +1,4 @@
1
- import { bJ as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-51e380e6.js';
1
+ import { bJ as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-e9eb3ad5.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-7e44f67f.js';
2
- import { _ as _sfc_main$2 } from './Icon.vue_vue_type_script_setup_true_lang-7c6b9476.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-51e380e6.js';
1
+ import { _ as _sfc_main$1 } from './IconTitle.vue_vue_type_script_setup_true_lang-6c8cd627.js';
2
+ import { _ as _sfc_main$2 } from './Icon.vue_vue_type_script_setup_true_lang-66500aa3.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-e9eb3ad5.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-7c6b9476.js';
2
- import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, aC as isRef, bd as toRaw, a1 as computed, cw as useCopy, r as resolveComponent, e as createElementBlock, i as renderList, z as unref, cx as nanoid, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, F as Fragment, a$ as ref, cy as useNotification, u as createVNode, bG as withModifiers, d as withDirectives, bv as vShow } from './index-51e380e6.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-c93154b0.js';
4
- import { _ as _sfc_main$4 } from './IconButton.vue_vue_type_script_setup_true_lang-d3a7c1db.js';
1
+ import { _ as _sfc_main$3 } from './Icon.vue_vue_type_script_setup_true_lang-66500aa3.js';
2
+ import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, aC as isRef, bd as toRaw, a1 as computed, cw as useCopy, r as resolveComponent, e as createElementBlock, i as renderList, z as unref, cx as nanoid, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, F as Fragment, a$ as ref, cy as useNotification, u as createVNode, bG as withModifiers, d as withDirectives, bv as vShow } from './index-e9eb3ad5.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-645ed09c.js';
4
+ import { _ as _sfc_main$4 } from './IconButton.vue_vue_type_script_setup_true_lang-0986c643.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-7c6b9476.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-51e380e6.js';
1
+ import { _ as _sfc_main$2 } from './Icon.vue_vue_type_script_setup_true_lang-66500aa3.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-e9eb3ad5.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-7c6b9476.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-51e380e6.js';
1
+ import { _ as _sfc_main$1 } from './Icon.vue_vue_type_script_setup_true_lang-66500aa3.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-e9eb3ad5.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-432bddc5.js';
2
- import { v as defineComponent, cF as useRouter, a$ as ref, a1 as computed, cw as useCopy, cj 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-51e380e6.js';
3
- import { h as checkIsSecurityContext } from './index-c93154b0.js';
1
+ import { _ as __unplugin_components_0 } from './PanelGrids-b286bc3a.js';
2
+ import { v as defineComponent, cF as useRouter, a$ as ref, a1 as computed, cw as useCopy, cj 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-e9eb3ad5.js';
3
+ import { h as checkIsSecurityContext } from './index-645ed09c.js';
4
4
 
5
5
  const _hoisted_1 = {
6
6
  key: 0
@@ -76,13 +76,13 @@ const _sfc_main = /*#__PURE__*/defineComponent({
76
76
  content = createVNode("p", null, [createTextVNode("EyeDropper is not available due to "), createVNode("a", {
77
77
  "class": "text-primary transition-colors hover:text-primary/80",
78
78
  "href": "https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts",
79
- "target": '_blank'
79
+ "target": "_blank"
80
80
  }, [createTextVNode("secure context")]), createTextVNode(" restrict.")]);
81
81
  } else if (!supportEyeDropper) {
82
82
  content = createVNode("p", null, [createTextVNode("Your browser doesn't support\xA0"), createVNode("a", {
83
83
  "class": "text-primary transition-colors hover:text-primary/80",
84
84
  "href": "https://developer.mozilla.org/en-US/docs/Web/API/EyeDropper#browser_compatibility",
85
- "target": '_blank'
85
+ "target": "_blank"
86
86
  }, [createTextVNode("EyeDropper")]), createTextVNode(".")]);
87
87
  }
88
88
  return createVNode("div", {