@vitejs/devtools 0.0.0-alpha.13 → 0.0.0-alpha.15

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.
@@ -1,4 +1,4 @@
1
- import { a as ansis_default, c as fromNodeMiddleware, d as createDevToolsContext, i as getPort, l as sendRedirect, n as createDevToolsMiddleware, o as createApp, r as MARK_NODE, s as eventHandler, t as DevTools, u as toNodeListener } from "./plugins-C-9mB5Hx.js";
1
+ import { a as ansis_default, c as fromNodeMiddleware, d as createDevToolsContext, i as getPort, l as sendRedirect, n as createDevToolsMiddleware, o as createApp, r as MARK_NODE, s as eventHandler, t as DevTools, u as toNodeListener } from "./plugins-CMhTYtP5.js";
2
2
  import { t as dirClientStandalone } from "./dirs-DcSK9l9L.js";
3
3
  import { existsSync } from "node:fs";
4
4
  import sirv from "sirv";
@@ -1,5 +1,5 @@
1
- import "./plugins-C-9mB5Hx.js";
1
+ import "./plugins-CMhTYtP5.js";
2
2
  import "./dirs-DcSK9l9L.js";
3
- import { n as start, t as build } from "./cli-commands-BRo4A4PO.js";
3
+ import { n as start, t as build } from "./cli-commands-B_cK7BjS.js";
4
4
 
5
5
  export { build, start };
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./plugins-C-9mB5Hx.js";
1
+ import "./plugins-CMhTYtP5.js";
2
2
  import "./dirs-DcSK9l9L.js";
3
- import { n as start, t as build } from "./cli-commands-BRo4A4PO.js";
3
+ import { n as start, t as build } from "./cli-commands-B_cK7BjS.js";
4
4
  import process from "node:process";
5
5
  import cac from "cac";
6
6
 
@@ -1,4 +1,4 @@
1
- import { n as createDocksContext, o as useLocalStorage } from "../webcomponents-B0JGu3h4.js";
1
+ import { n as createDocksContext, o as useLocalStorage } from "../webcomponents--5hckJ4R.js";
2
2
  import { getDevToolsRpcClient } from "@vitejs/devtools-kit/client";
3
3
 
4
4
  //#region src/client/inject/index.ts
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Vite DevTools</title>
7
7
  <meta name="description" content="Vite DevTools" />
8
- <script type="module" crossorigin src="./assets/index-D8I_zW-0.js"></script>
8
+ <script type="module" crossorigin src="./assets/index-C8DHrtPi.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="./assets/index-cEBqyH_x.css">
10
10
  </head>
11
11
  <body class="font-sans dark:text-white dark:bg-black">
@@ -1,3 +1,3 @@
1
- import { a as PresistedDomViewsManager, i as PresistedDomHolder, n as createDocksContext, r as DockEmbedded, t as DEFAULT_DOCK_PANEL_STORE } from "../webcomponents-B0JGu3h4.js";
1
+ import { a as PresistedDomViewsManager, i as PresistedDomHolder, n as createDocksContext, r as DockEmbedded, t as DEFAULT_DOCK_PANEL_STORE } from "../webcomponents--5hckJ4R.js";
2
2
 
3
3
  export { DEFAULT_DOCK_PANEL_STORE, DockEmbedded, PresistedDomHolder, PresistedDomViewsManager, createDocksContext };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as createDevToolsContext, n as createDevToolsMiddleware, t as DevTools } from "./plugins-C-9mB5Hx.js";
1
+ import { d as createDevToolsContext, n as createDevToolsMiddleware, t as DevTools } from "./plugins-CMhTYtP5.js";
2
2
  import "./dirs-DcSK9l9L.js";
3
3
 
4
4
  export { DevTools, createDevToolsContext, createDevToolsMiddleware };
@@ -1312,10 +1312,9 @@ function DevToolsServer() {
1312
1312
  const map = /* @__PURE__ */ new Map();
1313
1313
  for (const dock of docks) {
1314
1314
  const id$1 = `${dock.type}:${dock.id}`;
1315
- if (dock.type === "action") map.set(id$1, dock.action || dock.import);
1315
+ if (dock.type === "action") map.set(id$1, dock.action);
1316
1316
  else if (dock.type === "custom-render") map.set(id$1, dock.renderer);
1317
1317
  else if (dock.type === "iframe" && dock.clientScript) map.set(id$1, dock.clientScript);
1318
- else if ("import" in dock) map.set(id$1, dock.import);
1319
1318
  }
1320
1319
  return [
1321
1320
  `export const importsMap = {`,
@@ -7618,7 +7618,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7618
7618
  }, +context.panel.store.inactiveTimeout || 0);
7619
7619
  }
7620
7620
  const { width: frameWidth, height: frameHeight } = useElementBounding(dockPanel);
7621
- const iframeStyle = computed(() => {
7621
+ const panelStyle = computed(() => {
7622
7622
  mousePosition.x, mousePosition.y;
7623
7623
  const halfHeight = (props.dockEl?.clientHeight || 0) / 2;
7624
7624
  const frameMargin = {
@@ -7686,7 +7686,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7686
7686
  ref_key: "dockPanel",
7687
7687
  ref: dockPanel,
7688
7688
  class: "bg-glass rounded-lg border border-base shadow",
7689
- style: normalizeStyle(iframeStyle.value)
7689
+ style: normalizeStyle(panelStyle.value)
7690
7690
  }, [
7691
7691
  createVNode(DockPanelResizer_default, { panel: unref(context).panel }, null, 8, ["panel"]),
7692
7692
  unref(selected) && viewsContainer.value ? (openBlock(), createBlock(ViewEntry_default, {
@@ -7710,7 +7710,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7710
7710
  ref: viewsContainer,
7711
7711
  class: "absolute inset-0"
7712
7712
  }, null, 512)
7713
- ], 4)), [[vShow, unref(context).docks.selected]]);
7713
+ ], 4)), [[vShow, unref(context).docks.selected && unref(context).docks.selected.type !== "action"]]);
7714
7714
  };
7715
7715
  }
7716
7716
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitejs/devtools",
3
3
  "type": "module",
4
- "version": "0.0.0-alpha.13",
4
+ "version": "0.0.0-alpha.15",
5
5
  "description": "Vite DevTools",
6
6
  "author": "VoidZero Inc.",
7
7
  "license": "MIT",
@@ -50,20 +50,20 @@
50
50
  "pathe": "^2.0.3",
51
51
  "sirv": "^3.0.2",
52
52
  "ws": "^8.18.3",
53
- "@vitejs/devtools-kit": "0.0.0-alpha.13",
54
- "@vitejs/devtools-rpc": "0.0.0-alpha.13",
55
- "@vitejs/devtools-vite": "0.0.0-alpha.13"
53
+ "@vitejs/devtools-rpc": "0.0.0-alpha.15",
54
+ "@vitejs/devtools-vite": "0.0.0-alpha.15",
55
+ "@vitejs/devtools-kit": "0.0.0-alpha.15"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@vitejs/plugin-vue": "^6.0.1",
59
- "tsdown": "^0.15.12",
59
+ "tsdown": "^0.16.1",
60
60
  "typescript": "^5.9.3",
61
61
  "unplugin-vue": "^7.0.4",
62
62
  "vite": "npm:rolldown-vite@^7.2.2",
63
63
  "vue": "^3.5.24",
64
64
  "vue-tsc": "^3.1.3",
65
- "@vitejs/devtools": "0.0.0-alpha.13",
66
- "@vitejs/devtools-vite": "0.0.0-alpha.13"
65
+ "@vitejs/devtools": "0.0.0-alpha.15",
66
+ "@vitejs/devtools-vite": "0.0.0-alpha.15"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "pnpm build:js && pnpm build:standalone",