@vitejs/devtools-vite 0.0.0-alpha.9 → 0.4.3

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 (91) hide show
  1. package/dist/{dirs-K_XnRVOr.js → dirs.mjs} +1 -3
  2. package/dist/index.d.mts +101 -0
  3. package/dist/index.mjs +2254 -0
  4. package/dist/nitro.json +3 -3
  5. package/dist/public/200.html +1 -1
  6. package/dist/public/404.html +1 -1
  7. package/dist/public/_nuxt/0fZFclj2.js +2 -0
  8. package/dist/public/_nuxt/457Jr4Pr.js +1 -0
  9. package/dist/public/_nuxt/B1xYalZA.js +1 -0
  10. package/dist/public/_nuxt/BDNMzG2s.js +1 -0
  11. package/dist/public/_nuxt/BJv-YGcz.js +1 -0
  12. package/dist/public/_nuxt/BKuuhLmM.js +1 -0
  13. package/dist/public/_nuxt/BjJFp2QE.js +1 -0
  14. package/dist/public/_nuxt/C3lVFA1Q.js +1 -0
  15. package/dist/public/_nuxt/CAlSLYmJ.js +1 -0
  16. package/dist/public/_nuxt/CHXuaNaj.js +1 -0
  17. package/dist/public/_nuxt/CJwKXY9k.js +1 -0
  18. package/dist/public/_nuxt/CQYaOgKz.js +1 -0
  19. package/dist/public/_nuxt/CWPpjZx6.js +1 -0
  20. package/dist/public/_nuxt/CeVkPjP7.js +12 -0
  21. package/dist/public/_nuxt/D3MExTHO.js +3 -0
  22. package/dist/public/_nuxt/K3CNNOBf.js +2 -0
  23. package/dist/public/_nuxt/NLJpu4QF.js +1 -0
  24. package/dist/public/_nuxt/QSP1yWcH.js +1 -0
  25. package/dist/public/_nuxt/builds/latest.json +1 -1
  26. package/dist/public/_nuxt/builds/meta/d3f7ed61-b5b0-435f-9c70-ecd6f63b3201.json +1 -0
  27. package/dist/public/_nuxt/diff.worker-DFeiLCV8.js +10 -0
  28. package/dist/public/_nuxt/entry.CzwuNVVL.css +1 -0
  29. package/dist/public/_nuxt/error-404.YVLV_SWG.css +1 -0
  30. package/dist/public/_nuxt/error-500.DoVxOHYG.css +1 -0
  31. package/dist/public/_nuxt/filepath.CX8PXv9n.css +1 -0
  32. package/dist/public/_nuxt/graph.qvMalRQi.css +1 -0
  33. package/dist/public/_nuxt/plugins.CtM-Tp_V.css +1 -0
  34. package/dist/public/_nuxt/rpc.CVTFzytL.css +1 -0
  35. package/dist/public/favicon.svg +127 -12
  36. package/dist/public/fonts/dmmono-53a90e28.woff2 +0 -0
  37. package/dist/public/fonts/dmmono-cd6ed524.woff2 +0 -0
  38. package/dist/public/fonts/dmsans-54dbf8a8.woff2 +0 -0
  39. package/dist/public/fonts/dmsans-c55bbe7a.woff2 +0 -0
  40. package/dist/public/index.html +1 -1
  41. package/package.json +30 -51
  42. package/dist/dirs.js +0 -3
  43. package/dist/index.d.ts +0 -146
  44. package/dist/index.js +0 -1508
  45. package/dist/public/_nuxt/17ealR8P.js +0 -1
  46. package/dist/public/_nuxt/2OALqkc2.js +0 -1
  47. package/dist/public/_nuxt/AuXMpmu_.js +0 -1
  48. package/dist/public/_nuxt/B-LCQpq9.js +0 -2
  49. package/dist/public/_nuxt/B-MkobAt.js +0 -1
  50. package/dist/public/_nuxt/BFwdTbGt.js +0 -1
  51. package/dist/public/_nuxt/BQPGP7j8.js +0 -1
  52. package/dist/public/_nuxt/B_mZ82Ef.js +0 -1
  53. package/dist/public/_nuxt/BkcJ9YuP.js +0 -33
  54. package/dist/public/_nuxt/Bs1eUuZt.js +0 -1
  55. package/dist/public/_nuxt/C2Zn9dj_.js +0 -1
  56. package/dist/public/_nuxt/CIZ7KSXz.js +0 -1
  57. package/dist/public/_nuxt/CSwEzrF7.js +0 -11
  58. package/dist/public/_nuxt/CbzAqNxs.js +0 -1
  59. package/dist/public/_nuxt/ChaI2u-J.js +0 -1
  60. package/dist/public/_nuxt/CmZYssbg.js +0 -1
  61. package/dist/public/_nuxt/Cnct9GAr.js +0 -1
  62. package/dist/public/_nuxt/Cq2KqeQT.js +0 -1
  63. package/dist/public/_nuxt/Cql2HFZJ.js +0 -1
  64. package/dist/public/_nuxt/D-ZnEyqr.js +0 -1
  65. package/dist/public/_nuxt/D03ETnho.js +0 -1
  66. package/dist/public/_nuxt/D2Zr4_9a.js +0 -1
  67. package/dist/public/_nuxt/D7AVRXB9.js +0 -1
  68. package/dist/public/_nuxt/DL1ysgP5.js +0 -1
  69. package/dist/public/_nuxt/DP5rIU2b.js +0 -1
  70. package/dist/public/_nuxt/DQtLZa7C.js +0 -1
  71. package/dist/public/_nuxt/DcamI1aQ.js +0 -1
  72. package/dist/public/_nuxt/DnpfwSMy.js +0 -1
  73. package/dist/public/_nuxt/HzvsUJ0F.js +0 -1
  74. package/dist/public/_nuxt/Jdu9jmuG.js +0 -1
  75. package/dist/public/_nuxt/LMGHh3hZ.js +0 -1
  76. package/dist/public/_nuxt/SO3ppn9m.js +0 -1
  77. package/dist/public/_nuxt/VirtualList.lGV_3v2U.css +0 -1
  78. package/dist/public/_nuxt/X7aOo9pb.js +0 -1
  79. package/dist/public/_nuxt/_hSlj5r4.js +0 -1
  80. package/dist/public/_nuxt/_session_.B0BbH92J.css +0 -1
  81. package/dist/public/_nuxt/builds/meta/ef0d166a-8482-442c-9350-f2a451006de7.json +0 -1
  82. package/dist/public/_nuxt/diff.worker-DCsgdfuV.js +0 -10
  83. package/dist/public/_nuxt/entry.D6FiGaDn.css +0 -1
  84. package/dist/public/_nuxt/error-404.CCdr3eE4.css +0 -1
  85. package/dist/public/_nuxt/error-500.D-vBsHK_.css +0 -1
  86. package/dist/public/_nuxt/lxg2Cb0s.js +0 -1
  87. package/dist/public/_nuxt/mIZU4Om9.js +0 -1
  88. package/dist/public/_nuxt/qkzn-X0p.js +0 -1
  89. package/dist/public/_nuxt/vzoJapJG.js +0 -1
  90. package/dist/public/vite-devtools.svg +0 -17
  91. /package/dist/{dirs.d.ts → dirs.d.mts} +0 -0
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@vitejs/devtools-vite",
3
3
  "type": "module",
4
- "version": "0.0.0-alpha.9",
4
+ "version": "0.4.3",
5
5
  "description": "DevTools for Vite (work in progress)",
6
6
  "author": "VoidZero Inc.",
7
7
  "license": "MIT",
8
8
  "homepage": "https://github.com/vitejs/devtools#readme",
9
9
  "repository": {
10
- "directory": "/vite",
10
+ "directory": "packages/vite",
11
11
  "type": "git",
12
12
  "url": "git+https://github.com/vitejs/devtools.git"
13
13
  },
@@ -18,73 +18,52 @@
18
18
  ],
19
19
  "sideEffects": false,
20
20
  "exports": {
21
- ".": "./dist/index.js",
22
- "./dirs": "./dist/dirs.js",
21
+ ".": "./dist/index.mjs",
22
+ "./dirs": "./dist/dirs.mjs",
23
23
  "./package.json": "./package.json"
24
24
  },
25
- "main": "./dist/index.js",
26
- "module": "./dist/index.js",
27
- "types": "./dist/index.d.ts",
25
+ "types": "./dist/index.d.mts",
28
26
  "files": [
29
27
  "dist"
30
28
  ],
29
+ "peerDependencies": {
30
+ "vite": "*"
31
+ },
31
32
  "dependencies": {
32
- "@floating-ui/dom": "^1.7.4",
33
- "@pnpm/read-project-manifest": "^1001.1.4",
34
- "@rolldown/debug": "^1.0.0-beta.45",
35
- "ansis": "^4.2.0",
36
- "birpc": "^2.6.1",
37
- "cac": "^6.7.14",
33
+ "@floating-ui/dom": "^1.8.0",
38
34
  "d3-shape": "^3.2.0",
39
- "diff": "^8.0.2",
40
- "get-port-please": "^3.2.0",
41
- "h3": "^1.15.4",
42
- "mlly": "^1.8.0",
43
- "mrmime": "^2.0.1",
44
- "ohash": "^2.0.11",
45
- "p-limit": "^7.2.0",
35
+ "envinfo": "^7.21.0",
36
+ "nostics": "^1.2.0",
46
37
  "pathe": "^2.0.3",
47
- "publint": "^0.3.15",
48
- "sirv": "^3.0.2",
49
- "split2": "^4.2.0",
50
- "structured-clone-es": "^1.0.0",
51
- "tinyglobby": "^0.2.15",
52
- "unconfig": "^7.3.3",
53
- "unstorage": "^1.17.1",
54
- "vue-virtual-scroller": "^2.0.0-beta.8",
55
- "ws": "^8.18.3",
56
- "@vitejs/devtools-kit": "0.0.0-alpha.9",
57
- "@vitejs/devtools-rpc": "0.0.0-alpha.9"
38
+ "perfect-debounce": "^2.1.0",
39
+ "@vitejs/devtools-kit": "0.4.3"
58
40
  },
59
41
  "devDependencies": {
60
- "@types/codemirror": "^5.60.17",
61
- "@types/diff": "^8.0.0",
62
- "@types/split2": "^4.2.3",
63
- "@types/stream-json": "^1.7.8",
64
- "@unocss/nuxt": "^66.5.4",
65
- "@vueuse/components": "^14.0.0",
66
- "@vueuse/nuxt": "^14.0.0",
67
- "@vueuse/router": "^14.0.0",
68
- "codemirror": "^5.65.20",
69
- "codemirror-theme-vars": "^0.1.2",
42
+ "@types/d3-hierarchy": "^3.1.7",
43
+ "@types/envinfo": "^7.8.4",
44
+ "@types/splitpanes": "^2.2.6",
45
+ "@unocss/nuxt": "^66.7.5",
46
+ "@vueuse/components": "^14.3.0",
47
+ "@vueuse/core": "^14.3.0",
48
+ "@vueuse/nuxt": "^14.3.0",
70
49
  "comlink": "^4.4.2",
71
- "d3": "^7.9.0",
72
50
  "d3-hierarchy": "^3.1.2",
73
- "diff-match-patch-es": "^1.0.1",
51
+ "devframe": "^0.7.9",
52
+ "diff-match-patch-es": "^2.0.0",
74
53
  "floating-vue": "^5.2.2",
75
- "fuse.js": "^7.1.0",
76
- "idb-keyval": "^6.2.2",
54
+ "fuse.js": "^7.5.0",
55
+ "modern-monaco": "^0.4.2",
77
56
  "nanovis": "^1.0.0",
78
- "splitpanes": "^4.0.4",
79
- "stream-json": "^1.9.1",
80
- "theme-vitesse": "^1.0.0",
81
- "tsdown": "^0.15.12",
82
- "vite-hot-client": "^2.1.0"
57
+ "splitpanes": "^4.1.2",
58
+ "tsdown": "^0.22.13",
59
+ "unocss": "^66.7.5",
60
+ "vue-virtual-scroller": "^3.0.4",
61
+ "@vitejs/devtools-ui": "0.4.3"
83
62
  },
84
63
  "scripts": {
85
64
  "build": "pnpm dev:prepare && ROLLDOWN_OPTIONS_VALIDATION=loose nuxi build src && tsdown",
86
65
  "build:debug": "NUXT_DEBUG_BUILD=true pnpm run build",
87
- "dev": "ROLLDOWN_OPTIONS_VALIDATION=loose nuxi dev src",
66
+ "dev": "DEBUG='vite:devtools:*' ROLLDOWN_OPTIONS_VALIDATION=loose nuxi dev src",
88
67
  "dev:prepare": "nuxi prepare src"
89
68
  }
90
69
  }
package/dist/dirs.js DELETED
@@ -1,3 +0,0 @@
1
- import { t as clientPublicDir } from "./dirs-K_XnRVOr.js";
2
-
3
- export { clientPublicDir };
package/dist/index.d.ts DELETED
@@ -1,146 +0,0 @@
1
- import { Plugin, ResolvedConfig, ViteDevServer } from "vite";
2
-
3
- //#region ../kit/src/types/rpc-augments.d.ts
4
-
5
- /**
6
- * To be extended
7
- */
8
- interface DevToolsRpcServerFunctions {}
9
- //#endregion
10
- //#region ../kit/src/types/utils.d.ts
11
- type Thenable<T> = T | Promise<T>;
12
- //#endregion
13
- //#region ../kit/src/types/views.d.ts
14
- interface DevToolsDockHost {
15
- views: Map<string, DevToolsDockEntry>;
16
- register: (entry: DevToolsDockEntry) => void;
17
- update: (entry: DevToolsDockEntry) => void;
18
- values: () => DevToolsDockEntry[];
19
- }
20
- interface DevToolsViewHost {
21
- /**
22
- * @internal
23
- */
24
- buildStaticDirs: {
25
- baseUrl: string;
26
- distDir: string;
27
- }[];
28
- /**
29
- * Helper to host static files
30
- * - In `dev` mode, it will register middleware to `viteServer.middlewares` to host the static files
31
- * - In `build` mode, it will copy the static files to the dist directory
32
- */
33
- hostStatic: (baseUrl: string, distDir: string) => void;
34
- }
35
- interface DevToolsDockEntryBase {
36
- id: string;
37
- title: string;
38
- icon: string;
39
- }
40
- interface ClientScriptEntry {
41
- /**
42
- * The filepath or module name to import from
43
- */
44
- importFrom: string;
45
- /**
46
- * The name to import the module as
47
- *
48
- * @default 'default'
49
- */
50
- importName?: string;
51
- }
52
- interface DevToolsViewIframe extends DevToolsDockEntryBase {
53
- type: 'iframe';
54
- url: string;
55
- /**
56
- * The id of the iframe, if multiple tabs is assigned with the same id, the iframe will be shared.
57
- *
58
- * When not provided, it would be treated as a unique frame.
59
- */
60
- frameId?: string;
61
- /**
62
- * Optional script to import into the iframe
63
- */
64
- import?: ClientScriptEntry;
65
- }
66
- interface DevToolsViewWebComponent extends DevToolsDockEntryBase {
67
- type: 'webcomponent';
68
- import: ClientScriptEntry;
69
- }
70
- interface DevToolsViewAction extends DevToolsDockEntryBase {
71
- type: 'action';
72
- import: ClientScriptEntry;
73
- }
74
- interface DevToolsViewCustomRender extends DevToolsDockEntryBase {
75
- type: 'custom-render';
76
- import: ClientScriptEntry;
77
- }
78
- type DevToolsDockEntry = DevToolsViewIframe | DevToolsViewWebComponent | DevToolsViewAction | DevToolsViewCustomRender;
79
- //#endregion
80
- //#region ../kit/src/types/vite-plugin.d.ts
81
- interface DevToolsCapabilities {
82
- rpc?: boolean;
83
- views?: boolean;
84
- }
85
- interface DevToolsPluginOptions {
86
- capabilities?: {
87
- dev?: DevToolsCapabilities | boolean;
88
- build?: DevToolsCapabilities | boolean;
89
- };
90
- setup: (context: DevToolsNodeContext) => void | Promise<void>;
91
- }
92
- interface DevToolsNodeContext {
93
- readonly cwd: string;
94
- readonly mode: 'dev' | 'build';
95
- readonly viteConfig: ResolvedConfig;
96
- readonly viteServer?: ViteDevServer;
97
- rpc: RpcFunctionsHost;
98
- docks: DevToolsDockHost;
99
- views: DevToolsViewHost;
100
- utils: DevToolsNodeUtils;
101
- }
102
- interface DevToolsNodeUtils {
103
- clientEntryFromSimpleFunction: (fn: () => void) => ClientScriptEntry;
104
- }
105
- //#endregion
106
- //#region ../kit/src/types/rpc.d.ts
107
- /**
108
- * Type of the RPC function,
109
- * - static: A function that returns a static data (can be cached and dumped)
110
- * - action: A function that performs an action (no data returned)
111
- * - query: A function that queries a resource
112
- */
113
- type RpcFunctionType = 'static' | 'action' | 'query';
114
- interface RpcFunctionsHost {
115
- context: DevToolsNodeContext;
116
- readonly functions: DevToolsRpcServerFunctions;
117
- readonly definitions: Map<string, RpcFunctionDefinition<string, any, any, any>>;
118
- register: (fn: RpcFunctionDefinition<string, any, any, any>) => void;
119
- update: (fn: RpcFunctionDefinition<string, any, any, any>) => void;
120
- }
121
- interface RpcFunctionSetupResult<ARGS extends any[], RETURN = void> {
122
- handler: (...args: ARGS) => RETURN;
123
- }
124
- interface RpcFunctionDefinition<NAME extends string, TYPE extends RpcFunctionType, ARGS extends any[] = [], RETURN = void> {
125
- name: NAME;
126
- type: TYPE;
127
- setup: (context: DevToolsNodeContext) => Thenable<RpcFunctionSetupResult<ARGS, RETURN>>;
128
- handler?: (...args: ARGS) => RETURN;
129
- __resolved?: RpcFunctionSetupResult<ARGS, RETURN>;
130
- __promise?: Thenable<RpcFunctionSetupResult<ARGS, RETURN>>;
131
- }
132
- //#endregion
133
- //#region ../kit/src/types/vite-augment.d.ts
134
- declare module 'vite' {
135
- interface Plugin {
136
- devtools?: DevToolsPluginOptions;
137
- }
138
- }
139
- interface PluginWithDevTools extends Plugin {
140
- devtools?: DevToolsPluginOptions;
141
- }
142
- //#endregion
143
- //#region src/node/plugin.d.ts
144
- declare function DevToolsViteUI(): PluginWithDevTools;
145
- //#endregion
146
- export { DevToolsViteUI };