@nuxt/devtools-kit 1.0.7 → 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 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.54b1e285.cjs';
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.54b1e285.mjs';
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.54b1e285.js';
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(): NuxtOptions;
556
- getServerRuntimeConfig(): Record<string, any>;
557
- getModuleOptions(): ModuleOptions;
558
- getComponents(): Component[];
559
- getComponentsRelationships(): Promise<ComponentRelationship[]>;
560
- getAutoImports(): AutoImportsWithMetadata;
561
- getServerPages(): NuxtPage[];
562
- getCustomTabs(): ModuleCustomTab[];
563
- getServerHooks(): HookInfo[];
564
- getServerLayouts(): NuxtLayout[];
565
- getStaticAssets(): Promise<AssetInfo[]>;
566
- getServerRoutes(): ServerRouteInfo[];
567
- getServerApp(): NuxtApp | undefined;
568
- getOptions<T extends keyof NuxtDevToolsOptions>(tab: T): Promise<NuxtDevToolsOptions[T]>;
569
- updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>): Promise<void>;
570
- clearOptions(): Promise<void>;
571
- checkForUpdateFor(name: string): Promise<PackageUpdateInfo | undefined>;
572
- getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<string[] | undefined>;
573
- runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<{
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(): TerminalInfo[];
577
- getTerminalDetail(token: string, id: string): Promise<TerminalInfo | undefined>;
578
- runTerminalAction(token: string, id: string, action: TerminalAction): Promise<boolean>;
579
- getStorageMounts(): Promise<StorageMounts>;
580
- getStorageKeys(base?: string): Promise<string[]>;
581
- getStorageItem(token: string, key: string): Promise<StorageValue>;
582
- setStorageItem(token: string, key: string, value: StorageValue): Promise<void>;
583
- removeStorageItem(token: string, key: string): Promise<void>;
584
- getAnalyzeBuildInfo(): Promise<AnalyzeBuildsInfo>;
585
- generateAnalyzeBuildName(): Promise<string>;
586
- startAnalyzeBuild(token: string, name: string): Promise<string>;
587
- clearAnalyzeBuilds(token: string, names?: string[]): Promise<void>;
588
- getImageMeta(token: string, filepath: string): Promise<ImageMeta | undefined>;
589
- getTextAssetContent(token: string, filepath: string, limit?: number): Promise<string | undefined>;
590
- writeStaticAssets(token: string, file: AssetEntry[], folder: string): Promise<string[]>;
591
- deleteStaticAsset(token: string, filepath: string): Promise<void>;
592
- renameStaticAsset(token: string, oldPath: string, newPath: string): Promise<void>;
593
- telemetryEvent(payload: object, immediate?: boolean): void;
594
- customTabAction(name: string, action: number): Promise<boolean>;
595
- runWizard<T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>): Promise<void>;
596
- openInEditor(filepath: string): Promise<boolean>;
597
- restartNuxt(token: string, hard?: boolean): Promise<void>;
598
- installNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
599
- uninstallNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
600
- enableTimeline(dry: boolean): Promise<[string, string]>;
601
- requestForAuth(info?: string, origin?: string): Promise<void>;
602
- verifyAuthToken(token: string): Promise<boolean>;
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): void;
606
- callHook(hook: string, ...args: any[]): Promise<void>;
607
- navigateTo(path: string): void;
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
- }): void;
612
- onTerminalExit(_: {
624
+ }) => void;
625
+ onTerminalExit: (_: {
613
626
  id: string;
614
627
  code?: number;
615
- }): void;
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 { ClientUpdateEvent as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStats as D, CompatibilityStatus as E, ModuleType as F, MaintainerInfo as G, HookInfo as H, ImageMeta as I, GitHubContributor as J, AssetType as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, AssetInfo as O, PluginMetric as P, AssetEntry as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, CodeSnippet as U, VueInspectorData as V, ComponentRelationship as W, ComponentWithRelationships as X, WizardFunctions as Y, WizardActions as Z, GetWizardArgs as _, VueInspectorClient as a, NuxtDevtoolsServerContext as a0, InstallModuleReturn as a1, AnalyzeBuildMeta as a2, AnalyzeBuildsInfo as a3, ModuleOptions as a4, ModuleGlobalOptions as a5, VSCodeIntegrationOptions as a6, VSCodeTunnelOptions as a7, NuxtDevToolsOptions as a8, TabCategory as a9, 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, PluginInfoWithMetic as w, InstalledModuleInfo as x, ModuleStaticInfo as y, ModuleCompatibility as z };
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(): NuxtOptions;
556
- getServerRuntimeConfig(): Record<string, any>;
557
- getModuleOptions(): ModuleOptions;
558
- getComponents(): Component[];
559
- getComponentsRelationships(): Promise<ComponentRelationship[]>;
560
- getAutoImports(): AutoImportsWithMetadata;
561
- getServerPages(): NuxtPage[];
562
- getCustomTabs(): ModuleCustomTab[];
563
- getServerHooks(): HookInfo[];
564
- getServerLayouts(): NuxtLayout[];
565
- getStaticAssets(): Promise<AssetInfo[]>;
566
- getServerRoutes(): ServerRouteInfo[];
567
- getServerApp(): NuxtApp | undefined;
568
- getOptions<T extends keyof NuxtDevToolsOptions>(tab: T): Promise<NuxtDevToolsOptions[T]>;
569
- updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>): Promise<void>;
570
- clearOptions(): Promise<void>;
571
- checkForUpdateFor(name: string): Promise<PackageUpdateInfo | undefined>;
572
- getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<string[] | undefined>;
573
- runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<{
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(): TerminalInfo[];
577
- getTerminalDetail(token: string, id: string): Promise<TerminalInfo | undefined>;
578
- runTerminalAction(token: string, id: string, action: TerminalAction): Promise<boolean>;
579
- getStorageMounts(): Promise<StorageMounts>;
580
- getStorageKeys(base?: string): Promise<string[]>;
581
- getStorageItem(token: string, key: string): Promise<StorageValue>;
582
- setStorageItem(token: string, key: string, value: StorageValue): Promise<void>;
583
- removeStorageItem(token: string, key: string): Promise<void>;
584
- getAnalyzeBuildInfo(): Promise<AnalyzeBuildsInfo>;
585
- generateAnalyzeBuildName(): Promise<string>;
586
- startAnalyzeBuild(token: string, name: string): Promise<string>;
587
- clearAnalyzeBuilds(token: string, names?: string[]): Promise<void>;
588
- getImageMeta(token: string, filepath: string): Promise<ImageMeta | undefined>;
589
- getTextAssetContent(token: string, filepath: string, limit?: number): Promise<string | undefined>;
590
- writeStaticAssets(token: string, file: AssetEntry[], folder: string): Promise<string[]>;
591
- deleteStaticAsset(token: string, filepath: string): Promise<void>;
592
- renameStaticAsset(token: string, oldPath: string, newPath: string): Promise<void>;
593
- telemetryEvent(payload: object, immediate?: boolean): void;
594
- customTabAction(name: string, action: number): Promise<boolean>;
595
- runWizard<T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>): Promise<void>;
596
- openInEditor(filepath: string): Promise<boolean>;
597
- restartNuxt(token: string, hard?: boolean): Promise<void>;
598
- installNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
599
- uninstallNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
600
- enableTimeline(dry: boolean): Promise<[string, string]>;
601
- requestForAuth(info?: string, origin?: string): Promise<void>;
602
- verifyAuthToken(token: string): Promise<boolean>;
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): void;
606
- callHook(hook: string, ...args: any[]): Promise<void>;
607
- navigateTo(path: string): void;
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
- }): void;
612
- onTerminalExit(_: {
624
+ }) => void;
625
+ onTerminalExit: (_: {
613
626
  id: string;
614
627
  code?: number;
615
- }): void;
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 { ClientUpdateEvent as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStats as D, CompatibilityStatus as E, ModuleType as F, MaintainerInfo as G, HookInfo as H, ImageMeta as I, GitHubContributor as J, AssetType as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, AssetInfo as O, PluginMetric as P, AssetEntry as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, CodeSnippet as U, VueInspectorData as V, ComponentRelationship as W, ComponentWithRelationships as X, WizardFunctions as Y, WizardActions as Z, GetWizardArgs as _, VueInspectorClient as a, NuxtDevtoolsServerContext as a0, InstallModuleReturn as a1, AnalyzeBuildMeta as a2, AnalyzeBuildsInfo as a3, ModuleOptions as a4, ModuleGlobalOptions as a5, VSCodeIntegrationOptions as a6, VSCodeTunnelOptions as a7, NuxtDevToolsOptions as a8, TabCategory as a9, 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, PluginInfoWithMetic as w, InstalledModuleInfo as x, ModuleStaticInfo as y, ModuleCompatibility as z };
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(): NuxtOptions;
556
- getServerRuntimeConfig(): Record<string, any>;
557
- getModuleOptions(): ModuleOptions;
558
- getComponents(): Component[];
559
- getComponentsRelationships(): Promise<ComponentRelationship[]>;
560
- getAutoImports(): AutoImportsWithMetadata;
561
- getServerPages(): NuxtPage[];
562
- getCustomTabs(): ModuleCustomTab[];
563
- getServerHooks(): HookInfo[];
564
- getServerLayouts(): NuxtLayout[];
565
- getStaticAssets(): Promise<AssetInfo[]>;
566
- getServerRoutes(): ServerRouteInfo[];
567
- getServerApp(): NuxtApp | undefined;
568
- getOptions<T extends keyof NuxtDevToolsOptions>(tab: T): Promise<NuxtDevToolsOptions[T]>;
569
- updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>): Promise<void>;
570
- clearOptions(): Promise<void>;
571
- checkForUpdateFor(name: string): Promise<PackageUpdateInfo | undefined>;
572
- getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<string[] | undefined>;
573
- runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<{
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(): TerminalInfo[];
577
- getTerminalDetail(token: string, id: string): Promise<TerminalInfo | undefined>;
578
- runTerminalAction(token: string, id: string, action: TerminalAction): Promise<boolean>;
579
- getStorageMounts(): Promise<StorageMounts>;
580
- getStorageKeys(base?: string): Promise<string[]>;
581
- getStorageItem(token: string, key: string): Promise<StorageValue>;
582
- setStorageItem(token: string, key: string, value: StorageValue): Promise<void>;
583
- removeStorageItem(token: string, key: string): Promise<void>;
584
- getAnalyzeBuildInfo(): Promise<AnalyzeBuildsInfo>;
585
- generateAnalyzeBuildName(): Promise<string>;
586
- startAnalyzeBuild(token: string, name: string): Promise<string>;
587
- clearAnalyzeBuilds(token: string, names?: string[]): Promise<void>;
588
- getImageMeta(token: string, filepath: string): Promise<ImageMeta | undefined>;
589
- getTextAssetContent(token: string, filepath: string, limit?: number): Promise<string | undefined>;
590
- writeStaticAssets(token: string, file: AssetEntry[], folder: string): Promise<string[]>;
591
- deleteStaticAsset(token: string, filepath: string): Promise<void>;
592
- renameStaticAsset(token: string, oldPath: string, newPath: string): Promise<void>;
593
- telemetryEvent(payload: object, immediate?: boolean): void;
594
- customTabAction(name: string, action: number): Promise<boolean>;
595
- runWizard<T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>): Promise<void>;
596
- openInEditor(filepath: string): Promise<boolean>;
597
- restartNuxt(token: string, hard?: boolean): Promise<void>;
598
- installNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
599
- uninstallNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
600
- enableTimeline(dry: boolean): Promise<[string, string]>;
601
- requestForAuth(info?: string, origin?: string): Promise<void>;
602
- verifyAuthToken(token: string): Promise<boolean>;
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): void;
606
- callHook(hook: string, ...args: any[]): Promise<void>;
607
- navigateTo(path: string): void;
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
- }): void;
612
- onTerminalExit(_: {
624
+ }) => void;
625
+ onTerminalExit: (_: {
613
626
  id: string;
614
627
  code?: number;
615
- }): void;
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 { ClientUpdateEvent as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStats as D, CompatibilityStatus as E, ModuleType as F, MaintainerInfo as G, HookInfo as H, ImageMeta as I, GitHubContributor as J, AssetType as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, AssetInfo as O, PluginMetric as P, AssetEntry as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, CodeSnippet as U, VueInspectorData as V, ComponentRelationship as W, ComponentWithRelationships as X, WizardFunctions as Y, WizardActions as Z, GetWizardArgs as _, VueInspectorClient as a, NuxtDevtoolsServerContext as a0, InstallModuleReturn as a1, AnalyzeBuildMeta as a2, AnalyzeBuildsInfo as a3, ModuleOptions as a4, ModuleGlobalOptions as a5, VSCodeIntegrationOptions as a6, VSCodeTunnelOptions as a7, NuxtDevToolsOptions as a8, TabCategory as a9, 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, PluginInfoWithMetic as w, InstalledModuleInfo as x, ModuleStaticInfo as y, ModuleCompatibility as z };
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.54b1e285.cjs';
2
- export { a2 as AnalyzeBuildMeta, a3 as AnalyzeBuildsInfo, Q as AssetEntry, O as AssetInfo, K as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, $ as ClientUpdateEvent, U as CodeSnippet, E as CompatibilityStatus, W as ComponentRelationship, X as ComponentWithRelationships, _ as GetWizardArgs, J as GitHubContributor, I as ImageMeta, a1 as InstallModuleReturn, x as InstalledModuleInfo, G as MaintainerInfo, i as ModuleBuiltinTab, z as ModuleCompatibility, M as ModuleCustomTab, a5 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a4 as ModuleOptions, y as ModuleStaticInfo, D as ModuleStats, j as ModuleTabInfo, F as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, a8 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a0 as NuxtDevtoolsServerContext, p as PackageManagerName, o as PackageUpdateInfo, v as Payload, w as PluginInfoWithMetic, R as RouteInfo, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, S as SubprocessOptions, a9 as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a6 as VSCodeIntegrationOptions, a7 as VSCodeTunnelOptions, Z as WizardActions, Y as WizardFunctions } from './shared/devtools-kit.54b1e285.cjs';
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 'shikiji';
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(): HTMLIFrameElement | undefined;
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(): void;
124
- open(): void;
125
- toggle(): void;
126
- reload(): void;
127
- navigate(path: string): void;
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?(): any;
137
+ popup?: () => any;
138
138
  };
139
139
  app: {
140
- reload(): void;
141
- navigate(path: string, hard?: boolean): void;
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(): HookInfo[];
149
- clientPlugins(): PluginMetric[] | undefined;
150
- clientTimeline(): TimelineMetrics | undefined;
151
- loading(): LoadingTimeMetric;
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(): NuxtDevtoolsHostClient;
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): void;
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.54b1e285.mjs';
2
- export { a2 as AnalyzeBuildMeta, a3 as AnalyzeBuildsInfo, Q as AssetEntry, O as AssetInfo, K as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, $ as ClientUpdateEvent, U as CodeSnippet, E as CompatibilityStatus, W as ComponentRelationship, X as ComponentWithRelationships, _ as GetWizardArgs, J as GitHubContributor, I as ImageMeta, a1 as InstallModuleReturn, x as InstalledModuleInfo, G as MaintainerInfo, i as ModuleBuiltinTab, z as ModuleCompatibility, M as ModuleCustomTab, a5 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a4 as ModuleOptions, y as ModuleStaticInfo, D as ModuleStats, j as ModuleTabInfo, F as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, a8 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a0 as NuxtDevtoolsServerContext, p as PackageManagerName, o as PackageUpdateInfo, v as Payload, w as PluginInfoWithMetic, R as RouteInfo, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, S as SubprocessOptions, a9 as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a6 as VSCodeIntegrationOptions, a7 as VSCodeTunnelOptions, Z as WizardActions, Y as WizardFunctions } from './shared/devtools-kit.54b1e285.mjs';
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 'shikiji';
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(): HTMLIFrameElement | undefined;
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(): void;
124
- open(): void;
125
- toggle(): void;
126
- reload(): void;
127
- navigate(path: string): void;
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?(): any;
137
+ popup?: () => any;
138
138
  };
139
139
  app: {
140
- reload(): void;
141
- navigate(path: string, hard?: boolean): void;
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(): HookInfo[];
149
- clientPlugins(): PluginMetric[] | undefined;
150
- clientTimeline(): TimelineMetrics | undefined;
151
- loading(): LoadingTimeMetric;
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(): NuxtDevtoolsHostClient;
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): void;
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.54b1e285.js';
2
- export { a2 as AnalyzeBuildMeta, a3 as AnalyzeBuildsInfo, Q as AssetEntry, O as AssetInfo, K as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, $ as ClientUpdateEvent, U as CodeSnippet, E as CompatibilityStatus, W as ComponentRelationship, X as ComponentWithRelationships, _ as GetWizardArgs, J as GitHubContributor, I as ImageMeta, a1 as InstallModuleReturn, x as InstalledModuleInfo, G as MaintainerInfo, i as ModuleBuiltinTab, z as ModuleCompatibility, M as ModuleCustomTab, a5 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a4 as ModuleOptions, y as ModuleStaticInfo, D as ModuleStats, j as ModuleTabInfo, F as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, a8 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a0 as NuxtDevtoolsServerContext, p as PackageManagerName, o as PackageUpdateInfo, v as Payload, w as PluginInfoWithMetic, R as RouteInfo, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, S as SubprocessOptions, a9 as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a6 as VSCodeIntegrationOptions, a7 as VSCodeTunnelOptions, Z as WizardActions, Y as WizardFunctions } from './shared/devtools-kit.54b1e285.js';
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 'shikiji';
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(): HTMLIFrameElement | undefined;
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(): void;
124
- open(): void;
125
- toggle(): void;
126
- reload(): void;
127
- navigate(path: string): void;
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?(): any;
137
+ popup?: () => any;
138
138
  };
139
139
  app: {
140
- reload(): void;
141
- navigate(path: string, hard?: boolean): void;
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(): HookInfo[];
149
- clientPlugins(): PluginMetric[] | undefined;
150
- clientTimeline(): TimelineMetrics | undefined;
151
- loading(): LoadingTimeMetric;
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(): NuxtDevtoolsHostClient;
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): void;
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.7",
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.9.1",
42
- "@nuxt/schema": "^3.9.1",
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.14",
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.2.5"
52
+ "vue-router": "^4.3.0"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "unbuild",