@nuxt/devtools-kit 0.8.5 → 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 +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/shared/{devtools-kit.ddf4b3f2.d.cts → devtools-kit.c6641932.d.cts} +8 -5
- package/dist/shared/{devtools-kit.ddf4b3f2.d.mts → devtools-kit.c6641932.d.mts} +8 -5
- package/dist/shared/{devtools-kit.ddf4b3f2.d.ts → devtools-kit.c6641932.d.ts} +8 -5
- package/dist/types.d.cts +10 -5
- package/dist/types.d.mts +10 -5
- package/dist/types.d.ts +10 -5
- package/package.json +7 -7
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.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.
|
|
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.
|
|
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';
|
|
@@ -448,6 +448,7 @@ interface NuxtDevToolsOptions {
|
|
|
448
448
|
scale: number;
|
|
449
449
|
showExperimentalFeatures: boolean;
|
|
450
450
|
showHelpButtons: boolean;
|
|
451
|
+
showPanel: boolean | null;
|
|
451
452
|
sidebarExpanded: boolean;
|
|
452
453
|
sidebarScrollable: boolean;
|
|
453
454
|
};
|
|
@@ -455,6 +456,7 @@ interface NuxtDevToolsOptions {
|
|
|
455
456
|
selectedRoute: ServerRouteInfo | null;
|
|
456
457
|
view: 'tree' | 'list';
|
|
457
458
|
inputDefaults: Record<string, ServerRouteInput[]>;
|
|
459
|
+
sendFrom: 'app' | 'devtools';
|
|
458
460
|
};
|
|
459
461
|
assets: {
|
|
460
462
|
view: 'grid' | 'list';
|
|
@@ -525,6 +527,7 @@ interface AnalyzeBuildsInfo {
|
|
|
525
527
|
|
|
526
528
|
interface ServerFunctions {
|
|
527
529
|
getServerConfig(): NuxtOptions;
|
|
530
|
+
getServerRuntimeConfig(): Record<string, any>;
|
|
528
531
|
getModuleOptions(): ModuleOptions;
|
|
529
532
|
getComponents(): Component[];
|
|
530
533
|
getComponentsRelationships(): Promise<ComponentRelationship[]>;
|
|
@@ -538,15 +541,15 @@ interface ServerFunctions {
|
|
|
538
541
|
getServerApp(): NuxtApp | undefined;
|
|
539
542
|
getOptions<T extends keyof NuxtDevToolsOptions>(tab: T): Promise<NuxtDevToolsOptions[T]>;
|
|
540
543
|
updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>): Promise<void>;
|
|
544
|
+
clearOptions(): Promise<void>;
|
|
541
545
|
checkForUpdateFor(name: string): Promise<PackageUpdateInfo | undefined>;
|
|
542
|
-
getPackageManager(): Promise<PackageManagerName>;
|
|
543
546
|
getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<string[] | undefined>;
|
|
544
547
|
runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<{
|
|
545
548
|
processId: string;
|
|
546
549
|
} | undefined>;
|
|
547
550
|
getTerminals(): TerminalInfo[];
|
|
548
|
-
getTerminalDetail(token: string, id: string): TerminalInfo | undefined
|
|
549
|
-
runTerminalAction(id: string, action: TerminalAction): Promise<boolean>;
|
|
551
|
+
getTerminalDetail(token: string, id: string): Promise<TerminalInfo | undefined>;
|
|
552
|
+
runTerminalAction(token: string, id: string, action: TerminalAction): Promise<boolean>;
|
|
550
553
|
getStorageMounts(): Promise<StorageMounts>;
|
|
551
554
|
getStorageKeys(base?: string): Promise<string[]>;
|
|
552
555
|
getStorageItem(token: string, key: string): Promise<StorageValue>;
|
|
@@ -565,7 +568,7 @@ interface ServerFunctions {
|
|
|
565
568
|
customTabAction(name: string, action: number): Promise<boolean>;
|
|
566
569
|
runWizard<T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>): Promise<void>;
|
|
567
570
|
openInEditor(filepath: string): Promise<boolean>;
|
|
568
|
-
requestForAuth(info?: string): Promise<void>;
|
|
571
|
+
requestForAuth(info?: string, origin?: string): Promise<void>;
|
|
569
572
|
verifyAuthToken(token: string): Promise<boolean>;
|
|
570
573
|
restartNuxt(hard?: boolean): Promise<void>;
|
|
571
574
|
installNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
|
|
@@ -683,4 +686,4 @@ declare module '@nuxt/schema' {
|
|
|
683
686
|
}
|
|
684
687
|
}
|
|
685
688
|
|
|
686
|
-
export type { NuxtDevtoolsServerContext as $, AutoImportsWithMetadata as A, BasicModuleInfo as B,
|
|
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 };
|
|
@@ -448,6 +448,7 @@ interface NuxtDevToolsOptions {
|
|
|
448
448
|
scale: number;
|
|
449
449
|
showExperimentalFeatures: boolean;
|
|
450
450
|
showHelpButtons: boolean;
|
|
451
|
+
showPanel: boolean | null;
|
|
451
452
|
sidebarExpanded: boolean;
|
|
452
453
|
sidebarScrollable: boolean;
|
|
453
454
|
};
|
|
@@ -455,6 +456,7 @@ interface NuxtDevToolsOptions {
|
|
|
455
456
|
selectedRoute: ServerRouteInfo | null;
|
|
456
457
|
view: 'tree' | 'list';
|
|
457
458
|
inputDefaults: Record<string, ServerRouteInput[]>;
|
|
459
|
+
sendFrom: 'app' | 'devtools';
|
|
458
460
|
};
|
|
459
461
|
assets: {
|
|
460
462
|
view: 'grid' | 'list';
|
|
@@ -525,6 +527,7 @@ interface AnalyzeBuildsInfo {
|
|
|
525
527
|
|
|
526
528
|
interface ServerFunctions {
|
|
527
529
|
getServerConfig(): NuxtOptions;
|
|
530
|
+
getServerRuntimeConfig(): Record<string, any>;
|
|
528
531
|
getModuleOptions(): ModuleOptions;
|
|
529
532
|
getComponents(): Component[];
|
|
530
533
|
getComponentsRelationships(): Promise<ComponentRelationship[]>;
|
|
@@ -538,15 +541,15 @@ interface ServerFunctions {
|
|
|
538
541
|
getServerApp(): NuxtApp | undefined;
|
|
539
542
|
getOptions<T extends keyof NuxtDevToolsOptions>(tab: T): Promise<NuxtDevToolsOptions[T]>;
|
|
540
543
|
updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>): Promise<void>;
|
|
544
|
+
clearOptions(): Promise<void>;
|
|
541
545
|
checkForUpdateFor(name: string): Promise<PackageUpdateInfo | undefined>;
|
|
542
|
-
getPackageManager(): Promise<PackageManagerName>;
|
|
543
546
|
getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<string[] | undefined>;
|
|
544
547
|
runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<{
|
|
545
548
|
processId: string;
|
|
546
549
|
} | undefined>;
|
|
547
550
|
getTerminals(): TerminalInfo[];
|
|
548
|
-
getTerminalDetail(token: string, id: string): TerminalInfo | undefined
|
|
549
|
-
runTerminalAction(id: string, action: TerminalAction): Promise<boolean>;
|
|
551
|
+
getTerminalDetail(token: string, id: string): Promise<TerminalInfo | undefined>;
|
|
552
|
+
runTerminalAction(token: string, id: string, action: TerminalAction): Promise<boolean>;
|
|
550
553
|
getStorageMounts(): Promise<StorageMounts>;
|
|
551
554
|
getStorageKeys(base?: string): Promise<string[]>;
|
|
552
555
|
getStorageItem(token: string, key: string): Promise<StorageValue>;
|
|
@@ -565,7 +568,7 @@ interface ServerFunctions {
|
|
|
565
568
|
customTabAction(name: string, action: number): Promise<boolean>;
|
|
566
569
|
runWizard<T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>): Promise<void>;
|
|
567
570
|
openInEditor(filepath: string): Promise<boolean>;
|
|
568
|
-
requestForAuth(info?: string): Promise<void>;
|
|
571
|
+
requestForAuth(info?: string, origin?: string): Promise<void>;
|
|
569
572
|
verifyAuthToken(token: string): Promise<boolean>;
|
|
570
573
|
restartNuxt(hard?: boolean): Promise<void>;
|
|
571
574
|
installNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
|
|
@@ -683,4 +686,4 @@ declare module '@nuxt/schema' {
|
|
|
683
686
|
}
|
|
684
687
|
}
|
|
685
688
|
|
|
686
|
-
export type { NuxtDevtoolsServerContext as $, AutoImportsWithMetadata as A, BasicModuleInfo as B,
|
|
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 };
|
|
@@ -448,6 +448,7 @@ interface NuxtDevToolsOptions {
|
|
|
448
448
|
scale: number;
|
|
449
449
|
showExperimentalFeatures: boolean;
|
|
450
450
|
showHelpButtons: boolean;
|
|
451
|
+
showPanel: boolean | null;
|
|
451
452
|
sidebarExpanded: boolean;
|
|
452
453
|
sidebarScrollable: boolean;
|
|
453
454
|
};
|
|
@@ -455,6 +456,7 @@ interface NuxtDevToolsOptions {
|
|
|
455
456
|
selectedRoute: ServerRouteInfo | null;
|
|
456
457
|
view: 'tree' | 'list';
|
|
457
458
|
inputDefaults: Record<string, ServerRouteInput[]>;
|
|
459
|
+
sendFrom: 'app' | 'devtools';
|
|
458
460
|
};
|
|
459
461
|
assets: {
|
|
460
462
|
view: 'grid' | 'list';
|
|
@@ -525,6 +527,7 @@ interface AnalyzeBuildsInfo {
|
|
|
525
527
|
|
|
526
528
|
interface ServerFunctions {
|
|
527
529
|
getServerConfig(): NuxtOptions;
|
|
530
|
+
getServerRuntimeConfig(): Record<string, any>;
|
|
528
531
|
getModuleOptions(): ModuleOptions;
|
|
529
532
|
getComponents(): Component[];
|
|
530
533
|
getComponentsRelationships(): Promise<ComponentRelationship[]>;
|
|
@@ -538,15 +541,15 @@ interface ServerFunctions {
|
|
|
538
541
|
getServerApp(): NuxtApp | undefined;
|
|
539
542
|
getOptions<T extends keyof NuxtDevToolsOptions>(tab: T): Promise<NuxtDevToolsOptions[T]>;
|
|
540
543
|
updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>): Promise<void>;
|
|
544
|
+
clearOptions(): Promise<void>;
|
|
541
545
|
checkForUpdateFor(name: string): Promise<PackageUpdateInfo | undefined>;
|
|
542
|
-
getPackageManager(): Promise<PackageManagerName>;
|
|
543
546
|
getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<string[] | undefined>;
|
|
544
547
|
runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<{
|
|
545
548
|
processId: string;
|
|
546
549
|
} | undefined>;
|
|
547
550
|
getTerminals(): TerminalInfo[];
|
|
548
|
-
getTerminalDetail(token: string, id: string): TerminalInfo | undefined
|
|
549
|
-
runTerminalAction(id: string, action: TerminalAction): Promise<boolean>;
|
|
551
|
+
getTerminalDetail(token: string, id: string): Promise<TerminalInfo | undefined>;
|
|
552
|
+
runTerminalAction(token: string, id: string, action: TerminalAction): Promise<boolean>;
|
|
550
553
|
getStorageMounts(): Promise<StorageMounts>;
|
|
551
554
|
getStorageKeys(base?: string): Promise<string[]>;
|
|
552
555
|
getStorageItem(token: string, key: string): Promise<StorageValue>;
|
|
@@ -565,7 +568,7 @@ interface ServerFunctions {
|
|
|
565
568
|
customTabAction(name: string, action: number): Promise<boolean>;
|
|
566
569
|
runWizard<T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>): Promise<void>;
|
|
567
570
|
openInEditor(filepath: string): Promise<boolean>;
|
|
568
|
-
requestForAuth(info?: string): Promise<void>;
|
|
571
|
+
requestForAuth(info?: string, origin?: string): Promise<void>;
|
|
569
572
|
verifyAuthToken(token: string): Promise<boolean>;
|
|
570
573
|
restartNuxt(hard?: boolean): Promise<void>;
|
|
571
574
|
installNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
|
|
@@ -683,4 +686,4 @@ declare module '@nuxt/schema' {
|
|
|
683
686
|
}
|
|
684
687
|
}
|
|
685
688
|
|
|
686
|
-
export type { NuxtDevtoolsServerContext as $, AutoImportsWithMetadata as A, BasicModuleInfo as B,
|
|
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,11 +1,12 @@
|
|
|
1
|
-
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions } from './shared/devtools-kit.
|
|
2
|
-
export { a1 as AnalyzeBuildMeta, a2 as AnalyzeBuildsInfo,
|
|
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/
|
|
5
|
+
import { NuxtApp } from 'nuxt/app';
|
|
6
6
|
import { Hookable } from 'hookable';
|
|
7
7
|
import { BirpcReturn } from 'birpc';
|
|
8
8
|
import { BuiltinLanguage } from 'shikiji';
|
|
9
|
+
import { $Fetch } from 'ofetch';
|
|
9
10
|
import { StackFrame } from 'error-stack-parser-es';
|
|
10
11
|
import 'nitropack';
|
|
11
12
|
import 'unstorage';
|
|
@@ -25,6 +26,9 @@ interface TimelineEventFunction {
|
|
|
25
26
|
stacktrace?: StackFrame[];
|
|
26
27
|
isPromise?: boolean;
|
|
27
28
|
}
|
|
29
|
+
interface TimelineServerState {
|
|
30
|
+
timeSsrStart?: number;
|
|
31
|
+
}
|
|
28
32
|
interface TimelineEventRoute {
|
|
29
33
|
type: 'route';
|
|
30
34
|
start: number;
|
|
@@ -138,6 +142,7 @@ interface NuxtDevtoolsHostClient {
|
|
|
138
142
|
appConfig: AppConfig;
|
|
139
143
|
colorMode: Ref<'dark' | 'light'>;
|
|
140
144
|
frameState: Ref<DevToolsFrameState>;
|
|
145
|
+
$fetch: $Fetch;
|
|
141
146
|
};
|
|
142
147
|
metrics: {
|
|
143
148
|
clientHooks(): HookInfo[];
|
|
@@ -152,7 +157,7 @@ interface NuxtDevtoolsHostClient {
|
|
|
152
157
|
syncClient(): NuxtDevtoolsHostClient;
|
|
153
158
|
}
|
|
154
159
|
interface NuxtDevtoolsClient {
|
|
155
|
-
rpc: BirpcReturn<ServerFunctions>;
|
|
160
|
+
rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
|
|
156
161
|
renderCodeHighlight: (code: string, lang?: BuiltinLanguage) => {
|
|
157
162
|
code: string;
|
|
158
163
|
supported: boolean;
|
|
@@ -169,4 +174,4 @@ interface NuxtDevtoolsGlobal {
|
|
|
169
174
|
setClient(client: NuxtDevtoolsHostClient): void;
|
|
170
175
|
}
|
|
171
176
|
|
|
172
|
-
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,11 +1,12 @@
|
|
|
1
|
-
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions } from './shared/devtools-kit.
|
|
2
|
-
export { a1 as AnalyzeBuildMeta, a2 as AnalyzeBuildsInfo,
|
|
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/
|
|
5
|
+
import { NuxtApp } from 'nuxt/app';
|
|
6
6
|
import { Hookable } from 'hookable';
|
|
7
7
|
import { BirpcReturn } from 'birpc';
|
|
8
8
|
import { BuiltinLanguage } from 'shikiji';
|
|
9
|
+
import { $Fetch } from 'ofetch';
|
|
9
10
|
import { StackFrame } from 'error-stack-parser-es';
|
|
10
11
|
import 'nitropack';
|
|
11
12
|
import 'unstorage';
|
|
@@ -25,6 +26,9 @@ interface TimelineEventFunction {
|
|
|
25
26
|
stacktrace?: StackFrame[];
|
|
26
27
|
isPromise?: boolean;
|
|
27
28
|
}
|
|
29
|
+
interface TimelineServerState {
|
|
30
|
+
timeSsrStart?: number;
|
|
31
|
+
}
|
|
28
32
|
interface TimelineEventRoute {
|
|
29
33
|
type: 'route';
|
|
30
34
|
start: number;
|
|
@@ -138,6 +142,7 @@ interface NuxtDevtoolsHostClient {
|
|
|
138
142
|
appConfig: AppConfig;
|
|
139
143
|
colorMode: Ref<'dark' | 'light'>;
|
|
140
144
|
frameState: Ref<DevToolsFrameState>;
|
|
145
|
+
$fetch: $Fetch;
|
|
141
146
|
};
|
|
142
147
|
metrics: {
|
|
143
148
|
clientHooks(): HookInfo[];
|
|
@@ -152,7 +157,7 @@ interface NuxtDevtoolsHostClient {
|
|
|
152
157
|
syncClient(): NuxtDevtoolsHostClient;
|
|
153
158
|
}
|
|
154
159
|
interface NuxtDevtoolsClient {
|
|
155
|
-
rpc: BirpcReturn<ServerFunctions>;
|
|
160
|
+
rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
|
|
156
161
|
renderCodeHighlight: (code: string, lang?: BuiltinLanguage) => {
|
|
157
162
|
code: string;
|
|
158
163
|
supported: boolean;
|
|
@@ -169,4 +174,4 @@ interface NuxtDevtoolsGlobal {
|
|
|
169
174
|
setClient(client: NuxtDevtoolsHostClient): void;
|
|
170
175
|
}
|
|
171
176
|
|
|
172
|
-
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,11 +1,12 @@
|
|
|
1
|
-
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions } from './shared/devtools-kit.
|
|
2
|
-
export { a1 as AnalyzeBuildMeta, a2 as AnalyzeBuildsInfo,
|
|
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/
|
|
5
|
+
import { NuxtApp } from 'nuxt/app';
|
|
6
6
|
import { Hookable } from 'hookable';
|
|
7
7
|
import { BirpcReturn } from 'birpc';
|
|
8
8
|
import { BuiltinLanguage } from 'shikiji';
|
|
9
|
+
import { $Fetch } from 'ofetch';
|
|
9
10
|
import { StackFrame } from 'error-stack-parser-es';
|
|
10
11
|
import 'nitropack';
|
|
11
12
|
import 'unstorage';
|
|
@@ -25,6 +26,9 @@ interface TimelineEventFunction {
|
|
|
25
26
|
stacktrace?: StackFrame[];
|
|
26
27
|
isPromise?: boolean;
|
|
27
28
|
}
|
|
29
|
+
interface TimelineServerState {
|
|
30
|
+
timeSsrStart?: number;
|
|
31
|
+
}
|
|
28
32
|
interface TimelineEventRoute {
|
|
29
33
|
type: 'route';
|
|
30
34
|
start: number;
|
|
@@ -138,6 +142,7 @@ interface NuxtDevtoolsHostClient {
|
|
|
138
142
|
appConfig: AppConfig;
|
|
139
143
|
colorMode: Ref<'dark' | 'light'>;
|
|
140
144
|
frameState: Ref<DevToolsFrameState>;
|
|
145
|
+
$fetch: $Fetch;
|
|
141
146
|
};
|
|
142
147
|
metrics: {
|
|
143
148
|
clientHooks(): HookInfo[];
|
|
@@ -152,7 +157,7 @@ interface NuxtDevtoolsHostClient {
|
|
|
152
157
|
syncClient(): NuxtDevtoolsHostClient;
|
|
153
158
|
}
|
|
154
159
|
interface NuxtDevtoolsClient {
|
|
155
|
-
rpc: BirpcReturn<ServerFunctions>;
|
|
160
|
+
rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
|
|
156
161
|
renderCodeHighlight: (code: string, lang?: BuiltinLanguage) => {
|
|
157
162
|
code: string;
|
|
158
163
|
supported: boolean;
|
|
@@ -169,4 +174,4 @@ interface NuxtDevtoolsGlobal {
|
|
|
169
174
|
setClient(client: NuxtDevtoolsHostClient): void;
|
|
170
175
|
}
|
|
171
176
|
|
|
172
|
-
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": "0.
|
|
4
|
+
"version": "1.0.0-beta.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "nuxt/devtools",
|
|
7
7
|
"exports": {
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"nuxt": "^3.7.
|
|
32
|
+
"nuxt": "^3.7.4",
|
|
33
33
|
"vite": "*"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@nuxt/kit": "^3.7.
|
|
37
|
-
"@nuxt/schema": "^3.7.
|
|
36
|
+
"@nuxt/kit": "^3.7.4",
|
|
37
|
+
"@nuxt/schema": "^3.7.4",
|
|
38
38
|
"execa": "^7.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"error-stack-parser-es": "^0.1.1",
|
|
43
43
|
"hookable": "^5.5.3",
|
|
44
44
|
"unbuild": "^2.0.0",
|
|
45
|
-
"unimport": "^3.
|
|
46
|
-
"vite-plugin-vue-inspector": "^
|
|
47
|
-
"vue-router": "^4.2.
|
|
45
|
+
"unimport": "^3.4.0",
|
|
46
|
+
"vite-plugin-vue-inspector": "^4.0.0",
|
|
47
|
+
"vue-router": "^4.2.5"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "unbuild",
|