@nuxt/devtools-kit-nightly 2.0.0-28980754.13f6fd0

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/types.cjs ADDED
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,182 @@
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-nightly.ozceKZpq.cjs';
2
+ export { A as AnalyzeBuildMeta, c as AnalyzeBuildsInfo, W as AssetEntry, U as AssetInfo, Q as AssetType, r as AutoImportsWithMetadata, B as BasicModuleInfo, m as CategorizedTabs, a6 as ClientUpdateEvent, _ as CodeServerOptions, $ as CodeServerType, X as CodeSnippet, G as CompatibilityStatus, Y as ComponentRelationship, Z as ComponentWithRelationships, ae as GetWizardArgs, O as GitHubContributor, I as ImageMeta, a8 as InstallModuleReturn, z as InstalledModuleInfo, K as MaintainerInfo, k as ModuleBuiltinTab, E as ModuleCompatibility, M as ModuleCustomTab, a1 as ModuleGlobalOptions, j as ModuleIframeTabLazyOptions, f as ModuleIframeView, h as ModuleLaunchAction, e as ModuleLaunchView, a0 as ModuleOptions, D as ModuleStaticInfo, F as ModuleStats, l as ModuleTabInfo, J as ModuleType, g as ModuleVNodeView, i as ModuleView, q as NpmCommandOptions, p as NpmCommandType, a4 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a7 as NuxtDevtoolsServerContext, a5 as NuxtServerData, o as PackageManagerName, n as PackageUpdateInfo, v as Payload, y as PluginInfoWithMetic, R as RouteInfo, x as ScannedNitroTasks, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, w as ServerTaskInfo, S as SubprocessOptions, d as TabCategory, aa as TerminalAction, a9 as TerminalBase, ab as TerminalInfo, T as TerminalState, a2 as VSCodeIntegrationOptions, a3 as VSCodeTunnelOptions, ad as WizardActions, ac as WizardFunctions } from './shared/devtools-kit-nightly.ozceKZpq.cjs';
3
+ import { BirpcReturn } from 'birpc';
4
+ import { Hookable } from 'hookable';
5
+ import { NuxtApp } from 'nuxt/app';
6
+ import { AppConfig } from 'nuxt/schema';
7
+ import { $Fetch } from 'ofetch';
8
+ import { BuiltinLanguage } from 'shiki';
9
+ import { Ref } from 'vue';
10
+ import { StackFrame } from 'error-stack-parser-es';
11
+ import 'unimport';
12
+ import 'vite-plugin-vue-inspector';
13
+ import 'vue-router';
14
+ import 'nitropack';
15
+ import 'unstorage';
16
+ import 'vite';
17
+ import '@nuxt/schema';
18
+ import 'execa';
19
+
20
+ interface TimelineEventFunction {
21
+ type: 'function';
22
+ start: number;
23
+ end?: number;
24
+ name: string;
25
+ args?: any[];
26
+ result?: any;
27
+ stacktrace?: StackFrame[];
28
+ isPromise?: boolean;
29
+ }
30
+ interface TimelineServerState {
31
+ timeSsrStart?: number;
32
+ }
33
+ interface TimelineEventRoute {
34
+ type: 'route';
35
+ start: number;
36
+ end?: number;
37
+ from: string;
38
+ to: string;
39
+ }
40
+ interface TimelineOptions {
41
+ enabled: boolean;
42
+ stacktrace: boolean;
43
+ arguments: boolean;
44
+ }
45
+ type TimelineEvent = TimelineEventFunction | TimelineEventRoute;
46
+ interface TimelineMetrics {
47
+ events: TimelineEvent[];
48
+ nonLiteralSymbol: symbol;
49
+ options: TimelineOptions;
50
+ }
51
+ interface TimelineEventNormalized<T> {
52
+ event: T;
53
+ segment: TimelineEventsSegment;
54
+ relativeStart: number;
55
+ relativeWidth: number;
56
+ layer: number;
57
+ }
58
+ interface TimelineEventsSegment {
59
+ start: number;
60
+ end: number;
61
+ events: TimelineEvent[];
62
+ functions: TimelineEventNormalized<TimelineEventFunction>[];
63
+ route?: TimelineEventNormalized<TimelineEventRoute>;
64
+ duration: number;
65
+ previousGap?: number;
66
+ }
67
+
68
+ interface DevToolsFrameState {
69
+ width: number;
70
+ height: number;
71
+ top: number;
72
+ left: number;
73
+ open: boolean;
74
+ route: string;
75
+ position: 'left' | 'right' | 'bottom' | 'top';
76
+ closeOnOutsideClick: boolean;
77
+ minimizePanelInactive: number;
78
+ }
79
+ interface NuxtDevtoolsClientHooks {
80
+ /**
81
+ * When the DevTools navigates, used for persisting the current tab
82
+ */
83
+ 'devtools:navigate': (path: string) => void;
84
+ /**
85
+ * Event emitted when the component inspector is updated
86
+ */
87
+ 'host:inspector:update': (data: VueInspectorData) => void;
88
+ /**
89
+ * Event emitted when the component inspector is clicked
90
+ */
91
+ 'host:inspector:click': (url: URL) => void;
92
+ /**
93
+ * Event to close the component inspector
94
+ */
95
+ 'host:inspector:close': () => void;
96
+ /**
97
+ * Triggers reactivity manually, since Vue won't be reactive across frames)
98
+ */
99
+ 'host:update:reactivity': () => void;
100
+ /**
101
+ * Host action to control the DevTools navigation
102
+ */
103
+ 'host:action:navigate': (path: string) => void;
104
+ /**
105
+ * Host action to reload the DevTools
106
+ */
107
+ 'host:action:reload': () => void;
108
+ }
109
+ /**
110
+ * Host client from the App
111
+ */
112
+ interface NuxtDevtoolsHostClient {
113
+ nuxt: NuxtApp;
114
+ hooks: Hookable<NuxtDevtoolsClientHooks>;
115
+ getIframe: () => HTMLIFrameElement | undefined;
116
+ inspector?: {
117
+ instance?: VueInspectorClient;
118
+ enable: () => void;
119
+ disable: () => void;
120
+ toggle: () => void;
121
+ isEnabled: Ref<boolean>;
122
+ };
123
+ devtools: {
124
+ close: () => void;
125
+ open: () => void;
126
+ toggle: () => void;
127
+ reload: () => void;
128
+ navigate: (path: string) => void;
129
+ /**
130
+ * Popup the DevTools frame into Picture-in-Picture mode
131
+ *
132
+ * Requires Chrome 111 with experimental flag enabled.
133
+ *
134
+ * Function is undefined when not supported.
135
+ *
136
+ * @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
137
+ */
138
+ popup?: () => any;
139
+ };
140
+ app: {
141
+ reload: () => void;
142
+ navigate: (path: string, hard?: boolean) => void;
143
+ appConfig: AppConfig;
144
+ colorMode: Ref<'dark' | 'light'>;
145
+ frameState: Ref<DevToolsFrameState>;
146
+ $fetch: $Fetch;
147
+ };
148
+ metrics: {
149
+ clientHooks: () => HookInfo[];
150
+ clientPlugins: () => PluginMetric[] | undefined;
151
+ clientTimeline: () => TimelineMetrics | undefined;
152
+ loading: () => LoadingTimeMetric;
153
+ };
154
+ /**
155
+ * A counter to trigger reactivity updates
156
+ */
157
+ revision: Ref<number>;
158
+ /**
159
+ * Update client
160
+ * @internal
161
+ */
162
+ syncClient: () => NuxtDevtoolsHostClient;
163
+ }
164
+ interface NuxtDevtoolsClient {
165
+ rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
166
+ renderCodeHighlight: (code: string, lang?: BuiltinLanguage) => {
167
+ code: string;
168
+ supported: boolean;
169
+ };
170
+ renderMarkdown: (markdown: string) => string;
171
+ colorMode: string;
172
+ extendClientRpc: <ServerFunctions = Record<string, never>, ClientFunctions = Record<string, never>>(name: string, functions: ClientFunctions) => BirpcReturn<ServerFunctions, ClientFunctions>;
173
+ }
174
+ interface NuxtDevtoolsIframeClient {
175
+ host: NuxtDevtoolsHostClient;
176
+ devtools: NuxtDevtoolsClient;
177
+ }
178
+ interface NuxtDevtoolsGlobal {
179
+ setClient: (client: NuxtDevtoolsHostClient) => void;
180
+ }
181
+
182
+ 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 };
@@ -0,0 +1,182 @@
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-nightly.ozceKZpq.mjs';
2
+ export { A as AnalyzeBuildMeta, c as AnalyzeBuildsInfo, W as AssetEntry, U as AssetInfo, Q as AssetType, r as AutoImportsWithMetadata, B as BasicModuleInfo, m as CategorizedTabs, a6 as ClientUpdateEvent, _ as CodeServerOptions, $ as CodeServerType, X as CodeSnippet, G as CompatibilityStatus, Y as ComponentRelationship, Z as ComponentWithRelationships, ae as GetWizardArgs, O as GitHubContributor, I as ImageMeta, a8 as InstallModuleReturn, z as InstalledModuleInfo, K as MaintainerInfo, k as ModuleBuiltinTab, E as ModuleCompatibility, M as ModuleCustomTab, a1 as ModuleGlobalOptions, j as ModuleIframeTabLazyOptions, f as ModuleIframeView, h as ModuleLaunchAction, e as ModuleLaunchView, a0 as ModuleOptions, D as ModuleStaticInfo, F as ModuleStats, l as ModuleTabInfo, J as ModuleType, g as ModuleVNodeView, i as ModuleView, q as NpmCommandOptions, p as NpmCommandType, a4 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a7 as NuxtDevtoolsServerContext, a5 as NuxtServerData, o as PackageManagerName, n as PackageUpdateInfo, v as Payload, y as PluginInfoWithMetic, R as RouteInfo, x as ScannedNitroTasks, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, w as ServerTaskInfo, S as SubprocessOptions, d as TabCategory, aa as TerminalAction, a9 as TerminalBase, ab as TerminalInfo, T as TerminalState, a2 as VSCodeIntegrationOptions, a3 as VSCodeTunnelOptions, ad as WizardActions, ac as WizardFunctions } from './shared/devtools-kit-nightly.ozceKZpq.mjs';
3
+ import { BirpcReturn } from 'birpc';
4
+ import { Hookable } from 'hookable';
5
+ import { NuxtApp } from 'nuxt/app';
6
+ import { AppConfig } from 'nuxt/schema';
7
+ import { $Fetch } from 'ofetch';
8
+ import { BuiltinLanguage } from 'shiki';
9
+ import { Ref } from 'vue';
10
+ import { StackFrame } from 'error-stack-parser-es';
11
+ import 'unimport';
12
+ import 'vite-plugin-vue-inspector';
13
+ import 'vue-router';
14
+ import 'nitropack';
15
+ import 'unstorage';
16
+ import 'vite';
17
+ import '@nuxt/schema';
18
+ import 'execa';
19
+
20
+ interface TimelineEventFunction {
21
+ type: 'function';
22
+ start: number;
23
+ end?: number;
24
+ name: string;
25
+ args?: any[];
26
+ result?: any;
27
+ stacktrace?: StackFrame[];
28
+ isPromise?: boolean;
29
+ }
30
+ interface TimelineServerState {
31
+ timeSsrStart?: number;
32
+ }
33
+ interface TimelineEventRoute {
34
+ type: 'route';
35
+ start: number;
36
+ end?: number;
37
+ from: string;
38
+ to: string;
39
+ }
40
+ interface TimelineOptions {
41
+ enabled: boolean;
42
+ stacktrace: boolean;
43
+ arguments: boolean;
44
+ }
45
+ type TimelineEvent = TimelineEventFunction | TimelineEventRoute;
46
+ interface TimelineMetrics {
47
+ events: TimelineEvent[];
48
+ nonLiteralSymbol: symbol;
49
+ options: TimelineOptions;
50
+ }
51
+ interface TimelineEventNormalized<T> {
52
+ event: T;
53
+ segment: TimelineEventsSegment;
54
+ relativeStart: number;
55
+ relativeWidth: number;
56
+ layer: number;
57
+ }
58
+ interface TimelineEventsSegment {
59
+ start: number;
60
+ end: number;
61
+ events: TimelineEvent[];
62
+ functions: TimelineEventNormalized<TimelineEventFunction>[];
63
+ route?: TimelineEventNormalized<TimelineEventRoute>;
64
+ duration: number;
65
+ previousGap?: number;
66
+ }
67
+
68
+ interface DevToolsFrameState {
69
+ width: number;
70
+ height: number;
71
+ top: number;
72
+ left: number;
73
+ open: boolean;
74
+ route: string;
75
+ position: 'left' | 'right' | 'bottom' | 'top';
76
+ closeOnOutsideClick: boolean;
77
+ minimizePanelInactive: number;
78
+ }
79
+ interface NuxtDevtoolsClientHooks {
80
+ /**
81
+ * When the DevTools navigates, used for persisting the current tab
82
+ */
83
+ 'devtools:navigate': (path: string) => void;
84
+ /**
85
+ * Event emitted when the component inspector is updated
86
+ */
87
+ 'host:inspector:update': (data: VueInspectorData) => void;
88
+ /**
89
+ * Event emitted when the component inspector is clicked
90
+ */
91
+ 'host:inspector:click': (url: URL) => void;
92
+ /**
93
+ * Event to close the component inspector
94
+ */
95
+ 'host:inspector:close': () => void;
96
+ /**
97
+ * Triggers reactivity manually, since Vue won't be reactive across frames)
98
+ */
99
+ 'host:update:reactivity': () => void;
100
+ /**
101
+ * Host action to control the DevTools navigation
102
+ */
103
+ 'host:action:navigate': (path: string) => void;
104
+ /**
105
+ * Host action to reload the DevTools
106
+ */
107
+ 'host:action:reload': () => void;
108
+ }
109
+ /**
110
+ * Host client from the App
111
+ */
112
+ interface NuxtDevtoolsHostClient {
113
+ nuxt: NuxtApp;
114
+ hooks: Hookable<NuxtDevtoolsClientHooks>;
115
+ getIframe: () => HTMLIFrameElement | undefined;
116
+ inspector?: {
117
+ instance?: VueInspectorClient;
118
+ enable: () => void;
119
+ disable: () => void;
120
+ toggle: () => void;
121
+ isEnabled: Ref<boolean>;
122
+ };
123
+ devtools: {
124
+ close: () => void;
125
+ open: () => void;
126
+ toggle: () => void;
127
+ reload: () => void;
128
+ navigate: (path: string) => void;
129
+ /**
130
+ * Popup the DevTools frame into Picture-in-Picture mode
131
+ *
132
+ * Requires Chrome 111 with experimental flag enabled.
133
+ *
134
+ * Function is undefined when not supported.
135
+ *
136
+ * @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
137
+ */
138
+ popup?: () => any;
139
+ };
140
+ app: {
141
+ reload: () => void;
142
+ navigate: (path: string, hard?: boolean) => void;
143
+ appConfig: AppConfig;
144
+ colorMode: Ref<'dark' | 'light'>;
145
+ frameState: Ref<DevToolsFrameState>;
146
+ $fetch: $Fetch;
147
+ };
148
+ metrics: {
149
+ clientHooks: () => HookInfo[];
150
+ clientPlugins: () => PluginMetric[] | undefined;
151
+ clientTimeline: () => TimelineMetrics | undefined;
152
+ loading: () => LoadingTimeMetric;
153
+ };
154
+ /**
155
+ * A counter to trigger reactivity updates
156
+ */
157
+ revision: Ref<number>;
158
+ /**
159
+ * Update client
160
+ * @internal
161
+ */
162
+ syncClient: () => NuxtDevtoolsHostClient;
163
+ }
164
+ interface NuxtDevtoolsClient {
165
+ rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
166
+ renderCodeHighlight: (code: string, lang?: BuiltinLanguage) => {
167
+ code: string;
168
+ supported: boolean;
169
+ };
170
+ renderMarkdown: (markdown: string) => string;
171
+ colorMode: string;
172
+ extendClientRpc: <ServerFunctions = Record<string, never>, ClientFunctions = Record<string, never>>(name: string, functions: ClientFunctions) => BirpcReturn<ServerFunctions, ClientFunctions>;
173
+ }
174
+ interface NuxtDevtoolsIframeClient {
175
+ host: NuxtDevtoolsHostClient;
176
+ devtools: NuxtDevtoolsClient;
177
+ }
178
+ interface NuxtDevtoolsGlobal {
179
+ setClient: (client: NuxtDevtoolsHostClient) => void;
180
+ }
181
+
182
+ 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 };
@@ -0,0 +1,182 @@
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-nightly.ozceKZpq.js';
2
+ export { A as AnalyzeBuildMeta, c as AnalyzeBuildsInfo, W as AssetEntry, U as AssetInfo, Q as AssetType, r as AutoImportsWithMetadata, B as BasicModuleInfo, m as CategorizedTabs, a6 as ClientUpdateEvent, _ as CodeServerOptions, $ as CodeServerType, X as CodeSnippet, G as CompatibilityStatus, Y as ComponentRelationship, Z as ComponentWithRelationships, ae as GetWizardArgs, O as GitHubContributor, I as ImageMeta, a8 as InstallModuleReturn, z as InstalledModuleInfo, K as MaintainerInfo, k as ModuleBuiltinTab, E as ModuleCompatibility, M as ModuleCustomTab, a1 as ModuleGlobalOptions, j as ModuleIframeTabLazyOptions, f as ModuleIframeView, h as ModuleLaunchAction, e as ModuleLaunchView, a0 as ModuleOptions, D as ModuleStaticInfo, F as ModuleStats, l as ModuleTabInfo, J as ModuleType, g as ModuleVNodeView, i as ModuleView, q as NpmCommandOptions, p as NpmCommandType, a4 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a7 as NuxtDevtoolsServerContext, a5 as NuxtServerData, o as PackageManagerName, n as PackageUpdateInfo, v as Payload, y as PluginInfoWithMetic, R as RouteInfo, x as ScannedNitroTasks, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, w as ServerTaskInfo, S as SubprocessOptions, d as TabCategory, aa as TerminalAction, a9 as TerminalBase, ab as TerminalInfo, T as TerminalState, a2 as VSCodeIntegrationOptions, a3 as VSCodeTunnelOptions, ad as WizardActions, ac as WizardFunctions } from './shared/devtools-kit-nightly.ozceKZpq.js';
3
+ import { BirpcReturn } from 'birpc';
4
+ import { Hookable } from 'hookable';
5
+ import { NuxtApp } from 'nuxt/app';
6
+ import { AppConfig } from 'nuxt/schema';
7
+ import { $Fetch } from 'ofetch';
8
+ import { BuiltinLanguage } from 'shiki';
9
+ import { Ref } from 'vue';
10
+ import { StackFrame } from 'error-stack-parser-es';
11
+ import 'unimport';
12
+ import 'vite-plugin-vue-inspector';
13
+ import 'vue-router';
14
+ import 'nitropack';
15
+ import 'unstorage';
16
+ import 'vite';
17
+ import '@nuxt/schema';
18
+ import 'execa';
19
+
20
+ interface TimelineEventFunction {
21
+ type: 'function';
22
+ start: number;
23
+ end?: number;
24
+ name: string;
25
+ args?: any[];
26
+ result?: any;
27
+ stacktrace?: StackFrame[];
28
+ isPromise?: boolean;
29
+ }
30
+ interface TimelineServerState {
31
+ timeSsrStart?: number;
32
+ }
33
+ interface TimelineEventRoute {
34
+ type: 'route';
35
+ start: number;
36
+ end?: number;
37
+ from: string;
38
+ to: string;
39
+ }
40
+ interface TimelineOptions {
41
+ enabled: boolean;
42
+ stacktrace: boolean;
43
+ arguments: boolean;
44
+ }
45
+ type TimelineEvent = TimelineEventFunction | TimelineEventRoute;
46
+ interface TimelineMetrics {
47
+ events: TimelineEvent[];
48
+ nonLiteralSymbol: symbol;
49
+ options: TimelineOptions;
50
+ }
51
+ interface TimelineEventNormalized<T> {
52
+ event: T;
53
+ segment: TimelineEventsSegment;
54
+ relativeStart: number;
55
+ relativeWidth: number;
56
+ layer: number;
57
+ }
58
+ interface TimelineEventsSegment {
59
+ start: number;
60
+ end: number;
61
+ events: TimelineEvent[];
62
+ functions: TimelineEventNormalized<TimelineEventFunction>[];
63
+ route?: TimelineEventNormalized<TimelineEventRoute>;
64
+ duration: number;
65
+ previousGap?: number;
66
+ }
67
+
68
+ interface DevToolsFrameState {
69
+ width: number;
70
+ height: number;
71
+ top: number;
72
+ left: number;
73
+ open: boolean;
74
+ route: string;
75
+ position: 'left' | 'right' | 'bottom' | 'top';
76
+ closeOnOutsideClick: boolean;
77
+ minimizePanelInactive: number;
78
+ }
79
+ interface NuxtDevtoolsClientHooks {
80
+ /**
81
+ * When the DevTools navigates, used for persisting the current tab
82
+ */
83
+ 'devtools:navigate': (path: string) => void;
84
+ /**
85
+ * Event emitted when the component inspector is updated
86
+ */
87
+ 'host:inspector:update': (data: VueInspectorData) => void;
88
+ /**
89
+ * Event emitted when the component inspector is clicked
90
+ */
91
+ 'host:inspector:click': (url: URL) => void;
92
+ /**
93
+ * Event to close the component inspector
94
+ */
95
+ 'host:inspector:close': () => void;
96
+ /**
97
+ * Triggers reactivity manually, since Vue won't be reactive across frames)
98
+ */
99
+ 'host:update:reactivity': () => void;
100
+ /**
101
+ * Host action to control the DevTools navigation
102
+ */
103
+ 'host:action:navigate': (path: string) => void;
104
+ /**
105
+ * Host action to reload the DevTools
106
+ */
107
+ 'host:action:reload': () => void;
108
+ }
109
+ /**
110
+ * Host client from the App
111
+ */
112
+ interface NuxtDevtoolsHostClient {
113
+ nuxt: NuxtApp;
114
+ hooks: Hookable<NuxtDevtoolsClientHooks>;
115
+ getIframe: () => HTMLIFrameElement | undefined;
116
+ inspector?: {
117
+ instance?: VueInspectorClient;
118
+ enable: () => void;
119
+ disable: () => void;
120
+ toggle: () => void;
121
+ isEnabled: Ref<boolean>;
122
+ };
123
+ devtools: {
124
+ close: () => void;
125
+ open: () => void;
126
+ toggle: () => void;
127
+ reload: () => void;
128
+ navigate: (path: string) => void;
129
+ /**
130
+ * Popup the DevTools frame into Picture-in-Picture mode
131
+ *
132
+ * Requires Chrome 111 with experimental flag enabled.
133
+ *
134
+ * Function is undefined when not supported.
135
+ *
136
+ * @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
137
+ */
138
+ popup?: () => any;
139
+ };
140
+ app: {
141
+ reload: () => void;
142
+ navigate: (path: string, hard?: boolean) => void;
143
+ appConfig: AppConfig;
144
+ colorMode: Ref<'dark' | 'light'>;
145
+ frameState: Ref<DevToolsFrameState>;
146
+ $fetch: $Fetch;
147
+ };
148
+ metrics: {
149
+ clientHooks: () => HookInfo[];
150
+ clientPlugins: () => PluginMetric[] | undefined;
151
+ clientTimeline: () => TimelineMetrics | undefined;
152
+ loading: () => LoadingTimeMetric;
153
+ };
154
+ /**
155
+ * A counter to trigger reactivity updates
156
+ */
157
+ revision: Ref<number>;
158
+ /**
159
+ * Update client
160
+ * @internal
161
+ */
162
+ syncClient: () => NuxtDevtoolsHostClient;
163
+ }
164
+ interface NuxtDevtoolsClient {
165
+ rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
166
+ renderCodeHighlight: (code: string, lang?: BuiltinLanguage) => {
167
+ code: string;
168
+ supported: boolean;
169
+ };
170
+ renderMarkdown: (markdown: string) => string;
171
+ colorMode: string;
172
+ extendClientRpc: <ServerFunctions = Record<string, never>, ClientFunctions = Record<string, never>>(name: string, functions: ClientFunctions) => BirpcReturn<ServerFunctions, ClientFunctions>;
173
+ }
174
+ interface NuxtDevtoolsIframeClient {
175
+ host: NuxtDevtoolsHostClient;
176
+ devtools: NuxtDevtoolsClient;
177
+ }
178
+ interface NuxtDevtoolsGlobal {
179
+ setClient: (client: NuxtDevtoolsHostClient) => void;
180
+ }
181
+
182
+ 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.mjs ADDED
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ export * from './dist/runtime/host-client'
@@ -0,0 +1 @@
1
+ export * from './dist/runtime/host-client.mjs'
@@ -0,0 +1 @@
1
+ export * from './dist/runtime/iframe-client'
@@ -0,0 +1 @@
1
+ export * from './dist/runtime/iframe-client.mjs'
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@nuxt/devtools-kit-nightly",
3
+ "type": "module",
4
+ "version": "2.0.0-28980754.13f6fd0",
5
+ "license": "MIT",
6
+ "homepage": "https://devtools.nuxt.com/module/utils-kit",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/nuxt/devtools.git",
10
+ "directory": "packages/devtools-kit"
11
+ },
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.mjs",
16
+ "require": "./dist/index.cjs"
17
+ },
18
+ "./types": {
19
+ "types": "./types.d.ts",
20
+ "import": "./dist/types.mjs",
21
+ "require": "./dist/types.cjs"
22
+ },
23
+ "./iframe-client": {
24
+ "types": "./iframe-client.d.ts",
25
+ "import": "./iframe-client.mjs"
26
+ },
27
+ "./host-client": {
28
+ "types": "./host-client.d.ts",
29
+ "import": "./host-client.mjs"
30
+ }
31
+ },
32
+ "main": "./dist/index.cjs",
33
+ "types": "./dist/index.d.ts",
34
+ "files": [
35
+ "*.cjs",
36
+ "*.d.ts",
37
+ "*.mjs",
38
+ "dist"
39
+ ],
40
+ "peerDependencies": {
41
+ "vite": ">=6.0"
42
+ },
43
+ "dependencies": {
44
+ "@nuxt/kit": "^3.15.4",
45
+ "@nuxt/schema": "^3.15.4",
46
+ "execa": "^9.5.2"
47
+ },
48
+ "devDependencies": {
49
+ "birpc": "^2.2.0",
50
+ "error-stack-parser-es": "^1.0.5",
51
+ "hookable": "^5.5.3",
52
+ "unbuild": "^3.3.1",
53
+ "unimport": "^4.0.0",
54
+ "vite-plugin-vue-inspector": "^5.3.1",
55
+ "vue-router": "^4.5.0"
56
+ },
57
+ "scripts": {
58
+ "build": "unbuild",
59
+ "stub": "unbuild --stub",
60
+ "dev:prepare": "nr stub"
61
+ }
62
+ }
package/types.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/types'