@nuxt/devtools-kit 0.7.4 → 0.7.6
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.
|
@@ -282,6 +282,12 @@ interface AssetInfo {
|
|
|
282
282
|
size: number;
|
|
283
283
|
mtime: number;
|
|
284
284
|
}
|
|
285
|
+
interface AssetEntry {
|
|
286
|
+
path: string;
|
|
287
|
+
content: string;
|
|
288
|
+
encoding?: BufferEncoding;
|
|
289
|
+
override?: boolean;
|
|
290
|
+
}
|
|
285
291
|
interface CodeSnippet {
|
|
286
292
|
code: string;
|
|
287
293
|
lang: string;
|
|
@@ -427,12 +433,16 @@ interface NuxtDevToolsOptions {
|
|
|
427
433
|
hiddenTabs: string[];
|
|
428
434
|
hiddenTabCategories: string[];
|
|
429
435
|
pinnedTabs: string[];
|
|
436
|
+
minimizePanelInactive: number;
|
|
430
437
|
};
|
|
431
438
|
serverRoutes: {
|
|
432
439
|
selectedRoute: ServerRouteInfo | null;
|
|
433
440
|
view: 'tree' | 'list';
|
|
434
441
|
inputDefaults: Record<string, ServerRouteInput[]>;
|
|
435
442
|
};
|
|
443
|
+
assets: {
|
|
444
|
+
view: 'grid' | 'list';
|
|
445
|
+
};
|
|
436
446
|
}
|
|
437
447
|
|
|
438
448
|
interface TerminalBase {
|
|
@@ -532,11 +542,8 @@ interface ServerFunctions {
|
|
|
532
542
|
clearAnalyzeBuilds(token: string, names?: string[]): Promise<void>;
|
|
533
543
|
getImageMeta(filepath: string): Promise<ImageMeta | undefined>;
|
|
534
544
|
getTextAssetContent(filepath: string, limit?: number): Promise<string | undefined>;
|
|
535
|
-
writeStaticAssets(token: string, file:
|
|
536
|
-
|
|
537
|
-
data: string;
|
|
538
|
-
}[], path: string): Promise<string[]>;
|
|
539
|
-
deleteStaticAsset(token: string, file: string): Promise<void>;
|
|
545
|
+
writeStaticAssets(token: string, file: AssetEntry[], folder: string): Promise<string[]>;
|
|
546
|
+
deleteStaticAsset(token: string, filepath: string): Promise<void>;
|
|
540
547
|
renameStaticAsset(token: string, oldPath: string, newPath: string): Promise<void>;
|
|
541
548
|
customTabAction(name: string, action: number): Promise<boolean>;
|
|
542
549
|
runWizard<T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>): Promise<void>;
|
|
@@ -659,4 +666,4 @@ declare module '@nuxt/schema' {
|
|
|
659
666
|
}
|
|
660
667
|
}
|
|
661
668
|
|
|
662
|
-
export {
|
|
669
|
+
export { InstallModuleReturn 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, WizardActions as U, VueInspectorData as V, WizardFunctions as W, GetWizardArgs as X, ClientFunctions as Y, ClientUpdateEvent as Z, NuxtDevtoolsServerContext as _, VueInspectorClient as a, AnalyzeBuildMeta as a0, AnalyzeBuildsInfo as a1, ModuleOptions as a2, ModuleGlobalOptions as a3, VSCodeIntegrationOptions as a4, VSCodeTunnelOptions as a5, NuxtDevToolsOptions as a6, TabCategory as a7, ServerFunctions as b, ModuleLaunchView as c, ModuleIframeView as d, ModuleVNodeView as e, ModuleLaunchAction as f, ModuleView as g, ModuleIframeTabLazyOptions as h, ModuleBuiltinTab as i, ModuleTabInfo as j, TerminalBase as k, TerminalAction as l, TerminalInfo as m, PackageUpdateInfo as n, PackageManagerName as o, NpmCommandType as p, NpmCommandOptions as q, ServerRouteInfo as r, ServerRouteInputType as s, ServerRouteInput as t, Payload as u, PluginInfoWithMetic as v, InstalledModuleInfo as w, ModuleStaticInfo as x, ModuleCompatibility as y, CompatibilityStatus as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,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 './hooks-
|
|
4
|
+
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './hooks-76cba3c4.js';
|
|
5
5
|
import 'vue';
|
|
6
6
|
import 'nuxt/schema';
|
|
7
7
|
import 'nitropack';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VueInspectorData, a as VueInspectorClient, L as LoadingTimeMetric, H as HookInfo, P as PluginMetric, b as ServerFunctions } from './hooks-
|
|
2
|
-
export {
|
|
1
|
+
import { V as VueInspectorData, a as VueInspectorClient, L as LoadingTimeMetric, H as HookInfo, P as PluginMetric, b as ServerFunctions } from './hooks-76cba3c4.js';
|
|
2
|
+
export { a0 as AnalyzeBuildMeta, a1 as AnalyzeBuildsInfo, K as AssetEntry, J as AssetInfo, F as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, Y as ClientFunctions, Z as ClientUpdateEvent, O as CodeSnippet, z as CompatibilityStatus, Q as ComponentRelationship, X as GetWizardArgs, G as GitHubContributor, I as ImageMeta, $ as InstallModuleReturn, w as InstalledModuleInfo, E as MaintainerInfo, i as ModuleBuiltinTab, y as ModuleCompatibility, M as ModuleCustomTab, a3 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a2 as ModuleOptions, x as ModuleStaticInfo, j as ModuleTabInfo, D as ModuleType, e as ModuleVNodeView, g as ModuleView, q as NpmCommandOptions, p as NpmCommandType, a6 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, a7 as TabCategory, l as TerminalAction, k as TerminalBase, m as TerminalInfo, T as TerminalState, a4 as VSCodeIntegrationOptions, a5 as VSCodeTunnelOptions, U as WizardActions, W as WizardFunctions } from './hooks-76cba3c4.js';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
import { AppConfig } from 'nuxt/schema';
|
|
5
5
|
import { NuxtApp } from 'nuxt/dist/app/nuxt';
|
|
@@ -60,6 +60,17 @@ interface TimelineEventsSegment {
|
|
|
60
60
|
previousGap?: number;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
interface DevToolsFrameState {
|
|
64
|
+
width: number;
|
|
65
|
+
height: number;
|
|
66
|
+
top: number;
|
|
67
|
+
left: number;
|
|
68
|
+
open: boolean;
|
|
69
|
+
route: string;
|
|
70
|
+
position: 'left' | 'right' | 'bottom' | 'top';
|
|
71
|
+
closeOnOutsideClick: boolean;
|
|
72
|
+
minimizePanelInactive: number;
|
|
73
|
+
}
|
|
63
74
|
interface NuxtDevtoolsClientHooks {
|
|
64
75
|
/**
|
|
65
76
|
* When the DevTools navigates, used for persisting the current tab
|
|
@@ -121,6 +132,7 @@ interface NuxtDevtoolsHostClient {
|
|
|
121
132
|
*/
|
|
122
133
|
updateClient(): NuxtDevtoolsHostClient;
|
|
123
134
|
getIframe(): HTMLIFrameElement | undefined;
|
|
135
|
+
frameState: Ref<DevToolsFrameState>;
|
|
124
136
|
}
|
|
125
137
|
interface NuxtDevtoolsClient {
|
|
126
138
|
rpc: BirpcReturn<ServerFunctions>;
|
|
@@ -140,4 +152,4 @@ interface NuxtDevtoolsGlobal {
|
|
|
140
152
|
setClient(client: NuxtDevtoolsHostClient): void;
|
|
141
153
|
}
|
|
142
154
|
|
|
143
|
-
export { HookInfo, LoadingTimeMetric, NuxtDevtoolsClient, NuxtDevtoolsClientHooks, NuxtDevtoolsGlobal, NuxtDevtoolsHostClient, NuxtDevtoolsIframeClient, PluginMetric, ServerFunctions, TimelineEvent, TimelineEventFunction, TimelineEventNormalized, TimelineEventRoute, TimelineEventsSegment, TimelineMetrics, TimelineOptions, VueInspectorClient, VueInspectorData };
|
|
155
|
+
export { DevToolsFrameState, HookInfo, LoadingTimeMetric, NuxtDevtoolsClient, NuxtDevtoolsClientHooks, NuxtDevtoolsGlobal, NuxtDevtoolsHostClient, NuxtDevtoolsIframeClient, PluginMetric, ServerFunctions, TimelineEvent, TimelineEventFunction, TimelineEventNormalized, TimelineEventRoute, TimelineEventsSegment, TimelineMetrics, TimelineOptions, VueInspectorClient, VueInspectorData };
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "nuxt/devtools",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
12
|
},
|
|
13
13
|
"./types": {
|
|
14
14
|
"types": "./types.d.ts",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"import": "./dist/types.mjs",
|
|
16
|
+
"require": "./dist/types.cjs"
|
|
17
17
|
},
|
|
18
18
|
"./iframe-client": {
|
|
19
19
|
"types": "./iframe-client.d.ts",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"error-stack-parser-es": "^0.1.0",
|
|
43
43
|
"hookable": "^5.5.3",
|
|
44
44
|
"unbuild": "^1.2.1",
|
|
45
|
-
"unimport": "^3.1.
|
|
46
|
-
"vite-plugin-vue-inspector": "^3.
|
|
45
|
+
"unimport": "^3.1.3",
|
|
46
|
+
"vite-plugin-vue-inspector": "^3.6.0",
|
|
47
47
|
"vue-router": "^4.2.4"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|