@nuxt/devtools-kit 4.0.0-alpha.12 → 4.0.0-alpha.13

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 { DevToolsRpcClient } from '@vitejs/devtools-kit/client';
2
2
  import { Ref } from 'vue';
3
- import '../shared/devtools-kit.ClPv9w-a.mjs';
3
+ import '../shared/devtools-kit.BmlL8jmc.mjs';
4
4
  import { NuxtDevtoolsIframeClient } from '../types.mjs';
5
5
  import '@vitejs/devtools-kit';
6
6
  import 'birpc';
@@ -444,10 +444,6 @@ interface ModuleOptions {
444
444
  * your server and filesystem. Only disable it in trusted environments.
445
445
  */
446
446
  disableAuthorization?: boolean;
447
- /**
448
- * Props for the iframe element, useful for environment with stricter CSP
449
- */
450
- iframeProps?: Record<string, string | boolean>;
451
447
  /**
452
448
  * Experimental features
453
449
  */
package/dist/types.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, c as NuxtDevtoolsNotifyInput } from './shared/devtools-kit.ClPv9w-a.mjs';
2
- export { A as AnalyzeBuildMeta, d as AnalyzeBuildsInfo, e as AssetEntry, f as AssetInfo, g as AssetType, h as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, i as ClientFunctions, j as ClientUpdateEvent, k as CodeServerIntegrationOptions, l as CodeServerType, m as CodeSnippet, n as CompatibilityStatus, o as ComponentRelationship, p as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, q as InstallModuleReturn, r as InstalledModuleInfo, s as MaintainerInfo, t as ModuleBuiltinTab, u as ModuleCompatibility, M as ModuleCustomTab, v as ModuleIframeTabLazyOptions, w as ModuleIframeView, x as ModuleLaunchAction, y as ModuleLaunchView, z as ModuleOptions, D as ModuleStaticInfo, E as ModuleStats, F as ModuleTabInfo, J as ModuleType, K as ModuleVNodeView, O as ModuleView, Q as NpmCommandOptions, R as NpmCommandType, U as NuxtDevToolsOptions, a as NuxtDevtoolsInfo, V as NuxtDevtoolsNotifyLevel, W as NuxtDevtoolsRpc, N as NuxtDevtoolsServerContext, X as NuxtServerData, Y as PackageManagerName, Z as PackageUpdateInfo, _ as Payload, $ as PluginInfoWithMetic, a0 as RouteInfo, a1 as ScannedNitroTasks, a2 as ServerDebugContext, a3 as ServerDebugModuleMutationRecord, a4 as ServerRouteInfo, a5 as ServerRouteInput, a6 as ServerRouteInputType, a7 as ServerTaskInfo, S as SubprocessOptions, a8 as TabCategory, a9 as TerminalAction, aa as TerminalBase, ab as TerminalInfo, T as TerminalState, ac as VSCodeIntegrationOptions, ad as VSCodeTunnelOptions, ae as VueInspectorClient, af as VueInspectorData } from './shared/devtools-kit.ClPv9w-a.mjs';
1
+ import { H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, c as NuxtDevtoolsNotifyInput } from './shared/devtools-kit.BmlL8jmc.mjs';
2
+ export { A as AnalyzeBuildMeta, d as AnalyzeBuildsInfo, e as AssetEntry, f as AssetInfo, g as AssetType, h as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, i as ClientFunctions, j as ClientUpdateEvent, k as CodeServerIntegrationOptions, l as CodeServerType, m as CodeSnippet, n as CompatibilityStatus, o as ComponentRelationship, p as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, q as InstallModuleReturn, r as InstalledModuleInfo, s as MaintainerInfo, t as ModuleBuiltinTab, u as ModuleCompatibility, M as ModuleCustomTab, v as ModuleIframeTabLazyOptions, w as ModuleIframeView, x as ModuleLaunchAction, y as ModuleLaunchView, z as ModuleOptions, D as ModuleStaticInfo, E as ModuleStats, F as ModuleTabInfo, J as ModuleType, K as ModuleVNodeView, O as ModuleView, Q as NpmCommandOptions, R as NpmCommandType, U as NuxtDevToolsOptions, a as NuxtDevtoolsInfo, V as NuxtDevtoolsNotifyLevel, W as NuxtDevtoolsRpc, N as NuxtDevtoolsServerContext, X as NuxtServerData, Y as PackageManagerName, Z as PackageUpdateInfo, _ as Payload, $ as PluginInfoWithMetic, a0 as RouteInfo, a1 as ScannedNitroTasks, a2 as ServerDebugContext, a3 as ServerDebugModuleMutationRecord, a4 as ServerRouteInfo, a5 as ServerRouteInput, a6 as ServerRouteInputType, a7 as ServerTaskInfo, S as SubprocessOptions, a8 as TabCategory, a9 as TerminalAction, aa as TerminalBase, ab as TerminalInfo, T as TerminalState, ac as VSCodeIntegrationOptions, ad as VSCodeTunnelOptions, ae as VueInspectorClient, af as VueInspectorData } from './shared/devtools-kit.BmlL8jmc.mjs';
3
3
  import { DevToolsRpcClient } from '@vitejs/devtools-kit/client';
4
4
  import { Hookable } from 'hookable';
5
5
  import { NuxtApp } from 'nuxt/app';
@@ -67,17 +67,6 @@ interface TimelineEventsSegment {
67
67
  previousGap?: number;
68
68
  }
69
69
 
70
- interface DevToolsFrameState {
71
- width: number;
72
- height: number;
73
- top: number;
74
- left: number;
75
- open: boolean;
76
- route: string;
77
- position: 'left' | 'right' | 'bottom' | 'top';
78
- closeOnOutsideClick: boolean;
79
- minimizePanelInactive: number;
80
- }
81
70
  interface NuxtDevtoolsClientHooks {
82
71
  /**
83
72
  * When the DevTools navigates, used for persisting the current tab
@@ -110,7 +99,6 @@ interface NuxtDevtoolsClientHooks {
110
99
  interface NuxtDevtoolsHostClient {
111
100
  nuxt: NuxtApp;
112
101
  hooks: Hookable<NuxtDevtoolsClientHooks>;
113
- getIframe: () => HTMLIFrameElement | undefined;
114
102
  inspector?: {
115
103
  enable: () => void;
116
104
  disable: () => void;
@@ -130,7 +118,6 @@ interface NuxtDevtoolsHostClient {
130
118
  navigate: (path: string, hard?: boolean) => void;
131
119
  appConfig: AppConfig;
132
120
  colorMode: Ref<'dark' | 'light'>;
133
- frameState: Ref<DevToolsFrameState>;
134
121
  $fetch: $Fetch;
135
122
  };
136
123
  metrics: {
@@ -143,11 +130,6 @@ interface NuxtDevtoolsHostClient {
143
130
  * A counter to trigger reactivity updates
144
131
  */
145
132
  revision: Ref<number>;
146
- /**
147
- * Update client
148
- * @internal
149
- */
150
- syncClient: () => NuxtDevtoolsHostClient;
151
133
  }
152
134
  interface CodeHighlightOptions {
153
135
  grammarContextCode?: string;
@@ -192,9 +174,6 @@ interface NuxtDevtoolsIframeClient {
192
174
  host: NuxtDevtoolsHostClient;
193
175
  devtools: NuxtDevtoolsClient;
194
176
  }
195
- interface NuxtDevtoolsGlobal {
196
- setClient: (client: NuxtDevtoolsHostClient) => void;
197
- }
198
177
 
199
178
  export { HookInfo, LoadingTimeMetric, NuxtDevtoolsNotifyInput, PluginMetric, ServerFunctions };
200
- export type { AsyncServerFunctions, CodeHighlightOptions, DevToolsFrameState, NuxtDevtoolsClient, NuxtDevtoolsClientHooks, NuxtDevtoolsGlobal, NuxtDevtoolsHostClient, NuxtDevtoolsIframeClient, TimelineEvent, TimelineEventFunction, TimelineEventNormalized, TimelineEventRoute, TimelineEventsSegment, TimelineMetrics, TimelineOptions, TimelineServerState };
179
+ export type { AsyncServerFunctions, CodeHighlightOptions, NuxtDevtoolsClient, NuxtDevtoolsClientHooks, NuxtDevtoolsHostClient, NuxtDevtoolsIframeClient, TimelineEvent, TimelineEventFunction, TimelineEventNormalized, TimelineEventRoute, TimelineEventsSegment, TimelineMetrics, TimelineOptions, TimelineServerState };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-kit",
3
3
  "type": "module",
4
- "version": "4.0.0-alpha.12",
4
+ "version": "4.0.0-alpha.13",
5
5
  "license": "MIT",
6
6
  "homepage": "https://devtools.nuxt.com/module/utils-kit",
7
7
  "repository": {
@@ -41,7 +41,7 @@
41
41
  "devDependencies": {
42
42
  "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29755283.b4586ef2",
43
43
  "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29755283.b4586ef2",
44
- "birpc": "^4.1.0",
44
+ "birpc": "^4.2.0",
45
45
  "error-stack-parser-es": "^2.0.1",
46
46
  "hookable": "^6.1.1",
47
47
  "nitro": "^3.0.260610-beta",