@nuxt/devtools-kit 0.6.6 → 0.7.0
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.
|
@@ -4,12 +4,12 @@ import { NuxtOptions, Component, NuxtPage, NuxtLayout, NuxtApp, Nuxt } from 'nux
|
|
|
4
4
|
import { StorageMounts } from 'nitropack';
|
|
5
5
|
import { StorageValue } from 'unstorage';
|
|
6
6
|
import { VitePluginInspectorOptions } from 'vite-plugin-vue-inspector';
|
|
7
|
-
import { RouteRecordNormalized } from 'vue-router';
|
|
8
7
|
import { Import, UnimportMeta } from 'unimport';
|
|
8
|
+
import { RouteRecordNormalized } from 'vue-router';
|
|
9
9
|
import { Options } from 'execa';
|
|
10
10
|
import { NuxtAnalyzeMeta } from '@nuxt/schema';
|
|
11
11
|
|
|
12
|
-
type TabCategory = 'app' | 'analyze' | 'server' | 'modules' | 'documentation' | 'advanced';
|
|
12
|
+
type TabCategory = 'pinned' | 'app' | 'analyze' | 'server' | 'modules' | 'documentation' | 'advanced';
|
|
13
13
|
|
|
14
14
|
interface ModuleCustomTab {
|
|
15
15
|
/**
|
|
@@ -127,106 +127,7 @@ interface ModuleBuiltinTab {
|
|
|
127
127
|
onClick?: () => void;
|
|
128
128
|
}
|
|
129
129
|
type ModuleTabInfo = ModuleCustomTab | ModuleBuiltinTab;
|
|
130
|
-
|
|
131
|
-
interface ModuleOptions {
|
|
132
|
-
/**
|
|
133
|
-
* Enable DevTools
|
|
134
|
-
*
|
|
135
|
-
* @default true
|
|
136
|
-
*/
|
|
137
|
-
enabled?: boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Custom tabs
|
|
140
|
-
*
|
|
141
|
-
* This is in static format, for dynamic injection, call `nuxt.hook('devtools:customTabs')` instead
|
|
142
|
-
*/
|
|
143
|
-
customTabs?: ModuleCustomTab[];
|
|
144
|
-
/**
|
|
145
|
-
* VS Code Server integration options.
|
|
146
|
-
*/
|
|
147
|
-
vscode?: VSCodeIntegrationOptions;
|
|
148
|
-
/**
|
|
149
|
-
* Enable Vue Component Inspector
|
|
150
|
-
*
|
|
151
|
-
* @default true
|
|
152
|
-
*/
|
|
153
|
-
componentInspector?: boolean | VitePluginInspectorOptions;
|
|
154
|
-
/**
|
|
155
|
-
* Enable vite-plugin-inspect
|
|
156
|
-
*
|
|
157
|
-
* @default true
|
|
158
|
-
*/
|
|
159
|
-
viteInspect?: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Disable dev time authorization check.
|
|
162
|
-
*
|
|
163
|
-
* **NOT RECOMMENDED**, only use this if you know what you are doing.
|
|
164
|
-
*
|
|
165
|
-
* @see https://github.com/nuxt/devtools/pull/257
|
|
166
|
-
* @default false
|
|
167
|
-
*/
|
|
168
|
-
disableAuthorization?: boolean;
|
|
169
|
-
}
|
|
170
|
-
interface ModuleGlobalOptions {
|
|
171
|
-
/**
|
|
172
|
-
* List of projects to enable devtools for. Only works when devtools is installed globally.
|
|
173
|
-
*/
|
|
174
|
-
projects?: string[];
|
|
175
|
-
}
|
|
176
|
-
interface VSCodeIntegrationOptions {
|
|
177
|
-
/**
|
|
178
|
-
* Enable VS Code Server integration
|
|
179
|
-
*/
|
|
180
|
-
enabled?: boolean;
|
|
181
|
-
/**
|
|
182
|
-
* Start VS Code Server on boot
|
|
183
|
-
*
|
|
184
|
-
* @default false
|
|
185
|
-
*/
|
|
186
|
-
startOnBoot?: boolean;
|
|
187
|
-
/**
|
|
188
|
-
* Port to start VS Code Server
|
|
189
|
-
*
|
|
190
|
-
* @default 3080
|
|
191
|
-
*/
|
|
192
|
-
port?: number;
|
|
193
|
-
/**
|
|
194
|
-
* Reuse existing server if available (same port)
|
|
195
|
-
*/
|
|
196
|
-
reuseExistingServer?: boolean;
|
|
197
|
-
/**
|
|
198
|
-
* Determine whether to use code-server or vs code tunnel
|
|
199
|
-
*
|
|
200
|
-
* @default 'local-serve'
|
|
201
|
-
*/
|
|
202
|
-
mode?: 'local-serve' | 'tunnel';
|
|
203
|
-
/**
|
|
204
|
-
* Options for VS Code tunnel
|
|
205
|
-
*/
|
|
206
|
-
tunnel?: VSCodeTunnelOptions;
|
|
207
|
-
}
|
|
208
|
-
interface VSCodeTunnelOptions {
|
|
209
|
-
/**
|
|
210
|
-
* the machine name for port forwarding service
|
|
211
|
-
*
|
|
212
|
-
* default: device hostname
|
|
213
|
-
*/
|
|
214
|
-
name?: string;
|
|
215
|
-
}
|
|
216
|
-
interface NuxtDevToolsUIOptions {
|
|
217
|
-
componentsView: 'list' | 'graph';
|
|
218
|
-
componentsGraphShowNodeModules: boolean;
|
|
219
|
-
componentsGraphShowGlobalComponents: boolean;
|
|
220
|
-
componentsGraphShowPages: boolean;
|
|
221
|
-
componentsGraphShowLayouts: boolean;
|
|
222
|
-
componentsGraphShowWorkspace: boolean;
|
|
223
|
-
interactionCloseOnOutsideClick: boolean;
|
|
224
|
-
showExperimentalFeatures: boolean;
|
|
225
|
-
showHelpButtons: boolean;
|
|
226
|
-
scale: number;
|
|
227
|
-
hiddenTabs: string[];
|
|
228
|
-
hiddenTabCategories: string[];
|
|
229
|
-
}
|
|
130
|
+
type CategorizedTabs = [TabCategory, (ModuleCustomTab | ModuleBuiltinTab)[]][];
|
|
230
131
|
|
|
231
132
|
interface HookInfo {
|
|
232
133
|
name: string;
|
|
@@ -392,6 +293,148 @@ interface ComponentRelationship {
|
|
|
392
293
|
deps: string[];
|
|
393
294
|
}
|
|
394
295
|
|
|
296
|
+
interface ModuleOptions {
|
|
297
|
+
/**
|
|
298
|
+
* Enable DevTools
|
|
299
|
+
*
|
|
300
|
+
* @default true
|
|
301
|
+
*/
|
|
302
|
+
enabled?: boolean;
|
|
303
|
+
/**
|
|
304
|
+
* Custom tabs
|
|
305
|
+
*
|
|
306
|
+
* This is in static format, for dynamic injection, call `nuxt.hook('devtools:customTabs')` instead
|
|
307
|
+
*/
|
|
308
|
+
customTabs?: ModuleCustomTab[];
|
|
309
|
+
/**
|
|
310
|
+
* VS Code Server integration options.
|
|
311
|
+
*/
|
|
312
|
+
vscode?: VSCodeIntegrationOptions;
|
|
313
|
+
/**
|
|
314
|
+
* Enable Vue Component Inspector
|
|
315
|
+
*
|
|
316
|
+
* @default true
|
|
317
|
+
*/
|
|
318
|
+
componentInspector?: boolean | VitePluginInspectorOptions;
|
|
319
|
+
/**
|
|
320
|
+
* Enable vite-plugin-inspect
|
|
321
|
+
*
|
|
322
|
+
* @default true
|
|
323
|
+
*/
|
|
324
|
+
viteInspect?: boolean;
|
|
325
|
+
/**
|
|
326
|
+
* Disable dev time authorization check.
|
|
327
|
+
*
|
|
328
|
+
* **NOT RECOMMENDED**, only use this if you know what you are doing.
|
|
329
|
+
*
|
|
330
|
+
* @see https://github.com/nuxt/devtools/pull/257
|
|
331
|
+
* @default false
|
|
332
|
+
*/
|
|
333
|
+
disableAuthorization?: boolean;
|
|
334
|
+
/**
|
|
335
|
+
* Experimental features
|
|
336
|
+
*/
|
|
337
|
+
experimental?: {
|
|
338
|
+
/**
|
|
339
|
+
* Timline tab
|
|
340
|
+
* @deprecated Use `timeline.enable` instead
|
|
341
|
+
*/
|
|
342
|
+
timeline?: boolean;
|
|
343
|
+
};
|
|
344
|
+
/**
|
|
345
|
+
* Options for the timeline tab
|
|
346
|
+
*/
|
|
347
|
+
timeline?: {
|
|
348
|
+
/**
|
|
349
|
+
* Enable timeline tab
|
|
350
|
+
*
|
|
351
|
+
* @default false
|
|
352
|
+
*/
|
|
353
|
+
enabled?: boolean;
|
|
354
|
+
/**
|
|
355
|
+
* Track on function calls
|
|
356
|
+
*/
|
|
357
|
+
functions?: {
|
|
358
|
+
include?: (string | RegExp | ((item: Import) => boolean))[];
|
|
359
|
+
/**
|
|
360
|
+
* Include from specific modules
|
|
361
|
+
*
|
|
362
|
+
* @default ['#app', '@unhead/vue']
|
|
363
|
+
*/
|
|
364
|
+
includeFrom?: string[];
|
|
365
|
+
exclude?: (string | RegExp | ((item: Import) => boolean))[];
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
interface ModuleGlobalOptions {
|
|
370
|
+
/**
|
|
371
|
+
* List of projects to enable devtools for. Only works when devtools is installed globally.
|
|
372
|
+
*/
|
|
373
|
+
projects?: string[];
|
|
374
|
+
}
|
|
375
|
+
interface VSCodeIntegrationOptions {
|
|
376
|
+
/**
|
|
377
|
+
* Enable VS Code Server integration
|
|
378
|
+
*/
|
|
379
|
+
enabled?: boolean;
|
|
380
|
+
/**
|
|
381
|
+
* Start VS Code Server on boot
|
|
382
|
+
*
|
|
383
|
+
* @default false
|
|
384
|
+
*/
|
|
385
|
+
startOnBoot?: boolean;
|
|
386
|
+
/**
|
|
387
|
+
* Port to start VS Code Server
|
|
388
|
+
*
|
|
389
|
+
* @default 3080
|
|
390
|
+
*/
|
|
391
|
+
port?: number;
|
|
392
|
+
/**
|
|
393
|
+
* Reuse existing server if available (same port)
|
|
394
|
+
*/
|
|
395
|
+
reuseExistingServer?: boolean;
|
|
396
|
+
/**
|
|
397
|
+
* Determine whether to use code-server or vs code tunnel
|
|
398
|
+
*
|
|
399
|
+
* @default 'local-serve'
|
|
400
|
+
*/
|
|
401
|
+
mode?: 'local-serve' | 'tunnel';
|
|
402
|
+
/**
|
|
403
|
+
* Options for VS Code tunnel
|
|
404
|
+
*/
|
|
405
|
+
tunnel?: VSCodeTunnelOptions;
|
|
406
|
+
}
|
|
407
|
+
interface VSCodeTunnelOptions {
|
|
408
|
+
/**
|
|
409
|
+
* the machine name for port forwarding service
|
|
410
|
+
*
|
|
411
|
+
* default: device hostname
|
|
412
|
+
*/
|
|
413
|
+
name?: string;
|
|
414
|
+
}
|
|
415
|
+
interface NuxtDevToolsOptions {
|
|
416
|
+
ui: {
|
|
417
|
+
componentsView: 'list' | 'graph';
|
|
418
|
+
componentsGraphShowNodeModules: boolean;
|
|
419
|
+
componentsGraphShowGlobalComponents: boolean;
|
|
420
|
+
componentsGraphShowPages: boolean;
|
|
421
|
+
componentsGraphShowLayouts: boolean;
|
|
422
|
+
componentsGraphShowWorkspace: boolean;
|
|
423
|
+
interactionCloseOnOutsideClick: boolean;
|
|
424
|
+
showExperimentalFeatures: boolean;
|
|
425
|
+
showHelpButtons: boolean;
|
|
426
|
+
scale: number;
|
|
427
|
+
hiddenTabs: string[];
|
|
428
|
+
hiddenTabCategories: string[];
|
|
429
|
+
pinnedTabs: string[];
|
|
430
|
+
};
|
|
431
|
+
serverRoutes: {
|
|
432
|
+
selectedRoute: ServerRouteInfo | null;
|
|
433
|
+
view: 'tree' | 'list';
|
|
434
|
+
inputDefaults: Record<string, ServerRouteInput[]>;
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
|
|
395
438
|
interface TerminalBase {
|
|
396
439
|
id: string;
|
|
397
440
|
name: string;
|
|
@@ -467,8 +510,8 @@ interface ServerFunctions {
|
|
|
467
510
|
getStaticAssets(): Promise<AssetInfo[]>;
|
|
468
511
|
getServerRoutes(): ServerRouteInfo[];
|
|
469
512
|
getServerApp(): NuxtApp | undefined;
|
|
470
|
-
|
|
471
|
-
|
|
513
|
+
getOptions<T extends keyof NuxtDevToolsOptions>(tab: T): Promise<NuxtDevToolsOptions[T]>;
|
|
514
|
+
updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>): Promise<void>;
|
|
472
515
|
checkForUpdateFor(name: string): Promise<PackageUpdateInfo | undefined>;
|
|
473
516
|
getPackageManager(): Promise<PackageManagerName>;
|
|
474
517
|
getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<string[] | undefined>;
|
|
@@ -501,6 +544,7 @@ interface ServerFunctions {
|
|
|
501
544
|
restartNuxt(hard?: boolean): Promise<void>;
|
|
502
545
|
installNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
|
|
503
546
|
uninstallNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
|
|
547
|
+
enableTimeline(dry: boolean): Promise<[string, string]>;
|
|
504
548
|
}
|
|
505
549
|
interface ClientFunctions {
|
|
506
550
|
refresh(event: ClientUpdateEvent): void;
|
|
@@ -536,7 +580,7 @@ interface NuxtDevtoolsServerContext {
|
|
|
536
580
|
* Ensure dev auth token is valid, throw if not
|
|
537
581
|
*/
|
|
538
582
|
ensureDevAuthToken: (token: string) => Promise<void>;
|
|
539
|
-
extendServerRpc: <ClientFunctions =
|
|
583
|
+
extendServerRpc: <ClientFunctions = Record<string, never>, ServerFunctions = Record<string, never>>(name: string, functions: ServerFunctions) => BirpcGroup<ClientFunctions, ServerFunctions>;
|
|
540
584
|
}
|
|
541
585
|
interface NuxtDevtoolsInfo {
|
|
542
586
|
version: string;
|
|
@@ -613,4 +657,4 @@ declare module '@nuxt/schema' {
|
|
|
613
657
|
}
|
|
614
658
|
}
|
|
615
659
|
|
|
616
|
-
export {
|
|
660
|
+
export { AnalyzeBuildMeta as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, CategorizedTabs as C, ModuleType as D, MaintainerInfo as E, AssetType as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, AssetInfo as J, CodeSnippet as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, ComponentRelationship as O, PluginMetric as P, WizardActions as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, GetWizardArgs as U, VueInspectorData as V, WizardFunctions as W, ClientFunctions as X, ClientUpdateEvent as Y, NuxtDevtoolsServerContext as Z, InstallModuleReturn as _, VueInspectorClient as a, AnalyzeBuildsInfo as a0, ModuleOptions as a1, ModuleGlobalOptions as a2, VSCodeIntegrationOptions as a3, VSCodeTunnelOptions as a4, NuxtDevToolsOptions as a5, TabCategory as a6, ServerFunctions as b, ModuleLaunchView as c, ModuleIframeView as d, ModuleVNodeView as e, ModuleLaunchAction as f, ModuleView as g, ModuleIframeTabLazyOptions as h, ModuleBuiltinTab as i, ModuleTabInfo as j, TerminalBase as k, TerminalAction as l, TerminalInfo as m, PackageUpdateInfo as n, PackageManagerName as o, NpmCommandType as p, NpmCommandOptions as q, ServerRouteInfo as r, ServerRouteInputType as s, ServerRouteInput as t, Payload as u, PluginInfoWithMetic as v, InstalledModuleInfo as w, ModuleStaticInfo as x, ModuleCompatibility as y, CompatibilityStatus as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as execa from 'execa';
|
|
2
2
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
3
3
|
import { BirpcGroup } from 'birpc';
|
|
4
|
-
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './hooks-
|
|
4
|
+
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './hooks-983cdddc.js';
|
|
5
5
|
import 'vue';
|
|
6
6
|
import 'nuxt/schema';
|
|
7
7
|
import 'nitropack';
|
|
8
8
|
import 'unstorage';
|
|
9
9
|
import 'vite-plugin-vue-inspector';
|
|
10
|
-
import 'vue-router';
|
|
11
10
|
import 'unimport';
|
|
11
|
+
import 'vue-router';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Hooks to extend a custom tab in devtools.
|
|
@@ -29,7 +29,7 @@ declare function startSubprocess(execaOptions: SubprocessOptions, tabOptions: Te
|
|
|
29
29
|
restart: () => void;
|
|
30
30
|
clear: () => void;
|
|
31
31
|
};
|
|
32
|
-
declare function extendServerRpc<ClientFunctions =
|
|
32
|
+
declare function extendServerRpc<ClientFunctions = Record<string, never>, ServerFunctions = Record<string, never>>(namespace: string, functions: ServerFunctions, nuxt?: _nuxt_schema.Nuxt): BirpcGroup<ClientFunctions, ServerFunctions>;
|
|
33
33
|
declare function onDevToolsInitialized(fn: (info: NuxtDevtoolsInfo) => void, nuxt?: _nuxt_schema.Nuxt): void;
|
|
34
34
|
|
|
35
35
|
export { addCustomTab, extendServerRpc, onDevToolsInitialized, refreshCustomTabs, startSubprocess };
|
|
@@ -30,13 +30,13 @@ export function useDevtoolsClient() {
|
|
|
30
30
|
clientRef = shallowRef();
|
|
31
31
|
onDevtoolsClientConnected(setup);
|
|
32
32
|
}
|
|
33
|
+
function onUpdateReactivity() {
|
|
34
|
+
triggerRef(clientRef);
|
|
35
|
+
}
|
|
33
36
|
function setup(client) {
|
|
34
37
|
clientRef.value = client;
|
|
35
|
-
if (client.host)
|
|
36
|
-
client.host.hooks.hook("host:update:reactivity",
|
|
37
|
-
triggerRef(clientRef);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
38
|
+
if (client.host)
|
|
39
|
+
client.host.hooks.hook("host:update:reactivity", onUpdateReactivity);
|
|
40
40
|
}
|
|
41
41
|
return clientRef;
|
|
42
42
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,18 +1,64 @@
|
|
|
1
|
-
import { V as VueInspectorData, a as VueInspectorClient, L as LoadingTimeMetric, H as HookInfo, P as PluginMetric, b as ServerFunctions } from './hooks-
|
|
2
|
-
export {
|
|
1
|
+
import { V as VueInspectorData, a as VueInspectorClient, L as LoadingTimeMetric, H as HookInfo, P as PluginMetric, b as ServerFunctions } from './hooks-983cdddc.js';
|
|
2
|
+
export { $ as AnalyzeBuildMeta, a0 as AnalyzeBuildsInfo, J as AssetInfo, F as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, X as ClientFunctions, Y as ClientUpdateEvent, K as CodeSnippet, z as CompatibilityStatus, O as ComponentRelationship, U as GetWizardArgs, G as GitHubContributor, I as ImageMeta, _ as InstallModuleReturn, w as InstalledModuleInfo, E as MaintainerInfo, i as ModuleBuiltinTab, y as ModuleCompatibility, M as ModuleCustomTab, a2 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a1 as ModuleOptions, x as ModuleStaticInfo, j as ModuleTabInfo, D as ModuleType, e as ModuleVNodeView, g as ModuleView, q as NpmCommandOptions, p as NpmCommandType, a5 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, Z as NuxtDevtoolsServerContext, o as PackageManagerName, n as PackageUpdateInfo, u as Payload, v as PluginInfoWithMetic, R as RouteInfo, r as ServerRouteInfo, t as ServerRouteInput, s as ServerRouteInputType, S as SubprocessOptions, a6 as TabCategory, l as TerminalAction, k as TerminalBase, m as TerminalInfo, T as TerminalState, a3 as VSCodeIntegrationOptions, a4 as VSCodeTunnelOptions, Q as WizardActions, W as WizardFunctions } from './hooks-983cdddc.js';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
import { AppConfig } from 'nuxt/schema';
|
|
5
5
|
import { NuxtApp } from 'nuxt/dist/app/nuxt';
|
|
6
6
|
import { Hookable } from 'hookable';
|
|
7
7
|
import { BirpcReturn } from 'birpc';
|
|
8
|
+
import { StackFrame } from 'error-stack-parser-es';
|
|
8
9
|
import 'nitropack';
|
|
9
10
|
import 'unstorage';
|
|
10
11
|
import 'vite-plugin-vue-inspector';
|
|
11
|
-
import 'vue-router';
|
|
12
12
|
import 'unimport';
|
|
13
|
+
import 'vue-router';
|
|
13
14
|
import 'execa';
|
|
14
15
|
import '@nuxt/schema';
|
|
15
16
|
|
|
17
|
+
interface TimelineEventFunction {
|
|
18
|
+
type: 'function';
|
|
19
|
+
start: number;
|
|
20
|
+
end?: number;
|
|
21
|
+
name: string;
|
|
22
|
+
args?: any[];
|
|
23
|
+
result?: any;
|
|
24
|
+
stacktrace?: StackFrame[];
|
|
25
|
+
isPromise?: boolean;
|
|
26
|
+
}
|
|
27
|
+
interface TimelineEventRoute {
|
|
28
|
+
type: 'route';
|
|
29
|
+
start: number;
|
|
30
|
+
end?: number;
|
|
31
|
+
from: string;
|
|
32
|
+
to: string;
|
|
33
|
+
}
|
|
34
|
+
interface TimelineOptions {
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
stacktrace: boolean;
|
|
37
|
+
arguments: boolean;
|
|
38
|
+
}
|
|
39
|
+
type TimelineEvent = TimelineEventFunction | TimelineEventRoute;
|
|
40
|
+
interface TimelineMetrics {
|
|
41
|
+
events: TimelineEvent[];
|
|
42
|
+
nonLiteralSymbol: symbol;
|
|
43
|
+
options: TimelineOptions;
|
|
44
|
+
}
|
|
45
|
+
interface TimelineEventNormalized<T> {
|
|
46
|
+
event: T;
|
|
47
|
+
segment: TimelineEventsSegment;
|
|
48
|
+
relativeStart: number;
|
|
49
|
+
relativeWidth: number;
|
|
50
|
+
layer: number;
|
|
51
|
+
}
|
|
52
|
+
interface TimelineEventsSegment {
|
|
53
|
+
start: number;
|
|
54
|
+
end: number;
|
|
55
|
+
events: TimelineEvent[];
|
|
56
|
+
functions: TimelineEventNormalized<TimelineEventFunction>[];
|
|
57
|
+
route?: TimelineEventNormalized<TimelineEventRoute>;
|
|
58
|
+
duration: number;
|
|
59
|
+
previousGap?: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
16
62
|
interface NuxtDevtoolsClientHooks {
|
|
17
63
|
/**
|
|
18
64
|
* When the DevTools navigates, used for persisting the current tab
|
|
@@ -52,7 +98,8 @@ interface NuxtDevtoolsHostClient {
|
|
|
52
98
|
};
|
|
53
99
|
loadingTimeMetrics: LoadingTimeMetric;
|
|
54
100
|
getClientHooksMetrics(): HookInfo[];
|
|
55
|
-
|
|
101
|
+
clientPluginMetrics: PluginMetric[] | undefined;
|
|
102
|
+
clientTimelineMetrics: TimelineMetrics | undefined;
|
|
56
103
|
reloadPage(): void;
|
|
57
104
|
close(): void;
|
|
58
105
|
open(): void;
|
|
@@ -82,7 +129,7 @@ interface NuxtDevtoolsClient {
|
|
|
82
129
|
};
|
|
83
130
|
renderMarkdown: (markdown: string) => string;
|
|
84
131
|
colorMode: string;
|
|
85
|
-
extendClientRpc: <ServerFunctions =
|
|
132
|
+
extendClientRpc: <ServerFunctions = Record<string, never>, ClientFunctions = Record<string, never>>(name: string, functions: ClientFunctions) => BirpcReturn<ServerFunctions, ClientFunctions>;
|
|
86
133
|
}
|
|
87
134
|
interface NuxtDevtoolsIframeClient {
|
|
88
135
|
host: NuxtDevtoolsHostClient;
|
|
@@ -92,4 +139,4 @@ interface NuxtDevtoolsGlobal {
|
|
|
92
139
|
setClient(client: NuxtDevtoolsHostClient): void;
|
|
93
140
|
}
|
|
94
141
|
|
|
95
|
-
export { HookInfo, LoadingTimeMetric, NuxtDevtoolsClient, NuxtDevtoolsClientHooks, NuxtDevtoolsGlobal, NuxtDevtoolsHostClient, NuxtDevtoolsIframeClient, PluginMetric, ServerFunctions, VueInspectorClient, VueInspectorData };
|
|
142
|
+
export { HookInfo, LoadingTimeMetric, NuxtDevtoolsClient, NuxtDevtoolsClientHooks, NuxtDevtoolsGlobal, NuxtDevtoolsHostClient, NuxtDevtoolsIframeClient, PluginMetric, ServerFunctions, TimelineEvent, TimelineEventFunction, TimelineEventNormalized, TimelineEventRoute, TimelineEventsSegment, TimelineMetrics, TimelineOptions, VueInspectorClient, VueInspectorData };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "nuxt/devtools",
|
|
7
7
|
"exports": {
|
|
@@ -29,21 +29,22 @@
|
|
|
29
29
|
"*.mjs"
|
|
30
30
|
],
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"nuxt": "^3.
|
|
32
|
+
"nuxt": "^3.6.1",
|
|
33
33
|
"vite": "*"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@nuxt/kit": "^3.6.
|
|
37
|
-
"@nuxt/schema": "^3.6.
|
|
36
|
+
"@nuxt/kit": "^3.6.2",
|
|
37
|
+
"@nuxt/schema": "^3.6.2",
|
|
38
38
|
"execa": "^7.1.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"birpc": "^0.2.12",
|
|
42
|
+
"error-stack-parser-es": "^0.1.0",
|
|
42
43
|
"hookable": "^5.5.3",
|
|
43
44
|
"unbuild": "^1.2.1",
|
|
44
|
-
"unimport": "^3.0
|
|
45
|
+
"unimport": "^3.1.0",
|
|
45
46
|
"vite-plugin-vue-inspector": "^3.4.2",
|
|
46
|
-
"vue-router": "^4.2.
|
|
47
|
+
"vue-router": "^4.2.4"
|
|
47
48
|
},
|
|
48
49
|
"scripts": {
|
|
49
50
|
"build": "unbuild",
|