@vitejs/devtools-kit 0.1.3 → 0.1.4
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/client.d.ts +1 -1
- package/dist/client.js +49 -273
- package/dist/constants.d.ts +2 -1
- package/dist/human-id-BSiGlZOw.js +803 -0
- package/dist/{index-DryCMVBy.d.ts → index-BSLgRVfr.d.ts} +11 -4
- package/dist/index.d.ts +2 -2
- package/dist/shared-state-CCNEYlbv.js +928 -0
- package/dist/{shared-state-BFKKxNt1.d.ts → shared-state-NxkOZ3u0.d.ts} +17 -3
- package/dist/utils/events.d.ts +1 -1
- package/dist/utils/human-id.d.ts +10 -0
- package/dist/utils/human-id.js +2 -0
- package/dist/utils/shared-state.d.ts +2 -2
- package/dist/utils/shared-state.js +1 -35
- package/package.json +10 -6
- /package/dist/{events-B41U-zeg.d.ts → events-BTCXlxeC.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as EventEmitter } from "./events-
|
|
2
|
-
import { o as SharedState } from "./shared-state-
|
|
1
|
+
import { t as EventEmitter } from "./events-BTCXlxeC.js";
|
|
2
|
+
import { o as SharedState } from "./shared-state-NxkOZ3u0.js";
|
|
3
3
|
import { RpcDefinitionsFilter, RpcDefinitionsToFunctions, RpcFunctionsCollector, RpcFunctionsCollectorBase } from "@vitejs/devtools-rpc";
|
|
4
4
|
import { WebSocketRpcClientOptions } from "@vitejs/devtools-rpc/presets/ws/client";
|
|
5
5
|
import { DevToolsNodeRpcSessionMeta } from "@vitejs/devtools-rpc/presets/ws/server";
|
|
@@ -511,9 +511,9 @@ interface DevToolsRpcClientOptions {
|
|
|
511
511
|
connectionMeta?: ConnectionMeta;
|
|
512
512
|
baseURL?: string | string[];
|
|
513
513
|
/**
|
|
514
|
-
* The auth
|
|
514
|
+
* The auth token to use for the client
|
|
515
515
|
*/
|
|
516
|
-
|
|
516
|
+
authToken?: string;
|
|
517
517
|
wsOptions?: Partial<WebSocketRpcClientOptions>;
|
|
518
518
|
rpcOptions?: Partial<BirpcOptions<DevToolsRpcServerFunctions, DevToolsRpcClientFunctions, boolean>>;
|
|
519
519
|
}
|
|
@@ -545,6 +545,11 @@ interface DevToolsRpcClient {
|
|
|
545
545
|
* Request trust from the server
|
|
546
546
|
*/
|
|
547
547
|
requestTrust: () => Promise<boolean>;
|
|
548
|
+
/**
|
|
549
|
+
* Request trust from the server using a specific auth token.
|
|
550
|
+
* Updates the stored token and re-requests trust without reloading the page.
|
|
551
|
+
*/
|
|
552
|
+
requestTrustWithToken: (token: string) => Promise<boolean>;
|
|
548
553
|
/**
|
|
549
554
|
* Call a RPC function on the server
|
|
550
555
|
*/
|
|
@@ -570,6 +575,7 @@ interface DevToolsRpcClientMode {
|
|
|
570
575
|
readonly isTrusted: boolean;
|
|
571
576
|
ensureTrusted: DevToolsRpcClient['ensureTrusted'];
|
|
572
577
|
requestTrust: DevToolsRpcClient['requestTrust'];
|
|
578
|
+
requestTrustWithToken: DevToolsRpcClient['requestTrustWithToken'];
|
|
573
579
|
call: DevToolsRpcClient['call'];
|
|
574
580
|
callEvent: DevToolsRpcClient['callEvent'];
|
|
575
581
|
callOptional: DevToolsRpcClient['callOptional'];
|
|
@@ -578,6 +584,7 @@ declare function getDevToolsRpcClient(options?: DevToolsRpcClientOptions): Promi
|
|
|
578
584
|
//#endregion
|
|
579
585
|
//#region src/client/docks.d.ts
|
|
580
586
|
interface DockPanelStorage {
|
|
587
|
+
mode: 'float' | 'edge';
|
|
581
588
|
width: number;
|
|
582
589
|
height: number;
|
|
583
590
|
top: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as EventUnsubscribe, r as EventsMap, t as EventEmitter } from "./events-
|
|
2
|
-
import { $ as DevToolsDockEntryBase, A as RpcBroadcastOptions, B as DevToolsChildProcessExecuteOptions, C as PluginWithDevTools, D as DevToolsDocksUserSettings, E as Thenable, F as DevToolsCapabilities, G as DevToolsTerminalSessionStreamChunkEvent, H as DevToolsTerminalHost, I as DevToolsNodeContext, J as DevToolsRpcServerFunctions, K as DevToolsTerminalStatus, L as DevToolsNodeUtils, M as RpcSharedStateGetOptions, N as RpcSharedStateHost, O as DevToolsNodeRpcSession, P as ConnectionMeta, Q as DevToolsDockEntry, R as DevToolsPluginOptions, S as RpcDefinitionsToFunctions, St as DevToolsLogsHost, T as PartialWithoutId, U as DevToolsTerminalSession, V as DevToolsChildProcessTerminalSession, W as DevToolsTerminalSessionBase, X as ClientScriptEntry, Y as DevToolsRpcSharedStates, Z as DevToolsDockEntriesGrouped, _t as DevToolsLogEntryInput, at as DevToolsViewBuiltin, bt as DevToolsLogLevel, ct as DevToolsViewJsonRender, dt as JsonRenderElement, et as DevToolsDockEntryCategory, ft as JsonRenderSpec, gt as DevToolsLogEntryFrom, ht as DevToolsLogEntry, it as DevToolsViewAction, j as RpcFunctionsHost, k as DevToolsNodeRpcSessionMeta, lt as DevToolsViewLauncher, mt as DevToolsLogElementPosition, nt as DevToolsDockHost, ot as DevToolsViewCustomRender, pt as JsonRenderer, q as DevToolsRpcClientFunctions, rt as DevToolsDockUserEntry, st as DevToolsViewIframe, tt as DevToolsDockEntryIcon, ut as DevToolsViewLauncherStatus, vt as DevToolsLogFilePosition, w as EntriesToObject, x as RpcDefinitionsFilter, xt as DevToolsLogsClient, yt as DevToolsLogHandle, z as DevToolsViewHost } from "./index-
|
|
1
|
+
import { n as EventUnsubscribe, r as EventsMap, t as EventEmitter } from "./events-BTCXlxeC.js";
|
|
2
|
+
import { $ as DevToolsDockEntryBase, A as RpcBroadcastOptions, B as DevToolsChildProcessExecuteOptions, C as PluginWithDevTools, D as DevToolsDocksUserSettings, E as Thenable, F as DevToolsCapabilities, G as DevToolsTerminalSessionStreamChunkEvent, H as DevToolsTerminalHost, I as DevToolsNodeContext, J as DevToolsRpcServerFunctions, K as DevToolsTerminalStatus, L as DevToolsNodeUtils, M as RpcSharedStateGetOptions, N as RpcSharedStateHost, O as DevToolsNodeRpcSession, P as ConnectionMeta, Q as DevToolsDockEntry, R as DevToolsPluginOptions, S as RpcDefinitionsToFunctions, St as DevToolsLogsHost, T as PartialWithoutId, U as DevToolsTerminalSession, V as DevToolsChildProcessTerminalSession, W as DevToolsTerminalSessionBase, X as ClientScriptEntry, Y as DevToolsRpcSharedStates, Z as DevToolsDockEntriesGrouped, _t as DevToolsLogEntryInput, at as DevToolsViewBuiltin, bt as DevToolsLogLevel, ct as DevToolsViewJsonRender, dt as JsonRenderElement, et as DevToolsDockEntryCategory, ft as JsonRenderSpec, gt as DevToolsLogEntryFrom, ht as DevToolsLogEntry, it as DevToolsViewAction, j as RpcFunctionsHost, k as DevToolsNodeRpcSessionMeta, lt as DevToolsViewLauncher, mt as DevToolsLogElementPosition, nt as DevToolsDockHost, ot as DevToolsViewCustomRender, pt as JsonRenderer, q as DevToolsRpcClientFunctions, rt as DevToolsDockUserEntry, st as DevToolsViewIframe, tt as DevToolsDockEntryIcon, ut as DevToolsViewLauncherStatus, vt as DevToolsLogFilePosition, w as EntriesToObject, x as RpcDefinitionsFilter, xt as DevToolsLogsClient, yt as DevToolsLogHandle, z as DevToolsViewHost } from "./index-BSLgRVfr.js";
|
|
3
3
|
import * as _vitejs_devtools_rpc0 from "@vitejs/devtools-rpc";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/define.d.ts
|