vite-plugin-vue-devtools 0.2.0 → 0.3.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 (35) hide show
  1. package/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-b43ce04d.js → IframeView.vue_vue_type_script_setup_true_lang-f88e09d7.js} +1 -1
  2. package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-2eb76810.js → StateFields.vue_vue_type_script_setup_true_lang-23686740.js} +4 -4
  3. package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-8ee81c4d.js → VIcon.vue_vue_type_script_setup_true_lang-9fa081a5.js} +1 -1
  4. package/dist/client/assets/{VIconButton.vue_vue_type_script_setup_true_lang-3836bdc7.js → VIconButton.vue_vue_type_script_setup_true_lang-c2e343d6.js} +2 -2
  5. package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-7910bc00.js → VIconTitle.vue_vue_type_script_setup_true_lang-38de243c.js} +1 -1
  6. package/dist/client/assets/{VPanelGrids-8fb6dd3e.js → VPanelGrids-b0a35128.js} +1 -1
  7. package/dist/client/assets/{VSectionBlock-6c230ee0.js → VSectionBlock-309f5da6.js} +3 -3
  8. package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-db4f1ff5.js → VTextInput.vue_vue_type_script_setup_true_lang-e7e987f5.js} +2 -2
  9. package/dist/client/assets/{__eyedropper-356eb298.js → __eyedropper-0a7a2bf7.js} +2 -2
  10. package/dist/client/assets/{__inspecting-e140eb7b.js → __inspecting-74272dc6.js} +2 -2
  11. package/dist/client/assets/{assets-e0b8d4d7.js → assets-3c43166d.js} +8 -9
  12. package/dist/client/assets/{component-docs-b9ee379e.js → component-docs-8c340748.js} +5 -6
  13. package/dist/client/assets/{components-00f431db.js → components-d2886e17.js} +7 -8
  14. package/dist/client/assets/{documentations-1dde3300.js → documentations-1b8fd552.js} +6 -7
  15. package/dist/client/assets/{graph-cc854637.js → graph-53cf4d1f.js} +2 -2
  16. package/dist/client/assets/{index-2b9ce289.js → index-19f01aba.js} +1804 -243
  17. package/dist/client/assets/index-5b7de771.css +472 -0
  18. package/dist/client/assets/{index-789b3f11.js → index-6ad3fd79.js} +1 -1
  19. package/dist/client/assets/{inspect-7051b204.js → inspect-413b4253.js} +3 -3
  20. package/dist/client/assets/{npm-d6d3b7aa.js → npm-8bad3937.js} +6 -6
  21. package/dist/client/assets/{overview-1af2ca59.js → overview-31cdea88.js} +5 -5
  22. package/dist/client/assets/{pages-46d19766.js → pages-9c59f22d.js} +5 -5
  23. package/dist/client/assets/{pinia-ec20f871.js → pinia-7c90c416.js} +6 -6
  24. package/dist/client/assets/{routes-0105fa20.js → routes-c4f0a6d6.js} +7 -8
  25. package/dist/client/assets/{rpc-ec85f8ba.js → rpc-9acc6c47.js} +3 -3
  26. package/dist/client/assets/{settings-7e727d67.js → settings-a28ae20a.js} +8 -7
  27. package/dist/client/assets/{splitpanes.es-6bb61903.js → splitpanes.es-b567bbbb.js} +1 -1
  28. package/dist/client/assets/{timeline-a5175ebd.js → timeline-4e67c2bf.js} +7 -8
  29. package/dist/client/index.html +2 -2
  30. package/dist/index.cjs +1 -1
  31. package/dist/index.mjs +1 -1
  32. package/package.json +4 -3
  33. package/src/node/Container.vue +78 -18
  34. package/dist/client/assets/VCard-85379c8f.js +0 -15
  35. package/dist/client/assets/index-76a3c684.css +0 -466
@@ -1,4 +1,4 @@
1
- import { K as isRef } from './index-2b9ce289.js';
1
+ import { K as isRef } from './index-19f01aba.js';
2
2
 
3
3
  const objectToString = Object.prototype.toString;
4
4
  function toTypeString(value) {
@@ -1,6 +1,6 @@
1
- import { _ as _sfc_main$1 } from './IframeView.vue_vue_type_script_setup_true_lang-b43ce04d.js';
2
- import { i as inspectClientUrl } from './rpc-ec85f8ba.js';
3
- import { v as defineComponent, o as openBlock, e as createElementBlock, u as createVNode, z as unref } from './index-2b9ce289.js';
1
+ import { _ as _sfc_main$1 } from './IframeView.vue_vue_type_script_setup_true_lang-f88e09d7.js';
2
+ import { i as inspectClientUrl } from './rpc-9acc6c47.js';
3
+ import { v as defineComponent, o as openBlock, e as createElementBlock, u as createVNode, z as unref } from './index-19f01aba.js';
4
4
 
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "inspect",
@@ -1,10 +1,10 @@
1
- import { v as defineComponent, $ as ref, a6 as onMounted, ab as useEventListener, ac as hookApi, o as openBlock, e as createElementBlock, ad as useScrollLock, ae as watch, af as useInfiniteScroll, r as resolveComponent, b as resolveDirective, x as createBaseVNode, u as createVNode, z as unref, K as isRef, h as withCtx, F as Fragment, i as renderList, c as createBlock, g as createCommentVNode, y as toDisplayString, d as withDirectives, O as createTextVNode, q as normalizeClass, R as _sfc_main$3 } from './index-2b9ce289.js';
2
- import { _ as __unplugin_components_3 } from './VSectionBlock-6c230ee0.js';
3
- import { _ as _sfc_main$2 } from './VTextInput.vue_vue_type_script_setup_true_lang-db4f1ff5.js';
1
+ import { v as defineComponent, a1 as ref, a8 as onMounted, ad as useEventListener, ae as hookApi, o as openBlock, e as createElementBlock, af as useScrollLock, ag as watch, ah as useInfiniteScroll, r as resolveComponent, b as resolveDirective, x as createBaseVNode, u as createVNode, z as unref, K as isRef, h as withCtx, F as Fragment, i as renderList, c as createBlock, g as createCommentVNode, y as toDisplayString, d as withDirectives, P as createTextVNode, q as normalizeClass, T as _sfc_main$3 } from './index-19f01aba.js';
2
+ import { _ as __unplugin_components_3 } from './VSectionBlock-309f5da6.js';
3
+ import { _ as _sfc_main$2 } from './VTextInput.vue_vue_type_script_setup_true_lang-e7e987f5.js';
4
4
  import { g as getDefaultExportFromCjs, c as commonjsGlobal } from './_commonjsHelpers-c0d8ada0.js';
5
- import { r as rpc } from './rpc-ec85f8ba.js';
6
- import './VIconTitle.vue_vue_type_script_setup_true_lang-7910bc00.js';
7
- import './VIcon.vue_vue_type_script_setup_true_lang-8ee81c4d.js';
5
+ import { r as rpc } from './rpc-9acc6c47.js';
6
+ import './VIconTitle.vue_vue_type_script_setup_true_lang-38de243c.js';
7
+ import './VIcon.vue_vue_type_script_setup_true_lang-9fa081a5.js';
8
8
 
9
9
  var xterm$1 = {exports: {}};/* Injected with object hook! */
10
10
 
@@ -1,9 +1,9 @@
1
- import { _ as __unplugin_components_0$1 } from './VPanelGrids-8fb6dd3e.js';
2
- import { $ as ref, a0 as computed, a8 as routes, v as defineComponent, r as resolveComponent, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, u as createVNode, y as toDisplayString, z as unref, a9 as vueVersion, O as createTextVNode, e as createElementBlock, F as Fragment, aa as __unplugin_components_0, Z as __unplugin_components_1, R as _sfc_main$1 } from './index-2b9ce289.js';
3
- import { r as rpc } from './rpc-ec85f8ba.js';
4
- import { i as isMacOS } from './index-789b3f11.js';
1
+ import { _ as __unplugin_components_0$1 } from './VPanelGrids-b0a35128.js';
2
+ import { a1 as ref, a2 as computed, aa as routes, v as defineComponent, r as resolveComponent, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, u as createVNode, y as toDisplayString, z as unref, ab as vueVersion, P as createTextVNode, e as createElementBlock, F as Fragment, ac as __unplugin_components_0, a0 as __unplugin_components_1, T as _sfc_main$1 } from './index-19f01aba.js';
3
+ import { r as rpc } from './rpc-9acc6c47.js';
4
+ import { i as isMacOS } from './index-6ad3fd79.js';
5
5
 
6
- const version = "0.2.0";
6
+ const version = "0.3.0";
7
7
 
8
8
  /* Injected with object hook! */
9
9
 
@@ -1,8 +1,8 @@
1
- import { _ as __unplugin_components_3 } from './VSectionBlock-6c230ee0.js';
2
- import { v as defineComponent, $ as ref, a0 as computed, r as resolveComponent, z as unref, o as openBlock, e as createElementBlock, x as createBaseVNode, y as toDisplayString, c as createBlock, h as withCtx, a5 as withModifiers, F as Fragment, i as renderList, g as createCommentVNode, u as createVNode, O as createTextVNode, q as normalizeClass, R as _sfc_main$4, Z as __unplugin_components_1, a6 as onMounted, a7 as currentRoute, U as router, K as isRef, M as withKeys, a8 as routes } from './index-2b9ce289.js';
3
- import { _ as _sfc_main$3 } from './VTextInput.vue_vue_type_script_setup_true_lang-db4f1ff5.js';
4
- import './VIconTitle.vue_vue_type_script_setup_true_lang-7910bc00.js';
5
- import './VIcon.vue_vue_type_script_setup_true_lang-8ee81c4d.js';
1
+ import { _ as __unplugin_components_3 } from './VSectionBlock-309f5da6.js';
2
+ import { v as defineComponent, a1 as ref, a2 as computed, r as resolveComponent, z as unref, o as openBlock, e as createElementBlock, x as createBaseVNode, y as toDisplayString, c as createBlock, h as withCtx, a7 as withModifiers, F as Fragment, i as renderList, g as createCommentVNode, u as createVNode, P as createTextVNode, q as normalizeClass, T as _sfc_main$4, a0 as __unplugin_components_1, a8 as onMounted, a9 as currentRoute, W as router, K as isRef, M as withKeys, aa as routes } from './index-19f01aba.js';
3
+ import { _ as _sfc_main$3 } from './VTextInput.vue_vue_type_script_setup_true_lang-e7e987f5.js';
4
+ import './VIconTitle.vue_vue_type_script_setup_true_lang-38de243c.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-9fa081a5.js';
6
6
 
7
7
  const _hoisted_1$2 = {
8
8
  block: "",
@@ -1,9 +1,9 @@
1
- import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-2eb76810.js';
2
- import { g, M } from './splitpanes.es-6bb61903.js';
3
- import { v as defineComponent, $ as ref, a0 as computed, a1 as piniaStoresCategory, a2 as toRaw, a3 as piniaState, a4 as piniaGetters, z as unref, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, q as normalizeClass, y as toDisplayString, c as createBlock } from './index-2b9ce289.js';
4
- import { p as pick } from './index-789b3f11.js';
5
- import './VIcon.vue_vue_type_script_setup_true_lang-8ee81c4d.js';
6
- import './VIconButton.vue_vue_type_script_setup_true_lang-3836bdc7.js';
1
+ import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-23686740.js';
2
+ import { g, M } from './splitpanes.es-b567bbbb.js';
3
+ import { v as defineComponent, a1 as ref, a2 as computed, a3 as piniaStoresCategory, a4 as toRaw, a5 as piniaState, a6 as piniaGetters, z as unref, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, q as normalizeClass, y as toDisplayString, c as createBlock } from './index-19f01aba.js';
4
+ import { p as pick } from './index-6ad3fd79.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-9fa081a5.js';
6
+ import './VIconButton.vue_vue_type_script_setup_true_lang-c2e343d6.js';
7
7
 
8
8
  const _hoisted_1 = {
9
9
  "h-screen": "",
@@ -1,11 +1,10 @@
1
- import { _ as __unplugin_components_0 } from './VPanelGrids-8fb6dd3e.js';
2
- import { _ as __unplugin_components_7 } from './VCard-85379c8f.js';
3
- import { v as defineComponent, z as unref, U as router, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, V as routeRecordMatcherState, W as activeRouteRecordMatcherState, c as createBlock, T as _sfc_main$2, q as normalizeClass, X as activeRouteRecordIndex, Y as toggleRouteRecordMatcher, O as createTextVNode, y as toDisplayString, l as normalizeStyle, g as createCommentVNode, Z as __unplugin_components_1 } from './index-2b9ce289.js';
4
- import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-2eb76810.js';
5
- import { g, M } from './splitpanes.es-6bb61903.js';
6
- import './VIcon.vue_vue_type_script_setup_true_lang-8ee81c4d.js';
7
- import './index-789b3f11.js';
8
- import './VIconButton.vue_vue_type_script_setup_true_lang-3836bdc7.js';
1
+ import { _ as __unplugin_components_0 } from './VPanelGrids-b0a35128.js';
2
+ import { v as defineComponent, z as unref, W as router, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, X as routeRecordMatcherState, Y as activeRouteRecordMatcherState, c as createBlock, V as _sfc_main$2, _ as __unplugin_components_7, q as normalizeClass, Z as activeRouteRecordIndex, $ as toggleRouteRecordMatcher, P as createTextVNode, y as toDisplayString, l as normalizeStyle, g as createCommentVNode, a0 as __unplugin_components_1 } from './index-19f01aba.js';
3
+ import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-23686740.js';
4
+ import { g, M } from './splitpanes.es-b567bbbb.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-9fa081a5.js';
6
+ import './index-6ad3fd79.js';
7
+ import './VIconButton.vue_vue_type_script_setup_true_lang-c2e343d6.js';
9
8
 
10
9
  const _hoisted_1 = {
11
10
  key: 0,
@@ -1,11 +1,11 @@
1
- import { aH as __vitePreload, ac as hookApi } from './index-2b9ce289.js';
1
+ import { aJ as __vitePreload, ae as hookApi } from './index-19f01aba.js';
2
2
 
3
3
  async function getViteClient(base = "/", warning = true) {
4
4
  try {
5
5
  return await __vitePreload(() => import(
6
6
  /* @vite-ignore */
7
7
  `${base}@vite/client`
8
- ),true?[]:void 0,import.meta.url);
8
+ ),true?[]:void 0);
9
9
  } catch {
10
10
  if (warning)
11
11
  console.error(`[vite-plugin-hot] Failed to import "${base}@vite/client"`);
@@ -130,7 +130,7 @@ function createRPCClient(name, hot, functions = {}) {
130
130
 
131
131
  /* Injected with object hook! */
132
132
 
133
- const rpc = createRPCClient("vite-plugin-vue-devtools", await createHotContext("/___", `${location.pathname.split("/__devtools")[0] || ""}/`.replace(/\/\//g, "/")), {
133
+ const rpc = createRPCClient("vite-plugin-vue-devtools", await createHotContext("/___", `${location.pathname.split("/__devtools__")[0] || ""}/`.replace(/\/\//g, "/")), {
134
134
  onTerminalData({ data }) {
135
135
  hookApi.hook.emit("__vue-devtools:terminal:data__", data);
136
136
  },
@@ -1,6 +1,6 @@
1
- import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-8ee81c4d.js';
2
- import { v as defineComponent, I as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, J as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, K as isRef, c as createBlock, L as vModelCheckbox, M as withKeys, N as useCategorizedTabs, u as createVNode, F as Fragment, i as renderList, h as withCtx, O as createTextVNode, P as useDevToolsSettings, Q as useFrameState, _ as _sfc_main$5, R as _sfc_main$6, S as _sfc_main$7, q as normalizeClass, T as _sfc_main$8 } from './index-2b9ce289.js';
3
- import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-7910bc00.js';
1
+ import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-9fa081a5.js';
2
+ import { v as defineComponent, I as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, J as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, K as isRef, c as createBlock, L as vModelCheckbox, M as withKeys, N as useCategorizedTabs, u as createVNode, F as Fragment, i as renderList, O as isInPopup, h as withCtx, P as createTextVNode, Q as useDevToolsSettings, R as useFrameState, S as _sfc_main$5, T as _sfc_main$6, U as _sfc_main$7, q as normalizeClass, V as _sfc_main$8 } from './index-19f01aba.js';
3
+ import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-38de243c.js';
4
4
 
5
5
  const _hoisted_1$2 = { 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" };
6
6
  const _hoisted_2$2 = ["disabled"];
@@ -121,6 +121,7 @@ const _hoisted_7 = {
121
121
  pr2: ""
122
122
  };
123
123
  const _hoisted_8 = {
124
+ key: 0,
124
125
  py3: "",
125
126
  flex: "~ col gap-1",
126
127
  border: "b base"
@@ -196,7 +197,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
196
197
  const _component_VIconTitle = _sfc_main$4;
197
198
  const _component_VSwitch = _sfc_main$1;
198
199
  const _component_TabIcon = _sfc_main$8;
199
- const _component_VPanelPosition = _sfc_main$5;
200
+ const _component_PanelPosition = _sfc_main$5;
200
201
  const _component_VButton = _sfc_main$6;
201
202
  const _component_VDarkToggle = _sfc_main$7;
202
203
  const _component_VSelect = _sfc_main$2;
@@ -268,12 +269,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
268
269
  }), 128))
269
270
  ]),
270
271
  createBaseVNode("div", null, [
271
- createBaseVNode("div", _hoisted_8, [
272
+ !unref(isInPopup) ? (openBlock(), createElementBlock("div", _hoisted_8, [
272
273
  _hoisted_9,
273
274
  createBaseVNode("div", null, [
274
- createVNode(_component_VPanelPosition)
275
+ createVNode(_component_PanelPosition)
275
276
  ])
276
- ]),
277
+ ])) : createCommentVNode("", true),
277
278
  createBaseVNode("div", _hoisted_10, [
278
279
  _hoisted_11,
279
280
  createBaseVNode("div", null, [
@@ -1,4 +1,4 @@
1
- import { av as h, o as openBlock, e as createElementBlock, f as renderSlot, l as normalizeStyle } from './index-2b9ce289.js';
1
+ import { ax as h, o as openBlock, e as createElementBlock, f as renderSlot, l as normalizeStyle } from './index-19f01aba.js';
2
2
 
3
3
  const M = {
4
4
  name: "splitpanes",
@@ -1,12 +1,11 @@
1
- import { _ as _sfc_main$2 } from './StateFields.vue_vue_type_script_setup_true_lang-2eb76810.js';
2
- import { _ as __unplugin_components_0 } from './VPanelGrids-8fb6dd3e.js';
3
- import { _ as __unplugin_components_7 } from './VCard-85379c8f.js';
1
+ import { _ as _sfc_main$2 } from './StateFields.vue_vue_type_script_setup_true_lang-23686740.js';
2
+ import { _ as __unplugin_components_0 } from './VPanelGrids-b0a35128.js';
3
+ import { p as pushScopeId, a as popScopeId, n as nextTick, o as openBlock, c as createBlock, w as withScopeId, m as markRaw, s as shallowReactive, r as resolveComponent, b as resolveDirective, d as withDirectives, e as createElementBlock, f as renderSlot, g as createCommentVNode, h as withCtx, F as Fragment, i as renderList, j as resolveDynamicComponent, k as mergeProps, t as toHandlers, l as normalizeStyle, q as normalizeClass, u as createVNode, v as defineComponent, x as createBaseVNode, y as toDisplayString, z as unref, _ as __unplugin_components_7, A as timelineLayer, B as activeTimelineEvents, C as activeTimelineEventIndex, D as toggleTimelineEventIndex, E as timelineEventDetails, G as activeLayerId, H as toggleTimelineLayer } from './index-19f01aba.js';
4
4
  import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-c0d8ada0.js';
5
- import { p as pushScopeId, a as popScopeId, n as nextTick, o as openBlock, c as createBlock, w as withScopeId, m as markRaw, s as shallowReactive, r as resolveComponent, b as resolveDirective, d as withDirectives, e as createElementBlock, f as renderSlot, g as createCommentVNode, h as withCtx, F as Fragment, i as renderList, j as resolveDynamicComponent, k as mergeProps, t as toHandlers, l as normalizeStyle, q as normalizeClass, u as createVNode, v as defineComponent, x as createBaseVNode, y as toDisplayString, z as unref, A as timelineLayer, B as activeTimelineEvents, C as activeTimelineEventIndex, D as toggleTimelineEventIndex, E as timelineEventDetails, G as activeLayerId, H as toggleTimelineLayer } from './index-2b9ce289.js';
6
- import { g, M } from './splitpanes.es-6bb61903.js';
7
- import './VIcon.vue_vue_type_script_setup_true_lang-8ee81c4d.js';
8
- import './index-789b3f11.js';
9
- import './VIconButton.vue_vue_type_script_setup_true_lang-3836bdc7.js';
5
+ import { g, M } from './splitpanes.es-b567bbbb.js';
6
+ import './VIcon.vue_vue_type_script_setup_true_lang-9fa081a5.js';
7
+ import './index-6ad3fd79.js';
8
+ import './VIconButton.vue_vue_type_script_setup_true_lang-c2e343d6.js';
10
9
 
11
10
  var dayjs_min = {exports: {}};/* Injected with object hook! */
12
11
 
@@ -5,8 +5,8 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <link rel="icon" href="/favicon.svg" type="image/svg+xml">
7
7
  <title>Vue DevTools</title>
8
- <script type="module" crossorigin src="./assets/index-2b9ce289.js"></script>
9
- <link rel="stylesheet" href="./assets/index-76a3c684.css">
8
+ <script type="module" crossorigin src="/__devtools__/assets/index-19f01aba.js"></script>
9
+ <link rel="stylesheet" href="/__devtools__/assets/index-5b7de771.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="app"></div>
package/dist/index.cjs CHANGED
@@ -13715,7 +13715,7 @@ function VitePluginVueDevTools(options = { appendTo: "" }) {
13715
13715
  let config;
13716
13716
  function configureServer(server) {
13717
13717
  const base = server.config.base || "/";
13718
- server.middlewares.use(`${base}__devtools`, sirv__default(DIR_CLIENT, {
13718
+ server.middlewares.use(`${base}__devtools__`, sirv__default(DIR_CLIENT, {
13719
13719
  single: true,
13720
13720
  dev: true
13721
13721
  }));
package/dist/index.mjs CHANGED
@@ -13689,7 +13689,7 @@ function VitePluginVueDevTools(options = { appendTo: "" }) {
13689
13689
  let config;
13690
13690
  function configureServer(server) {
13691
13691
  const base = server.config.base || "/";
13692
- server.middlewares.use(`${base}__devtools`, sirv(DIR_CLIENT, {
13692
+ server.middlewares.use(`${base}__devtools__`, sirv(DIR_CLIENT, {
13693
13693
  single: true,
13694
13694
  dev: true
13695
13695
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-vue-devtools",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "packageManager": "pnpm@8.4.0",
5
5
  "description": "A vite plugin for Vue Devtools",
6
6
  "author": "webfansplz",
@@ -43,7 +43,7 @@
43
43
  "build": "rimraf dist && run-s build:*",
44
44
  "build:client": "vite build src/client",
45
45
  "build:js": "unbuild",
46
- "dev": "nr stub && vite src/client",
46
+ "dev": "nr stub && pnpm dev:client",
47
47
  "dev:client": "vite build src/client --watch",
48
48
  "play": "nr -C playground dev",
49
49
  "stub": "unbuild --stub",
@@ -56,7 +56,8 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@vueuse/core": "^10.1.2",
59
- "@webfansplz/vuedoc-parser": "^0.0.2",
59
+ "@vueuse/integrations": "^10.2.0",
60
+ "@webfansplz/vuedoc-parser": "^0.0.3",
60
61
  "algoliasearch": "^4.17.1",
61
62
  "birpc": "^0.2.12",
62
63
  "execa": "^7.1.1",
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { computed, onMounted, ref } from 'vue'
2
+ import { computed, onMounted, ref, watchEffect } from 'vue'
3
3
  import vueDevToolsOptions from 'virtual:vue-devtools-options'
4
4
 
5
5
  // Reuse @vuejs/devtools instance first
@@ -28,11 +28,15 @@ const PANEL_MIN = 15
28
28
  const PANEL_MAX = 100
29
29
  const PANEL_PADDING = 10
30
30
 
31
- const clientUrl = `${vueDevToolsOptions.base || '/'}__devtools/`
31
+ const clientUrl = `${vueDevToolsOptions.base || '/'}__devtools__/`
32
32
  const iframe = ref()
33
+ const isDragging = ref(false)
34
+ const modalRef = ref(null)
35
+ const isInPopup = ref(false)
33
36
 
34
37
  const hookBuffer = []
35
38
  let isAppCreated = false
39
+ let innerIframe = null
36
40
 
37
41
  /** -----panel start-----**/
38
42
  const panelVisible = ref(false)
@@ -150,8 +154,69 @@ function initPanelPosition() {
150
154
  }
151
155
  }
152
156
 
157
+ function getIframe() {
158
+ iframe.value = document.createElement('iframe')
159
+ iframe.value.id = 'vue-devtools-iframe'
160
+ iframe.value.src = clientUrl
161
+ iframe.value.setAttribute('data-v-inspector-ignore', 'true')
162
+ iframe.value.onload = async () => {
163
+ await waitForClientInjection()
164
+ setupClient()
165
+ }
166
+ return iframe.value
167
+ }
168
+
169
+ watchEffect(() => {
170
+ if (!modalRef.value || isInPopup.value)
171
+ return
172
+
173
+ if (panelVisible.value) {
174
+ const iframe = getIframe()
175
+ iframe.style.pointerEvents = isDragging.value ? 'none' : 'auto'
176
+
177
+ if (!innerIframe && Array.from(modalRef.value.children).every(el => el !== iframe))
178
+ modalRef.value.appendChild(iframe)
179
+
180
+ innerIframe = iframe
181
+ }
182
+ })
183
+
184
+ // Experimental: Picture-in-Picture mode
185
+ // https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
186
+ const documentPictureInPicture = window.documentPictureInPicture
187
+ async function popup() {
188
+ const iframe = getIframe()
189
+ const pip = await documentPictureInPicture.requestWindow({
190
+ width: Math.round(window.innerWidth * 80 / 100),
191
+ height: Math.round(window.innerHeight * 60 / 100),
192
+ })
193
+ const style = pip.document.createElement('style')
194
+ style.innerHTML = `
195
+ body {
196
+ margin: 0;
197
+ padding: 0;
198
+ }
199
+ iframe {
200
+ width: 100vw;
201
+ height: 100vh;
202
+ border: none;
203
+ outline: none;
204
+ }
205
+ `
206
+ pip.__VUE_DEVTOOLS_GLOBAL_HOOK__ = props.hook
207
+ pip.__VUE_DEVTOOLS_IS_POPUP__ = true
208
+ pip.document.title = 'Vue DevTools'
209
+ pip.document.head.appendChild(style)
210
+ pip.document.body.appendChild(iframe)
211
+ pip.addEventListener('resize', () => {
212
+ })
213
+ pip.addEventListener('pagehide', () => {
214
+ pip.close()
215
+ isInPopup.value = false
216
+ })
217
+ }
218
+
153
219
  /** -----resize start-----**/
154
- const isDragging = ref(false)
155
220
  const resizeBaseClassName = 'vue-devtools-resize-handle'
156
221
  const resizeVerticalClassName = [resizeBaseClassName, `${resizeBaseClassName}-vertical`]
157
222
  const resizeHorizontalClassName = [resizeBaseClassName, `${resizeBaseClassName}-horizontal`]
@@ -266,6 +331,11 @@ function setupClient() {
266
331
  toggleViewMode,
267
332
  toggle: togglePanel,
268
333
  togglePosition(position) {
334
+ if (position === 'popup') {
335
+ isInPopup.value = true
336
+ popup()
337
+ return
338
+ }
269
339
  panelState.value.position = position
270
340
  },
271
341
  },
@@ -380,11 +450,6 @@ function collectHookBuffer() {
380
450
  collectHookBuffer()
381
451
  initPanelPosition()
382
452
 
383
- async function onLoad() {
384
- await waitForClientInjection()
385
- setupClient()
386
- }
387
-
388
453
  onMounted(() => {
389
454
  window.addEventListener('keydown', (e) => {
390
455
  if (e.code === 'KeyD' && e.altKey && e.shiftKey)
@@ -393,9 +458,10 @@ onMounted(() => {
393
458
  })
394
459
 
395
460
  const toggleButtonRef = ref(null)
396
- const modalRef = ref(null)
397
461
 
398
462
  window.addEventListener('click', (event) => {
463
+ if (isInPopup.value)
464
+ return
399
465
  const modalEl = modalRef.value
400
466
  const toggleButtonEl = toggleButtonRef.value
401
467
  if (!modalEl || !toggleButtonEl || event.composedPath().includes(modalEl) || event.composedPath().includes(toggleButtonEl))
@@ -410,13 +476,7 @@ window.addEventListener('click', (event) => {
410
476
  </script>
411
477
 
412
478
  <template>
413
- <div ref="modalRef" class="vue-devtools-panel" :style="panelPosition">
414
- <!-- client -->
415
- <iframe
416
- ref="iframe" :src="clientUrl" :style="{
417
- 'pointer-events': isDragging ? 'none' : 'auto',
418
- }" @load="onLoad"
419
- />
479
+ <div v-show="!isInPopup" ref="modalRef" class="vue-devtools-panel" :style="panelPosition">
420
480
  <!-- resize -->
421
481
  <template v-if="panelState.viewMode === 'default'">
422
482
  <template v-if="panelState.position !== 'top'">
@@ -458,7 +518,7 @@ window.addEventListener('click', (event) => {
458
518
  </div>
459
519
  <!-- toggle button -->
460
520
  <button
461
- ref="toggleButtonRef" class="vue-devtools-toggle" aria-label="Toggle devtools panel"
521
+ v-show="!isInPopup" ref="toggleButtonRef" class="vue-devtools-toggle" aria-label="Toggle devtools panel"
462
522
  :style="toggleButtonPosition" @click.prevent="togglePanel"
463
523
  >
464
524
  <svg viewBox="0 0 256 198" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -477,7 +537,7 @@ window.addEventListener('click', (event) => {
477
537
  height: calc(60vh - 20px);
478
538
  }
479
539
 
480
- .vue-devtools-panel iframe {
540
+ .vue-devtools-panel :deep(iframe) {
481
541
  width: 100%;
482
542
  height: 100%;
483
543
  outline: 0;
@@ -1,15 +0,0 @@
1
- import { aD as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-2b9ce289.js';
2
-
3
- /* unplugin-vue-components disabled */const _sfc_main = {};
4
-
5
- const _hoisted_1 = { class: "n-card n-card-base" };
6
-
7
- function _sfc_render(_ctx, _cache) {
8
- return (openBlock(), createElementBlock("div", _hoisted_1, [
9
- renderSlot(_ctx.$slots, "default")
10
- ]))
11
- }
12
- const __unplugin_components_7 = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
13
- /* Injected with object hook! */
14
-
15
- export { __unplugin_components_7 as _ };