@nuxt/devtools-kit 1.0.8 → 1.1.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.
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/shared/{devtools-kit.54b1e285.d.cts → devtools-kit.553d8d94.d.cts} +67 -54
- package/dist/shared/{devtools-kit.54b1e285.d.mts → devtools-kit.553d8d94.d.mts} +67 -54
- package/dist/shared/{devtools-kit.54b1e285.d.ts → devtools-kit.553d8d94.d.ts} +67 -54
- package/dist/types.d.cts +18 -18
- package/dist/types.d.mts +18 -18
- package/dist/types.d.ts +18 -18
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 './shared/devtools-kit.
|
|
4
|
+
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.553d8d94.cjs';
|
|
5
5
|
import 'vue';
|
|
6
6
|
import 'nuxt/schema';
|
|
7
7
|
import 'nitropack';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 './shared/devtools-kit.
|
|
4
|
+
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.553d8d94.mjs';
|
|
5
5
|
import 'vue';
|
|
6
6
|
import 'nuxt/schema';
|
|
7
7
|
import 'nitropack';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 './shared/devtools-kit.
|
|
4
|
+
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.553d8d94.js';
|
|
5
5
|
import 'vue';
|
|
6
6
|
import 'nuxt/schema';
|
|
7
7
|
import 'nitropack';
|
|
@@ -185,6 +185,12 @@ interface Payload {
|
|
|
185
185
|
state?: Record<string, any>;
|
|
186
186
|
functions?: Record<string, any>;
|
|
187
187
|
}
|
|
188
|
+
interface ServerTaskInfo {
|
|
189
|
+
name: string;
|
|
190
|
+
description: string;
|
|
191
|
+
type: 'collection' | 'task';
|
|
192
|
+
tasks?: ServerTaskInfo[];
|
|
193
|
+
}
|
|
188
194
|
interface PluginInfoWithMetic {
|
|
189
195
|
src: string;
|
|
190
196
|
mode?: 'client' | 'server' | 'all';
|
|
@@ -289,6 +295,7 @@ interface AssetInfo {
|
|
|
289
295
|
filePath: string;
|
|
290
296
|
size: number;
|
|
291
297
|
mtime: number;
|
|
298
|
+
layer?: string;
|
|
292
299
|
}
|
|
293
300
|
interface AssetEntry {
|
|
294
301
|
path: string;
|
|
@@ -484,6 +491,12 @@ interface NuxtDevToolsOptions {
|
|
|
484
491
|
inputDefaults: Record<string, ServerRouteInput[]>;
|
|
485
492
|
sendFrom: 'app' | 'devtools';
|
|
486
493
|
};
|
|
494
|
+
serverTasks: {
|
|
495
|
+
enabled: boolean;
|
|
496
|
+
selectedTask: ServerTaskInfo | null;
|
|
497
|
+
view: 'tree' | 'list';
|
|
498
|
+
inputDefaults: Record<string, ServerRouteInput[]>;
|
|
499
|
+
};
|
|
487
500
|
assets: {
|
|
488
501
|
view: 'grid' | 'list';
|
|
489
502
|
};
|
|
@@ -552,67 +565,67 @@ interface AnalyzeBuildsInfo {
|
|
|
552
565
|
}
|
|
553
566
|
|
|
554
567
|
interface ServerFunctions {
|
|
555
|
-
getServerConfig()
|
|
556
|
-
getServerRuntimeConfig()
|
|
557
|
-
getModuleOptions()
|
|
558
|
-
getComponents()
|
|
559
|
-
getComponentsRelationships()
|
|
560
|
-
getAutoImports()
|
|
561
|
-
getServerPages()
|
|
562
|
-
getCustomTabs()
|
|
563
|
-
getServerHooks()
|
|
564
|
-
getServerLayouts()
|
|
565
|
-
getStaticAssets()
|
|
566
|
-
getServerRoutes()
|
|
567
|
-
getServerApp()
|
|
568
|
-
getOptions<T extends keyof NuxtDevToolsOptions>(tab: T)
|
|
569
|
-
updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>)
|
|
570
|
-
clearOptions()
|
|
571
|
-
checkForUpdateFor(name: string)
|
|
572
|
-
getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions)
|
|
573
|
-
runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions)
|
|
568
|
+
getServerConfig: () => NuxtOptions;
|
|
569
|
+
getServerRuntimeConfig: () => Record<string, any>;
|
|
570
|
+
getModuleOptions: () => ModuleOptions;
|
|
571
|
+
getComponents: () => Component[];
|
|
572
|
+
getComponentsRelationships: () => Promise<ComponentRelationship[]>;
|
|
573
|
+
getAutoImports: () => AutoImportsWithMetadata;
|
|
574
|
+
getServerPages: () => NuxtPage[];
|
|
575
|
+
getCustomTabs: () => ModuleCustomTab[];
|
|
576
|
+
getServerHooks: () => HookInfo[];
|
|
577
|
+
getServerLayouts: () => NuxtLayout[];
|
|
578
|
+
getStaticAssets: () => Promise<AssetInfo[]>;
|
|
579
|
+
getServerRoutes: () => ServerRouteInfo[];
|
|
580
|
+
getServerApp: () => NuxtApp | undefined;
|
|
581
|
+
getOptions: <T extends keyof NuxtDevToolsOptions>(tab: T) => Promise<NuxtDevToolsOptions[T]>;
|
|
582
|
+
updateOptions: <T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>) => Promise<void>;
|
|
583
|
+
clearOptions: () => Promise<void>;
|
|
584
|
+
checkForUpdateFor: (name: string) => Promise<PackageUpdateInfo | undefined>;
|
|
585
|
+
getNpmCommand: (command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<string[] | undefined>;
|
|
586
|
+
runNpmCommand: (token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<{
|
|
574
587
|
processId: string;
|
|
575
588
|
} | undefined>;
|
|
576
|
-
getTerminals()
|
|
577
|
-
getTerminalDetail(token: string, id: string)
|
|
578
|
-
runTerminalAction(token: string, id: string, action: TerminalAction)
|
|
579
|
-
getStorageMounts()
|
|
580
|
-
getStorageKeys(base?: string)
|
|
581
|
-
getStorageItem(token: string, key: string)
|
|
582
|
-
setStorageItem(token: string, key: string, value: StorageValue)
|
|
583
|
-
removeStorageItem(token: string, key: string)
|
|
584
|
-
getAnalyzeBuildInfo()
|
|
585
|
-
generateAnalyzeBuildName()
|
|
586
|
-
startAnalyzeBuild(token: string, name: string)
|
|
587
|
-
clearAnalyzeBuilds(token: string, names?: string[])
|
|
588
|
-
getImageMeta(token: string, filepath: string)
|
|
589
|
-
getTextAssetContent(token: string, filepath: string, limit?: number)
|
|
590
|
-
writeStaticAssets(token: string, file: AssetEntry[], folder: string)
|
|
591
|
-
deleteStaticAsset(token: string, filepath: string)
|
|
592
|
-
renameStaticAsset(token: string, oldPath: string, newPath: string)
|
|
593
|
-
telemetryEvent(payload: object, immediate?: boolean)
|
|
594
|
-
customTabAction(name: string, action: number)
|
|
595
|
-
runWizard<T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>)
|
|
596
|
-
openInEditor(filepath: string)
|
|
597
|
-
restartNuxt(token: string, hard?: boolean)
|
|
598
|
-
installNuxtModule(token: string, name: string, dry?: boolean)
|
|
599
|
-
uninstallNuxtModule(token: string, name: string, dry?: boolean)
|
|
600
|
-
enableTimeline(dry: boolean)
|
|
601
|
-
requestForAuth(info?: string, origin?: string)
|
|
602
|
-
verifyAuthToken(token: string)
|
|
589
|
+
getTerminals: () => TerminalInfo[];
|
|
590
|
+
getTerminalDetail: (token: string, id: string) => Promise<TerminalInfo | undefined>;
|
|
591
|
+
runTerminalAction: (token: string, id: string, action: TerminalAction) => Promise<boolean>;
|
|
592
|
+
getStorageMounts: () => Promise<StorageMounts>;
|
|
593
|
+
getStorageKeys: (base?: string) => Promise<string[]>;
|
|
594
|
+
getStorageItem: (token: string, key: string) => Promise<StorageValue>;
|
|
595
|
+
setStorageItem: (token: string, key: string, value: StorageValue) => Promise<void>;
|
|
596
|
+
removeStorageItem: (token: string, key: string) => Promise<void>;
|
|
597
|
+
getAnalyzeBuildInfo: () => Promise<AnalyzeBuildsInfo>;
|
|
598
|
+
generateAnalyzeBuildName: () => Promise<string>;
|
|
599
|
+
startAnalyzeBuild: (token: string, name: string) => Promise<string>;
|
|
600
|
+
clearAnalyzeBuilds: (token: string, names?: string[]) => Promise<void>;
|
|
601
|
+
getImageMeta: (token: string, filepath: string) => Promise<ImageMeta | undefined>;
|
|
602
|
+
getTextAssetContent: (token: string, filepath: string, limit?: number) => Promise<string | undefined>;
|
|
603
|
+
writeStaticAssets: (token: string, file: AssetEntry[], folder: string) => Promise<string[]>;
|
|
604
|
+
deleteStaticAsset: (token: string, filepath: string) => Promise<void>;
|
|
605
|
+
renameStaticAsset: (token: string, oldPath: string, newPath: string) => Promise<void>;
|
|
606
|
+
telemetryEvent: (payload: object, immediate?: boolean) => void;
|
|
607
|
+
customTabAction: (name: string, action: number) => Promise<boolean>;
|
|
608
|
+
runWizard: <T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>) => Promise<void>;
|
|
609
|
+
openInEditor: (filepath: string) => Promise<boolean>;
|
|
610
|
+
restartNuxt: (token: string, hard?: boolean) => Promise<void>;
|
|
611
|
+
installNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
612
|
+
uninstallNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
613
|
+
enableTimeline: (dry: boolean) => Promise<[string, string]>;
|
|
614
|
+
requestForAuth: (info?: string, origin?: string) => Promise<void>;
|
|
615
|
+
verifyAuthToken: (token: string) => Promise<boolean>;
|
|
603
616
|
}
|
|
604
617
|
interface ClientFunctions {
|
|
605
|
-
refresh(event: ClientUpdateEvent)
|
|
606
|
-
callHook(hook: string, ...args: any[])
|
|
607
|
-
navigateTo(path: string)
|
|
608
|
-
onTerminalData(_: {
|
|
618
|
+
refresh: (event: ClientUpdateEvent) => void;
|
|
619
|
+
callHook: (hook: string, ...args: any[]) => Promise<void>;
|
|
620
|
+
navigateTo: (path: string) => void;
|
|
621
|
+
onTerminalData: (_: {
|
|
609
622
|
id: string;
|
|
610
623
|
data: string;
|
|
611
|
-
})
|
|
612
|
-
onTerminalExit(_: {
|
|
624
|
+
}) => void;
|
|
625
|
+
onTerminalExit: (_: {
|
|
613
626
|
id: string;
|
|
614
627
|
code?: number;
|
|
615
|
-
})
|
|
628
|
+
}) => void;
|
|
616
629
|
}
|
|
617
630
|
type ClientUpdateEvent = keyof ServerFunctions;
|
|
618
631
|
|
|
@@ -712,4 +725,4 @@ declare module '@nuxt/schema' {
|
|
|
712
725
|
}
|
|
713
726
|
}
|
|
714
727
|
|
|
715
|
-
export type {
|
|
728
|
+
export type { GetWizardArgs as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, ModuleCompatibility as D, ModuleStats as E, CompatibilityStatus as F, ModuleType as G, HookInfo as H, ImageMeta as I, MaintainerInfo as J, GitHubContributor as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, AssetType as O, PluginMetric as P, AssetInfo as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, AssetEntry as U, VueInspectorData as V, CodeSnippet as W, ComponentRelationship as X, ComponentWithRelationships as Y, WizardFunctions as Z, WizardActions as _, VueInspectorClient as a, ClientUpdateEvent as a0, NuxtDevtoolsServerContext as a1, InstallModuleReturn as a2, AnalyzeBuildMeta as a3, AnalyzeBuildsInfo as a4, ModuleOptions as a5, ModuleGlobalOptions as a6, VSCodeIntegrationOptions as a7, VSCodeTunnelOptions as a8, NuxtDevToolsOptions as a9, TabCategory as aa, 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, CategorizedTabs as k, TerminalBase as l, TerminalAction as m, TerminalInfo as n, PackageUpdateInfo as o, PackageManagerName as p, NpmCommandType as q, NpmCommandOptions as r, ServerRouteInfo as s, ServerRouteInputType as t, ServerRouteInput as u, Payload as v, ServerTaskInfo as w, PluginInfoWithMetic as x, InstalledModuleInfo as y, ModuleStaticInfo as z };
|
|
@@ -185,6 +185,12 @@ interface Payload {
|
|
|
185
185
|
state?: Record<string, any>;
|
|
186
186
|
functions?: Record<string, any>;
|
|
187
187
|
}
|
|
188
|
+
interface ServerTaskInfo {
|
|
189
|
+
name: string;
|
|
190
|
+
description: string;
|
|
191
|
+
type: 'collection' | 'task';
|
|
192
|
+
tasks?: ServerTaskInfo[];
|
|
193
|
+
}
|
|
188
194
|
interface PluginInfoWithMetic {
|
|
189
195
|
src: string;
|
|
190
196
|
mode?: 'client' | 'server' | 'all';
|
|
@@ -289,6 +295,7 @@ interface AssetInfo {
|
|
|
289
295
|
filePath: string;
|
|
290
296
|
size: number;
|
|
291
297
|
mtime: number;
|
|
298
|
+
layer?: string;
|
|
292
299
|
}
|
|
293
300
|
interface AssetEntry {
|
|
294
301
|
path: string;
|
|
@@ -484,6 +491,12 @@ interface NuxtDevToolsOptions {
|
|
|
484
491
|
inputDefaults: Record<string, ServerRouteInput[]>;
|
|
485
492
|
sendFrom: 'app' | 'devtools';
|
|
486
493
|
};
|
|
494
|
+
serverTasks: {
|
|
495
|
+
enabled: boolean;
|
|
496
|
+
selectedTask: ServerTaskInfo | null;
|
|
497
|
+
view: 'tree' | 'list';
|
|
498
|
+
inputDefaults: Record<string, ServerRouteInput[]>;
|
|
499
|
+
};
|
|
487
500
|
assets: {
|
|
488
501
|
view: 'grid' | 'list';
|
|
489
502
|
};
|
|
@@ -552,67 +565,67 @@ interface AnalyzeBuildsInfo {
|
|
|
552
565
|
}
|
|
553
566
|
|
|
554
567
|
interface ServerFunctions {
|
|
555
|
-
getServerConfig()
|
|
556
|
-
getServerRuntimeConfig()
|
|
557
|
-
getModuleOptions()
|
|
558
|
-
getComponents()
|
|
559
|
-
getComponentsRelationships()
|
|
560
|
-
getAutoImports()
|
|
561
|
-
getServerPages()
|
|
562
|
-
getCustomTabs()
|
|
563
|
-
getServerHooks()
|
|
564
|
-
getServerLayouts()
|
|
565
|
-
getStaticAssets()
|
|
566
|
-
getServerRoutes()
|
|
567
|
-
getServerApp()
|
|
568
|
-
getOptions<T extends keyof NuxtDevToolsOptions>(tab: T)
|
|
569
|
-
updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>)
|
|
570
|
-
clearOptions()
|
|
571
|
-
checkForUpdateFor(name: string)
|
|
572
|
-
getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions)
|
|
573
|
-
runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions)
|
|
568
|
+
getServerConfig: () => NuxtOptions;
|
|
569
|
+
getServerRuntimeConfig: () => Record<string, any>;
|
|
570
|
+
getModuleOptions: () => ModuleOptions;
|
|
571
|
+
getComponents: () => Component[];
|
|
572
|
+
getComponentsRelationships: () => Promise<ComponentRelationship[]>;
|
|
573
|
+
getAutoImports: () => AutoImportsWithMetadata;
|
|
574
|
+
getServerPages: () => NuxtPage[];
|
|
575
|
+
getCustomTabs: () => ModuleCustomTab[];
|
|
576
|
+
getServerHooks: () => HookInfo[];
|
|
577
|
+
getServerLayouts: () => NuxtLayout[];
|
|
578
|
+
getStaticAssets: () => Promise<AssetInfo[]>;
|
|
579
|
+
getServerRoutes: () => ServerRouteInfo[];
|
|
580
|
+
getServerApp: () => NuxtApp | undefined;
|
|
581
|
+
getOptions: <T extends keyof NuxtDevToolsOptions>(tab: T) => Promise<NuxtDevToolsOptions[T]>;
|
|
582
|
+
updateOptions: <T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>) => Promise<void>;
|
|
583
|
+
clearOptions: () => Promise<void>;
|
|
584
|
+
checkForUpdateFor: (name: string) => Promise<PackageUpdateInfo | undefined>;
|
|
585
|
+
getNpmCommand: (command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<string[] | undefined>;
|
|
586
|
+
runNpmCommand: (token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<{
|
|
574
587
|
processId: string;
|
|
575
588
|
} | undefined>;
|
|
576
|
-
getTerminals()
|
|
577
|
-
getTerminalDetail(token: string, id: string)
|
|
578
|
-
runTerminalAction(token: string, id: string, action: TerminalAction)
|
|
579
|
-
getStorageMounts()
|
|
580
|
-
getStorageKeys(base?: string)
|
|
581
|
-
getStorageItem(token: string, key: string)
|
|
582
|
-
setStorageItem(token: string, key: string, value: StorageValue)
|
|
583
|
-
removeStorageItem(token: string, key: string)
|
|
584
|
-
getAnalyzeBuildInfo()
|
|
585
|
-
generateAnalyzeBuildName()
|
|
586
|
-
startAnalyzeBuild(token: string, name: string)
|
|
587
|
-
clearAnalyzeBuilds(token: string, names?: string[])
|
|
588
|
-
getImageMeta(token: string, filepath: string)
|
|
589
|
-
getTextAssetContent(token: string, filepath: string, limit?: number)
|
|
590
|
-
writeStaticAssets(token: string, file: AssetEntry[], folder: string)
|
|
591
|
-
deleteStaticAsset(token: string, filepath: string)
|
|
592
|
-
renameStaticAsset(token: string, oldPath: string, newPath: string)
|
|
593
|
-
telemetryEvent(payload: object, immediate?: boolean)
|
|
594
|
-
customTabAction(name: string, action: number)
|
|
595
|
-
runWizard<T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>)
|
|
596
|
-
openInEditor(filepath: string)
|
|
597
|
-
restartNuxt(token: string, hard?: boolean)
|
|
598
|
-
installNuxtModule(token: string, name: string, dry?: boolean)
|
|
599
|
-
uninstallNuxtModule(token: string, name: string, dry?: boolean)
|
|
600
|
-
enableTimeline(dry: boolean)
|
|
601
|
-
requestForAuth(info?: string, origin?: string)
|
|
602
|
-
verifyAuthToken(token: string)
|
|
589
|
+
getTerminals: () => TerminalInfo[];
|
|
590
|
+
getTerminalDetail: (token: string, id: string) => Promise<TerminalInfo | undefined>;
|
|
591
|
+
runTerminalAction: (token: string, id: string, action: TerminalAction) => Promise<boolean>;
|
|
592
|
+
getStorageMounts: () => Promise<StorageMounts>;
|
|
593
|
+
getStorageKeys: (base?: string) => Promise<string[]>;
|
|
594
|
+
getStorageItem: (token: string, key: string) => Promise<StorageValue>;
|
|
595
|
+
setStorageItem: (token: string, key: string, value: StorageValue) => Promise<void>;
|
|
596
|
+
removeStorageItem: (token: string, key: string) => Promise<void>;
|
|
597
|
+
getAnalyzeBuildInfo: () => Promise<AnalyzeBuildsInfo>;
|
|
598
|
+
generateAnalyzeBuildName: () => Promise<string>;
|
|
599
|
+
startAnalyzeBuild: (token: string, name: string) => Promise<string>;
|
|
600
|
+
clearAnalyzeBuilds: (token: string, names?: string[]) => Promise<void>;
|
|
601
|
+
getImageMeta: (token: string, filepath: string) => Promise<ImageMeta | undefined>;
|
|
602
|
+
getTextAssetContent: (token: string, filepath: string, limit?: number) => Promise<string | undefined>;
|
|
603
|
+
writeStaticAssets: (token: string, file: AssetEntry[], folder: string) => Promise<string[]>;
|
|
604
|
+
deleteStaticAsset: (token: string, filepath: string) => Promise<void>;
|
|
605
|
+
renameStaticAsset: (token: string, oldPath: string, newPath: string) => Promise<void>;
|
|
606
|
+
telemetryEvent: (payload: object, immediate?: boolean) => void;
|
|
607
|
+
customTabAction: (name: string, action: number) => Promise<boolean>;
|
|
608
|
+
runWizard: <T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>) => Promise<void>;
|
|
609
|
+
openInEditor: (filepath: string) => Promise<boolean>;
|
|
610
|
+
restartNuxt: (token: string, hard?: boolean) => Promise<void>;
|
|
611
|
+
installNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
612
|
+
uninstallNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
613
|
+
enableTimeline: (dry: boolean) => Promise<[string, string]>;
|
|
614
|
+
requestForAuth: (info?: string, origin?: string) => Promise<void>;
|
|
615
|
+
verifyAuthToken: (token: string) => Promise<boolean>;
|
|
603
616
|
}
|
|
604
617
|
interface ClientFunctions {
|
|
605
|
-
refresh(event: ClientUpdateEvent)
|
|
606
|
-
callHook(hook: string, ...args: any[])
|
|
607
|
-
navigateTo(path: string)
|
|
608
|
-
onTerminalData(_: {
|
|
618
|
+
refresh: (event: ClientUpdateEvent) => void;
|
|
619
|
+
callHook: (hook: string, ...args: any[]) => Promise<void>;
|
|
620
|
+
navigateTo: (path: string) => void;
|
|
621
|
+
onTerminalData: (_: {
|
|
609
622
|
id: string;
|
|
610
623
|
data: string;
|
|
611
|
-
})
|
|
612
|
-
onTerminalExit(_: {
|
|
624
|
+
}) => void;
|
|
625
|
+
onTerminalExit: (_: {
|
|
613
626
|
id: string;
|
|
614
627
|
code?: number;
|
|
615
|
-
})
|
|
628
|
+
}) => void;
|
|
616
629
|
}
|
|
617
630
|
type ClientUpdateEvent = keyof ServerFunctions;
|
|
618
631
|
|
|
@@ -712,4 +725,4 @@ declare module '@nuxt/schema' {
|
|
|
712
725
|
}
|
|
713
726
|
}
|
|
714
727
|
|
|
715
|
-
export type {
|
|
728
|
+
export type { GetWizardArgs as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, ModuleCompatibility as D, ModuleStats as E, CompatibilityStatus as F, ModuleType as G, HookInfo as H, ImageMeta as I, MaintainerInfo as J, GitHubContributor as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, AssetType as O, PluginMetric as P, AssetInfo as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, AssetEntry as U, VueInspectorData as V, CodeSnippet as W, ComponentRelationship as X, ComponentWithRelationships as Y, WizardFunctions as Z, WizardActions as _, VueInspectorClient as a, ClientUpdateEvent as a0, NuxtDevtoolsServerContext as a1, InstallModuleReturn as a2, AnalyzeBuildMeta as a3, AnalyzeBuildsInfo as a4, ModuleOptions as a5, ModuleGlobalOptions as a6, VSCodeIntegrationOptions as a7, VSCodeTunnelOptions as a8, NuxtDevToolsOptions as a9, TabCategory as aa, 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, CategorizedTabs as k, TerminalBase as l, TerminalAction as m, TerminalInfo as n, PackageUpdateInfo as o, PackageManagerName as p, NpmCommandType as q, NpmCommandOptions as r, ServerRouteInfo as s, ServerRouteInputType as t, ServerRouteInput as u, Payload as v, ServerTaskInfo as w, PluginInfoWithMetic as x, InstalledModuleInfo as y, ModuleStaticInfo as z };
|
|
@@ -185,6 +185,12 @@ interface Payload {
|
|
|
185
185
|
state?: Record<string, any>;
|
|
186
186
|
functions?: Record<string, any>;
|
|
187
187
|
}
|
|
188
|
+
interface ServerTaskInfo {
|
|
189
|
+
name: string;
|
|
190
|
+
description: string;
|
|
191
|
+
type: 'collection' | 'task';
|
|
192
|
+
tasks?: ServerTaskInfo[];
|
|
193
|
+
}
|
|
188
194
|
interface PluginInfoWithMetic {
|
|
189
195
|
src: string;
|
|
190
196
|
mode?: 'client' | 'server' | 'all';
|
|
@@ -289,6 +295,7 @@ interface AssetInfo {
|
|
|
289
295
|
filePath: string;
|
|
290
296
|
size: number;
|
|
291
297
|
mtime: number;
|
|
298
|
+
layer?: string;
|
|
292
299
|
}
|
|
293
300
|
interface AssetEntry {
|
|
294
301
|
path: string;
|
|
@@ -484,6 +491,12 @@ interface NuxtDevToolsOptions {
|
|
|
484
491
|
inputDefaults: Record<string, ServerRouteInput[]>;
|
|
485
492
|
sendFrom: 'app' | 'devtools';
|
|
486
493
|
};
|
|
494
|
+
serverTasks: {
|
|
495
|
+
enabled: boolean;
|
|
496
|
+
selectedTask: ServerTaskInfo | null;
|
|
497
|
+
view: 'tree' | 'list';
|
|
498
|
+
inputDefaults: Record<string, ServerRouteInput[]>;
|
|
499
|
+
};
|
|
487
500
|
assets: {
|
|
488
501
|
view: 'grid' | 'list';
|
|
489
502
|
};
|
|
@@ -552,67 +565,67 @@ interface AnalyzeBuildsInfo {
|
|
|
552
565
|
}
|
|
553
566
|
|
|
554
567
|
interface ServerFunctions {
|
|
555
|
-
getServerConfig()
|
|
556
|
-
getServerRuntimeConfig()
|
|
557
|
-
getModuleOptions()
|
|
558
|
-
getComponents()
|
|
559
|
-
getComponentsRelationships()
|
|
560
|
-
getAutoImports()
|
|
561
|
-
getServerPages()
|
|
562
|
-
getCustomTabs()
|
|
563
|
-
getServerHooks()
|
|
564
|
-
getServerLayouts()
|
|
565
|
-
getStaticAssets()
|
|
566
|
-
getServerRoutes()
|
|
567
|
-
getServerApp()
|
|
568
|
-
getOptions<T extends keyof NuxtDevToolsOptions>(tab: T)
|
|
569
|
-
updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>)
|
|
570
|
-
clearOptions()
|
|
571
|
-
checkForUpdateFor(name: string)
|
|
572
|
-
getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions)
|
|
573
|
-
runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions)
|
|
568
|
+
getServerConfig: () => NuxtOptions;
|
|
569
|
+
getServerRuntimeConfig: () => Record<string, any>;
|
|
570
|
+
getModuleOptions: () => ModuleOptions;
|
|
571
|
+
getComponents: () => Component[];
|
|
572
|
+
getComponentsRelationships: () => Promise<ComponentRelationship[]>;
|
|
573
|
+
getAutoImports: () => AutoImportsWithMetadata;
|
|
574
|
+
getServerPages: () => NuxtPage[];
|
|
575
|
+
getCustomTabs: () => ModuleCustomTab[];
|
|
576
|
+
getServerHooks: () => HookInfo[];
|
|
577
|
+
getServerLayouts: () => NuxtLayout[];
|
|
578
|
+
getStaticAssets: () => Promise<AssetInfo[]>;
|
|
579
|
+
getServerRoutes: () => ServerRouteInfo[];
|
|
580
|
+
getServerApp: () => NuxtApp | undefined;
|
|
581
|
+
getOptions: <T extends keyof NuxtDevToolsOptions>(tab: T) => Promise<NuxtDevToolsOptions[T]>;
|
|
582
|
+
updateOptions: <T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>) => Promise<void>;
|
|
583
|
+
clearOptions: () => Promise<void>;
|
|
584
|
+
checkForUpdateFor: (name: string) => Promise<PackageUpdateInfo | undefined>;
|
|
585
|
+
getNpmCommand: (command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<string[] | undefined>;
|
|
586
|
+
runNpmCommand: (token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<{
|
|
574
587
|
processId: string;
|
|
575
588
|
} | undefined>;
|
|
576
|
-
getTerminals()
|
|
577
|
-
getTerminalDetail(token: string, id: string)
|
|
578
|
-
runTerminalAction(token: string, id: string, action: TerminalAction)
|
|
579
|
-
getStorageMounts()
|
|
580
|
-
getStorageKeys(base?: string)
|
|
581
|
-
getStorageItem(token: string, key: string)
|
|
582
|
-
setStorageItem(token: string, key: string, value: StorageValue)
|
|
583
|
-
removeStorageItem(token: string, key: string)
|
|
584
|
-
getAnalyzeBuildInfo()
|
|
585
|
-
generateAnalyzeBuildName()
|
|
586
|
-
startAnalyzeBuild(token: string, name: string)
|
|
587
|
-
clearAnalyzeBuilds(token: string, names?: string[])
|
|
588
|
-
getImageMeta(token: string, filepath: string)
|
|
589
|
-
getTextAssetContent(token: string, filepath: string, limit?: number)
|
|
590
|
-
writeStaticAssets(token: string, file: AssetEntry[], folder: string)
|
|
591
|
-
deleteStaticAsset(token: string, filepath: string)
|
|
592
|
-
renameStaticAsset(token: string, oldPath: string, newPath: string)
|
|
593
|
-
telemetryEvent(payload: object, immediate?: boolean)
|
|
594
|
-
customTabAction(name: string, action: number)
|
|
595
|
-
runWizard<T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>)
|
|
596
|
-
openInEditor(filepath: string)
|
|
597
|
-
restartNuxt(token: string, hard?: boolean)
|
|
598
|
-
installNuxtModule(token: string, name: string, dry?: boolean)
|
|
599
|
-
uninstallNuxtModule(token: string, name: string, dry?: boolean)
|
|
600
|
-
enableTimeline(dry: boolean)
|
|
601
|
-
requestForAuth(info?: string, origin?: string)
|
|
602
|
-
verifyAuthToken(token: string)
|
|
589
|
+
getTerminals: () => TerminalInfo[];
|
|
590
|
+
getTerminalDetail: (token: string, id: string) => Promise<TerminalInfo | undefined>;
|
|
591
|
+
runTerminalAction: (token: string, id: string, action: TerminalAction) => Promise<boolean>;
|
|
592
|
+
getStorageMounts: () => Promise<StorageMounts>;
|
|
593
|
+
getStorageKeys: (base?: string) => Promise<string[]>;
|
|
594
|
+
getStorageItem: (token: string, key: string) => Promise<StorageValue>;
|
|
595
|
+
setStorageItem: (token: string, key: string, value: StorageValue) => Promise<void>;
|
|
596
|
+
removeStorageItem: (token: string, key: string) => Promise<void>;
|
|
597
|
+
getAnalyzeBuildInfo: () => Promise<AnalyzeBuildsInfo>;
|
|
598
|
+
generateAnalyzeBuildName: () => Promise<string>;
|
|
599
|
+
startAnalyzeBuild: (token: string, name: string) => Promise<string>;
|
|
600
|
+
clearAnalyzeBuilds: (token: string, names?: string[]) => Promise<void>;
|
|
601
|
+
getImageMeta: (token: string, filepath: string) => Promise<ImageMeta | undefined>;
|
|
602
|
+
getTextAssetContent: (token: string, filepath: string, limit?: number) => Promise<string | undefined>;
|
|
603
|
+
writeStaticAssets: (token: string, file: AssetEntry[], folder: string) => Promise<string[]>;
|
|
604
|
+
deleteStaticAsset: (token: string, filepath: string) => Promise<void>;
|
|
605
|
+
renameStaticAsset: (token: string, oldPath: string, newPath: string) => Promise<void>;
|
|
606
|
+
telemetryEvent: (payload: object, immediate?: boolean) => void;
|
|
607
|
+
customTabAction: (name: string, action: number) => Promise<boolean>;
|
|
608
|
+
runWizard: <T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>) => Promise<void>;
|
|
609
|
+
openInEditor: (filepath: string) => Promise<boolean>;
|
|
610
|
+
restartNuxt: (token: string, hard?: boolean) => Promise<void>;
|
|
611
|
+
installNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
612
|
+
uninstallNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
613
|
+
enableTimeline: (dry: boolean) => Promise<[string, string]>;
|
|
614
|
+
requestForAuth: (info?: string, origin?: string) => Promise<void>;
|
|
615
|
+
verifyAuthToken: (token: string) => Promise<boolean>;
|
|
603
616
|
}
|
|
604
617
|
interface ClientFunctions {
|
|
605
|
-
refresh(event: ClientUpdateEvent)
|
|
606
|
-
callHook(hook: string, ...args: any[])
|
|
607
|
-
navigateTo(path: string)
|
|
608
|
-
onTerminalData(_: {
|
|
618
|
+
refresh: (event: ClientUpdateEvent) => void;
|
|
619
|
+
callHook: (hook: string, ...args: any[]) => Promise<void>;
|
|
620
|
+
navigateTo: (path: string) => void;
|
|
621
|
+
onTerminalData: (_: {
|
|
609
622
|
id: string;
|
|
610
623
|
data: string;
|
|
611
|
-
})
|
|
612
|
-
onTerminalExit(_: {
|
|
624
|
+
}) => void;
|
|
625
|
+
onTerminalExit: (_: {
|
|
613
626
|
id: string;
|
|
614
627
|
code?: number;
|
|
615
|
-
})
|
|
628
|
+
}) => void;
|
|
616
629
|
}
|
|
617
630
|
type ClientUpdateEvent = keyof ServerFunctions;
|
|
618
631
|
|
|
@@ -712,4 +725,4 @@ declare module '@nuxt/schema' {
|
|
|
712
725
|
}
|
|
713
726
|
}
|
|
714
727
|
|
|
715
|
-
export type {
|
|
728
|
+
export type { GetWizardArgs as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, ModuleCompatibility as D, ModuleStats as E, CompatibilityStatus as F, ModuleType as G, HookInfo as H, ImageMeta as I, MaintainerInfo as J, GitHubContributor as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, AssetType as O, PluginMetric as P, AssetInfo as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, AssetEntry as U, VueInspectorData as V, CodeSnippet as W, ComponentRelationship as X, ComponentWithRelationships as Y, WizardFunctions as Z, WizardActions as _, VueInspectorClient as a, ClientUpdateEvent as a0, NuxtDevtoolsServerContext as a1, InstallModuleReturn as a2, AnalyzeBuildMeta as a3, AnalyzeBuildsInfo as a4, ModuleOptions as a5, ModuleGlobalOptions as a6, VSCodeIntegrationOptions as a7, VSCodeTunnelOptions as a8, NuxtDevToolsOptions as a9, TabCategory as aa, 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, CategorizedTabs as k, TerminalBase as l, TerminalAction as m, TerminalInfo as n, PackageUpdateInfo as o, PackageManagerName as p, NpmCommandType as q, NpmCommandOptions as r, ServerRouteInfo as s, ServerRouteInputType as t, ServerRouteInput as u, Payload as v, ServerTaskInfo as w, PluginInfoWithMetic as x, InstalledModuleInfo as y, ModuleStaticInfo as z };
|
package/dist/types.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.
|
|
2
|
-
export {
|
|
1
|
+
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.553d8d94.cjs';
|
|
2
|
+
export { a3 as AnalyzeBuildMeta, a4 as AnalyzeBuildsInfo, U as AssetEntry, Q as AssetInfo, O as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, a0 as ClientUpdateEvent, W as CodeSnippet, F as CompatibilityStatus, X as ComponentRelationship, Y as ComponentWithRelationships, $ as GetWizardArgs, K as GitHubContributor, I as ImageMeta, a2 as InstallModuleReturn, y as InstalledModuleInfo, J as MaintainerInfo, i as ModuleBuiltinTab, D as ModuleCompatibility, M as ModuleCustomTab, a6 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a5 as ModuleOptions, z as ModuleStaticInfo, E as ModuleStats, j as ModuleTabInfo, G as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, a9 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a1 as NuxtDevtoolsServerContext, p as PackageManagerName, o as PackageUpdateInfo, v as Payload, x as PluginInfoWithMetic, R as RouteInfo, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, w as ServerTaskInfo, S as SubprocessOptions, aa as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a7 as VSCodeIntegrationOptions, a8 as VSCodeTunnelOptions, _ as WizardActions, Z as WizardFunctions } from './shared/devtools-kit.553d8d94.cjs';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
import { AppConfig } from 'nuxt/schema';
|
|
5
5
|
import { NuxtApp } from 'nuxt/app';
|
|
6
6
|
import { Hookable } from 'hookable';
|
|
7
7
|
import { BirpcReturn } from 'birpc';
|
|
8
|
-
import { BuiltinLanguage } from '
|
|
8
|
+
import { BuiltinLanguage } from 'shiki';
|
|
9
9
|
import { $Fetch } from 'ofetch';
|
|
10
10
|
import { StackFrame } from 'error-stack-parser-es';
|
|
11
11
|
import 'nitropack';
|
|
@@ -111,7 +111,7 @@ interface NuxtDevtoolsClientHooks {
|
|
|
111
111
|
interface NuxtDevtoolsHostClient {
|
|
112
112
|
nuxt: NuxtApp;
|
|
113
113
|
hooks: Hookable<NuxtDevtoolsClientHooks>;
|
|
114
|
-
getIframe()
|
|
114
|
+
getIframe: () => HTMLIFrameElement | undefined;
|
|
115
115
|
inspector?: {
|
|
116
116
|
instance?: VueInspectorClient;
|
|
117
117
|
enable: () => void;
|
|
@@ -120,11 +120,11 @@ interface NuxtDevtoolsHostClient {
|
|
|
120
120
|
isEnabled: Ref<boolean>;
|
|
121
121
|
};
|
|
122
122
|
devtools: {
|
|
123
|
-
close()
|
|
124
|
-
open()
|
|
125
|
-
toggle()
|
|
126
|
-
reload()
|
|
127
|
-
navigate(path: string)
|
|
123
|
+
close: () => void;
|
|
124
|
+
open: () => void;
|
|
125
|
+
toggle: () => void;
|
|
126
|
+
reload: () => void;
|
|
127
|
+
navigate: (path: string) => void;
|
|
128
128
|
/**
|
|
129
129
|
* Popup the DevTools frame into Picture-in-Picture mode
|
|
130
130
|
*
|
|
@@ -134,27 +134,27 @@ interface NuxtDevtoolsHostClient {
|
|
|
134
134
|
*
|
|
135
135
|
* @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
|
|
136
136
|
*/
|
|
137
|
-
popup
|
|
137
|
+
popup?: () => any;
|
|
138
138
|
};
|
|
139
139
|
app: {
|
|
140
|
-
reload()
|
|
141
|
-
navigate(path: string, hard?: boolean)
|
|
140
|
+
reload: () => void;
|
|
141
|
+
navigate: (path: string, hard?: boolean) => void;
|
|
142
142
|
appConfig: AppConfig;
|
|
143
143
|
colorMode: Ref<'dark' | 'light'>;
|
|
144
144
|
frameState: Ref<DevToolsFrameState>;
|
|
145
145
|
$fetch: $Fetch;
|
|
146
146
|
};
|
|
147
147
|
metrics: {
|
|
148
|
-
clientHooks()
|
|
149
|
-
clientPlugins()
|
|
150
|
-
clientTimeline()
|
|
151
|
-
loading()
|
|
148
|
+
clientHooks: () => HookInfo[];
|
|
149
|
+
clientPlugins: () => PluginMetric[] | undefined;
|
|
150
|
+
clientTimeline: () => TimelineMetrics | undefined;
|
|
151
|
+
loading: () => LoadingTimeMetric;
|
|
152
152
|
};
|
|
153
153
|
/**
|
|
154
154
|
* Update client
|
|
155
155
|
* @internal
|
|
156
156
|
*/
|
|
157
|
-
syncClient()
|
|
157
|
+
syncClient: () => NuxtDevtoolsHostClient;
|
|
158
158
|
}
|
|
159
159
|
interface NuxtDevtoolsClient {
|
|
160
160
|
rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
|
|
@@ -171,7 +171,7 @@ interface NuxtDevtoolsIframeClient {
|
|
|
171
171
|
devtools: NuxtDevtoolsClient;
|
|
172
172
|
}
|
|
173
173
|
interface NuxtDevtoolsGlobal {
|
|
174
|
-
setClient(client: NuxtDevtoolsHostClient)
|
|
174
|
+
setClient: (client: NuxtDevtoolsHostClient) => void;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
export { ClientFunctions, type DevToolsFrameState, HookInfo, LoadingTimeMetric, type NuxtDevtoolsClient, type NuxtDevtoolsClientHooks, type NuxtDevtoolsGlobal, type NuxtDevtoolsHostClient, type NuxtDevtoolsIframeClient, PluginMetric, ServerFunctions, type TimelineEvent, type TimelineEventFunction, type TimelineEventNormalized, type TimelineEventRoute, type TimelineEventsSegment, type TimelineMetrics, type TimelineOptions, type TimelineServerState, VueInspectorClient, VueInspectorData };
|
package/dist/types.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.
|
|
2
|
-
export {
|
|
1
|
+
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.553d8d94.mjs';
|
|
2
|
+
export { a3 as AnalyzeBuildMeta, a4 as AnalyzeBuildsInfo, U as AssetEntry, Q as AssetInfo, O as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, a0 as ClientUpdateEvent, W as CodeSnippet, F as CompatibilityStatus, X as ComponentRelationship, Y as ComponentWithRelationships, $ as GetWizardArgs, K as GitHubContributor, I as ImageMeta, a2 as InstallModuleReturn, y as InstalledModuleInfo, J as MaintainerInfo, i as ModuleBuiltinTab, D as ModuleCompatibility, M as ModuleCustomTab, a6 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a5 as ModuleOptions, z as ModuleStaticInfo, E as ModuleStats, j as ModuleTabInfo, G as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, a9 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a1 as NuxtDevtoolsServerContext, p as PackageManagerName, o as PackageUpdateInfo, v as Payload, x as PluginInfoWithMetic, R as RouteInfo, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, w as ServerTaskInfo, S as SubprocessOptions, aa as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a7 as VSCodeIntegrationOptions, a8 as VSCodeTunnelOptions, _ as WizardActions, Z as WizardFunctions } from './shared/devtools-kit.553d8d94.mjs';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
import { AppConfig } from 'nuxt/schema';
|
|
5
5
|
import { NuxtApp } from 'nuxt/app';
|
|
6
6
|
import { Hookable } from 'hookable';
|
|
7
7
|
import { BirpcReturn } from 'birpc';
|
|
8
|
-
import { BuiltinLanguage } from '
|
|
8
|
+
import { BuiltinLanguage } from 'shiki';
|
|
9
9
|
import { $Fetch } from 'ofetch';
|
|
10
10
|
import { StackFrame } from 'error-stack-parser-es';
|
|
11
11
|
import 'nitropack';
|
|
@@ -111,7 +111,7 @@ interface NuxtDevtoolsClientHooks {
|
|
|
111
111
|
interface NuxtDevtoolsHostClient {
|
|
112
112
|
nuxt: NuxtApp;
|
|
113
113
|
hooks: Hookable<NuxtDevtoolsClientHooks>;
|
|
114
|
-
getIframe()
|
|
114
|
+
getIframe: () => HTMLIFrameElement | undefined;
|
|
115
115
|
inspector?: {
|
|
116
116
|
instance?: VueInspectorClient;
|
|
117
117
|
enable: () => void;
|
|
@@ -120,11 +120,11 @@ interface NuxtDevtoolsHostClient {
|
|
|
120
120
|
isEnabled: Ref<boolean>;
|
|
121
121
|
};
|
|
122
122
|
devtools: {
|
|
123
|
-
close()
|
|
124
|
-
open()
|
|
125
|
-
toggle()
|
|
126
|
-
reload()
|
|
127
|
-
navigate(path: string)
|
|
123
|
+
close: () => void;
|
|
124
|
+
open: () => void;
|
|
125
|
+
toggle: () => void;
|
|
126
|
+
reload: () => void;
|
|
127
|
+
navigate: (path: string) => void;
|
|
128
128
|
/**
|
|
129
129
|
* Popup the DevTools frame into Picture-in-Picture mode
|
|
130
130
|
*
|
|
@@ -134,27 +134,27 @@ interface NuxtDevtoolsHostClient {
|
|
|
134
134
|
*
|
|
135
135
|
* @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
|
|
136
136
|
*/
|
|
137
|
-
popup
|
|
137
|
+
popup?: () => any;
|
|
138
138
|
};
|
|
139
139
|
app: {
|
|
140
|
-
reload()
|
|
141
|
-
navigate(path: string, hard?: boolean)
|
|
140
|
+
reload: () => void;
|
|
141
|
+
navigate: (path: string, hard?: boolean) => void;
|
|
142
142
|
appConfig: AppConfig;
|
|
143
143
|
colorMode: Ref<'dark' | 'light'>;
|
|
144
144
|
frameState: Ref<DevToolsFrameState>;
|
|
145
145
|
$fetch: $Fetch;
|
|
146
146
|
};
|
|
147
147
|
metrics: {
|
|
148
|
-
clientHooks()
|
|
149
|
-
clientPlugins()
|
|
150
|
-
clientTimeline()
|
|
151
|
-
loading()
|
|
148
|
+
clientHooks: () => HookInfo[];
|
|
149
|
+
clientPlugins: () => PluginMetric[] | undefined;
|
|
150
|
+
clientTimeline: () => TimelineMetrics | undefined;
|
|
151
|
+
loading: () => LoadingTimeMetric;
|
|
152
152
|
};
|
|
153
153
|
/**
|
|
154
154
|
* Update client
|
|
155
155
|
* @internal
|
|
156
156
|
*/
|
|
157
|
-
syncClient()
|
|
157
|
+
syncClient: () => NuxtDevtoolsHostClient;
|
|
158
158
|
}
|
|
159
159
|
interface NuxtDevtoolsClient {
|
|
160
160
|
rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
|
|
@@ -171,7 +171,7 @@ interface NuxtDevtoolsIframeClient {
|
|
|
171
171
|
devtools: NuxtDevtoolsClient;
|
|
172
172
|
}
|
|
173
173
|
interface NuxtDevtoolsGlobal {
|
|
174
|
-
setClient(client: NuxtDevtoolsHostClient)
|
|
174
|
+
setClient: (client: NuxtDevtoolsHostClient) => void;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
export { ClientFunctions, type DevToolsFrameState, HookInfo, LoadingTimeMetric, type NuxtDevtoolsClient, type NuxtDevtoolsClientHooks, type NuxtDevtoolsGlobal, type NuxtDevtoolsHostClient, type NuxtDevtoolsIframeClient, PluginMetric, ServerFunctions, type TimelineEvent, type TimelineEventFunction, type TimelineEventNormalized, type TimelineEventRoute, type TimelineEventsSegment, type TimelineMetrics, type TimelineOptions, type TimelineServerState, VueInspectorClient, VueInspectorData };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.
|
|
2
|
-
export {
|
|
1
|
+
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.553d8d94.js';
|
|
2
|
+
export { a3 as AnalyzeBuildMeta, a4 as AnalyzeBuildsInfo, U as AssetEntry, Q as AssetInfo, O as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, a0 as ClientUpdateEvent, W as CodeSnippet, F as CompatibilityStatus, X as ComponentRelationship, Y as ComponentWithRelationships, $ as GetWizardArgs, K as GitHubContributor, I as ImageMeta, a2 as InstallModuleReturn, y as InstalledModuleInfo, J as MaintainerInfo, i as ModuleBuiltinTab, D as ModuleCompatibility, M as ModuleCustomTab, a6 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a5 as ModuleOptions, z as ModuleStaticInfo, E as ModuleStats, j as ModuleTabInfo, G as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, a9 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a1 as NuxtDevtoolsServerContext, p as PackageManagerName, o as PackageUpdateInfo, v as Payload, x as PluginInfoWithMetic, R as RouteInfo, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, w as ServerTaskInfo, S as SubprocessOptions, aa as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a7 as VSCodeIntegrationOptions, a8 as VSCodeTunnelOptions, _ as WizardActions, Z as WizardFunctions } from './shared/devtools-kit.553d8d94.js';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
import { AppConfig } from 'nuxt/schema';
|
|
5
5
|
import { NuxtApp } from 'nuxt/app';
|
|
6
6
|
import { Hookable } from 'hookable';
|
|
7
7
|
import { BirpcReturn } from 'birpc';
|
|
8
|
-
import { BuiltinLanguage } from '
|
|
8
|
+
import { BuiltinLanguage } from 'shiki';
|
|
9
9
|
import { $Fetch } from 'ofetch';
|
|
10
10
|
import { StackFrame } from 'error-stack-parser-es';
|
|
11
11
|
import 'nitropack';
|
|
@@ -111,7 +111,7 @@ interface NuxtDevtoolsClientHooks {
|
|
|
111
111
|
interface NuxtDevtoolsHostClient {
|
|
112
112
|
nuxt: NuxtApp;
|
|
113
113
|
hooks: Hookable<NuxtDevtoolsClientHooks>;
|
|
114
|
-
getIframe()
|
|
114
|
+
getIframe: () => HTMLIFrameElement | undefined;
|
|
115
115
|
inspector?: {
|
|
116
116
|
instance?: VueInspectorClient;
|
|
117
117
|
enable: () => void;
|
|
@@ -120,11 +120,11 @@ interface NuxtDevtoolsHostClient {
|
|
|
120
120
|
isEnabled: Ref<boolean>;
|
|
121
121
|
};
|
|
122
122
|
devtools: {
|
|
123
|
-
close()
|
|
124
|
-
open()
|
|
125
|
-
toggle()
|
|
126
|
-
reload()
|
|
127
|
-
navigate(path: string)
|
|
123
|
+
close: () => void;
|
|
124
|
+
open: () => void;
|
|
125
|
+
toggle: () => void;
|
|
126
|
+
reload: () => void;
|
|
127
|
+
navigate: (path: string) => void;
|
|
128
128
|
/**
|
|
129
129
|
* Popup the DevTools frame into Picture-in-Picture mode
|
|
130
130
|
*
|
|
@@ -134,27 +134,27 @@ interface NuxtDevtoolsHostClient {
|
|
|
134
134
|
*
|
|
135
135
|
* @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
|
|
136
136
|
*/
|
|
137
|
-
popup
|
|
137
|
+
popup?: () => any;
|
|
138
138
|
};
|
|
139
139
|
app: {
|
|
140
|
-
reload()
|
|
141
|
-
navigate(path: string, hard?: boolean)
|
|
140
|
+
reload: () => void;
|
|
141
|
+
navigate: (path: string, hard?: boolean) => void;
|
|
142
142
|
appConfig: AppConfig;
|
|
143
143
|
colorMode: Ref<'dark' | 'light'>;
|
|
144
144
|
frameState: Ref<DevToolsFrameState>;
|
|
145
145
|
$fetch: $Fetch;
|
|
146
146
|
};
|
|
147
147
|
metrics: {
|
|
148
|
-
clientHooks()
|
|
149
|
-
clientPlugins()
|
|
150
|
-
clientTimeline()
|
|
151
|
-
loading()
|
|
148
|
+
clientHooks: () => HookInfo[];
|
|
149
|
+
clientPlugins: () => PluginMetric[] | undefined;
|
|
150
|
+
clientTimeline: () => TimelineMetrics | undefined;
|
|
151
|
+
loading: () => LoadingTimeMetric;
|
|
152
152
|
};
|
|
153
153
|
/**
|
|
154
154
|
* Update client
|
|
155
155
|
* @internal
|
|
156
156
|
*/
|
|
157
|
-
syncClient()
|
|
157
|
+
syncClient: () => NuxtDevtoolsHostClient;
|
|
158
158
|
}
|
|
159
159
|
interface NuxtDevtoolsClient {
|
|
160
160
|
rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
|
|
@@ -171,7 +171,7 @@ interface NuxtDevtoolsIframeClient {
|
|
|
171
171
|
devtools: NuxtDevtoolsClient;
|
|
172
172
|
}
|
|
173
173
|
interface NuxtDevtoolsGlobal {
|
|
174
|
-
setClient(client: NuxtDevtoolsHostClient)
|
|
174
|
+
setClient: (client: NuxtDevtoolsHostClient) => void;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
export { ClientFunctions, type DevToolsFrameState, HookInfo, LoadingTimeMetric, type NuxtDevtoolsClient, type NuxtDevtoolsClientHooks, type NuxtDevtoolsGlobal, type NuxtDevtoolsHostClient, type NuxtDevtoolsIframeClient, PluginMetric, ServerFunctions, type TimelineEvent, type TimelineEventFunction, type TimelineEventNormalized, type TimelineEventRoute, type TimelineEventsSegment, type TimelineMetrics, type TimelineOptions, type TimelineServerState, VueInspectorClient, VueInspectorData };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://devtools.nuxt.com/module/utils-kit",
|
|
7
7
|
"repository": {
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
"vite": "*"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@nuxt/kit": "^3.
|
|
42
|
-
"@nuxt/schema": "^3.
|
|
41
|
+
"@nuxt/kit": "^3.11.1",
|
|
42
|
+
"@nuxt/schema": "^3.11.1",
|
|
43
43
|
"execa": "^7.2.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"birpc": "^0.2.
|
|
46
|
+
"birpc": "^0.2.17",
|
|
47
47
|
"error-stack-parser-es": "^0.1.1",
|
|
48
48
|
"hookable": "^5.5.3",
|
|
49
49
|
"unbuild": "^2.0.0",
|
|
50
50
|
"unimport": "^3.7.1",
|
|
51
51
|
"vite-plugin-vue-inspector": "^4.0.2",
|
|
52
|
-
"vue-router": "^4.
|
|
52
|
+
"vue-router": "^4.3.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "unbuild",
|