@nuxt/devtools-kit 0.8.2 → 0.8.3
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/index.d.cts +35 -0
- package/dist/index.d.mts +35 -0
- package/dist/index.d.ts +1 -1
- package/dist/{hooks-d8216808.d.ts → shared/devtools-kit.7078bc03.d.cts} +1 -1
- package/dist/shared/devtools-kit.7078bc03.d.mts +674 -0
- package/dist/shared/devtools-kit.7078bc03.d.ts +674 -0
- package/dist/types.d.cts +172 -0
- package/dist/types.d.mts +172 -0
- package/dist/types.d.ts +3 -3
- package/package.json +5 -5
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as execa from 'execa';
|
|
2
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
3
|
+
import { BirpcGroup } from 'birpc';
|
|
4
|
+
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.7078bc03.cjs';
|
|
5
|
+
import 'vue';
|
|
6
|
+
import 'nuxt/schema';
|
|
7
|
+
import 'nitropack';
|
|
8
|
+
import 'unstorage';
|
|
9
|
+
import 'vite-plugin-vue-inspector';
|
|
10
|
+
import 'unimport';
|
|
11
|
+
import 'vue-router';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Hooks to extend a custom tab in devtools.
|
|
15
|
+
*
|
|
16
|
+
* Provide a function to pass a factory that can be updated dynamically.
|
|
17
|
+
*/
|
|
18
|
+
declare function addCustomTab(tab: ModuleCustomTab | (() => ModuleCustomTab | Promise<ModuleCustomTab>), nuxt?: _nuxt_schema.Nuxt): void;
|
|
19
|
+
/**
|
|
20
|
+
* Retrigger update for custom tabs, `devtools:customTabs` will be called again.
|
|
21
|
+
*/
|
|
22
|
+
declare function refreshCustomTabs(nuxt?: _nuxt_schema.Nuxt): Promise<any>;
|
|
23
|
+
/**
|
|
24
|
+
* Create a subprocess that handled by the DevTools.
|
|
25
|
+
*/
|
|
26
|
+
declare function startSubprocess(execaOptions: SubprocessOptions, tabOptions: TerminalState, nuxt?: _nuxt_schema.Nuxt): {
|
|
27
|
+
getProcess(): execa.ExecaChildProcess<string>;
|
|
28
|
+
terminate: () => void;
|
|
29
|
+
restart: () => void;
|
|
30
|
+
clear: () => void;
|
|
31
|
+
};
|
|
32
|
+
declare function extendServerRpc<ClientFunctions = Record<string, never>, ServerFunctions = Record<string, never>>(namespace: string, functions: ServerFunctions, nuxt?: _nuxt_schema.Nuxt): BirpcGroup<ClientFunctions, ServerFunctions>;
|
|
33
|
+
declare function onDevToolsInitialized(fn: (info: NuxtDevtoolsInfo) => void, nuxt?: _nuxt_schema.Nuxt): void;
|
|
34
|
+
|
|
35
|
+
export { addCustomTab, extendServerRpc, onDevToolsInitialized, refreshCustomTabs, startSubprocess };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as execa from 'execa';
|
|
2
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
3
|
+
import { BirpcGroup } from 'birpc';
|
|
4
|
+
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.7078bc03.mjs';
|
|
5
|
+
import 'vue';
|
|
6
|
+
import 'nuxt/schema';
|
|
7
|
+
import 'nitropack';
|
|
8
|
+
import 'unstorage';
|
|
9
|
+
import 'vite-plugin-vue-inspector';
|
|
10
|
+
import 'unimport';
|
|
11
|
+
import 'vue-router';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Hooks to extend a custom tab in devtools.
|
|
15
|
+
*
|
|
16
|
+
* Provide a function to pass a factory that can be updated dynamically.
|
|
17
|
+
*/
|
|
18
|
+
declare function addCustomTab(tab: ModuleCustomTab | (() => ModuleCustomTab | Promise<ModuleCustomTab>), nuxt?: _nuxt_schema.Nuxt): void;
|
|
19
|
+
/**
|
|
20
|
+
* Retrigger update for custom tabs, `devtools:customTabs` will be called again.
|
|
21
|
+
*/
|
|
22
|
+
declare function refreshCustomTabs(nuxt?: _nuxt_schema.Nuxt): Promise<any>;
|
|
23
|
+
/**
|
|
24
|
+
* Create a subprocess that handled by the DevTools.
|
|
25
|
+
*/
|
|
26
|
+
declare function startSubprocess(execaOptions: SubprocessOptions, tabOptions: TerminalState, nuxt?: _nuxt_schema.Nuxt): {
|
|
27
|
+
getProcess(): execa.ExecaChildProcess<string>;
|
|
28
|
+
terminate: () => void;
|
|
29
|
+
restart: () => void;
|
|
30
|
+
clear: () => void;
|
|
31
|
+
};
|
|
32
|
+
declare function extendServerRpc<ClientFunctions = Record<string, never>, ServerFunctions = Record<string, never>>(namespace: string, functions: ServerFunctions, nuxt?: _nuxt_schema.Nuxt): BirpcGroup<ClientFunctions, ServerFunctions>;
|
|
33
|
+
declare function onDevToolsInitialized(fn: (info: NuxtDevtoolsInfo) => void, nuxt?: _nuxt_schema.Nuxt): void;
|
|
34
|
+
|
|
35
|
+
export { addCustomTab, extendServerRpc, onDevToolsInitialized, refreshCustomTabs, startSubprocess };
|
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 './
|
|
4
|
+
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.7078bc03.js';
|
|
5
5
|
import 'vue';
|
|
6
6
|
import 'nuxt/schema';
|
|
7
7
|
import 'nitropack';
|
|
@@ -671,4 +671,4 @@ declare module '@nuxt/schema' {
|
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
673
|
|
|
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 };
|
|
674
|
+
export type { 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 };
|