@vitejs/devtools-vite 0.0.0-alpha.17 → 0.0.0-alpha.18

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 (54) hide show
  1. package/dist/index.d.mts +81 -63
  2. package/dist/index.mjs +10723 -156
  3. package/dist/nitro.json +1 -1
  4. package/dist/public/200.html +1 -1
  5. package/dist/public/404.html +1 -1
  6. package/dist/public/_nuxt/{BBFR_Uo5.js → 7Xmy2J8w.js} +1 -1
  7. package/dist/public/_nuxt/{Ivdx0lA9.js → B3PvEETZ.js} +1 -1
  8. package/dist/public/_nuxt/{RlFrOrwQ.js → B9OSaO_y.js} +1 -1
  9. package/dist/public/_nuxt/{sTN5Ot43.js → BC_PfwI9.js} +1 -1
  10. package/dist/public/_nuxt/{BVY1sWiJ.js → BKyQoL6o.js} +1 -1
  11. package/dist/public/_nuxt/{CI-Sc-2P.js → BMA1s1VI.js} +1 -1
  12. package/dist/public/_nuxt/{B661rCRY.js → BUo-D9gX.js} +3 -3
  13. package/dist/public/_nuxt/{D7fGBzoc.js → BZWmKTD9.js} +1 -1
  14. package/dist/public/_nuxt/{CrP3spb8.js → BZtNaBML.js} +1 -1
  15. package/dist/public/_nuxt/{D-NARtgK.js → Bexkoyc0.js} +1 -1
  16. package/dist/public/_nuxt/{f1KvgLIQ.js → BmVkH5Zk.js} +1 -1
  17. package/dist/public/_nuxt/{DdkDM4fj.js → Brb1aI-2.js} +1 -1
  18. package/dist/public/_nuxt/{BiQ0ZhR_.js → C2OwekHB.js} +1 -1
  19. package/dist/public/_nuxt/{Bl_zhAit.js → C3jmS5U3.js} +1 -1
  20. package/dist/public/_nuxt/{CoLW5wV8.js → C6Dt55Q_.js} +1 -1
  21. package/dist/public/_nuxt/{C_cs-58z.js → CEjOBQvu.js} +1 -1
  22. package/dist/public/_nuxt/{DHD8rbcK.js → CPoVdMeM.js} +1 -1
  23. package/dist/public/_nuxt/{BYCB-Hif.js → CbwMXojR.js} +1 -1
  24. package/dist/public/_nuxt/{Cv1sf0OD.js → CiEs9bP4.js} +1 -1
  25. package/dist/public/_nuxt/{7pdU4mzw.js → Cs8a9RWb.js} +1 -1
  26. package/dist/public/_nuxt/{mbqImpEE.js → CuCopH82.js} +1 -1
  27. package/dist/public/_nuxt/{DQDcWwzr.js → Cuw21ZGH.js} +1 -1
  28. package/dist/public/_nuxt/D4hayKlJ.js +1 -0
  29. package/dist/public/_nuxt/{VMul6hew.js → D4jWsLoz.js} +1 -1
  30. package/dist/public/_nuxt/DC_Jmw0F.js +1 -0
  31. package/dist/public/_nuxt/{CHrIIE6Z.js → DIDN4Ni9.js} +1 -1
  32. package/dist/public/_nuxt/{BdsP-Cx2.js → DMWw7fde.js} +1 -1
  33. package/dist/public/_nuxt/DPbvd5Yn.js +1 -0
  34. package/dist/public/_nuxt/{BB7zYkKg.js → DYWgomYl.js} +1 -1
  35. package/dist/public/_nuxt/{BwrSljRH.js → HdutzUjM.js} +1 -1
  36. package/dist/public/_nuxt/{vlGwL1DD.js → IRC0Jirb.js} +1 -1
  37. package/dist/public/_nuxt/builds/latest.json +1 -1
  38. package/dist/public/_nuxt/builds/meta/2a08e48f-ceea-4c2d-9171-63b36d85d409.json +1 -0
  39. package/dist/public/_nuxt/ebWyu6T_.js +33 -0
  40. package/dist/public/_nuxt/{entry.C1YP59mZ.css → entry.CsYdxLia.css} +1 -1
  41. package/dist/public/_nuxt/error-404.l69urhXw.css +1 -0
  42. package/dist/public/_nuxt/error-500.C1nOm2YL.css +1 -0
  43. package/dist/public/_nuxt/{BO4TB9gH.js → qjx43ao6.js} +1 -1
  44. package/dist/public/_nuxt/{Dd9_UU0g.js → w-XmH5Bg.js} +1 -1
  45. package/dist/public/_nuxt/{zcv9DqOS.js → xNC6DpAO.js} +1 -1
  46. package/dist/public/index.html +1 -1
  47. package/package.json +7 -7
  48. package/dist/public/_nuxt/BsfPzBLD.js +0 -33
  49. package/dist/public/_nuxt/CHXCO5ia.js +0 -1
  50. package/dist/public/_nuxt/DAv0Rzal.js +0 -1
  51. package/dist/public/_nuxt/builds/meta/f71a649b-f47c-44eb-9005-86c44268b9bf.json +0 -1
  52. package/dist/public/_nuxt/error-404.Brb8RtBp.css +0 -1
  53. package/dist/public/_nuxt/error-500.BscIrM8z.css +0 -1
  54. package/dist/public/_nuxt/falkWS6X.js +0 -1
package/dist/index.d.mts CHANGED
@@ -5,6 +5,84 @@ import { Emitter } from "nanoevents";
5
5
  import { Raw } from "vue";
6
6
  import "@vitejs/devtools-rpc/presets/ws/client";
7
7
 
8
+ //#region ../kit/src/types/docks.d.ts
9
+ interface DevToolsDockHost {
10
+ views: Map<string, DevToolsDockEntry>;
11
+ register: (entry: DevToolsDockEntry) => void;
12
+ update: (entry: DevToolsDockEntry) => void;
13
+ values: () => DevToolsDockEntry[];
14
+ }
15
+ type DevToolsDockEntryCategory = 'app' | 'framework' | 'web' | 'advanced' | 'default';
16
+ type DevToolsDockEntryIcon = string | {
17
+ light: string;
18
+ dark: string;
19
+ };
20
+ interface DevToolsDockEntryBase {
21
+ id: string;
22
+ title: string;
23
+ icon: DevToolsDockEntryIcon;
24
+ /**
25
+ * The default order of the entry in the dock.
26
+ * The higher the number the earlier it appears.
27
+ * @default 0
28
+ */
29
+ defaultOrder?: number;
30
+ /**
31
+ * The category of the entry
32
+ * @default 'default'
33
+ */
34
+ category?: DevToolsDockEntryCategory;
35
+ }
36
+ interface ClientScriptEntry {
37
+ /**
38
+ * The filepath or module name to import from
39
+ */
40
+ importFrom: string;
41
+ /**
42
+ * The name to import the module as
43
+ *
44
+ * @default 'default'
45
+ */
46
+ importName?: string;
47
+ }
48
+ interface DevToolsViewIframe extends DevToolsDockEntryBase {
49
+ type: 'iframe';
50
+ url: string;
51
+ /**
52
+ * The id of the iframe, if multiple tabs is assigned with the same id, the iframe will be shared.
53
+ *
54
+ * When not provided, it would be treated as a unique frame.
55
+ */
56
+ frameId?: string;
57
+ /**
58
+ * Optional client script to import into the iframe
59
+ */
60
+ clientScript?: ClientScriptEntry;
61
+ }
62
+ type DevToolsViewLauncherStatus = 'idle' | 'loading' | 'success' | 'error';
63
+ interface DevToolsViewLauncher extends DevToolsDockEntryBase {
64
+ type: 'launcher';
65
+ launcher: {
66
+ icon?: DevToolsDockEntryIcon;
67
+ title: string;
68
+ status?: DevToolsViewLauncherStatus;
69
+ error?: string;
70
+ description?: string;
71
+ buttonStart?: string;
72
+ buttonLoading?: string;
73
+ onLaunch: () => Promise<void>;
74
+ };
75
+ }
76
+ interface DevToolsViewAction extends DevToolsDockEntryBase {
77
+ type: 'action';
78
+ action: ClientScriptEntry;
79
+ }
80
+ interface DevToolsViewCustomRender extends DevToolsDockEntryBase {
81
+ type: 'custom-render';
82
+ renderer: ClientScriptEntry;
83
+ }
84
+ type DevToolsDockEntry = DevToolsViewIframe | DevToolsViewAction | DevToolsViewCustomRender | DevToolsViewLauncher;
85
+ //#endregion
8
86
  //#region ../kit/src/types/rpc-augments.d.ts
9
87
  /**
10
88
  * To be extended
@@ -39,7 +117,7 @@ interface DocksContext extends DevToolsClientContext {
39
117
  * Type of the client environment
40
118
  *
41
119
  * 'embedded' - running inside an embedded floating panel
42
- * 'standalone' - running inside a standlone window (no user app)
120
+ * 'standalone' - running inside a standalone window (no user app)
43
121
  */
44
122
  readonly clientType: 'embedded' | 'standalone';
45
123
  /**
@@ -63,7 +141,8 @@ interface DocksPanelContext {
63
141
  readonly isVertical: boolean;
64
142
  }
65
143
  interface DocksEntriesContext {
66
- selected: DevToolsDockEntry | null;
144
+ selectedId: string | null;
145
+ readonly selected: DevToolsDockEntry | null;
67
146
  entries: DevToolsDockEntry[];
68
147
  entryToStateMap: Map<string, DockEntryState>;
69
148
  /**
@@ -106,12 +185,6 @@ interface DockClientScriptContext extends DocksContext {
106
185
  }
107
186
  //#endregion
108
187
  //#region ../kit/src/types/views.d.ts
109
- interface DevToolsDockHost {
110
- views: Map<string, DevToolsDockEntry>;
111
- register: (entry: DevToolsDockEntry) => void;
112
- update: (entry: DevToolsDockEntry) => void;
113
- values: () => DevToolsDockEntry[];
114
- }
115
188
  interface DevToolsViewHost {
116
189
  /**
117
190
  * @internal
@@ -127,61 +200,6 @@ interface DevToolsViewHost {
127
200
  */
128
201
  hostStatic: (baseUrl: string, distDir: string) => void;
129
202
  }
130
- type DevToolsDockEntryCategory = 'app' | 'framework' | 'web' | 'advanced' | 'default';
131
- interface DevToolsDockEntryBase {
132
- id: string;
133
- title: string;
134
- icon: string | {
135
- light: string;
136
- dark: string;
137
- };
138
- /**
139
- * The default order of the entry in the dock.
140
- * The higher the number the earlier it appears.
141
- * @default 0
142
- */
143
- defaultOrder?: number;
144
- /**
145
- * The category of the entry
146
- * @default 'default'
147
- */
148
- category?: DevToolsDockEntryCategory;
149
- }
150
- interface ClientScriptEntry {
151
- /**
152
- * The filepath or module name to import from
153
- */
154
- importFrom: string;
155
- /**
156
- * The name to import the module as
157
- *
158
- * @default 'default'
159
- */
160
- importName?: string;
161
- }
162
- interface DevToolsViewIframe extends DevToolsDockEntryBase {
163
- type: 'iframe';
164
- url: string;
165
- /**
166
- * The id of the iframe, if multiple tabs is assigned with the same id, the iframe will be shared.
167
- *
168
- * When not provided, it would be treated as a unique frame.
169
- */
170
- frameId?: string;
171
- /**
172
- * Optional client script to import into the iframe
173
- */
174
- clientScript?: ClientScriptEntry;
175
- }
176
- interface DevToolsViewAction extends DevToolsDockEntryBase {
177
- type: 'action';
178
- action: ClientScriptEntry;
179
- }
180
- interface DevToolsViewCustomRender extends DevToolsDockEntryBase {
181
- type: 'custom-render';
182
- renderer: ClientScriptEntry;
183
- }
184
- type DevToolsDockEntry = DevToolsViewIframe | DevToolsViewAction | DevToolsViewCustomRender;
185
203
  //#endregion
186
204
  //#region ../kit/src/types/vite-plugin.d.ts
187
205
  interface DevToolsCapabilities {