@nuxt/devtools-kit 0.6.2 → 0.6.4

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.
@@ -216,6 +216,7 @@ interface VSCodeTunnelOptions {
216
216
  interface NuxtDevToolsUIOptions {
217
217
  componentsView: 'list' | 'graph';
218
218
  componentsGraphShowNodeModules: boolean;
219
+ componentsGraphShowGlobalComponents: boolean;
219
220
  componentsGraphShowPages: boolean;
220
221
  componentsGraphShowLayouts: boolean;
221
222
  componentsGraphShowWorkspace: boolean;
@@ -265,9 +266,9 @@ interface RouteInfo extends Pick<RouteRecordNormalized, 'name' | 'path' | 'meta'
265
266
  interface ServerRouteInfo {
266
267
  route: string;
267
268
  filepath: string;
268
- path: string;
269
269
  method?: string;
270
- type: 'api' | 'route';
270
+ type: 'api' | 'route' | 'runtime' | 'collection';
271
+ routes?: ServerRouteInfo[];
271
272
  }
272
273
  interface Payload {
273
274
  url: string;
@@ -458,7 +459,7 @@ interface ServerFunctions {
458
459
  getServerHooks(): HookInfo[];
459
460
  getServerLayouts(): NuxtLayout[];
460
461
  getStaticAssets(): Promise<AssetInfo[]>;
461
- getServerRoutes(): Promise<ServerRouteInfo[]>;
462
+ getServerRoutes(): ServerRouteInfo[];
462
463
  getServerApp(): NuxtApp | undefined;
463
464
  getUIOptions(): Promise<NuxtDevToolsUIOptions>;
464
465
  updateUIOptions(settings: Partial<NuxtDevToolsUIOptions>): Promise<void>;
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-e9b00a87.js';
4
+ import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './hooks-27bee4d9.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-e9b00a87.js';
2
- export { Y as AnalyzeBuildMeta, Z as AnalyzeBuildsInfo, D as AssetInfo, z as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, O as ClientFunctions, Q as ClientUpdateEvent, E as CodeSnippet, C as CompatibilityStatus, F as ComponentRelationship, K as GetWizardArgs, G as GitHubContributor, I as ImageMeta, X as InstallModuleReturn, u as InstalledModuleInfo, y as MaintainerInfo, i as ModuleBuiltinTab, w as ModuleCompatibility, M as ModuleCustomTab, $ as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, _ as ModuleOptions, v as ModuleStaticInfo, j as ModuleTabInfo, x as ModuleType, e as ModuleVNodeView, g as ModuleView, q as NpmCommandOptions, p as NpmCommandType, a2 as NuxtDevToolsUIOptions, N as NuxtDevtoolsInfo, U as NuxtDevtoolsServerContext, o as PackageManagerName, n as PackageUpdateInfo, s as Payload, t as PluginInfoWithMetic, R as RouteInfo, r as ServerRouteInfo, S as SubprocessOptions, a3 as TabCategory, l as TerminalAction, k as TerminalBase, m as TerminalInfo, T as TerminalState, a0 as VSCodeIntegrationOptions, a1 as VSCodeTunnelOptions, J as WizardActions, W as WizardFunctions } from './hooks-e9b00a87.js';
1
+ import { V as VueInspectorData, a as VueInspectorClient, L as LoadingTimeMetric, H as HookInfo, P as PluginMetric, b as ServerFunctions } from './hooks-27bee4d9.js';
2
+ export { Y as AnalyzeBuildMeta, Z as AnalyzeBuildsInfo, D as AssetInfo, z as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, O as ClientFunctions, Q as ClientUpdateEvent, E as CodeSnippet, C as CompatibilityStatus, F as ComponentRelationship, K as GetWizardArgs, G as GitHubContributor, I as ImageMeta, X as InstallModuleReturn, u as InstalledModuleInfo, y as MaintainerInfo, i as ModuleBuiltinTab, w as ModuleCompatibility, M as ModuleCustomTab, $ as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, _ as ModuleOptions, v as ModuleStaticInfo, j as ModuleTabInfo, x as ModuleType, e as ModuleVNodeView, g as ModuleView, q as NpmCommandOptions, p as NpmCommandType, a2 as NuxtDevToolsUIOptions, N as NuxtDevtoolsInfo, U as NuxtDevtoolsServerContext, o as PackageManagerName, n as PackageUpdateInfo, s as Payload, t as PluginInfoWithMetic, R as RouteInfo, r as ServerRouteInfo, S as SubprocessOptions, a3 as TabCategory, l as TerminalAction, k as TerminalBase, m as TerminalInfo, T as TerminalState, a0 as VSCodeIntegrationOptions, a1 as VSCodeTunnelOptions, J as WizardActions, W as WizardFunctions } from './hooks-27bee4d9.js';
3
3
  import { Ref } from 'vue';
4
4
  import { AppConfig } from 'nuxt/schema';
5
5
  import { NuxtApp } from 'nuxt/dist/app/nuxt';
@@ -54,11 +54,25 @@ interface NuxtDevtoolsHostClient {
54
54
  getClientHooksMetrics(): HookInfo[];
55
55
  getClientPluginMetrics(): PluginMetric[];
56
56
  reloadPage(): void;
57
- closeDevTools(): void;
57
+ close(): void;
58
+ open(): void;
59
+ toggle(): void;
58
60
  /**
59
- * Refreshes the client
61
+ * Popup the DevTools frame into Picture-in-Picture mode
62
+ *
63
+ * Requires Chrome 111 with experimental flag enabled.
64
+ *
65
+ * Function is undefined when not supported.
66
+ *
67
+ * @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
60
68
  */
61
- refreshState(): NuxtDevtoolsHostClient;
69
+ popup?(): any;
70
+ /**
71
+ * Update client
72
+ * @internal
73
+ */
74
+ updateClient(): NuxtDevtoolsHostClient;
75
+ getIframe(): HTMLIFrameElement;
62
76
  }
63
77
  interface NuxtDevtoolsClient {
64
78
  rpc: BirpcReturn<ServerFunctions>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-kit",
3
3
  "type": "module",
4
- "version": "0.6.2",
4
+ "version": "0.6.4",
5
5
  "license": "MIT",
6
6
  "repository": "nuxt/devtools",
7
7
  "exports": {
@@ -33,8 +33,8 @@
33
33
  "vite": "*"
34
34
  },
35
35
  "dependencies": {
36
- "@nuxt/kit": "^3.5.3",
37
- "@nuxt/schema": "^3.5.3",
36
+ "@nuxt/kit": "^3.6.0",
37
+ "@nuxt/schema": "^3.6.0",
38
38
  "execa": "^7.1.1"
39
39
  },
40
40
  "devDependencies": {