@nuxt/devtools-kit-nightly 2.0.0-beta.0-28940159.3b2c84c

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,181 @@
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.s0VF6R5p.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, a5 as ClientUpdateEvent, _ as CodeServerOptions, $ as CodeServerType, X as CodeSnippet, G as CompatibilityStatus, Y as ComponentRelationship, Z as ComponentWithRelationships, ad as GetWizardArgs, O as GitHubContributor, I as ImageMeta, a7 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, a6 as NuxtDevtoolsServerContext, 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, a9 as TerminalAction, a8 as TerminalBase, aa as TerminalInfo, T as TerminalState, a2 as VSCodeIntegrationOptions, a3 as VSCodeTunnelOptions, ac as WizardActions, ab as WizardFunctions } from './shared/devtools-kit-nightly.s0VF6R5p.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 '@nuxt/schema';
17
+ import 'execa';
18
+
19
+ interface TimelineEventFunction {
20
+ type: 'function';
21
+ start: number;
22
+ end?: number;
23
+ name: string;
24
+ args?: any[];
25
+ result?: any;
26
+ stacktrace?: StackFrame[];
27
+ isPromise?: boolean;
28
+ }
29
+ interface TimelineServerState {
30
+ timeSsrStart?: number;
31
+ }
32
+ interface TimelineEventRoute {
33
+ type: 'route';
34
+ start: number;
35
+ end?: number;
36
+ from: string;
37
+ to: string;
38
+ }
39
+ interface TimelineOptions {
40
+ enabled: boolean;
41
+ stacktrace: boolean;
42
+ arguments: boolean;
43
+ }
44
+ type TimelineEvent = TimelineEventFunction | TimelineEventRoute;
45
+ interface TimelineMetrics {
46
+ events: TimelineEvent[];
47
+ nonLiteralSymbol: symbol;
48
+ options: TimelineOptions;
49
+ }
50
+ interface TimelineEventNormalized<T> {
51
+ event: T;
52
+ segment: TimelineEventsSegment;
53
+ relativeStart: number;
54
+ relativeWidth: number;
55
+ layer: number;
56
+ }
57
+ interface TimelineEventsSegment {
58
+ start: number;
59
+ end: number;
60
+ events: TimelineEvent[];
61
+ functions: TimelineEventNormalized<TimelineEventFunction>[];
62
+ route?: TimelineEventNormalized<TimelineEventRoute>;
63
+ duration: number;
64
+ previousGap?: number;
65
+ }
66
+
67
+ interface DevToolsFrameState {
68
+ width: number;
69
+ height: number;
70
+ top: number;
71
+ left: number;
72
+ open: boolean;
73
+ route: string;
74
+ position: 'left' | 'right' | 'bottom' | 'top';
75
+ closeOnOutsideClick: boolean;
76
+ minimizePanelInactive: number;
77
+ }
78
+ interface NuxtDevtoolsClientHooks {
79
+ /**
80
+ * When the DevTools navigates, used for persisting the current tab
81
+ */
82
+ 'devtools:navigate': (path: string) => void;
83
+ /**
84
+ * Event emitted when the component inspector is updated
85
+ */
86
+ 'host:inspector:update': (data: VueInspectorData) => void;
87
+ /**
88
+ * Event emitted when the component inspector is clicked
89
+ */
90
+ 'host:inspector:click': (url: URL) => void;
91
+ /**
92
+ * Event to close the component inspector
93
+ */
94
+ 'host:inspector:close': () => void;
95
+ /**
96
+ * Triggers reactivity manually, since Vue won't be reactive across frames)
97
+ */
98
+ 'host:update:reactivity': () => void;
99
+ /**
100
+ * Host action to control the DevTools navigation
101
+ */
102
+ 'host:action:navigate': (path: string) => void;
103
+ /**
104
+ * Host action to reload the DevTools
105
+ */
106
+ 'host:action:reload': () => void;
107
+ }
108
+ /**
109
+ * Host client from the App
110
+ */
111
+ interface NuxtDevtoolsHostClient {
112
+ nuxt: NuxtApp;
113
+ hooks: Hookable<NuxtDevtoolsClientHooks>;
114
+ getIframe: () => HTMLIFrameElement | undefined;
115
+ inspector?: {
116
+ instance?: VueInspectorClient;
117
+ enable: () => void;
118
+ disable: () => void;
119
+ toggle: () => void;
120
+ isEnabled: Ref<boolean>;
121
+ };
122
+ devtools: {
123
+ close: () => void;
124
+ open: () => void;
125
+ toggle: () => void;
126
+ reload: () => void;
127
+ navigate: (path: string) => void;
128
+ /**
129
+ * Popup the DevTools frame into Picture-in-Picture mode
130
+ *
131
+ * Requires Chrome 111 with experimental flag enabled.
132
+ *
133
+ * Function is undefined when not supported.
134
+ *
135
+ * @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
136
+ */
137
+ popup?: () => any;
138
+ };
139
+ app: {
140
+ reload: () => void;
141
+ navigate: (path: string, hard?: boolean) => void;
142
+ appConfig: AppConfig;
143
+ colorMode: Ref<'dark' | 'light'>;
144
+ frameState: Ref<DevToolsFrameState>;
145
+ $fetch: $Fetch;
146
+ };
147
+ metrics: {
148
+ clientHooks: () => HookInfo[];
149
+ clientPlugins: () => PluginMetric[] | undefined;
150
+ clientTimeline: () => TimelineMetrics | undefined;
151
+ loading: () => LoadingTimeMetric;
152
+ };
153
+ /**
154
+ * A counter to trigger reactivity updates
155
+ */
156
+ revision: Ref<number>;
157
+ /**
158
+ * Update client
159
+ * @internal
160
+ */
161
+ syncClient: () => NuxtDevtoolsHostClient;
162
+ }
163
+ interface NuxtDevtoolsClient {
164
+ rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
165
+ renderCodeHighlight: (code: string, lang?: BuiltinLanguage) => {
166
+ code: string;
167
+ supported: boolean;
168
+ };
169
+ renderMarkdown: (markdown: string) => string;
170
+ colorMode: string;
171
+ extendClientRpc: <ServerFunctions = Record<string, never>, ClientFunctions = Record<string, never>>(name: string, functions: ClientFunctions) => BirpcReturn<ServerFunctions, ClientFunctions>;
172
+ }
173
+ interface NuxtDevtoolsIframeClient {
174
+ host: NuxtDevtoolsHostClient;
175
+ devtools: NuxtDevtoolsClient;
176
+ }
177
+ interface NuxtDevtoolsGlobal {
178
+ setClient: (client: NuxtDevtoolsHostClient) => void;
179
+ }
180
+
181
+ 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,181 @@
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.s0VF6R5p.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, a5 as ClientUpdateEvent, _ as CodeServerOptions, $ as CodeServerType, X as CodeSnippet, G as CompatibilityStatus, Y as ComponentRelationship, Z as ComponentWithRelationships, ad as GetWizardArgs, O as GitHubContributor, I as ImageMeta, a7 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, a6 as NuxtDevtoolsServerContext, 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, a9 as TerminalAction, a8 as TerminalBase, aa as TerminalInfo, T as TerminalState, a2 as VSCodeIntegrationOptions, a3 as VSCodeTunnelOptions, ac as WizardActions, ab as WizardFunctions } from './shared/devtools-kit-nightly.s0VF6R5p.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 '@nuxt/schema';
17
+ import 'execa';
18
+
19
+ interface TimelineEventFunction {
20
+ type: 'function';
21
+ start: number;
22
+ end?: number;
23
+ name: string;
24
+ args?: any[];
25
+ result?: any;
26
+ stacktrace?: StackFrame[];
27
+ isPromise?: boolean;
28
+ }
29
+ interface TimelineServerState {
30
+ timeSsrStart?: number;
31
+ }
32
+ interface TimelineEventRoute {
33
+ type: 'route';
34
+ start: number;
35
+ end?: number;
36
+ from: string;
37
+ to: string;
38
+ }
39
+ interface TimelineOptions {
40
+ enabled: boolean;
41
+ stacktrace: boolean;
42
+ arguments: boolean;
43
+ }
44
+ type TimelineEvent = TimelineEventFunction | TimelineEventRoute;
45
+ interface TimelineMetrics {
46
+ events: TimelineEvent[];
47
+ nonLiteralSymbol: symbol;
48
+ options: TimelineOptions;
49
+ }
50
+ interface TimelineEventNormalized<T> {
51
+ event: T;
52
+ segment: TimelineEventsSegment;
53
+ relativeStart: number;
54
+ relativeWidth: number;
55
+ layer: number;
56
+ }
57
+ interface TimelineEventsSegment {
58
+ start: number;
59
+ end: number;
60
+ events: TimelineEvent[];
61
+ functions: TimelineEventNormalized<TimelineEventFunction>[];
62
+ route?: TimelineEventNormalized<TimelineEventRoute>;
63
+ duration: number;
64
+ previousGap?: number;
65
+ }
66
+
67
+ interface DevToolsFrameState {
68
+ width: number;
69
+ height: number;
70
+ top: number;
71
+ left: number;
72
+ open: boolean;
73
+ route: string;
74
+ position: 'left' | 'right' | 'bottom' | 'top';
75
+ closeOnOutsideClick: boolean;
76
+ minimizePanelInactive: number;
77
+ }
78
+ interface NuxtDevtoolsClientHooks {
79
+ /**
80
+ * When the DevTools navigates, used for persisting the current tab
81
+ */
82
+ 'devtools:navigate': (path: string) => void;
83
+ /**
84
+ * Event emitted when the component inspector is updated
85
+ */
86
+ 'host:inspector:update': (data: VueInspectorData) => void;
87
+ /**
88
+ * Event emitted when the component inspector is clicked
89
+ */
90
+ 'host:inspector:click': (url: URL) => void;
91
+ /**
92
+ * Event to close the component inspector
93
+ */
94
+ 'host:inspector:close': () => void;
95
+ /**
96
+ * Triggers reactivity manually, since Vue won't be reactive across frames)
97
+ */
98
+ 'host:update:reactivity': () => void;
99
+ /**
100
+ * Host action to control the DevTools navigation
101
+ */
102
+ 'host:action:navigate': (path: string) => void;
103
+ /**
104
+ * Host action to reload the DevTools
105
+ */
106
+ 'host:action:reload': () => void;
107
+ }
108
+ /**
109
+ * Host client from the App
110
+ */
111
+ interface NuxtDevtoolsHostClient {
112
+ nuxt: NuxtApp;
113
+ hooks: Hookable<NuxtDevtoolsClientHooks>;
114
+ getIframe: () => HTMLIFrameElement | undefined;
115
+ inspector?: {
116
+ instance?: VueInspectorClient;
117
+ enable: () => void;
118
+ disable: () => void;
119
+ toggle: () => void;
120
+ isEnabled: Ref<boolean>;
121
+ };
122
+ devtools: {
123
+ close: () => void;
124
+ open: () => void;
125
+ toggle: () => void;
126
+ reload: () => void;
127
+ navigate: (path: string) => void;
128
+ /**
129
+ * Popup the DevTools frame into Picture-in-Picture mode
130
+ *
131
+ * Requires Chrome 111 with experimental flag enabled.
132
+ *
133
+ * Function is undefined when not supported.
134
+ *
135
+ * @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
136
+ */
137
+ popup?: () => any;
138
+ };
139
+ app: {
140
+ reload: () => void;
141
+ navigate: (path: string, hard?: boolean) => void;
142
+ appConfig: AppConfig;
143
+ colorMode: Ref<'dark' | 'light'>;
144
+ frameState: Ref<DevToolsFrameState>;
145
+ $fetch: $Fetch;
146
+ };
147
+ metrics: {
148
+ clientHooks: () => HookInfo[];
149
+ clientPlugins: () => PluginMetric[] | undefined;
150
+ clientTimeline: () => TimelineMetrics | undefined;
151
+ loading: () => LoadingTimeMetric;
152
+ };
153
+ /**
154
+ * A counter to trigger reactivity updates
155
+ */
156
+ revision: Ref<number>;
157
+ /**
158
+ * Update client
159
+ * @internal
160
+ */
161
+ syncClient: () => NuxtDevtoolsHostClient;
162
+ }
163
+ interface NuxtDevtoolsClient {
164
+ rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
165
+ renderCodeHighlight: (code: string, lang?: BuiltinLanguage) => {
166
+ code: string;
167
+ supported: boolean;
168
+ };
169
+ renderMarkdown: (markdown: string) => string;
170
+ colorMode: string;
171
+ extendClientRpc: <ServerFunctions = Record<string, never>, ClientFunctions = Record<string, never>>(name: string, functions: ClientFunctions) => BirpcReturn<ServerFunctions, ClientFunctions>;
172
+ }
173
+ interface NuxtDevtoolsIframeClient {
174
+ host: NuxtDevtoolsHostClient;
175
+ devtools: NuxtDevtoolsClient;
176
+ }
177
+ interface NuxtDevtoolsGlobal {
178
+ setClient: (client: NuxtDevtoolsHostClient) => void;
179
+ }
180
+
181
+ 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,181 @@
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.s0VF6R5p.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, a5 as ClientUpdateEvent, _ as CodeServerOptions, $ as CodeServerType, X as CodeSnippet, G as CompatibilityStatus, Y as ComponentRelationship, Z as ComponentWithRelationships, ad as GetWizardArgs, O as GitHubContributor, I as ImageMeta, a7 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, a6 as NuxtDevtoolsServerContext, 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, a9 as TerminalAction, a8 as TerminalBase, aa as TerminalInfo, T as TerminalState, a2 as VSCodeIntegrationOptions, a3 as VSCodeTunnelOptions, ac as WizardActions, ab as WizardFunctions } from './shared/devtools-kit-nightly.s0VF6R5p.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 '@nuxt/schema';
17
+ import 'execa';
18
+
19
+ interface TimelineEventFunction {
20
+ type: 'function';
21
+ start: number;
22
+ end?: number;
23
+ name: string;
24
+ args?: any[];
25
+ result?: any;
26
+ stacktrace?: StackFrame[];
27
+ isPromise?: boolean;
28
+ }
29
+ interface TimelineServerState {
30
+ timeSsrStart?: number;
31
+ }
32
+ interface TimelineEventRoute {
33
+ type: 'route';
34
+ start: number;
35
+ end?: number;
36
+ from: string;
37
+ to: string;
38
+ }
39
+ interface TimelineOptions {
40
+ enabled: boolean;
41
+ stacktrace: boolean;
42
+ arguments: boolean;
43
+ }
44
+ type TimelineEvent = TimelineEventFunction | TimelineEventRoute;
45
+ interface TimelineMetrics {
46
+ events: TimelineEvent[];
47
+ nonLiteralSymbol: symbol;
48
+ options: TimelineOptions;
49
+ }
50
+ interface TimelineEventNormalized<T> {
51
+ event: T;
52
+ segment: TimelineEventsSegment;
53
+ relativeStart: number;
54
+ relativeWidth: number;
55
+ layer: number;
56
+ }
57
+ interface TimelineEventsSegment {
58
+ start: number;
59
+ end: number;
60
+ events: TimelineEvent[];
61
+ functions: TimelineEventNormalized<TimelineEventFunction>[];
62
+ route?: TimelineEventNormalized<TimelineEventRoute>;
63
+ duration: number;
64
+ previousGap?: number;
65
+ }
66
+
67
+ interface DevToolsFrameState {
68
+ width: number;
69
+ height: number;
70
+ top: number;
71
+ left: number;
72
+ open: boolean;
73
+ route: string;
74
+ position: 'left' | 'right' | 'bottom' | 'top';
75
+ closeOnOutsideClick: boolean;
76
+ minimizePanelInactive: number;
77
+ }
78
+ interface NuxtDevtoolsClientHooks {
79
+ /**
80
+ * When the DevTools navigates, used for persisting the current tab
81
+ */
82
+ 'devtools:navigate': (path: string) => void;
83
+ /**
84
+ * Event emitted when the component inspector is updated
85
+ */
86
+ 'host:inspector:update': (data: VueInspectorData) => void;
87
+ /**
88
+ * Event emitted when the component inspector is clicked
89
+ */
90
+ 'host:inspector:click': (url: URL) => void;
91
+ /**
92
+ * Event to close the component inspector
93
+ */
94
+ 'host:inspector:close': () => void;
95
+ /**
96
+ * Triggers reactivity manually, since Vue won't be reactive across frames)
97
+ */
98
+ 'host:update:reactivity': () => void;
99
+ /**
100
+ * Host action to control the DevTools navigation
101
+ */
102
+ 'host:action:navigate': (path: string) => void;
103
+ /**
104
+ * Host action to reload the DevTools
105
+ */
106
+ 'host:action:reload': () => void;
107
+ }
108
+ /**
109
+ * Host client from the App
110
+ */
111
+ interface NuxtDevtoolsHostClient {
112
+ nuxt: NuxtApp;
113
+ hooks: Hookable<NuxtDevtoolsClientHooks>;
114
+ getIframe: () => HTMLIFrameElement | undefined;
115
+ inspector?: {
116
+ instance?: VueInspectorClient;
117
+ enable: () => void;
118
+ disable: () => void;
119
+ toggle: () => void;
120
+ isEnabled: Ref<boolean>;
121
+ };
122
+ devtools: {
123
+ close: () => void;
124
+ open: () => void;
125
+ toggle: () => void;
126
+ reload: () => void;
127
+ navigate: (path: string) => void;
128
+ /**
129
+ * Popup the DevTools frame into Picture-in-Picture mode
130
+ *
131
+ * Requires Chrome 111 with experimental flag enabled.
132
+ *
133
+ * Function is undefined when not supported.
134
+ *
135
+ * @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
136
+ */
137
+ popup?: () => any;
138
+ };
139
+ app: {
140
+ reload: () => void;
141
+ navigate: (path: string, hard?: boolean) => void;
142
+ appConfig: AppConfig;
143
+ colorMode: Ref<'dark' | 'light'>;
144
+ frameState: Ref<DevToolsFrameState>;
145
+ $fetch: $Fetch;
146
+ };
147
+ metrics: {
148
+ clientHooks: () => HookInfo[];
149
+ clientPlugins: () => PluginMetric[] | undefined;
150
+ clientTimeline: () => TimelineMetrics | undefined;
151
+ loading: () => LoadingTimeMetric;
152
+ };
153
+ /**
154
+ * A counter to trigger reactivity updates
155
+ */
156
+ revision: Ref<number>;
157
+ /**
158
+ * Update client
159
+ * @internal
160
+ */
161
+ syncClient: () => NuxtDevtoolsHostClient;
162
+ }
163
+ interface NuxtDevtoolsClient {
164
+ rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
165
+ renderCodeHighlight: (code: string, lang?: BuiltinLanguage) => {
166
+ code: string;
167
+ supported: boolean;
168
+ };
169
+ renderMarkdown: (markdown: string) => string;
170
+ colorMode: string;
171
+ extendClientRpc: <ServerFunctions = Record<string, never>, ClientFunctions = Record<string, never>>(name: string, functions: ClientFunctions) => BirpcReturn<ServerFunctions, ClientFunctions>;
172
+ }
173
+ interface NuxtDevtoolsIframeClient {
174
+ host: NuxtDevtoolsHostClient;
175
+ devtools: NuxtDevtoolsClient;
176
+ }
177
+ interface NuxtDevtoolsGlobal {
178
+ setClient: (client: NuxtDevtoolsHostClient) => void;
179
+ }
180
+
181
+ 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-beta.0-28940159.3b2c84c",
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.1",
45
+ "@nuxt/schema": "^3.15.1",
46
+ "execa": "^7.2.0"
47
+ },
48
+ "devDependencies": {
49
+ "birpc": "^0.2.19",
50
+ "error-stack-parser-es": "^0.1.5",
51
+ "hookable": "^5.5.3",
52
+ "unbuild": "^3.2.0",
53
+ "unimport": "^3.14.5",
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'