@nuxt/devtools-kit 4.0.0-alpha.10 → 4.0.0-alpha.12
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/index.d.mts +1 -1
- package/dist/runtime/host-client.d.mts +7 -0
- package/dist/runtime/host-client.mjs +6 -3
- package/dist/runtime/iframe-client.d.mts +42 -0
- package/dist/runtime/iframe-client.mjs +7 -7
- package/dist/shared/{devtools-kit.DepvFgru.d.cts → devtools-kit.ClPv9w-a.d.mts} +7 -0
- package/dist/types.d.mts +2 -2
- package/package.json +10 -26
- package/dist/index.cjs +0 -251
- package/dist/index.d.cts +0 -277
- package/dist/index.d.ts +0 -277
- package/dist/runtime/host-client.d.ts +0 -4
- package/dist/runtime/iframe-client.d.ts +0 -22
- package/dist/shared/devtools-kit.DepvFgru.d.mts +0 -951
- package/dist/shared/devtools-kit.DepvFgru.d.ts +0 -951
- package/dist/types.cjs +0 -2
- package/dist/types.d.cts +0 -200
- package/dist/types.d.ts +0 -200
- package/host-client.d.ts +0 -1
- package/host-client.mjs +0 -1
- package/iframe-client.d.ts +0 -1
- package/iframe-client.mjs +0 -1
- package/types.d.ts +0 -1
package/dist/types.cjs
DELETED
package/dist/types.d.cts
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { b as ServerFunctions, c as NuxtDevtoolsNotifyInput, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.DepvFgru.cjs';
|
|
2
|
-
export { A as AnalyzeBuildMeta, d as AnalyzeBuildsInfo, e as AssetEntry, f as AssetInfo, g as AssetType, h as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, i as ClientFunctions, j as ClientUpdateEvent, k as CodeServerIntegrationOptions, l as CodeServerType, m as CodeSnippet, n as CompatibilityStatus, o as ComponentRelationship, p as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, q as InstallModuleReturn, r as InstalledModuleInfo, s as MaintainerInfo, t as ModuleBuiltinTab, u as ModuleCompatibility, M as ModuleCustomTab, v as ModuleIframeTabLazyOptions, w as ModuleIframeView, x as ModuleLaunchAction, y as ModuleLaunchView, z as ModuleOptions, D as ModuleStaticInfo, E as ModuleStats, F as ModuleTabInfo, J as ModuleType, K as ModuleVNodeView, O as ModuleView, Q as NpmCommandOptions, R as NpmCommandType, U as NuxtDevToolsOptions, a as NuxtDevtoolsInfo, V as NuxtDevtoolsNotifyLevel, W as NuxtDevtoolsRpc, N as NuxtDevtoolsServerContext, X as NuxtServerData, Y as PackageManagerName, Z as PackageUpdateInfo, _ as Payload, $ as PluginInfoWithMetic, a0 as RouteInfo, a1 as ScannedNitroTasks, a2 as ServerDebugContext, a3 as ServerDebugModuleMutationRecord, a4 as ServerRouteInfo, a5 as ServerRouteInput, a6 as ServerRouteInputType, a7 as ServerTaskInfo, S as SubprocessOptions, a8 as TabCategory, a9 as TerminalAction, aa as TerminalBase, ab as TerminalInfo, T as TerminalState, ac as VSCodeIntegrationOptions, ad as VSCodeTunnelOptions, ae as VueInspectorClient, af as VueInspectorData } from './shared/devtools-kit.DepvFgru.cjs';
|
|
3
|
-
import { DevToolsRpcClient } from '@vitejs/devtools-kit/client';
|
|
4
|
-
import { Hookable } from 'hookable';
|
|
5
|
-
import { NuxtApp } from 'nuxt/app';
|
|
6
|
-
import { AppConfig } from 'nuxt/schema';
|
|
7
|
-
import { $Fetch } from 'ofetch';
|
|
8
|
-
import { BuiltinLanguage } from 'shiki';
|
|
9
|
-
import { Ref } from 'vue';
|
|
10
|
-
import { StackFrame } from 'error-stack-parser-es';
|
|
11
|
-
import '@vitejs/devtools-kit';
|
|
12
|
-
import 'birpc';
|
|
13
|
-
import 'unimport';
|
|
14
|
-
import 'vue-router';
|
|
15
|
-
import 'unstorage';
|
|
16
|
-
import 'vite';
|
|
17
|
-
import '@nuxt/schema';
|
|
18
|
-
import 'nitro/types';
|
|
19
|
-
import 'nitropack';
|
|
20
|
-
import 'node:child_process';
|
|
21
|
-
|
|
22
|
-
interface TimelineEventFunction {
|
|
23
|
-
type: 'function';
|
|
24
|
-
start: number;
|
|
25
|
-
end?: number;
|
|
26
|
-
name: string;
|
|
27
|
-
args?: any[];
|
|
28
|
-
result?: any;
|
|
29
|
-
stacktrace?: StackFrame[];
|
|
30
|
-
isPromise?: boolean;
|
|
31
|
-
}
|
|
32
|
-
interface TimelineServerState {
|
|
33
|
-
timeSsrStart?: number;
|
|
34
|
-
}
|
|
35
|
-
interface TimelineEventRoute {
|
|
36
|
-
type: 'route';
|
|
37
|
-
start: number;
|
|
38
|
-
end?: number;
|
|
39
|
-
from: string;
|
|
40
|
-
to: string;
|
|
41
|
-
}
|
|
42
|
-
interface TimelineOptions {
|
|
43
|
-
enabled: boolean;
|
|
44
|
-
stacktrace: boolean;
|
|
45
|
-
arguments: boolean;
|
|
46
|
-
}
|
|
47
|
-
type TimelineEvent = TimelineEventFunction | TimelineEventRoute;
|
|
48
|
-
interface TimelineMetrics {
|
|
49
|
-
events: TimelineEvent[];
|
|
50
|
-
nonLiteralSymbol: symbol;
|
|
51
|
-
options: TimelineOptions;
|
|
52
|
-
}
|
|
53
|
-
interface TimelineEventNormalized<T> {
|
|
54
|
-
event: T;
|
|
55
|
-
segment: TimelineEventsSegment;
|
|
56
|
-
relativeStart: number;
|
|
57
|
-
relativeWidth: number;
|
|
58
|
-
layer: number;
|
|
59
|
-
}
|
|
60
|
-
interface TimelineEventsSegment {
|
|
61
|
-
start: number;
|
|
62
|
-
end: number;
|
|
63
|
-
events: TimelineEvent[];
|
|
64
|
-
functions: TimelineEventNormalized<TimelineEventFunction>[];
|
|
65
|
-
route?: TimelineEventNormalized<TimelineEventRoute>;
|
|
66
|
-
duration: number;
|
|
67
|
-
previousGap?: number;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
interface DevToolsFrameState {
|
|
71
|
-
width: number;
|
|
72
|
-
height: number;
|
|
73
|
-
top: number;
|
|
74
|
-
left: number;
|
|
75
|
-
open: boolean;
|
|
76
|
-
route: string;
|
|
77
|
-
position: 'left' | 'right' | 'bottom' | 'top';
|
|
78
|
-
closeOnOutsideClick: boolean;
|
|
79
|
-
minimizePanelInactive: number;
|
|
80
|
-
}
|
|
81
|
-
interface NuxtDevtoolsClientHooks {
|
|
82
|
-
/**
|
|
83
|
-
* When the DevTools navigates, used for persisting the current tab
|
|
84
|
-
*/
|
|
85
|
-
'devtools:navigate': (path: string) => void;
|
|
86
|
-
/**
|
|
87
|
-
* Event emitted when the component inspector is clicked
|
|
88
|
-
*/
|
|
89
|
-
'host:inspector:click': (path: string) => void;
|
|
90
|
-
/**
|
|
91
|
-
* Event to close the component inspector
|
|
92
|
-
*/
|
|
93
|
-
'host:inspector:close': () => void;
|
|
94
|
-
/**
|
|
95
|
-
* Triggers reactivity manually, since Vue won't be reactive across frames)
|
|
96
|
-
*/
|
|
97
|
-
'host:update:reactivity': () => void;
|
|
98
|
-
/**
|
|
99
|
-
* Host action to control the DevTools navigation
|
|
100
|
-
*/
|
|
101
|
-
'host:action:navigate': (path: string) => void;
|
|
102
|
-
/**
|
|
103
|
-
* Host action to reload the DevTools
|
|
104
|
-
*/
|
|
105
|
-
'host:action:reload': () => void;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Host client from the App
|
|
109
|
-
*/
|
|
110
|
-
interface NuxtDevtoolsHostClient {
|
|
111
|
-
nuxt: NuxtApp;
|
|
112
|
-
hooks: Hookable<NuxtDevtoolsClientHooks>;
|
|
113
|
-
getIframe: () => HTMLIFrameElement | undefined;
|
|
114
|
-
inspector?: {
|
|
115
|
-
enable: () => void;
|
|
116
|
-
disable: () => void;
|
|
117
|
-
toggle: () => void;
|
|
118
|
-
isEnabled: Ref<boolean>;
|
|
119
|
-
isAvailable: Ref<boolean>;
|
|
120
|
-
};
|
|
121
|
-
devtools: {
|
|
122
|
-
close: () => void;
|
|
123
|
-
open: () => void;
|
|
124
|
-
toggle: () => void;
|
|
125
|
-
reload: () => void;
|
|
126
|
-
navigate: (path: string) => void;
|
|
127
|
-
};
|
|
128
|
-
app: {
|
|
129
|
-
reload: () => void;
|
|
130
|
-
navigate: (path: string, hard?: boolean) => void;
|
|
131
|
-
appConfig: AppConfig;
|
|
132
|
-
colorMode: Ref<'dark' | 'light'>;
|
|
133
|
-
frameState: Ref<DevToolsFrameState>;
|
|
134
|
-
$fetch: $Fetch;
|
|
135
|
-
};
|
|
136
|
-
metrics: {
|
|
137
|
-
clientHooks: () => HookInfo[];
|
|
138
|
-
clientPlugins: () => PluginMetric[] | undefined;
|
|
139
|
-
clientTimeline: () => TimelineMetrics | undefined;
|
|
140
|
-
loading: () => LoadingTimeMetric;
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* A counter to trigger reactivity updates
|
|
144
|
-
*/
|
|
145
|
-
revision: Ref<number>;
|
|
146
|
-
/**
|
|
147
|
-
* Update client
|
|
148
|
-
* @internal
|
|
149
|
-
*/
|
|
150
|
-
syncClient: () => NuxtDevtoolsHostClient;
|
|
151
|
-
}
|
|
152
|
-
interface CodeHighlightOptions {
|
|
153
|
-
grammarContextCode?: string;
|
|
154
|
-
}
|
|
155
|
-
type AsyncServerFunctions = {
|
|
156
|
-
[K in keyof ServerFunctions]: (...args: Parameters<ServerFunctions[K]>) => Promise<Awaited<ReturnType<ServerFunctions[K]>>>;
|
|
157
|
-
};
|
|
158
|
-
interface NuxtDevtoolsClient {
|
|
159
|
-
rpc: AsyncServerFunctions;
|
|
160
|
-
renderCodeHighlight: (code: string, lang?: BuiltinLanguage, options?: CodeHighlightOptions) => {
|
|
161
|
-
code: string;
|
|
162
|
-
supported: boolean;
|
|
163
|
-
};
|
|
164
|
-
renderMarkdown: (markdown: string) => string;
|
|
165
|
-
colorMode: string;
|
|
166
|
-
/**
|
|
167
|
-
* Push a notification through the devframe Messages system.
|
|
168
|
-
*
|
|
169
|
-
* Routes to the shared Messages host, so it surfaces in the Vite DevTools
|
|
170
|
-
* **Messages** dock and/or as a transient toast (when `notify` is set — the
|
|
171
|
-
* default). Use this from custom tabs / in-client code to give feedback
|
|
172
|
-
* through the same notification system as the rest of DevTools.
|
|
173
|
-
*/
|
|
174
|
-
notify: (input: NuxtDevtoolsNotifyInput) => Promise<void>;
|
|
175
|
-
/**
|
|
176
|
-
* The connected Vite DevTools RPC client, mirroring `nuxt.devtools.devtoolsKit`
|
|
177
|
-
* on the server. Use it for full devframe-native access — register client RPC
|
|
178
|
-
* functions (`devtoolsKit.client.register(...)`), call server functions
|
|
179
|
-
* (`devtoolsKit.call(...)`), shared state, streaming, scoping, etc.
|
|
180
|
-
*
|
|
181
|
-
* `undefined` until the DevTools client has connected.
|
|
182
|
-
*/
|
|
183
|
-
devtoolsKit: DevToolsRpcClient | undefined;
|
|
184
|
-
/**
|
|
185
|
-
* @deprecated Use `onDevtoolsReady((kit) => kit.client.register(...))` from
|
|
186
|
-
* `@nuxt/devtools-kit/iframe-client`, or the exposed `devtoolsKit` client
|
|
187
|
-
* directly (`client.devtools.devtoolsKit?.client.register(...)`).
|
|
188
|
-
*/
|
|
189
|
-
extendClientRpc: <ServerFunctions extends object = Record<string, unknown>, ClientFunctions extends object = Record<string, unknown>>(name: string, functions: ClientFunctions) => ServerFunctions;
|
|
190
|
-
}
|
|
191
|
-
interface NuxtDevtoolsIframeClient {
|
|
192
|
-
host: NuxtDevtoolsHostClient;
|
|
193
|
-
devtools: NuxtDevtoolsClient;
|
|
194
|
-
}
|
|
195
|
-
interface NuxtDevtoolsGlobal {
|
|
196
|
-
setClient: (client: NuxtDevtoolsHostClient) => void;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
export { HookInfo, LoadingTimeMetric, NuxtDevtoolsNotifyInput, PluginMetric, ServerFunctions };
|
|
200
|
-
export type { AsyncServerFunctions, CodeHighlightOptions, DevToolsFrameState, NuxtDevtoolsClient, NuxtDevtoolsClientHooks, NuxtDevtoolsGlobal, NuxtDevtoolsHostClient, NuxtDevtoolsIframeClient, TimelineEvent, TimelineEventFunction, TimelineEventNormalized, TimelineEventRoute, TimelineEventsSegment, TimelineMetrics, TimelineOptions, TimelineServerState };
|
package/dist/types.d.ts
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { b as ServerFunctions, c as NuxtDevtoolsNotifyInput, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.DepvFgru.js';
|
|
2
|
-
export { A as AnalyzeBuildMeta, d as AnalyzeBuildsInfo, e as AssetEntry, f as AssetInfo, g as AssetType, h as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, i as ClientFunctions, j as ClientUpdateEvent, k as CodeServerIntegrationOptions, l as CodeServerType, m as CodeSnippet, n as CompatibilityStatus, o as ComponentRelationship, p as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, q as InstallModuleReturn, r as InstalledModuleInfo, s as MaintainerInfo, t as ModuleBuiltinTab, u as ModuleCompatibility, M as ModuleCustomTab, v as ModuleIframeTabLazyOptions, w as ModuleIframeView, x as ModuleLaunchAction, y as ModuleLaunchView, z as ModuleOptions, D as ModuleStaticInfo, E as ModuleStats, F as ModuleTabInfo, J as ModuleType, K as ModuleVNodeView, O as ModuleView, Q as NpmCommandOptions, R as NpmCommandType, U as NuxtDevToolsOptions, a as NuxtDevtoolsInfo, V as NuxtDevtoolsNotifyLevel, W as NuxtDevtoolsRpc, N as NuxtDevtoolsServerContext, X as NuxtServerData, Y as PackageManagerName, Z as PackageUpdateInfo, _ as Payload, $ as PluginInfoWithMetic, a0 as RouteInfo, a1 as ScannedNitroTasks, a2 as ServerDebugContext, a3 as ServerDebugModuleMutationRecord, a4 as ServerRouteInfo, a5 as ServerRouteInput, a6 as ServerRouteInputType, a7 as ServerTaskInfo, S as SubprocessOptions, a8 as TabCategory, a9 as TerminalAction, aa as TerminalBase, ab as TerminalInfo, T as TerminalState, ac as VSCodeIntegrationOptions, ad as VSCodeTunnelOptions, ae as VueInspectorClient, af as VueInspectorData } from './shared/devtools-kit.DepvFgru.js';
|
|
3
|
-
import { DevToolsRpcClient } from '@vitejs/devtools-kit/client';
|
|
4
|
-
import { Hookable } from 'hookable';
|
|
5
|
-
import { NuxtApp } from 'nuxt/app';
|
|
6
|
-
import { AppConfig } from 'nuxt/schema';
|
|
7
|
-
import { $Fetch } from 'ofetch';
|
|
8
|
-
import { BuiltinLanguage } from 'shiki';
|
|
9
|
-
import { Ref } from 'vue';
|
|
10
|
-
import { StackFrame } from 'error-stack-parser-es';
|
|
11
|
-
import '@vitejs/devtools-kit';
|
|
12
|
-
import 'birpc';
|
|
13
|
-
import 'unimport';
|
|
14
|
-
import 'vue-router';
|
|
15
|
-
import 'unstorage';
|
|
16
|
-
import 'vite';
|
|
17
|
-
import '@nuxt/schema';
|
|
18
|
-
import 'nitro/types';
|
|
19
|
-
import 'nitropack';
|
|
20
|
-
import 'node:child_process';
|
|
21
|
-
|
|
22
|
-
interface TimelineEventFunction {
|
|
23
|
-
type: 'function';
|
|
24
|
-
start: number;
|
|
25
|
-
end?: number;
|
|
26
|
-
name: string;
|
|
27
|
-
args?: any[];
|
|
28
|
-
result?: any;
|
|
29
|
-
stacktrace?: StackFrame[];
|
|
30
|
-
isPromise?: boolean;
|
|
31
|
-
}
|
|
32
|
-
interface TimelineServerState {
|
|
33
|
-
timeSsrStart?: number;
|
|
34
|
-
}
|
|
35
|
-
interface TimelineEventRoute {
|
|
36
|
-
type: 'route';
|
|
37
|
-
start: number;
|
|
38
|
-
end?: number;
|
|
39
|
-
from: string;
|
|
40
|
-
to: string;
|
|
41
|
-
}
|
|
42
|
-
interface TimelineOptions {
|
|
43
|
-
enabled: boolean;
|
|
44
|
-
stacktrace: boolean;
|
|
45
|
-
arguments: boolean;
|
|
46
|
-
}
|
|
47
|
-
type TimelineEvent = TimelineEventFunction | TimelineEventRoute;
|
|
48
|
-
interface TimelineMetrics {
|
|
49
|
-
events: TimelineEvent[];
|
|
50
|
-
nonLiteralSymbol: symbol;
|
|
51
|
-
options: TimelineOptions;
|
|
52
|
-
}
|
|
53
|
-
interface TimelineEventNormalized<T> {
|
|
54
|
-
event: T;
|
|
55
|
-
segment: TimelineEventsSegment;
|
|
56
|
-
relativeStart: number;
|
|
57
|
-
relativeWidth: number;
|
|
58
|
-
layer: number;
|
|
59
|
-
}
|
|
60
|
-
interface TimelineEventsSegment {
|
|
61
|
-
start: number;
|
|
62
|
-
end: number;
|
|
63
|
-
events: TimelineEvent[];
|
|
64
|
-
functions: TimelineEventNormalized<TimelineEventFunction>[];
|
|
65
|
-
route?: TimelineEventNormalized<TimelineEventRoute>;
|
|
66
|
-
duration: number;
|
|
67
|
-
previousGap?: number;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
interface DevToolsFrameState {
|
|
71
|
-
width: number;
|
|
72
|
-
height: number;
|
|
73
|
-
top: number;
|
|
74
|
-
left: number;
|
|
75
|
-
open: boolean;
|
|
76
|
-
route: string;
|
|
77
|
-
position: 'left' | 'right' | 'bottom' | 'top';
|
|
78
|
-
closeOnOutsideClick: boolean;
|
|
79
|
-
minimizePanelInactive: number;
|
|
80
|
-
}
|
|
81
|
-
interface NuxtDevtoolsClientHooks {
|
|
82
|
-
/**
|
|
83
|
-
* When the DevTools navigates, used for persisting the current tab
|
|
84
|
-
*/
|
|
85
|
-
'devtools:navigate': (path: string) => void;
|
|
86
|
-
/**
|
|
87
|
-
* Event emitted when the component inspector is clicked
|
|
88
|
-
*/
|
|
89
|
-
'host:inspector:click': (path: string) => void;
|
|
90
|
-
/**
|
|
91
|
-
* Event to close the component inspector
|
|
92
|
-
*/
|
|
93
|
-
'host:inspector:close': () => void;
|
|
94
|
-
/**
|
|
95
|
-
* Triggers reactivity manually, since Vue won't be reactive across frames)
|
|
96
|
-
*/
|
|
97
|
-
'host:update:reactivity': () => void;
|
|
98
|
-
/**
|
|
99
|
-
* Host action to control the DevTools navigation
|
|
100
|
-
*/
|
|
101
|
-
'host:action:navigate': (path: string) => void;
|
|
102
|
-
/**
|
|
103
|
-
* Host action to reload the DevTools
|
|
104
|
-
*/
|
|
105
|
-
'host:action:reload': () => void;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Host client from the App
|
|
109
|
-
*/
|
|
110
|
-
interface NuxtDevtoolsHostClient {
|
|
111
|
-
nuxt: NuxtApp;
|
|
112
|
-
hooks: Hookable<NuxtDevtoolsClientHooks>;
|
|
113
|
-
getIframe: () => HTMLIFrameElement | undefined;
|
|
114
|
-
inspector?: {
|
|
115
|
-
enable: () => void;
|
|
116
|
-
disable: () => void;
|
|
117
|
-
toggle: () => void;
|
|
118
|
-
isEnabled: Ref<boolean>;
|
|
119
|
-
isAvailable: Ref<boolean>;
|
|
120
|
-
};
|
|
121
|
-
devtools: {
|
|
122
|
-
close: () => void;
|
|
123
|
-
open: () => void;
|
|
124
|
-
toggle: () => void;
|
|
125
|
-
reload: () => void;
|
|
126
|
-
navigate: (path: string) => void;
|
|
127
|
-
};
|
|
128
|
-
app: {
|
|
129
|
-
reload: () => void;
|
|
130
|
-
navigate: (path: string, hard?: boolean) => void;
|
|
131
|
-
appConfig: AppConfig;
|
|
132
|
-
colorMode: Ref<'dark' | 'light'>;
|
|
133
|
-
frameState: Ref<DevToolsFrameState>;
|
|
134
|
-
$fetch: $Fetch;
|
|
135
|
-
};
|
|
136
|
-
metrics: {
|
|
137
|
-
clientHooks: () => HookInfo[];
|
|
138
|
-
clientPlugins: () => PluginMetric[] | undefined;
|
|
139
|
-
clientTimeline: () => TimelineMetrics | undefined;
|
|
140
|
-
loading: () => LoadingTimeMetric;
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* A counter to trigger reactivity updates
|
|
144
|
-
*/
|
|
145
|
-
revision: Ref<number>;
|
|
146
|
-
/**
|
|
147
|
-
* Update client
|
|
148
|
-
* @internal
|
|
149
|
-
*/
|
|
150
|
-
syncClient: () => NuxtDevtoolsHostClient;
|
|
151
|
-
}
|
|
152
|
-
interface CodeHighlightOptions {
|
|
153
|
-
grammarContextCode?: string;
|
|
154
|
-
}
|
|
155
|
-
type AsyncServerFunctions = {
|
|
156
|
-
[K in keyof ServerFunctions]: (...args: Parameters<ServerFunctions[K]>) => Promise<Awaited<ReturnType<ServerFunctions[K]>>>;
|
|
157
|
-
};
|
|
158
|
-
interface NuxtDevtoolsClient {
|
|
159
|
-
rpc: AsyncServerFunctions;
|
|
160
|
-
renderCodeHighlight: (code: string, lang?: BuiltinLanguage, options?: CodeHighlightOptions) => {
|
|
161
|
-
code: string;
|
|
162
|
-
supported: boolean;
|
|
163
|
-
};
|
|
164
|
-
renderMarkdown: (markdown: string) => string;
|
|
165
|
-
colorMode: string;
|
|
166
|
-
/**
|
|
167
|
-
* Push a notification through the devframe Messages system.
|
|
168
|
-
*
|
|
169
|
-
* Routes to the shared Messages host, so it surfaces in the Vite DevTools
|
|
170
|
-
* **Messages** dock and/or as a transient toast (when `notify` is set — the
|
|
171
|
-
* default). Use this from custom tabs / in-client code to give feedback
|
|
172
|
-
* through the same notification system as the rest of DevTools.
|
|
173
|
-
*/
|
|
174
|
-
notify: (input: NuxtDevtoolsNotifyInput) => Promise<void>;
|
|
175
|
-
/**
|
|
176
|
-
* The connected Vite DevTools RPC client, mirroring `nuxt.devtools.devtoolsKit`
|
|
177
|
-
* on the server. Use it for full devframe-native access — register client RPC
|
|
178
|
-
* functions (`devtoolsKit.client.register(...)`), call server functions
|
|
179
|
-
* (`devtoolsKit.call(...)`), shared state, streaming, scoping, etc.
|
|
180
|
-
*
|
|
181
|
-
* `undefined` until the DevTools client has connected.
|
|
182
|
-
*/
|
|
183
|
-
devtoolsKit: DevToolsRpcClient | undefined;
|
|
184
|
-
/**
|
|
185
|
-
* @deprecated Use `onDevtoolsReady((kit) => kit.client.register(...))` from
|
|
186
|
-
* `@nuxt/devtools-kit/iframe-client`, or the exposed `devtoolsKit` client
|
|
187
|
-
* directly (`client.devtools.devtoolsKit?.client.register(...)`).
|
|
188
|
-
*/
|
|
189
|
-
extendClientRpc: <ServerFunctions extends object = Record<string, unknown>, ClientFunctions extends object = Record<string, unknown>>(name: string, functions: ClientFunctions) => ServerFunctions;
|
|
190
|
-
}
|
|
191
|
-
interface NuxtDevtoolsIframeClient {
|
|
192
|
-
host: NuxtDevtoolsHostClient;
|
|
193
|
-
devtools: NuxtDevtoolsClient;
|
|
194
|
-
}
|
|
195
|
-
interface NuxtDevtoolsGlobal {
|
|
196
|
-
setClient: (client: NuxtDevtoolsHostClient) => void;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
export { HookInfo, LoadingTimeMetric, NuxtDevtoolsNotifyInput, PluginMetric, ServerFunctions };
|
|
200
|
-
export type { AsyncServerFunctions, CodeHighlightOptions, DevToolsFrameState, NuxtDevtoolsClient, NuxtDevtoolsClientHooks, NuxtDevtoolsGlobal, NuxtDevtoolsHostClient, NuxtDevtoolsIframeClient, TimelineEvent, TimelineEventFunction, TimelineEventNormalized, TimelineEventRoute, TimelineEventsSegment, TimelineMetrics, TimelineOptions, TimelineServerState };
|
package/host-client.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/runtime/host-client'
|
package/host-client.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/runtime/host-client.mjs'
|
package/iframe-client.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/runtime/iframe-client'
|
package/iframe-client.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/runtime/iframe-client.mjs'
|
package/types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type * from './dist/types.d.mts'
|