vite-plugin-vue-devtools 7.0.15 → 7.0.16

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.
package/dist/vite.d.cts CHANGED
@@ -1,5 +1,57 @@
1
- import { PluginOption } from 'vite';
1
+ import { ResolvedConfig, ViteDevServer, PluginOption } from 'vite';
2
2
  import { VitePluginInspectorOptions } from 'vite-plugin-vue-inspector';
3
+ import { ViteInspectAPI } from 'vite-plugin-inspect';
4
+
5
+ declare function getViteConfig(config: ResolvedConfig): void;
6
+
7
+ interface ModuleInfo {
8
+ id: string;
9
+ plugins: {
10
+ name: string;
11
+ transform?: number;
12
+ resolveId?: number;
13
+ }[];
14
+ deps: string[];
15
+ virtual: boolean;
16
+ }
17
+ declare function setupGraphModule(options: {
18
+ rpc: ViteInspectAPI['rpc'];
19
+ server: ViteDevServer;
20
+ }): void;
21
+
22
+ type AssetType = 'image' | 'font' | 'video' | 'audio' | 'text' | 'json' | 'other';
23
+ interface AssetInfo {
24
+ path: string;
25
+ type: AssetType;
26
+ publicPath: string;
27
+ filePath: string;
28
+ size: number;
29
+ mtime: number;
30
+ }
31
+ interface ImageMeta {
32
+ width: number;
33
+ height: number;
34
+ orientation?: number;
35
+ type?: string;
36
+ mimeType?: string;
37
+ }
38
+ interface AssetEntry {
39
+ path: string;
40
+ content: string;
41
+ encoding?: BufferEncoding;
42
+ override?: boolean;
43
+ }
44
+ interface CodeSnippet {
45
+ code: string;
46
+ lang: string;
47
+ name: string;
48
+ docs?: string;
49
+ }
50
+ declare function setupAssetsModule(options: {
51
+ rpc: ViteInspectAPI['rpc'];
52
+ server: ViteDevServer;
53
+ config: ResolvedConfig;
54
+ }): void;
3
55
 
4
56
  interface VitePluginVueDevToolsOptions {
5
57
  /**
@@ -30,4 +82,4 @@ interface VitePluginVueDevToolsOptions {
30
82
  }
31
83
  declare function VitePluginVueDevTools(options?: VitePluginVueDevToolsOptions): PluginOption;
32
84
 
33
- export { type VitePluginVueDevToolsOptions, VitePluginVueDevTools as default };
85
+ export { type AssetEntry, type AssetInfo, type AssetType, type CodeSnippet, type ImageMeta, type ModuleInfo, type VitePluginVueDevToolsOptions, VitePluginVueDevTools as default, getViteConfig, setupAssetsModule, setupGraphModule };
package/dist/vite.d.mts CHANGED
@@ -1,5 +1,57 @@
1
- import { PluginOption } from 'vite';
1
+ import { ResolvedConfig, ViteDevServer, PluginOption } from 'vite';
2
2
  import { VitePluginInspectorOptions } from 'vite-plugin-vue-inspector';
3
+ import { ViteInspectAPI } from 'vite-plugin-inspect';
4
+
5
+ declare function getViteConfig(config: ResolvedConfig): void;
6
+
7
+ interface ModuleInfo {
8
+ id: string;
9
+ plugins: {
10
+ name: string;
11
+ transform?: number;
12
+ resolveId?: number;
13
+ }[];
14
+ deps: string[];
15
+ virtual: boolean;
16
+ }
17
+ declare function setupGraphModule(options: {
18
+ rpc: ViteInspectAPI['rpc'];
19
+ server: ViteDevServer;
20
+ }): void;
21
+
22
+ type AssetType = 'image' | 'font' | 'video' | 'audio' | 'text' | 'json' | 'other';
23
+ interface AssetInfo {
24
+ path: string;
25
+ type: AssetType;
26
+ publicPath: string;
27
+ filePath: string;
28
+ size: number;
29
+ mtime: number;
30
+ }
31
+ interface ImageMeta {
32
+ width: number;
33
+ height: number;
34
+ orientation?: number;
35
+ type?: string;
36
+ mimeType?: string;
37
+ }
38
+ interface AssetEntry {
39
+ path: string;
40
+ content: string;
41
+ encoding?: BufferEncoding;
42
+ override?: boolean;
43
+ }
44
+ interface CodeSnippet {
45
+ code: string;
46
+ lang: string;
47
+ name: string;
48
+ docs?: string;
49
+ }
50
+ declare function setupAssetsModule(options: {
51
+ rpc: ViteInspectAPI['rpc'];
52
+ server: ViteDevServer;
53
+ config: ResolvedConfig;
54
+ }): void;
3
55
 
4
56
  interface VitePluginVueDevToolsOptions {
5
57
  /**
@@ -30,4 +82,4 @@ interface VitePluginVueDevToolsOptions {
30
82
  }
31
83
  declare function VitePluginVueDevTools(options?: VitePluginVueDevToolsOptions): PluginOption;
32
84
 
33
- export { type VitePluginVueDevToolsOptions, VitePluginVueDevTools as default };
85
+ export { type AssetEntry, type AssetInfo, type AssetType, type CodeSnippet, type ImageMeta, type ModuleInfo, type VitePluginVueDevToolsOptions, VitePluginVueDevTools as default, getViteConfig, setupAssetsModule, setupGraphModule };
package/dist/vite.d.ts CHANGED
@@ -1,5 +1,57 @@
1
- import { PluginOption } from 'vite';
1
+ import { ResolvedConfig, ViteDevServer, PluginOption } from 'vite';
2
2
  import { VitePluginInspectorOptions } from 'vite-plugin-vue-inspector';
3
+ import { ViteInspectAPI } from 'vite-plugin-inspect';
4
+
5
+ declare function getViteConfig(config: ResolvedConfig): void;
6
+
7
+ interface ModuleInfo {
8
+ id: string;
9
+ plugins: {
10
+ name: string;
11
+ transform?: number;
12
+ resolveId?: number;
13
+ }[];
14
+ deps: string[];
15
+ virtual: boolean;
16
+ }
17
+ declare function setupGraphModule(options: {
18
+ rpc: ViteInspectAPI['rpc'];
19
+ server: ViteDevServer;
20
+ }): void;
21
+
22
+ type AssetType = 'image' | 'font' | 'video' | 'audio' | 'text' | 'json' | 'other';
23
+ interface AssetInfo {
24
+ path: string;
25
+ type: AssetType;
26
+ publicPath: string;
27
+ filePath: string;
28
+ size: number;
29
+ mtime: number;
30
+ }
31
+ interface ImageMeta {
32
+ width: number;
33
+ height: number;
34
+ orientation?: number;
35
+ type?: string;
36
+ mimeType?: string;
37
+ }
38
+ interface AssetEntry {
39
+ path: string;
40
+ content: string;
41
+ encoding?: BufferEncoding;
42
+ override?: boolean;
43
+ }
44
+ interface CodeSnippet {
45
+ code: string;
46
+ lang: string;
47
+ name: string;
48
+ docs?: string;
49
+ }
50
+ declare function setupAssetsModule(options: {
51
+ rpc: ViteInspectAPI['rpc'];
52
+ server: ViteDevServer;
53
+ config: ResolvedConfig;
54
+ }): void;
3
55
 
4
56
  interface VitePluginVueDevToolsOptions {
5
57
  /**
@@ -30,4 +82,4 @@ interface VitePluginVueDevToolsOptions {
30
82
  }
31
83
  declare function VitePluginVueDevTools(options?: VitePluginVueDevToolsOptions): PluginOption;
32
84
 
33
- export { type VitePluginVueDevToolsOptions, VitePluginVueDevTools as default };
85
+ export { type AssetEntry, type AssetInfo, type AssetType, type CodeSnippet, type ImageMeta, type ModuleInfo, type VitePluginVueDevToolsOptions, VitePluginVueDevTools as default, getViteConfig, setupAssetsModule, setupGraphModule };