@vitejs/devtools-kit 0.0.0-alpha.8 → 0.0.0-alpha.9

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 (2) hide show
  1. package/dist/client.d.ts +20 -2
  2. package/package.json +2 -2
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { D as DevToolsRpcServerFunctions, E as DevToolsRpcClientFunctions, u as ConnectionMeta } from "./index-BtaHil_c.js";
1
+ import { D as DevToolsRpcServerFunctions, E as DevToolsRpcClientFunctions, g as DevToolsDockEntry, u as ConnectionMeta } from "./index-BtaHil_c.js";
2
2
  import { WebSocketRpcClientOptions } from "@vitejs/devtools-rpc/presets/ws/client";
3
3
  import { BirpcOptions, BirpcReturn } from "birpc";
4
4
 
@@ -9,9 +9,27 @@ interface DevToolsRpcClientOptions {
9
9
  wsOptions?: Partial<WebSocketRpcClientOptions>;
10
10
  rpcOptions?: Partial<BirpcOptions<DevToolsRpcServerFunctions>>;
11
11
  }
12
+ interface ImportScriptContext {
13
+ /**
14
+ * The dock entry info of the current dock item
15
+ */
16
+ dockEntry: DevToolsDockEntry;
17
+ /**
18
+ * The current state of the dock
19
+ */
20
+ dockState: 'active' | 'inactive';
21
+ /**
22
+ * Function to hide the panel, if applicable
23
+ */
24
+ hidePanel: () => void;
25
+ /**
26
+ * The panel element to mount into, if applicable
27
+ */
28
+ elPanel?: HTMLElement | null;
29
+ }
12
30
  declare function getDevToolsRpcClient(options?: DevToolsRpcClientOptions): Promise<{
13
31
  connectionMeta: ConnectionMeta;
14
32
  rpc: BirpcReturn<DevToolsRpcServerFunctions, DevToolsRpcClientFunctions>;
15
33
  }>;
16
34
  //#endregion
17
- export { DevToolsRpcClientOptions, getDevToolsRpcClient };
35
+ export { DevToolsRpcClientOptions, ImportScriptContext, getDevToolsRpcClient };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitejs/devtools-kit",
3
3
  "type": "module",
4
- "version": "0.0.0-alpha.8",
4
+ "version": "0.0.0-alpha.9",
5
5
  "description": "Vite DevTools Kit",
6
6
  "author": "VoidZero Inc.",
7
7
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "birpc": "^2.6.1",
37
- "@vitejs/devtools-rpc": "0.0.0-alpha.8"
37
+ "@vitejs/devtools-rpc": "0.0.0-alpha.9"
38
38
  },
39
39
  "devDependencies": {
40
40
  "tsdown": "^0.15.12",