@nuxt/devtools-kit 0.7.6 → 0.8.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VNode, MaybeRefOrGetter } from 'vue';
|
|
2
2
|
import { BirpcGroup } from 'birpc';
|
|
3
|
-
import {
|
|
3
|
+
import { Component, NuxtOptions, NuxtPage, NuxtLayout, NuxtApp, Nuxt } from 'nuxt/schema';
|
|
4
4
|
import { StorageMounts } from 'nitropack';
|
|
5
5
|
import { StorageValue } from 'unstorage';
|
|
6
6
|
import { VitePluginInspectorOptions } from 'vite-plugin-vue-inspector';
|
|
@@ -298,6 +298,11 @@ interface ComponentRelationship {
|
|
|
298
298
|
id: string;
|
|
299
299
|
deps: string[];
|
|
300
300
|
}
|
|
301
|
+
interface ComponentWithRelationships {
|
|
302
|
+
component: Component;
|
|
303
|
+
dependencies?: string[];
|
|
304
|
+
dependents?: string[];
|
|
305
|
+
}
|
|
301
306
|
|
|
302
307
|
interface ModuleOptions {
|
|
303
308
|
/**
|
|
@@ -666,4 +671,4 @@ declare module '@nuxt/schema' {
|
|
|
666
671
|
}
|
|
667
672
|
}
|
|
668
673
|
|
|
669
|
-
export {
|
|
674
|
+
export { 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 };
|
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-5a32fdaf.js';
|
|
5
5
|
import 'vue';
|
|
6
6
|
import 'nuxt/schema';
|
|
7
7
|
import 'nitropack';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { V as VueInspectorData, a as VueInspectorClient,
|
|
2
|
-
export {
|
|
1
|
+
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions } from './hooks-5a32fdaf.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 './hooks-5a32fdaf.js';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
import { AppConfig } from 'nuxt/schema';
|
|
5
5
|
import { NuxtApp } from 'nuxt/dist/app/nuxt';
|
|
6
6
|
import { Hookable } from 'hookable';
|
|
7
7
|
import { BirpcReturn } from 'birpc';
|
|
8
|
-
import {
|
|
8
|
+
import { BuiltinLanguage } from 'shikiji';
|
|
9
9
|
import { StackFrame } from 'error-stack-parser-es';
|
|
10
10
|
import 'nitropack';
|
|
11
11
|
import 'unstorage';
|
|
@@ -92,15 +92,22 @@ interface NuxtDevtoolsClientHooks {
|
|
|
92
92
|
* Triggers reactivity manually, since Vue won't be reactive across frames)
|
|
93
93
|
*/
|
|
94
94
|
'host:update:reactivity': () => void;
|
|
95
|
+
/**
|
|
96
|
+
* Host action to control the DevTools navigation
|
|
97
|
+
*/
|
|
98
|
+
'host:action:navigate': (path: string) => void;
|
|
99
|
+
/**
|
|
100
|
+
* Host action to reload the DevTools
|
|
101
|
+
*/
|
|
102
|
+
'host:action:reload': () => void;
|
|
95
103
|
}
|
|
96
104
|
/**
|
|
97
105
|
* Host client from the App
|
|
98
106
|
*/
|
|
99
107
|
interface NuxtDevtoolsHostClient {
|
|
100
108
|
nuxt: NuxtApp;
|
|
101
|
-
appConfig: AppConfig;
|
|
102
109
|
hooks: Hookable<NuxtDevtoolsClientHooks>;
|
|
103
|
-
|
|
110
|
+
getIframe(): HTMLIFrameElement | undefined;
|
|
104
111
|
inspector?: {
|
|
105
112
|
instance?: VueInspectorClient;
|
|
106
113
|
enable: () => void;
|
|
@@ -108,35 +115,45 @@ interface NuxtDevtoolsHostClient {
|
|
|
108
115
|
toggle: () => void;
|
|
109
116
|
isEnabled: Ref<boolean>;
|
|
110
117
|
};
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
118
|
+
devtools: {
|
|
119
|
+
close(): void;
|
|
120
|
+
open(): void;
|
|
121
|
+
toggle(): void;
|
|
122
|
+
reload(): void;
|
|
123
|
+
navigate(path: string): void;
|
|
124
|
+
/**
|
|
125
|
+
* Popup the DevTools frame into Picture-in-Picture mode
|
|
126
|
+
*
|
|
127
|
+
* Requires Chrome 111 with experimental flag enabled.
|
|
128
|
+
*
|
|
129
|
+
* Function is undefined when not supported.
|
|
130
|
+
*
|
|
131
|
+
* @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
|
|
132
|
+
*/
|
|
133
|
+
popup?(): any;
|
|
134
|
+
};
|
|
135
|
+
app: {
|
|
136
|
+
reload(): void;
|
|
137
|
+
navigate(path: string, hard?: boolean): void;
|
|
138
|
+
appConfig: AppConfig;
|
|
139
|
+
colorMode: Ref<'dark' | 'light'>;
|
|
140
|
+
frameState: Ref<DevToolsFrameState>;
|
|
141
|
+
};
|
|
142
|
+
metrics: {
|
|
143
|
+
clientHooks(): HookInfo[];
|
|
144
|
+
clientPlugins(): PluginMetric[] | undefined;
|
|
145
|
+
clientTimeline(): TimelineMetrics | undefined;
|
|
146
|
+
loading(): LoadingTimeMetric;
|
|
147
|
+
};
|
|
129
148
|
/**
|
|
130
149
|
* Update client
|
|
131
150
|
* @internal
|
|
132
151
|
*/
|
|
133
|
-
|
|
134
|
-
getIframe(): HTMLIFrameElement | undefined;
|
|
135
|
-
frameState: Ref<DevToolsFrameState>;
|
|
152
|
+
syncClient(): NuxtDevtoolsHostClient;
|
|
136
153
|
}
|
|
137
154
|
interface NuxtDevtoolsClient {
|
|
138
155
|
rpc: BirpcReturn<ServerFunctions>;
|
|
139
|
-
renderCodeHighlight: (code: string, lang?:
|
|
156
|
+
renderCodeHighlight: (code: string, lang?: BuiltinLanguage) => {
|
|
140
157
|
code: string;
|
|
141
158
|
supported: boolean;
|
|
142
159
|
};
|
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": "0.8.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "nuxt/devtools",
|
|
7
7
|
"exports": {
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"vite": "*"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@nuxt/kit": "^3.
|
|
37
|
-
"@nuxt/schema": "^3.
|
|
36
|
+
"@nuxt/kit": "^3.7.0",
|
|
37
|
+
"@nuxt/schema": "^3.7.0",
|
|
38
38
|
"execa": "^7.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"birpc": "^0.2.
|
|
42
|
-
"error-stack-parser-es": "^0.1.
|
|
41
|
+
"birpc": "^0.2.13",
|
|
42
|
+
"error-stack-parser-es": "^0.1.1",
|
|
43
43
|
"hookable": "^5.5.3",
|
|
44
|
-
"unbuild": "^
|
|
45
|
-
"unimport": "^3.
|
|
44
|
+
"unbuild": "^2.0.0",
|
|
45
|
+
"unimport": "^3.2.0",
|
|
46
46
|
"vite-plugin-vue-inspector": "^3.6.0",
|
|
47
47
|
"vue-router": "^4.2.4"
|
|
48
48
|
},
|