@vitejs/devtools-vite 0.0.0-alpha.2 → 0.0.0-alpha.20

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 (94) hide show
  1. package/dist/{dirs-Z7VQHyIZ.js → dirs-BzX7rGLP.mjs} +1 -1
  2. package/dist/dirs.mjs +3 -0
  3. package/dist/index.d.mts +407 -0
  4. package/dist/index.mjs +9607 -0
  5. package/dist/nitro.json +3 -3
  6. package/dist/public/200.html +1 -1
  7. package/dist/public/404.html +1 -1
  8. package/dist/public/_nuxt/4_YkMRLM.js +1 -0
  9. package/dist/public/_nuxt/B6cncnam.js +1 -0
  10. package/dist/public/_nuxt/BReKREoN.js +33 -0
  11. package/dist/public/_nuxt/BaYRDImg.js +1 -0
  12. package/dist/public/_nuxt/Bij65W5n.js +1 -0
  13. package/dist/public/_nuxt/Bja_t-aS.js +1 -0
  14. package/dist/public/_nuxt/BrNGuicP.js +1 -0
  15. package/dist/public/_nuxt/BwW8gZ6K.js +1 -0
  16. package/dist/public/_nuxt/C8YTjkYM.js +1 -0
  17. package/dist/public/_nuxt/CDPpT6Cf.js +1 -0
  18. package/dist/public/_nuxt/CE23KUMI.js +1 -0
  19. package/dist/public/_nuxt/{BdGMcGSQ.js → CEj_FX93.js} +1 -1
  20. package/dist/public/_nuxt/CNlvL5ez.js +1 -0
  21. package/dist/public/_nuxt/CPYYHqxX.js +1 -0
  22. package/dist/public/_nuxt/CroQ9lcn.js +1 -0
  23. package/dist/public/_nuxt/Cu87lOT3.js +1 -0
  24. package/dist/public/_nuxt/D6yJLdbI.js +1 -0
  25. package/dist/public/_nuxt/DDRvb9yv.js +1 -0
  26. package/dist/public/_nuxt/DHdbcQDR.js +1 -0
  27. package/dist/public/_nuxt/{DSjlpmm-.js → DJFg8Mze.js} +1 -1
  28. package/dist/public/_nuxt/DkNjWA7f.js +1 -0
  29. package/dist/public/_nuxt/Ds1hqjlp.js +4 -0
  30. package/dist/public/_nuxt/DuSH8vtp.js +1 -0
  31. package/dist/public/_nuxt/{BQ-NBLhA.js → EZmie0b_.js} +1 -1
  32. package/dist/public/_nuxt/HyHtDydt.js +1 -0
  33. package/dist/public/_nuxt/L7giCKVM.js +1 -0
  34. package/dist/public/_nuxt/NkHXFX5A.js +1 -0
  35. package/dist/public/_nuxt/R6f4Y_SJ.js +1 -0
  36. package/dist/public/_nuxt/XY_il7uL.js +2 -0
  37. package/dist/public/_nuxt/{_session_.B0BbH92J.css → _session_.BXMlcDmB.css} +1 -1
  38. package/dist/public/_nuxt/builds/latest.json +1 -1
  39. package/dist/public/_nuxt/builds/meta/57a53e55-aaa8-4c2f-ab28-ef6c47fc2198.json +1 -0
  40. package/dist/public/_nuxt/diff.worker-CvsEE-qa.js +10 -0
  41. package/dist/public/_nuxt/entry.D_RYm3_j.css +1 -0
  42. package/dist/public/_nuxt/error-404.DSMcJjv-.css +1 -0
  43. package/dist/public/_nuxt/error-500.wvWNQOmL.css +1 -0
  44. package/dist/public/_nuxt/gdDtDkxO.js +1 -0
  45. package/dist/public/_nuxt/kgaOZT0B.js +1 -0
  46. package/dist/public/_nuxt/mJg3pdS2.js +1 -0
  47. package/dist/public/_nuxt/s37iQDTO.js +1 -0
  48. package/dist/public/_nuxt/x1G1EAUP.js +1 -0
  49. package/dist/public/_nuxt/xtsFKyex.js +1 -0
  50. package/dist/public/index.html +1 -1
  51. package/package.json +25 -24
  52. package/dist/dirs.js +0 -3
  53. package/dist/index.d.ts +0 -118
  54. package/dist/index.js +0 -1465
  55. package/dist/public/_nuxt/B1Vd6rqS.js +0 -1
  56. package/dist/public/_nuxt/B2YLpys2.js +0 -1
  57. package/dist/public/_nuxt/B2fBtupD.js +0 -1
  58. package/dist/public/_nuxt/BBRXmiYk.js +0 -1
  59. package/dist/public/_nuxt/BL9XEsp7.js +0 -1
  60. package/dist/public/_nuxt/BO9hKuA-.js +0 -1
  61. package/dist/public/_nuxt/BcAccMwu.js +0 -1
  62. package/dist/public/_nuxt/BdSZoQls.js +0 -1
  63. package/dist/public/_nuxt/BjbaCuBE.js +0 -1
  64. package/dist/public/_nuxt/Bjr51Ks8.js +0 -1
  65. package/dist/public/_nuxt/BvuqupwD.js +0 -1
  66. package/dist/public/_nuxt/C2X_oPur.js +0 -1
  67. package/dist/public/_nuxt/C5J04JCq.js +0 -1
  68. package/dist/public/_nuxt/CQNn9qP2.js +0 -1
  69. package/dist/public/_nuxt/CS0-317H.js +0 -1
  70. package/dist/public/_nuxt/CciM0jEL.js +0 -1
  71. package/dist/public/_nuxt/CcwEApAr.js +0 -1
  72. package/dist/public/_nuxt/Ci9NHG69.js +0 -1
  73. package/dist/public/_nuxt/D1yk44lc.js +0 -1
  74. package/dist/public/_nuxt/DJTxkAFF.js +0 -11
  75. package/dist/public/_nuxt/DS2MKblJ.js +0 -1
  76. package/dist/public/_nuxt/DZeYNBxL.js +0 -1
  77. package/dist/public/_nuxt/D_Sk_I-u.js +0 -1
  78. package/dist/public/_nuxt/Dl8iHwQo.js +0 -2
  79. package/dist/public/_nuxt/IrMnfQaU.js +0 -1
  80. package/dist/public/_nuxt/Z5tyTJaP.js +0 -1
  81. package/dist/public/_nuxt/builds/meta/c3fb67dd-1302-42f7-af58-b6ed5d47dbe9.json +0 -1
  82. package/dist/public/_nuxt/cRQbgMUp.js +0 -1
  83. package/dist/public/_nuxt/diff.worker-BXxwMoGc.js +0 -10
  84. package/dist/public/_nuxt/entry.BiqpDmeM.css +0 -1
  85. package/dist/public/_nuxt/error-404.yUUAZDjV.css +0 -1
  86. package/dist/public/_nuxt/error-500.BHZzZRS-.css +0 -1
  87. package/dist/public/_nuxt/pXptjyzi.js +0 -1
  88. package/dist/public/_nuxt/rwBDQBzn.js +0 -1
  89. package/dist/public/_nuxt/tS5wJZMm.js +0 -1
  90. package/dist/public/_nuxt/yfNgynAH.js +0 -33
  91. package/dist/public/_nuxt/z9pSC1xM.js +0 -1
  92. /package/dist/{dirs.d.ts → dirs.d.mts} +0 -0
  93. /package/dist/public/_nuxt/{DnpfwSMy.js → Cvg1SSG2.js} +0 -0
  94. /package/dist/public/_nuxt/{l47FwQA-.js → jB8TYliU.js} +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.2",
4
+ "version": "0.0.0-alpha.20",
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": "packages/devtools-vite",
10
+ "directory": "/vite",
11
11
  "type": "git",
12
12
  "url": "git+https://github.com/vitejs/devtools.git"
13
13
  },
@@ -18,22 +18,22 @@
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
+ "main": "./dist/index.mjs",
26
+ "module": "./dist/index.mjs",
27
+ "types": "./dist/index.d.mts",
28
28
  "files": [
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
32
  "@floating-ui/dom": "^1.7.4",
33
- "@pnpm/read-project-manifest": "^1001.1.3",
34
- "@rolldown/debug": "^1.0.0-beta.41",
33
+ "@pnpm/read-project-manifest": "^1001.2.2",
34
+ "@rolldown/debug": "^1.0.0-beta.54",
35
35
  "ansis": "^4.2.0",
36
- "birpc": "^2.6.1",
36
+ "birpc": "^4.0.0",
37
37
  "cac": "^6.7.14",
38
38
  "d3-shape": "^3.2.0",
39
39
  "diff": "^8.0.2",
@@ -42,29 +42,30 @@
42
42
  "mlly": "^1.8.0",
43
43
  "mrmime": "^2.0.1",
44
44
  "ohash": "^2.0.11",
45
- "p-limit": "^7.1.1",
45
+ "p-limit": "^7.2.0",
46
46
  "pathe": "^2.0.3",
47
- "publint": "^0.3.13",
47
+ "publint": "^0.3.16",
48
48
  "sirv": "^3.0.2",
49
49
  "split2": "^4.2.0",
50
50
  "structured-clone-es": "^1.0.0",
51
51
  "tinyglobby": "^0.2.15",
52
- "unconfig": "^7.3.3",
53
- "unstorage": "^1.17.1",
52
+ "unconfig": "^7.4.2",
53
+ "unstorage": "^1.17.3",
54
54
  "vue-virtual-scroller": "^2.0.0-beta.8",
55
55
  "ws": "^8.18.3",
56
- "@vitejs/devtools-kit": "0.0.0-alpha.2",
57
- "@vitejs/devtools-rpc": "0.0.0-alpha.2"
56
+ "@vitejs/devtools-kit": "0.0.0-alpha.20",
57
+ "@vitejs/devtools-rpc": "0.0.0-alpha.20"
58
58
  },
59
59
  "devDependencies": {
60
- "@types/codemirror": "^5.60.16",
60
+ "@types/codemirror": "^5.60.17",
61
61
  "@types/diff": "^8.0.0",
62
62
  "@types/split2": "^4.2.3",
63
63
  "@types/stream-json": "^1.7.8",
64
- "@unocss/nuxt": "^66.5.2",
65
- "@vueuse/components": "^13.9.0",
66
- "@vueuse/nuxt": "^13.9.0",
67
- "@vueuse/router": "^13.9.0",
64
+ "@unocss/nuxt": "^66.5.10",
65
+ "@vueuse/components": "^14.1.0",
66
+ "@vueuse/core": "^14.1.0",
67
+ "@vueuse/nuxt": "^14.1.0",
68
+ "@vueuse/router": "^14.1.0",
68
69
  "codemirror": "^5.65.20",
69
70
  "codemirror-theme-vars": "^0.1.2",
70
71
  "comlink": "^4.4.2",
@@ -74,15 +75,15 @@
74
75
  "floating-vue": "^5.2.2",
75
76
  "fuse.js": "^7.1.0",
76
77
  "idb-keyval": "^6.2.2",
77
- "nanovis": "^0.1.3",
78
+ "nanovis": "^1.0.0",
78
79
  "splitpanes": "^4.0.4",
79
80
  "stream-json": "^1.9.1",
80
81
  "theme-vitesse": "^1.0.0",
81
- "tsdown": "^0.15.6",
82
+ "tsdown": "^0.17.4",
82
83
  "vite-hot-client": "^2.1.0"
83
84
  },
84
85
  "scripts": {
85
- "build": "ROLLDOWN_OPTIONS_VALIDATION=loose nuxi build src && tsdown",
86
+ "build": "pnpm dev:prepare && ROLLDOWN_OPTIONS_VALIDATION=loose nuxi build src && tsdown",
86
87
  "build:debug": "NUXT_DEBUG_BUILD=true pnpm run build",
87
88
  "dev": "ROLLDOWN_OPTIONS_VALIDATION=loose nuxi dev src",
88
89
  "dev:prepare": "nuxi prepare src"
package/dist/dirs.js DELETED
@@ -1,3 +0,0 @@
1
- import { clientPublicDir } from "./dirs-Z7VQHyIZ.js";
2
-
3
- export { clientPublicDir };
package/dist/index.d.ts DELETED
@@ -1,118 +0,0 @@
1
- import { Plugin, ResolvedConfig, ViteDevServer } from "vite";
2
-
3
- //#region ../devtools-kit/src/types/rpc-augments.d.ts
4
-
5
- /**
6
- * To be extended
7
- */
8
- interface DevToolsRpcServerFunctions {}
9
- //#endregion
10
- //#region ../devtools-kit/src/types/utils.d.ts
11
- type Thenable<T> = T | Promise<T>;
12
- //#endregion
13
- //#region ../devtools-kit/src/types/views.d.ts
14
- interface DevToolsDockHost {
15
- register: (entry: DevToolsDockEntry) => void;
16
- values: () => DevToolsDockEntry[];
17
- }
18
- interface DevToolsDockEntryBase {
19
- id: string;
20
- title: string;
21
- icon: string;
22
- }
23
- interface DevToolsViewIframe extends DevToolsDockEntryBase {
24
- type: 'iframe';
25
- url: string;
26
- /**
27
- * The id of the iframe, if multiple tabs is assigned with the same id, the iframe will be shared.
28
- *
29
- * When not provided, it would be treated as a unique frame.
30
- */
31
- frameId?: string;
32
- }
33
- interface DevToolsViewWebComponent extends DevToolsDockEntryBase {
34
- type: 'webcomponent';
35
- from: string;
36
- import: string;
37
- }
38
- interface DevToolsViewAction extends DevToolsDockEntryBase {
39
- type: 'action';
40
- importFrom: string;
41
- /**
42
- * @default 'default'
43
- */
44
- importName?: string;
45
- }
46
- type DevToolsDockEntry = DevToolsViewIframe | DevToolsViewWebComponent | DevToolsViewAction;
47
- //#endregion
48
- //#region ../devtools-kit/src/types/vite-plugin.d.ts
49
- interface DevToolsCapabilities {
50
- rpc?: boolean;
51
- views?: boolean;
52
- }
53
- interface DevToolsPluginOptions {
54
- capabilities?: {
55
- dev?: DevToolsCapabilities | boolean;
56
- build?: DevToolsCapabilities | boolean;
57
- };
58
- setup: (context: DevToolsNodeContext) => void | Promise<void>;
59
- }
60
- interface DevToolsNodeContext {
61
- readonly cwd: string;
62
- readonly mode: 'dev' | 'build';
63
- readonly viteConfig: ResolvedConfig;
64
- readonly viteServer?: ViteDevServer;
65
- rpc: RpcFunctionsHost;
66
- docks: DevToolsDockHost;
67
- /**
68
- * Helper to host static files
69
- * - In `dev` mode, it will register middleware to `viteServer.middlewares` to host the static files
70
- * - In `build` mode, it will copy the static files to the dist directory
71
- */
72
- hostStatic: (baseUrl: string, distDir: string) => void;
73
- staticDirs: {
74
- baseUrl: string;
75
- distDir: string;
76
- }[];
77
- }
78
- //#endregion
79
- //#region ../devtools-kit/src/types/rpc.d.ts
80
- /**
81
- * Type of the RPC function,
82
- * - static: A function that returns a static data (can be cached and dumped)
83
- * - action: A function that performs an action (no data returned)
84
- * - query: A function that queries a resource
85
- */
86
- type RpcFunctionType = 'static' | 'action' | 'query';
87
- interface RpcFunctionsHost {
88
- context: DevToolsNodeContext;
89
- readonly functions: DevToolsRpcServerFunctions;
90
- readonly definitions: Map<string, RpcFunctionDefinition<string, any, any, any>>;
91
- register: (fn: RpcFunctionDefinition<string, any, any, any>) => void;
92
- }
93
- interface RpcFunctionSetupResult<ARGS extends any[], RETURN = void> {
94
- handler: (...args: ARGS) => RETURN;
95
- }
96
- interface RpcFunctionDefinition<NAME extends string, TYPE extends RpcFunctionType, ARGS extends any[] = [], RETURN = void> {
97
- name: NAME;
98
- type: TYPE;
99
- setup: (context: DevToolsNodeContext) => Thenable<RpcFunctionSetupResult<ARGS, RETURN>>;
100
- handler?: (...args: ARGS) => RETURN;
101
- __resolved?: RpcFunctionSetupResult<ARGS, RETURN>;
102
- __promise?: Thenable<RpcFunctionSetupResult<ARGS, RETURN>>;
103
- }
104
- //#endregion
105
- //#region ../devtools-kit/src/types/vite-augment.d.ts
106
- declare module 'vite' {
107
- interface Plugin {
108
- devtools?: DevToolsPluginOptions;
109
- }
110
- }
111
- interface PluginWithDevTools extends Plugin {
112
- devtools?: DevToolsPluginOptions;
113
- }
114
- //#endregion
115
- //#region src/node/plugin.d.ts
116
- declare function DevToolsViteUI(): PluginWithDevTools;
117
- //#endregion
118
- export { DevToolsViteUI };