@nuxt/devtools-kit 1.0.0-beta.0 → 1.0.0-beta.1

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.6aa604ca.cjs';
4
+ import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.c6641932.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.6aa604ca.mjs';
4
+ import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.c6641932.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.6aa604ca.js';
4
+ import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.c6641932.js';
5
5
  import 'vue';
6
6
  import 'nuxt/schema';
7
7
  import 'nitropack';
@@ -527,6 +527,7 @@ interface AnalyzeBuildsInfo {
527
527
 
528
528
  interface ServerFunctions {
529
529
  getServerConfig(): NuxtOptions;
530
+ getServerRuntimeConfig(): Record<string, any>;
530
531
  getModuleOptions(): ModuleOptions;
531
532
  getComponents(): Component[];
532
533
  getComponentsRelationships(): Promise<ComponentRelationship[]>;
@@ -540,8 +541,8 @@ interface ServerFunctions {
540
541
  getServerApp(): NuxtApp | undefined;
541
542
  getOptions<T extends keyof NuxtDevToolsOptions>(tab: T): Promise<NuxtDevToolsOptions[T]>;
542
543
  updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>): Promise<void>;
544
+ clearOptions(): Promise<void>;
543
545
  checkForUpdateFor(name: string): Promise<PackageUpdateInfo | undefined>;
544
- getPackageManager(): Promise<PackageManagerName>;
545
546
  getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<string[] | undefined>;
546
547
  runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<{
547
548
  processId: string;
@@ -685,4 +686,4 @@ declare module '@nuxt/schema' {
685
686
  }
686
687
  }
687
688
 
688
- export type { NuxtDevtoolsServerContext as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, CategorizedTabs as C, ModuleType as D, MaintainerInfo as E, AssetType as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, AssetInfo as J, AssetEntry as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, CodeSnippet as O, PluginMetric as P, ComponentRelationship as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, ComponentWithRelationships as U, VueInspectorData as V, WizardFunctions as W, WizardActions as X, GetWizardArgs as Y, ClientFunctions as Z, ClientUpdateEvent as _, VueInspectorClient as a, InstallModuleReturn as a0, AnalyzeBuildMeta as a1, AnalyzeBuildsInfo as a2, ModuleOptions as a3, ModuleGlobalOptions as a4, VSCodeIntegrationOptions as a5, VSCodeTunnelOptions as a6, NuxtDevToolsOptions as a7, TabCategory as a8, ServerFunctions as b, ModuleLaunchView as c, ModuleIframeView as d, ModuleVNodeView as e, ModuleLaunchAction as f, ModuleView as g, ModuleIframeTabLazyOptions as h, ModuleBuiltinTab as i, ModuleTabInfo as j, TerminalBase as k, TerminalAction as l, TerminalInfo as m, PackageUpdateInfo as n, PackageManagerName as o, NpmCommandType as p, NpmCommandOptions as q, ServerRouteInfo as r, ServerRouteInputType as s, ServerRouteInput as t, Payload as u, PluginInfoWithMetic as v, InstalledModuleInfo as w, ModuleStaticInfo as x, ModuleCompatibility as y, CompatibilityStatus as z };
689
+ export type { NuxtDevtoolsServerContext as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, CompatibilityStatus as D, ModuleType as E, MaintainerInfo as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, AssetType as J, AssetInfo as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, AssetEntry as O, PluginMetric as P, CodeSnippet as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, ComponentRelationship as U, VueInspectorData as V, ComponentWithRelationships as W, WizardFunctions as X, WizardActions as Y, GetWizardArgs as Z, ClientUpdateEvent as _, VueInspectorClient as a, InstallModuleReturn as a0, AnalyzeBuildMeta as a1, AnalyzeBuildsInfo as a2, ModuleOptions as a3, ModuleGlobalOptions as a4, VSCodeIntegrationOptions as a5, VSCodeTunnelOptions as a6, NuxtDevToolsOptions as a7, TabCategory as a8, 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 };
@@ -527,6 +527,7 @@ interface AnalyzeBuildsInfo {
527
527
 
528
528
  interface ServerFunctions {
529
529
  getServerConfig(): NuxtOptions;
530
+ getServerRuntimeConfig(): Record<string, any>;
530
531
  getModuleOptions(): ModuleOptions;
531
532
  getComponents(): Component[];
532
533
  getComponentsRelationships(): Promise<ComponentRelationship[]>;
@@ -540,8 +541,8 @@ interface ServerFunctions {
540
541
  getServerApp(): NuxtApp | undefined;
541
542
  getOptions<T extends keyof NuxtDevToolsOptions>(tab: T): Promise<NuxtDevToolsOptions[T]>;
542
543
  updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>): Promise<void>;
544
+ clearOptions(): Promise<void>;
543
545
  checkForUpdateFor(name: string): Promise<PackageUpdateInfo | undefined>;
544
- getPackageManager(): Promise<PackageManagerName>;
545
546
  getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<string[] | undefined>;
546
547
  runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<{
547
548
  processId: string;
@@ -685,4 +686,4 @@ declare module '@nuxt/schema' {
685
686
  }
686
687
  }
687
688
 
688
- export type { NuxtDevtoolsServerContext as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, CategorizedTabs as C, ModuleType as D, MaintainerInfo as E, AssetType as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, AssetInfo as J, AssetEntry as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, CodeSnippet as O, PluginMetric as P, ComponentRelationship as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, ComponentWithRelationships as U, VueInspectorData as V, WizardFunctions as W, WizardActions as X, GetWizardArgs as Y, ClientFunctions as Z, ClientUpdateEvent as _, VueInspectorClient as a, InstallModuleReturn as a0, AnalyzeBuildMeta as a1, AnalyzeBuildsInfo as a2, ModuleOptions as a3, ModuleGlobalOptions as a4, VSCodeIntegrationOptions as a5, VSCodeTunnelOptions as a6, NuxtDevToolsOptions as a7, TabCategory as a8, ServerFunctions as b, ModuleLaunchView as c, ModuleIframeView as d, ModuleVNodeView as e, ModuleLaunchAction as f, ModuleView as g, ModuleIframeTabLazyOptions as h, ModuleBuiltinTab as i, ModuleTabInfo as j, TerminalBase as k, TerminalAction as l, TerminalInfo as m, PackageUpdateInfo as n, PackageManagerName as o, NpmCommandType as p, NpmCommandOptions as q, ServerRouteInfo as r, ServerRouteInputType as s, ServerRouteInput as t, Payload as u, PluginInfoWithMetic as v, InstalledModuleInfo as w, ModuleStaticInfo as x, ModuleCompatibility as y, CompatibilityStatus as z };
689
+ export type { NuxtDevtoolsServerContext as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, CompatibilityStatus as D, ModuleType as E, MaintainerInfo as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, AssetType as J, AssetInfo as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, AssetEntry as O, PluginMetric as P, CodeSnippet as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, ComponentRelationship as U, VueInspectorData as V, ComponentWithRelationships as W, WizardFunctions as X, WizardActions as Y, GetWizardArgs as Z, ClientUpdateEvent as _, VueInspectorClient as a, InstallModuleReturn as a0, AnalyzeBuildMeta as a1, AnalyzeBuildsInfo as a2, ModuleOptions as a3, ModuleGlobalOptions as a4, VSCodeIntegrationOptions as a5, VSCodeTunnelOptions as a6, NuxtDevToolsOptions as a7, TabCategory as a8, 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 };
@@ -527,6 +527,7 @@ interface AnalyzeBuildsInfo {
527
527
 
528
528
  interface ServerFunctions {
529
529
  getServerConfig(): NuxtOptions;
530
+ getServerRuntimeConfig(): Record<string, any>;
530
531
  getModuleOptions(): ModuleOptions;
531
532
  getComponents(): Component[];
532
533
  getComponentsRelationships(): Promise<ComponentRelationship[]>;
@@ -540,8 +541,8 @@ interface ServerFunctions {
540
541
  getServerApp(): NuxtApp | undefined;
541
542
  getOptions<T extends keyof NuxtDevToolsOptions>(tab: T): Promise<NuxtDevToolsOptions[T]>;
542
543
  updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>): Promise<void>;
544
+ clearOptions(): Promise<void>;
543
545
  checkForUpdateFor(name: string): Promise<PackageUpdateInfo | undefined>;
544
- getPackageManager(): Promise<PackageManagerName>;
545
546
  getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<string[] | undefined>;
546
547
  runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<{
547
548
  processId: string;
@@ -685,4 +686,4 @@ declare module '@nuxt/schema' {
685
686
  }
686
687
  }
687
688
 
688
- export type { NuxtDevtoolsServerContext as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, CategorizedTabs as C, ModuleType as D, MaintainerInfo as E, AssetType as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, AssetInfo as J, AssetEntry as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, CodeSnippet as O, PluginMetric as P, ComponentRelationship as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, ComponentWithRelationships as U, VueInspectorData as V, WizardFunctions as W, WizardActions as X, GetWizardArgs as Y, ClientFunctions as Z, ClientUpdateEvent as _, VueInspectorClient as a, InstallModuleReturn as a0, AnalyzeBuildMeta as a1, AnalyzeBuildsInfo as a2, ModuleOptions as a3, ModuleGlobalOptions as a4, VSCodeIntegrationOptions as a5, VSCodeTunnelOptions as a6, NuxtDevToolsOptions as a7, TabCategory as a8, ServerFunctions as b, ModuleLaunchView as c, ModuleIframeView as d, ModuleVNodeView as e, ModuleLaunchAction as f, ModuleView as g, ModuleIframeTabLazyOptions as h, ModuleBuiltinTab as i, ModuleTabInfo as j, TerminalBase as k, TerminalAction as l, TerminalInfo as m, PackageUpdateInfo as n, PackageManagerName as o, NpmCommandType as p, NpmCommandOptions as q, ServerRouteInfo as r, ServerRouteInputType as s, ServerRouteInput as t, Payload as u, PluginInfoWithMetic as v, InstalledModuleInfo as w, ModuleStaticInfo as x, ModuleCompatibility as y, CompatibilityStatus as z };
689
+ export type { NuxtDevtoolsServerContext as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, CompatibilityStatus as D, ModuleType as E, MaintainerInfo as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, AssetType as J, AssetInfo as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, AssetEntry as O, PluginMetric as P, CodeSnippet as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, ComponentRelationship as U, VueInspectorData as V, ComponentWithRelationships as W, WizardFunctions as X, WizardActions as Y, GetWizardArgs as Z, ClientUpdateEvent as _, VueInspectorClient as a, InstallModuleReturn as a0, AnalyzeBuildMeta as a1, AnalyzeBuildsInfo as a2, ModuleOptions as a3, ModuleGlobalOptions as a4, VSCodeIntegrationOptions as a5, VSCodeTunnelOptions as a6, NuxtDevToolsOptions as a7, TabCategory as a8, 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 };
package/dist/types.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions } from './shared/devtools-kit.6aa604ca.cjs';
2
- export { a1 as AnalyzeBuildMeta, a2 as AnalyzeBuildsInfo, K as AssetEntry, J as AssetInfo, F as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, Z as ClientFunctions, _ as ClientUpdateEvent, O as CodeSnippet, z as CompatibilityStatus, Q as ComponentRelationship, U as ComponentWithRelationships, Y as GetWizardArgs, G as GitHubContributor, I as ImageMeta, a0 as InstallModuleReturn, w as InstalledModuleInfo, E as MaintainerInfo, i as ModuleBuiltinTab, y as ModuleCompatibility, M as ModuleCustomTab, a4 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a3 as ModuleOptions, x as ModuleStaticInfo, j as ModuleTabInfo, D as ModuleType, e as ModuleVNodeView, g as ModuleView, q as NpmCommandOptions, p as NpmCommandType, a7 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, $ as NuxtDevtoolsServerContext, o as PackageManagerName, n as PackageUpdateInfo, u as Payload, v as PluginInfoWithMetic, R as RouteInfo, r as ServerRouteInfo, t as ServerRouteInput, s as ServerRouteInputType, S as SubprocessOptions, a8 as TabCategory, l as TerminalAction, k as TerminalBase, m as TerminalInfo, T as TerminalState, a5 as VSCodeIntegrationOptions, a6 as VSCodeTunnelOptions, X as WizardActions, W as WizardFunctions } from './shared/devtools-kit.6aa604ca.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.c6641932.cjs';
2
+ export { a1 as AnalyzeBuildMeta, a2 as AnalyzeBuildsInfo, O as AssetEntry, K as AssetInfo, J as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, _ as ClientUpdateEvent, Q as CodeSnippet, D as CompatibilityStatus, U as ComponentRelationship, W as ComponentWithRelationships, Z as GetWizardArgs, G as GitHubContributor, I as ImageMeta, a0 as InstallModuleReturn, x as InstalledModuleInfo, F as MaintainerInfo, i as ModuleBuiltinTab, z as ModuleCompatibility, M as ModuleCustomTab, a4 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a3 as ModuleOptions, y as ModuleStaticInfo, j as ModuleTabInfo, E as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, a7 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, $ 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, a8 as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a5 as VSCodeIntegrationOptions, a6 as VSCodeTunnelOptions, Y as WizardActions, X as WizardFunctions } from './shared/devtools-kit.c6641932.cjs';
3
3
  import { Ref } from 'vue';
4
4
  import { AppConfig } from 'nuxt/schema';
5
- import { NuxtApp } from 'nuxt/dist/app/nuxt';
5
+ import { NuxtApp } from 'nuxt/app';
6
6
  import { Hookable } from 'hookable';
7
7
  import { BirpcReturn } from 'birpc';
8
8
  import { BuiltinLanguage } from 'shikiji';
@@ -26,6 +26,9 @@ interface TimelineEventFunction {
26
26
  stacktrace?: StackFrame[];
27
27
  isPromise?: boolean;
28
28
  }
29
+ interface TimelineServerState {
30
+ timeSsrStart?: number;
31
+ }
29
32
  interface TimelineEventRoute {
30
33
  type: 'route';
31
34
  start: number;
@@ -154,7 +157,7 @@ interface NuxtDevtoolsHostClient {
154
157
  syncClient(): NuxtDevtoolsHostClient;
155
158
  }
156
159
  interface NuxtDevtoolsClient {
157
- rpc: BirpcReturn<ServerFunctions>;
160
+ rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
158
161
  renderCodeHighlight: (code: string, lang?: BuiltinLanguage) => {
159
162
  code: string;
160
163
  supported: boolean;
@@ -171,4 +174,4 @@ interface NuxtDevtoolsGlobal {
171
174
  setClient(client: NuxtDevtoolsHostClient): void;
172
175
  }
173
176
 
174
- export { 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, VueInspectorClient, VueInspectorData };
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,8 +1,8 @@
1
- import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions } from './shared/devtools-kit.6aa604ca.mjs';
2
- export { a1 as AnalyzeBuildMeta, a2 as AnalyzeBuildsInfo, K as AssetEntry, J as AssetInfo, F as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, Z as ClientFunctions, _ as ClientUpdateEvent, O as CodeSnippet, z as CompatibilityStatus, Q as ComponentRelationship, U as ComponentWithRelationships, Y as GetWizardArgs, G as GitHubContributor, I as ImageMeta, a0 as InstallModuleReturn, w as InstalledModuleInfo, E as MaintainerInfo, i as ModuleBuiltinTab, y as ModuleCompatibility, M as ModuleCustomTab, a4 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a3 as ModuleOptions, x as ModuleStaticInfo, j as ModuleTabInfo, D as ModuleType, e as ModuleVNodeView, g as ModuleView, q as NpmCommandOptions, p as NpmCommandType, a7 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, $ as NuxtDevtoolsServerContext, o as PackageManagerName, n as PackageUpdateInfo, u as Payload, v as PluginInfoWithMetic, R as RouteInfo, r as ServerRouteInfo, t as ServerRouteInput, s as ServerRouteInputType, S as SubprocessOptions, a8 as TabCategory, l as TerminalAction, k as TerminalBase, m as TerminalInfo, T as TerminalState, a5 as VSCodeIntegrationOptions, a6 as VSCodeTunnelOptions, X as WizardActions, W as WizardFunctions } from './shared/devtools-kit.6aa604ca.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.c6641932.mjs';
2
+ export { a1 as AnalyzeBuildMeta, a2 as AnalyzeBuildsInfo, O as AssetEntry, K as AssetInfo, J as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, _ as ClientUpdateEvent, Q as CodeSnippet, D as CompatibilityStatus, U as ComponentRelationship, W as ComponentWithRelationships, Z as GetWizardArgs, G as GitHubContributor, I as ImageMeta, a0 as InstallModuleReturn, x as InstalledModuleInfo, F as MaintainerInfo, i as ModuleBuiltinTab, z as ModuleCompatibility, M as ModuleCustomTab, a4 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a3 as ModuleOptions, y as ModuleStaticInfo, j as ModuleTabInfo, E as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, a7 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, $ 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, a8 as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a5 as VSCodeIntegrationOptions, a6 as VSCodeTunnelOptions, Y as WizardActions, X as WizardFunctions } from './shared/devtools-kit.c6641932.mjs';
3
3
  import { Ref } from 'vue';
4
4
  import { AppConfig } from 'nuxt/schema';
5
- import { NuxtApp } from 'nuxt/dist/app/nuxt';
5
+ import { NuxtApp } from 'nuxt/app';
6
6
  import { Hookable } from 'hookable';
7
7
  import { BirpcReturn } from 'birpc';
8
8
  import { BuiltinLanguage } from 'shikiji';
@@ -26,6 +26,9 @@ interface TimelineEventFunction {
26
26
  stacktrace?: StackFrame[];
27
27
  isPromise?: boolean;
28
28
  }
29
+ interface TimelineServerState {
30
+ timeSsrStart?: number;
31
+ }
29
32
  interface TimelineEventRoute {
30
33
  type: 'route';
31
34
  start: number;
@@ -154,7 +157,7 @@ interface NuxtDevtoolsHostClient {
154
157
  syncClient(): NuxtDevtoolsHostClient;
155
158
  }
156
159
  interface NuxtDevtoolsClient {
157
- rpc: BirpcReturn<ServerFunctions>;
160
+ rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
158
161
  renderCodeHighlight: (code: string, lang?: BuiltinLanguage) => {
159
162
  code: string;
160
163
  supported: boolean;
@@ -171,4 +174,4 @@ interface NuxtDevtoolsGlobal {
171
174
  setClient(client: NuxtDevtoolsHostClient): void;
172
175
  }
173
176
 
174
- export { 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, VueInspectorClient, VueInspectorData };
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,8 +1,8 @@
1
- import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions } from './shared/devtools-kit.6aa604ca.js';
2
- export { a1 as AnalyzeBuildMeta, a2 as AnalyzeBuildsInfo, K as AssetEntry, J as AssetInfo, F as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, Z as ClientFunctions, _ as ClientUpdateEvent, O as CodeSnippet, z as CompatibilityStatus, Q as ComponentRelationship, U as ComponentWithRelationships, Y as GetWizardArgs, G as GitHubContributor, I as ImageMeta, a0 as InstallModuleReturn, w as InstalledModuleInfo, E as MaintainerInfo, i as ModuleBuiltinTab, y as ModuleCompatibility, M as ModuleCustomTab, a4 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a3 as ModuleOptions, x as ModuleStaticInfo, j as ModuleTabInfo, D as ModuleType, e as ModuleVNodeView, g as ModuleView, q as NpmCommandOptions, p as NpmCommandType, a7 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, $ as NuxtDevtoolsServerContext, o as PackageManagerName, n as PackageUpdateInfo, u as Payload, v as PluginInfoWithMetic, R as RouteInfo, r as ServerRouteInfo, t as ServerRouteInput, s as ServerRouteInputType, S as SubprocessOptions, a8 as TabCategory, l as TerminalAction, k as TerminalBase, m as TerminalInfo, T as TerminalState, a5 as VSCodeIntegrationOptions, a6 as VSCodeTunnelOptions, X as WizardActions, W as WizardFunctions } from './shared/devtools-kit.6aa604ca.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.c6641932.js';
2
+ export { a1 as AnalyzeBuildMeta, a2 as AnalyzeBuildsInfo, O as AssetEntry, K as AssetInfo, J as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, _ as ClientUpdateEvent, Q as CodeSnippet, D as CompatibilityStatus, U as ComponentRelationship, W as ComponentWithRelationships, Z as GetWizardArgs, G as GitHubContributor, I as ImageMeta, a0 as InstallModuleReturn, x as InstalledModuleInfo, F as MaintainerInfo, i as ModuleBuiltinTab, z as ModuleCompatibility, M as ModuleCustomTab, a4 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a3 as ModuleOptions, y as ModuleStaticInfo, j as ModuleTabInfo, E as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, a7 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, $ 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, a8 as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a5 as VSCodeIntegrationOptions, a6 as VSCodeTunnelOptions, Y as WizardActions, X as WizardFunctions } from './shared/devtools-kit.c6641932.js';
3
3
  import { Ref } from 'vue';
4
4
  import { AppConfig } from 'nuxt/schema';
5
- import { NuxtApp } from 'nuxt/dist/app/nuxt';
5
+ import { NuxtApp } from 'nuxt/app';
6
6
  import { Hookable } from 'hookable';
7
7
  import { BirpcReturn } from 'birpc';
8
8
  import { BuiltinLanguage } from 'shikiji';
@@ -26,6 +26,9 @@ interface TimelineEventFunction {
26
26
  stacktrace?: StackFrame[];
27
27
  isPromise?: boolean;
28
28
  }
29
+ interface TimelineServerState {
30
+ timeSsrStart?: number;
31
+ }
29
32
  interface TimelineEventRoute {
30
33
  type: 'route';
31
34
  start: number;
@@ -154,7 +157,7 @@ interface NuxtDevtoolsHostClient {
154
157
  syncClient(): NuxtDevtoolsHostClient;
155
158
  }
156
159
  interface NuxtDevtoolsClient {
157
- rpc: BirpcReturn<ServerFunctions>;
160
+ rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
158
161
  renderCodeHighlight: (code: string, lang?: BuiltinLanguage) => {
159
162
  code: string;
160
163
  supported: boolean;
@@ -171,4 +174,4 @@ interface NuxtDevtoolsGlobal {
171
174
  setClient(client: NuxtDevtoolsHostClient): void;
172
175
  }
173
176
 
174
- export { 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, VueInspectorClient, VueInspectorData };
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.0-beta.0",
4
+ "version": "1.0.0-beta.1",
5
5
  "license": "MIT",
6
6
  "repository": "nuxt/devtools",
7
7
  "exports": {
@@ -42,8 +42,8 @@
42
42
  "error-stack-parser-es": "^0.1.1",
43
43
  "hookable": "^5.5.3",
44
44
  "unbuild": "^2.0.0",
45
- "unimport": "^3.3.0",
46
- "vite-plugin-vue-inspector": "^3.7.1",
45
+ "unimport": "^3.4.0",
46
+ "vite-plugin-vue-inspector": "^4.0.0",
47
47
  "vue-router": "^4.2.5"
48
48
  },
49
49
  "scripts": {