@vitejs/devtools 0.0.0-alpha.24 → 0.0.0-alpha.26

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 (26) hide show
  1. package/dist/{DockIcon-B3uZMhP_.js → DockIcon-guXN-Dg1.js} +30 -30
  2. package/dist/{ViewBuiltinLogs-FLr_sRZn.js → ViewBuiltinLogs-CSFcoXHM.js} +1 -1
  3. package/dist/{ViewBuiltinTerminals-D-EWWPT5.js → ViewBuiltinTerminals-Cojpb-fR.js} +54 -54
  4. package/dist/{cli-commands-tTICAwZZ.js → cli-commands-DTrA5QU8.js} +4 -3
  5. package/dist/cli-commands.js +2 -2
  6. package/dist/cli.js +2 -2
  7. package/dist/client/inject.js +15 -3
  8. package/dist/client/standalone/assets/ViewBuiltinLogs-C4iyfEw1.js +1 -0
  9. package/dist/client/standalone/assets/{ViewBuiltinTerminals-x7geWavo.js → ViewBuiltinTerminals-C2zjH4Eh.js} +2 -2
  10. package/dist/client/standalone/assets/index-BlqhxxEb.js +2 -0
  11. package/dist/client/standalone/assets/index-DR7GNsjy.css +1 -0
  12. package/dist/client/standalone/index.html +2 -2
  13. package/dist/client/webcomponents.d.ts +4 -3
  14. package/dist/client/webcomponents.js +613 -156
  15. package/dist/{dist-Ce2tZLIf.js → dist-DMSdRXqd.js} +104 -2
  16. package/dist/docks-DMCIffwx.js +131 -0
  17. package/dist/{index-BYIZX1ss.d.ts → index-DqO60P8I.d.ts} +22 -7
  18. package/dist/index.d.ts +10 -9
  19. package/dist/index.js +1 -1
  20. package/dist/{plugins-Palbn5Oi.js → plugins-CJzaRd9B.js} +154 -813
  21. package/dist/{vue.runtime.esm-bundler-B98sE5ly.js → vue.runtime.esm-bundler-fEVOOaBD.js} +72 -37
  22. package/package.json +9 -9
  23. package/dist/client/standalone/assets/ViewBuiltinLogs-CnVEaSMm.js +0 -1
  24. package/dist/client/standalone/assets/index-BQSrRIa9.css +0 -1
  25. package/dist/client/standalone/assets/index-BTGj0xT1.js +0 -2
  26. package/dist/docks-C4bgrO3z.js +0 -71
@@ -1,4 +1,4 @@
1
- import { A as getCurrentScope, B as unref, E as watchEffect, F as ref, I as shallowRef, L as toRef$1, M as onScopeDispose, P as readonly, T as watch, _ as inject, g as hasInjectionContext, h as getCurrentInstance, k as customRef, o as computed, v as nextTick, y as onMounted, z as toValue } from "./vue.runtime.esm-bundler-B98sE5ly.js";
1
+ import { B as toRef$1, F as onScopeDispose, H as toValue, L as readonly, M as customRef, N as getCurrentScope, O as watch, R as ref, S as onMounted, U as unref, _ as getCurrentInstance, b as inject, k as watchEffect, s as computed, x as nextTick, y as hasInjectionContext, z as shallowRef } from "./vue.runtime.esm-bundler-fEVOOaBD.js";
2
2
 
3
3
  //#region ../../node_modules/.pnpm/@vueuse+shared@14.1.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
4
4
  /**
@@ -40,6 +40,11 @@ const notNullish = (val) => val != null;
40
40
  const toString = Object.prototype.toString;
41
41
  const isObject = (val) => toString.call(val) === "[object Object]";
42
42
  const noop = () => {};
43
+ const isIOS = /* @__PURE__ */ getIsIOS();
44
+ function getIsIOS() {
45
+ var _window, _window2, _window3;
46
+ return isClient && !!((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.navigator) === null || _window2 === void 0 ? void 0 : _window2.maxTouchPoints) > 2 && /iPad|Macintosh/.test((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.navigator.userAgent));
47
+ }
43
48
  function toRef(...args) {
44
49
  if (args.length !== 1) return toRef$1(...args);
45
50
  const r = args[0];
@@ -202,6 +207,13 @@ function tryOnMounted(fn, sync = true, target) {
202
207
  else if (sync) fn();
203
208
  else nextTick(fn);
204
209
  }
210
+ function watchDebounced(source, cb, options = {}) {
211
+ const { debounce = 0, maxWait = void 0, ...watchOptions } = options;
212
+ return watchWithFilter(source, cb, {
213
+ ...watchOptions,
214
+ eventFilter: debounceFilter(debounce, { maxWait })
215
+ });
216
+ }
205
217
  /**
206
218
  * Shorthand for watching value with {immediate: true}
207
219
  *
@@ -256,6 +268,96 @@ function useEventListener(...args) {
256
268
  });
257
269
  }, { flush: "post" });
258
270
  }
271
+ let _iOSWorkaround = false;
272
+ function onClickOutside(target, handler, options = {}) {
273
+ const { window: window$1 = defaultWindow, ignore = [], capture = true, detectIframe = false, controls = false } = options;
274
+ if (!window$1) return controls ? {
275
+ stop: noop,
276
+ cancel: noop,
277
+ trigger: noop
278
+ } : noop;
279
+ if (isIOS && !_iOSWorkaround) {
280
+ _iOSWorkaround = true;
281
+ const listenerOptions = { passive: true };
282
+ Array.from(window$1.document.body.children).forEach((el) => el.addEventListener("click", noop, listenerOptions));
283
+ window$1.document.documentElement.addEventListener("click", noop, listenerOptions);
284
+ }
285
+ let shouldListen = true;
286
+ const shouldIgnore = (event) => {
287
+ return toValue(ignore).some((target$1) => {
288
+ if (typeof target$1 === "string") return Array.from(window$1.document.querySelectorAll(target$1)).some((el) => el === event.target || event.composedPath().includes(el));
289
+ else {
290
+ const el = unrefElement(target$1);
291
+ return el && (event.target === el || event.composedPath().includes(el));
292
+ }
293
+ });
294
+ };
295
+ /**
296
+ * Determines if the given target has multiple root elements.
297
+ * Referenced from: https://github.com/vuejs/test-utils/blob/ccb460be55f9f6be05ab708500a41ec8adf6f4bc/src/vue-wrapper.ts#L21
298
+ */
299
+ function hasMultipleRoots(target$1) {
300
+ const vm = toValue(target$1);
301
+ return vm && vm.$.subTree.shapeFlag === 16;
302
+ }
303
+ function checkMultipleRoots(target$1, event) {
304
+ const vm = toValue(target$1);
305
+ const children = vm.$.subTree && vm.$.subTree.children;
306
+ if (children == null || !Array.isArray(children)) return false;
307
+ return children.some((child) => child.el === event.target || event.composedPath().includes(child.el));
308
+ }
309
+ const listener = (event) => {
310
+ const el = unrefElement(target);
311
+ if (event.target == null) return;
312
+ if (!(el instanceof Element) && hasMultipleRoots(target) && checkMultipleRoots(target, event)) return;
313
+ if (!el || el === event.target || event.composedPath().includes(el)) return;
314
+ if ("detail" in event && event.detail === 0) shouldListen = !shouldIgnore(event);
315
+ if (!shouldListen) {
316
+ shouldListen = true;
317
+ return;
318
+ }
319
+ handler(event);
320
+ };
321
+ let isProcessingClick = false;
322
+ const cleanup = [
323
+ useEventListener(window$1, "click", (event) => {
324
+ if (!isProcessingClick) {
325
+ isProcessingClick = true;
326
+ setTimeout(() => {
327
+ isProcessingClick = false;
328
+ }, 0);
329
+ listener(event);
330
+ }
331
+ }, {
332
+ passive: true,
333
+ capture
334
+ }),
335
+ useEventListener(window$1, "pointerdown", (e) => {
336
+ const el = unrefElement(target);
337
+ shouldListen = !shouldIgnore(e) && !!(el && !e.composedPath().includes(el));
338
+ }, { passive: true }),
339
+ detectIframe && useEventListener(window$1, "blur", (event) => {
340
+ setTimeout(() => {
341
+ var _window$document$acti;
342
+ const el = unrefElement(target);
343
+ if (((_window$document$acti = window$1.document.activeElement) === null || _window$document$acti === void 0 ? void 0 : _window$document$acti.tagName) === "IFRAME" && !(el === null || el === void 0 ? void 0 : el.contains(window$1.document.activeElement))) handler(event);
344
+ }, 0);
345
+ }, { passive: true })
346
+ ].filter(Boolean);
347
+ const stop = () => cleanup.forEach((fn) => fn());
348
+ if (controls) return {
349
+ stop,
350
+ cancel: () => {
351
+ shouldListen = false;
352
+ },
353
+ trigger: (event) => {
354
+ shouldListen = true;
355
+ listener(event);
356
+ shouldListen = false;
357
+ }
358
+ };
359
+ return stop;
360
+ }
259
361
  /**
260
362
  * Mounted state in ref.
261
363
  *
@@ -812,4 +914,4 @@ function useWindowSize(options = {}) {
812
914
  }
813
915
 
814
916
  //#endregion
815
- export { useWindowSize as a, useScreenSafeArea as i, useEventListener as n, watchImmediate as o, useLocalStorage as r, useElementBounding as t };
917
+ export { useScreenSafeArea as a, watchDebounced as c, useLocalStorage as i, watchImmediate as l, useElementBounding as n, useWindowSize as o, useEventListener as r, useDebounceFn as s, onClickOutside as t };
@@ -0,0 +1,131 @@
1
+ import { I as reactive, O as watch, P as markRaw, z as shallowRef } from "./vue.runtime.esm-bundler-fEVOOaBD.js";
2
+ import { createEventEmitter } from "@vitejs/devtools-kit/utils/events";
3
+
4
+ //#region src/client/webcomponents/constants.ts
5
+ const BUILTIN_ENTRY_CLIENT_AUTH_NOTICE = Object.freeze({
6
+ type: "~builtin",
7
+ id: "~client-auth-notice",
8
+ title: "Unauthorized",
9
+ icon: "i-fluent-emoji-flat-warning"
10
+ });
11
+ const BUILTIN_ENTRIES = Object.freeze([BUILTIN_ENTRY_CLIENT_AUTH_NOTICE]);
12
+ const DEFAULT_CATEGORIES_ORDER = {
13
+ "~viteplus": -1e3,
14
+ "default": 0,
15
+ "app": 100,
16
+ "framework": 200,
17
+ "web": 300,
18
+ "advanced": 400,
19
+ "~builtin": 1e3
20
+ };
21
+
22
+ //#endregion
23
+ //#region src/client/webcomponents/state/dock-settings.ts
24
+ /**
25
+ * Group and sort dock entries based on user settings.
26
+ * Filters out hidden entries and categories, sorts by pinned status, custom order, and default order.
27
+ */
28
+ function docksGroupByCategories(entries, settings, options) {
29
+ const { docksHidden, docksCategoriesHidden, docksCustomOrder, docksPinned } = settings;
30
+ const { includeHidden = false } = options ?? {};
31
+ const map = /* @__PURE__ */ new Map();
32
+ for (const entry of entries) {
33
+ if (entry.isHidden && !includeHidden) continue;
34
+ if (!includeHidden && docksHidden.includes(entry.id)) continue;
35
+ const category = entry.category ?? "default";
36
+ if (!includeHidden && docksCategoriesHidden.includes(category)) continue;
37
+ if (!map.has(category)) map.set(category, []);
38
+ map.get(category).push(entry);
39
+ }
40
+ const grouped = Array.from(map.entries()).sort(([a], [b]) => {
41
+ const ia = DEFAULT_CATEGORIES_ORDER[a] || 0;
42
+ const ib = DEFAULT_CATEGORIES_ORDER[b] || 0;
43
+ return ib === ia ? b.localeCompare(a) : ia - ib;
44
+ });
45
+ grouped.forEach(([_, items]) => {
46
+ items.sort((a, b) => {
47
+ const aPinned = docksPinned.includes(a.id);
48
+ if (aPinned !== docksPinned.includes(b.id)) return aPinned ? -1 : 1;
49
+ const customOrderA = docksCustomOrder[a.id] ?? 0;
50
+ const customOrderB = docksCustomOrder[b.id] ?? 0;
51
+ if (customOrderA !== customOrderB) return customOrderA - customOrderB;
52
+ const ia = a.defaultOrder ?? 0;
53
+ const ib = b.defaultOrder ?? 0;
54
+ return ib === ia ? b.title.localeCompare(a.title) : ia - ib;
55
+ });
56
+ });
57
+ return grouped;
58
+ }
59
+ /**
60
+ * Split grouped entries into visible and overflow based on capacity.
61
+ */
62
+ function docksSplitGroupsWithCapacity(groups, capacity) {
63
+ const visible = [];
64
+ const overflow = [];
65
+ let left = capacity;
66
+ for (const [category, items] of groups) if (left <= 0) overflow.push([category, items]);
67
+ else if (items.length > left) {
68
+ visible.push([category, items.slice(0, left)]);
69
+ overflow.push([category, items.slice(left)]);
70
+ left = 0;
71
+ } else {
72
+ left -= items.length;
73
+ visible.push([category, items]);
74
+ }
75
+ return {
76
+ visible,
77
+ overflow
78
+ };
79
+ }
80
+
81
+ //#endregion
82
+ //#region src/client/webcomponents/state/docks.ts
83
+ function DEFAULT_DOCK_PANEL_STORE() {
84
+ return {
85
+ width: 80,
86
+ height: 80,
87
+ top: 0,
88
+ left: 10,
89
+ position: "bottom",
90
+ open: false,
91
+ inactiveTimeout: 3e3
92
+ };
93
+ }
94
+ function createDockEntryState(entry, selected) {
95
+ const events = createEventEmitter();
96
+ const state = reactive({
97
+ entryMeta: entry,
98
+ get isActive() {
99
+ return selected.value?.id === entry.id;
100
+ },
101
+ domElements: {},
102
+ events: markRaw(events)
103
+ });
104
+ watch(() => selected.value?.id, (newSelectedId) => {
105
+ if (newSelectedId === entry.id) events.emit("entry:activated");
106
+ else events.emit("entry:deactivated");
107
+ }, { immediate: true });
108
+ watch(() => state.domElements.iframe, (newIframe) => {
109
+ if (newIframe) events.emit("dom:iframe:mounted", newIframe);
110
+ }, { immediate: true });
111
+ watch(() => state.domElements.panel, (newPanel) => {
112
+ if (newPanel) events.emit("dom:panel:mounted", newPanel);
113
+ }, { immediate: true });
114
+ return state;
115
+ }
116
+ function sharedStateToRef(sharedState) {
117
+ const ref = shallowRef(sharedState.value());
118
+ sharedState.on("updated", (newState) => {
119
+ ref.value = newState;
120
+ });
121
+ return ref;
122
+ }
123
+ let _docksEntriesRef;
124
+ async function useDocksEntries(rpc) {
125
+ if (_docksEntriesRef) return _docksEntriesRef;
126
+ _docksEntriesRef = sharedStateToRef(await rpc.sharedState.get("devtoolskit:internal:docks", { initialValue: [] }));
127
+ return _docksEntriesRef;
128
+ }
129
+
130
+ //#endregion
131
+ export { docksGroupByCategories as a, BUILTIN_ENTRY_CLIENT_AUTH_NOTICE as c, useDocksEntries as i, createDockEntryState as n, docksSplitGroupsWithCapacity as o, sharedStateToRef as r, BUILTIN_ENTRIES as s, DEFAULT_DOCK_PANEL_STORE as t };
@@ -25,14 +25,14 @@ interface EventEmitter<Events extends EventsMap> {
25
25
  * @param event The event name.
26
26
  * @param args The arguments for listeners.
27
27
  */
28
- emit: <K$1 extends keyof Events>(event: K$1, ...args: Parameters<Events[K$1]>) => void;
28
+ emit: <K extends keyof Events>(event: K, ...args: Parameters<Events[K]>) => void;
29
29
  /**
30
30
  * Calls the listeners for a given event once and then removes the listener.
31
31
  *
32
32
  * @param event The event name.
33
33
  * @param args The arguments for listeners.
34
34
  */
35
- emitOnce: <K$1 extends keyof Events>(event: K$1, ...args: Parameters<Events[K$1]>) => void;
35
+ emitOnce: <K extends keyof Events>(event: K, ...args: Parameters<Events[K]>) => void;
36
36
  /**
37
37
  * Event names in keys and arrays with listeners in values.
38
38
  *
@@ -56,7 +56,7 @@ interface EventEmitter<Events extends EventsMap> {
56
56
  * @param cb The listener function.
57
57
  * @returns Unbind listener from event.
58
58
  */
59
- on: <K$1 extends keyof Events>(event: K$1, cb: Events[K$1]) => EventUnsubscribe;
59
+ on: <K extends keyof Events>(event: K, cb: Events[K]) => EventUnsubscribe;
60
60
  /**
61
61
  * Add a listener for a given event once.
62
62
  *
@@ -74,7 +74,7 @@ interface EventEmitter<Events extends EventsMap> {
74
74
  * @param cb The listener function.
75
75
  * @returns Unbind listener from event.
76
76
  */
77
- once: <K$1 extends keyof Events>(event: K$1, cb: Events[K$1]) => EventUnsubscribe;
77
+ once: <K extends keyof Events>(event: K, cb: Events[K]) => EventUnsubscribe;
78
78
  }
79
79
  //#endregion
80
80
  //#region ../kit/src/types/docks.d.ts
@@ -91,7 +91,7 @@ interface DevToolsDockHost {
91
91
  includeBuiltin?: boolean;
92
92
  }) => DevToolsDockEntry[];
93
93
  }
94
- type DevToolsDockEntryCategory = 'app' | 'framework' | 'web' | 'advanced' | 'default' | 'builtin';
94
+ type DevToolsDockEntryCategory = 'app' | 'framework' | 'web' | 'advanced' | 'default' | '~viteplus' | '~builtin';
95
95
  type DevToolsDockEntryIcon = string | {
96
96
  light: string;
97
97
  dark: string;
@@ -185,7 +185,7 @@ interface DevToolsNodeRpcSessionMeta {
185
185
  type ImmutablePrimitive = undefined | null | boolean | string | number | Function;
186
186
  type Immutable<T> = T extends ImmutablePrimitive ? T : T extends Array<infer U> ? ImmutableArray<U> : T extends Map<infer K, infer V> ? ImmutableMap<K, V> : T extends Set<infer M> ? ImmutableSet<M> : ImmutableObject<T>;
187
187
  type ImmutableArray<T> = ReadonlyArray<Immutable<T>>;
188
- type ImmutableMap<K$1, V$1> = ReadonlyMap<Immutable<K$1>, Immutable<V$1>>;
188
+ type ImmutableMap<K, V> = ReadonlyMap<Immutable<K>, Immutable<V>>;
189
189
  type ImmutableSet<T> = ReadonlySet<Immutable<T>>;
190
190
  type ImmutableObject<T> = { readonly [K in keyof T]: Immutable<T[K]> };
191
191
  /**
@@ -389,12 +389,22 @@ type RpcFunctionsHost = RpcFunctionsCollectorBase<DevToolsRpcServerFunctions, De
389
389
  sharedState: RpcSharedStateHost;
390
390
  };
391
391
  interface RpcSharedStateGetOptions<T> {
392
+ sharedState?: SharedState<T>;
392
393
  initialValue?: T;
393
394
  }
394
395
  interface RpcSharedStateHost {
395
396
  get: <T extends keyof DevToolsRpcSharedStates>(key: T, options?: RpcSharedStateGetOptions<DevToolsRpcSharedStates[T]>) => Promise<SharedState<DevToolsRpcSharedStates[T]>>;
396
397
  }
397
398
  //#endregion
399
+ //#region ../kit/src/types/settings.d.ts
400
+ interface DevToolsDocksUserSettings {
401
+ docksHidden: string[];
402
+ docksCategoriesHidden: string[];
403
+ docksPinned: string[];
404
+ docksCustomOrder: Record<string, number>;
405
+ showIframeAddressBar: boolean;
406
+ }
407
+ //#endregion
398
408
  //#region ../kit/src/types/vite-augment.d.ts
399
409
  declare module 'vite' {
400
410
  interface Plugin {
@@ -417,6 +427,9 @@ interface ViteConfigDevtoolsOptions {
417
427
  clientAuth?: boolean;
418
428
  }
419
429
  //#endregion
430
+ //#region src/client/webcomponents/state/dock-settings.d.ts
431
+ type DevToolsDockEntriesGrouped = [category: string, entries: DevToolsDockEntry[]][];
432
+ //#endregion
420
433
  //#region ../kit/src/client/rpc.d.ts
421
434
  interface DevToolsRpcClient {
422
435
  /**
@@ -510,6 +523,8 @@ interface DocksEntriesContext {
510
523
  readonly selected: DevToolsDockEntry | null;
511
524
  entries: DevToolsDockEntry[];
512
525
  entryToStateMap: Map<string, DockEntryState>;
526
+ groupedEntries: DevToolsDockEntriesGrouped;
527
+ settings: SharedState<DevToolsDocksUserSettings>;
513
528
  /**
514
529
  * Get the state of a dock entry by its ID
515
530
  */
@@ -558,4 +573,4 @@ interface DockClientScriptContext extends DocksContext {
558
573
  current: DockEntryState;
559
574
  }
560
575
  //#endregion
561
- export { RpcDefinitionsToFunctions as a, DevToolsTerminalSessionBase as c, DevToolsRpcServerFunctions as d, SharedStatePatch as f, DevToolsRpcClient as i, DevToolsTerminalSessionStreamChunkEvent as l, DockPanelStorage as n, ConnectionMeta as o, DevToolsDockEntry as p, DocksContext as r, DevToolsNodeContext as s, DockEntryState as t, DevToolsRpcClientFunctions as u };
576
+ export { RpcDefinitionsToFunctions as a, DevToolsNodeContext as c, DevToolsRpcClientFunctions as d, DevToolsRpcServerFunctions as f, DevToolsDockEntry as h, DevToolsRpcClient as i, DevToolsTerminalSessionBase as l, SharedStatePatch as m, DockPanelStorage as n, DevToolsDocksUserSettings as o, SharedState as p, DocksContext as r, ConnectionMeta as s, DockEntryState as t, DevToolsTerminalSessionStreamChunkEvent as u };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { a as RpcDefinitionsToFunctions, c as DevToolsTerminalSessionBase, d as DevToolsRpcServerFunctions, f as SharedStatePatch, l as DevToolsTerminalSessionStreamChunkEvent, o as ConnectionMeta, p as DevToolsDockEntry, s as DevToolsNodeContext, u as DevToolsRpcClientFunctions } from "./index-BYIZX1ss.js";
1
+ import { a as RpcDefinitionsToFunctions, c as DevToolsNodeContext, d as DevToolsRpcClientFunctions, f as DevToolsRpcServerFunctions, h as DevToolsDockEntry, l as DevToolsTerminalSessionBase, m as SharedStatePatch, o as DevToolsDocksUserSettings, s as ConnectionMeta, u as DevToolsTerminalSessionStreamChunkEvent } from "./index-DqO60P8I.js";
2
2
  import { Plugin, ResolvedConfig, ViteDevServer } from "vite";
3
3
  import * as birpc_x0 from "birpc-x";
4
4
  import { RpcFunctionsCollectorBase } from "birpc-x";
5
+ import * as h30 from "h3";
5
6
  import { AsyncLocalStorage } from "node:async_hooks";
6
7
  import * as birpc0 from "birpc";
7
- import * as h30 from "h3";
8
8
 
9
9
  //#region src/node/context.d.ts
10
10
  declare function createDevToolsContext(viteConfig: ResolvedConfig, viteServer?: ViteDevServer): Promise<DevToolsNodeContext>;
@@ -20,11 +20,11 @@ interface DevToolsAuthReturn {
20
20
  }
21
21
  //#endregion
22
22
  //#region src/node/rpc/index.d.ts
23
- declare const builtinRpcDeclarations: readonly [birpc_x0.RpcFunctionDefinition<"vite:core:open-in-editor", "action", [path: string], Promise<void>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"vite:core:open-in-finder", "action", [path: string], Promise<void>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"vite:anonymous:auth", "action", [query: DevToolsAuthInput], Promise<DevToolsAuthReturn>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"vite:internal:docks:on-launch", "action", [entryId: string], Promise<void>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"vite:internal:rpc:server:list", "static", [], Promise<{
23
+ declare const builtinRpcDeclarations: readonly [birpc_x0.RpcFunctionDefinition<"vite:core:open-in-editor", "action", [path: string], Promise<void>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"vite:core:open-in-finder", "action", [path: string], Promise<void>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"vite:anonymous:auth", "action", [query: DevToolsAuthInput], Promise<DevToolsAuthReturn>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"devtoolskit:internal:docks:on-launch", "action", [entryId: string], Promise<void>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"devtoolskit:internal:rpc:server:list", "static", [], Promise<{
24
24
  [k: string]: {
25
25
  type: any;
26
26
  };
27
- }>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"vite:internal:rpc:server-state:get", "query", [key: string], Promise<any>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"vite:internal:rpc:server-state:patch", "query", [key: string, patches: SharedStatePatch[], syncId: string], Promise<void>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"vite:internal:rpc:server-state:set", "query", [key: string, value: any, syncId: string], Promise<void>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"vite:internal:rpc:server-state:subscribe", "event", [key: string], Promise<void>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"vite:internal:terminals:list", "static", [], Promise<DevToolsTerminalSessionBase[]>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"vite:internal:terminals:read", "query", [id: string], Promise<{
27
+ }>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"devtoolskit:internal:rpc:server-state:get", "query", [key: string], Promise<any>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"devtoolskit:internal:rpc:server-state:patch", "query", [key: string, patches: SharedStatePatch[], syncId: string], Promise<void>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"devtoolskit:internal:rpc:server-state:set", "query", [key: string, value: any, syncId: string], Promise<void>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"devtoolskit:internal:rpc:server-state:subscribe", "event", [key: string], Promise<void>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"devtoolskit:internal:terminals:list", "static", [], Promise<DevToolsTerminalSessionBase[]>, DevToolsNodeContext>, birpc_x0.RpcFunctionDefinition<"devtoolskit:internal:terminals:read", "query", [id: string], Promise<{
28
28
  buffer: string[];
29
29
  ts: number;
30
30
  }>, DevToolsNodeContext>];
@@ -32,13 +32,14 @@ type BuiltinServerFunctions = RpcDefinitionsToFunctions<typeof builtinRpcDeclara
32
32
  declare module '@vitejs/devtools-kit' {
33
33
  interface DevToolsRpcServerFunctions extends BuiltinServerFunctions {}
34
34
  interface DevToolsRpcClientFunctions {
35
- 'vite:internal:rpc:client-state:patch': (key: string, patches: SharedStatePatch[], syncId: string) => Promise<void>;
36
- 'vite:internal:rpc:client-state:updated': (key: string, fullState: any, syncId: string) => Promise<void>;
37
- 'vite:internal:terminals:stream-chunk': (data: DevToolsTerminalSessionStreamChunkEvent) => Promise<void>;
38
- 'vite:internal:terminals:updated': () => Promise<void>;
35
+ 'devtoolskit:internal:rpc:client-state:patch': (key: string, patches: SharedStatePatch[], syncId: string) => Promise<void>;
36
+ 'devtoolskit:internal:rpc:client-state:updated': (key: string, fullState: any, syncId: string) => Promise<void>;
37
+ 'devtoolskit:internal:terminals:stream-chunk': (data: DevToolsTerminalSessionStreamChunkEvent) => Promise<void>;
38
+ 'devtoolskit:internal:terminals:updated': () => Promise<void>;
39
39
  }
40
40
  interface DevToolsRpcSharedStates {
41
- 'vite:internal:docks': DevToolsDockEntry[];
41
+ 'devtoolskit:internal:docks': DevToolsDockEntry[];
42
+ 'devtoolskit:internal:user-settings': DevToolsDocksUserSettings;
42
43
  }
43
44
  }
44
45
  //#endregion
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as createDevToolsMiddleware, t as DevTools, u as createDevToolsContext } from "./plugins-Palbn5Oi.js";
1
+ import { a as createDevToolsContext, n as createDevToolsMiddleware, t as DevTools } from "./plugins-CJzaRd9B.js";
2
2
 
3
3
  export { DevTools, createDevToolsContext, createDevToolsMiddleware };