@nuxt/devtools-kit-nightly 4.0.0-alpha.7-29744762.bee6f4a → 4.0.0-alpha.7-29745040.0d4de4d

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.cjs CHANGED
@@ -96,6 +96,7 @@ function deprecateWithNuxt(code, params, options) {
96
96
  return deprecate(kit.useNuxt(), code, params, options);
97
97
  }
98
98
 
99
+ const NUXT_DEVTOOLS_GROUP_ID = "nuxt";
99
100
  function addCustomTab(tab, nuxt = kit.useNuxt()) {
100
101
  deprecate(nuxt, "NDT_DEP_0005", {
101
102
  api: "addCustomTab",
@@ -224,6 +225,7 @@ function _getContext(nuxt = kit.useNuxt()) {
224
225
 
225
226
  exports.createConsoleReporter = nostics.createConsoleReporter;
226
227
  exports.defineDiagnostics = nostics.defineDiagnostics;
228
+ exports.NUXT_DEVTOOLS_GROUP_ID = NUXT_DEVTOOLS_GROUP_ID;
227
229
  exports.addCustomTab = addCustomTab;
228
230
  exports.consoleDiagnostics = consoleDiagnostics;
229
231
  exports.defineStandaloneDiagnostics = defineStandaloneDiagnostics;
package/dist/index.d.cts CHANGED
@@ -166,6 +166,28 @@ declare function defineStandaloneDiagnostics(options: Parameters<typeof defineDi
166
166
  */
167
167
  declare function deprecateWithNuxt(code: NuxtDiagnosticCode, params: DeprecationParams, options?: DeprecateOptions): Error | undefined;
168
168
 
169
+ /**
170
+ * The public `Nuxt` dock group id registered on the Vite DevTools framework
171
+ * category. Module authors join the group natively by pointing their own
172
+ * dock entries at it — no special Nuxt API required:
173
+ *
174
+ * @example
175
+ * ```ts
176
+ * import { NUXT_DEVTOOLS_GROUP_ID, onDevtoolsReady } from '@nuxt/devtools-kit'
177
+ *
178
+ * onDevtoolsReady((ctx) => {
179
+ * ctx.docks.register({
180
+ * id: 'my-module',
181
+ * type: 'iframe',
182
+ * title: 'My Module',
183
+ * icon: 'i-ph-puzzle-piece',
184
+ * url: '/my-module/',
185
+ * groupId: NUXT_DEVTOOLS_GROUP_ID,
186
+ * })
187
+ * })
188
+ * ```
189
+ */
190
+ declare const NUXT_DEVTOOLS_GROUP_ID = "nuxt";
169
191
  /**
170
192
  * Hooks to extend a custom tab in devtools.
171
193
  *
@@ -230,5 +252,5 @@ declare function onDevToolsInitialized(fn: (info: NuxtDevtoolsInfo) => void, nux
230
252
  */
231
253
  declare function onDevtoolsReady(fn: (ctx: ViteDevToolsNodeContext) => void | Promise<void>, nuxt?: _nuxt_schema.Nuxt): void;
232
254
 
233
- export { addCustomTab, consoleDiagnostics, defineStandaloneDiagnostics, deprecate, deprecateWithNuxt, diagnosticCodes, diagnosticsDocsBase, extendServerRpc, onDevToolsInitialized, onDevtoolsReady, refreshCustomTabs, registerHostDiagnostics, startSubprocess };
255
+ export { NUXT_DEVTOOLS_GROUP_ID, addCustomTab, consoleDiagnostics, defineStandaloneDiagnostics, deprecate, deprecateWithNuxt, diagnosticCodes, diagnosticsDocsBase, extendServerRpc, onDevToolsInitialized, onDevtoolsReady, refreshCustomTabs, registerHostDiagnostics, startSubprocess };
234
256
  export type { DeprecateOptions, DeprecationParams, NuxtDiagnosticCode, StartSubprocessReturn };
package/dist/index.d.mts CHANGED
@@ -166,6 +166,28 @@ declare function defineStandaloneDiagnostics(options: Parameters<typeof defineDi
166
166
  */
167
167
  declare function deprecateWithNuxt(code: NuxtDiagnosticCode, params: DeprecationParams, options?: DeprecateOptions): Error | undefined;
168
168
 
169
+ /**
170
+ * The public `Nuxt` dock group id registered on the Vite DevTools framework
171
+ * category. Module authors join the group natively by pointing their own
172
+ * dock entries at it — no special Nuxt API required:
173
+ *
174
+ * @example
175
+ * ```ts
176
+ * import { NUXT_DEVTOOLS_GROUP_ID, onDevtoolsReady } from '@nuxt/devtools-kit'
177
+ *
178
+ * onDevtoolsReady((ctx) => {
179
+ * ctx.docks.register({
180
+ * id: 'my-module',
181
+ * type: 'iframe',
182
+ * title: 'My Module',
183
+ * icon: 'i-ph-puzzle-piece',
184
+ * url: '/my-module/',
185
+ * groupId: NUXT_DEVTOOLS_GROUP_ID,
186
+ * })
187
+ * })
188
+ * ```
189
+ */
190
+ declare const NUXT_DEVTOOLS_GROUP_ID = "nuxt";
169
191
  /**
170
192
  * Hooks to extend a custom tab in devtools.
171
193
  *
@@ -230,5 +252,5 @@ declare function onDevToolsInitialized(fn: (info: NuxtDevtoolsInfo) => void, nux
230
252
  */
231
253
  declare function onDevtoolsReady(fn: (ctx: ViteDevToolsNodeContext) => void | Promise<void>, nuxt?: _nuxt_schema.Nuxt): void;
232
254
 
233
- export { addCustomTab, consoleDiagnostics, defineStandaloneDiagnostics, deprecate, deprecateWithNuxt, diagnosticCodes, diagnosticsDocsBase, extendServerRpc, onDevToolsInitialized, onDevtoolsReady, refreshCustomTabs, registerHostDiagnostics, startSubprocess };
255
+ export { NUXT_DEVTOOLS_GROUP_ID, addCustomTab, consoleDiagnostics, defineStandaloneDiagnostics, deprecate, deprecateWithNuxt, diagnosticCodes, diagnosticsDocsBase, extendServerRpc, onDevToolsInitialized, onDevtoolsReady, refreshCustomTabs, registerHostDiagnostics, startSubprocess };
234
256
  export type { DeprecateOptions, DeprecationParams, NuxtDiagnosticCode, StartSubprocessReturn };
package/dist/index.d.ts CHANGED
@@ -166,6 +166,28 @@ declare function defineStandaloneDiagnostics(options: Parameters<typeof defineDi
166
166
  */
167
167
  declare function deprecateWithNuxt(code: NuxtDiagnosticCode, params: DeprecationParams, options?: DeprecateOptions): Error | undefined;
168
168
 
169
+ /**
170
+ * The public `Nuxt` dock group id registered on the Vite DevTools framework
171
+ * category. Module authors join the group natively by pointing their own
172
+ * dock entries at it — no special Nuxt API required:
173
+ *
174
+ * @example
175
+ * ```ts
176
+ * import { NUXT_DEVTOOLS_GROUP_ID, onDevtoolsReady } from '@nuxt/devtools-kit'
177
+ *
178
+ * onDevtoolsReady((ctx) => {
179
+ * ctx.docks.register({
180
+ * id: 'my-module',
181
+ * type: 'iframe',
182
+ * title: 'My Module',
183
+ * icon: 'i-ph-puzzle-piece',
184
+ * url: '/my-module/',
185
+ * groupId: NUXT_DEVTOOLS_GROUP_ID,
186
+ * })
187
+ * })
188
+ * ```
189
+ */
190
+ declare const NUXT_DEVTOOLS_GROUP_ID = "nuxt";
169
191
  /**
170
192
  * Hooks to extend a custom tab in devtools.
171
193
  *
@@ -230,5 +252,5 @@ declare function onDevToolsInitialized(fn: (info: NuxtDevtoolsInfo) => void, nux
230
252
  */
231
253
  declare function onDevtoolsReady(fn: (ctx: ViteDevToolsNodeContext) => void | Promise<void>, nuxt?: _nuxt_schema.Nuxt): void;
232
254
 
233
- export { addCustomTab, consoleDiagnostics, defineStandaloneDiagnostics, deprecate, deprecateWithNuxt, diagnosticCodes, diagnosticsDocsBase, extendServerRpc, onDevToolsInitialized, onDevtoolsReady, refreshCustomTabs, registerHostDiagnostics, startSubprocess };
255
+ export { NUXT_DEVTOOLS_GROUP_ID, addCustomTab, consoleDiagnostics, defineStandaloneDiagnostics, deprecate, deprecateWithNuxt, diagnosticCodes, diagnosticsDocsBase, extendServerRpc, onDevToolsInitialized, onDevtoolsReady, refreshCustomTabs, registerHostDiagnostics, startSubprocess };
234
256
  export type { DeprecateOptions, DeprecationParams, NuxtDiagnosticCode, StartSubprocessReturn };
package/dist/index.mjs CHANGED
@@ -95,6 +95,7 @@ function deprecateWithNuxt(code, params, options) {
95
95
  return deprecate(useNuxt(), code, params, options);
96
96
  }
97
97
 
98
+ const NUXT_DEVTOOLS_GROUP_ID = "nuxt";
98
99
  function addCustomTab(tab, nuxt = useNuxt()) {
99
100
  deprecate(nuxt, "NDT_DEP_0005", {
100
101
  api: "addCustomTab",
@@ -221,4 +222,4 @@ function _getContext(nuxt = useNuxt()) {
221
222
  return nuxt?.devtools;
222
223
  }
223
224
 
224
- export { addCustomTab, consoleDiagnostics, defineStandaloneDiagnostics, deprecate, deprecateWithNuxt, diagnosticCodes, diagnosticsDocsBase, extendServerRpc, onDevToolsInitialized, onDevtoolsReady, refreshCustomTabs, registerHostDiagnostics, startSubprocess };
225
+ export { NUXT_DEVTOOLS_GROUP_ID, addCustomTab, consoleDiagnostics, defineStandaloneDiagnostics, deprecate, deprecateWithNuxt, diagnosticCodes, diagnosticsDocsBase, extendServerRpc, onDevToolsInitialized, onDevtoolsReady, refreshCustomTabs, registerHostDiagnostics, startSubprocess };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-kit-nightly",
3
3
  "type": "module",
4
- "version": "4.0.0-alpha.7-29744762.bee6f4a",
4
+ "version": "4.0.0-alpha.7-29745040.0d4de4d",
5
5
  "license": "MIT",
6
6
  "homepage": "https://devtools.nuxt.com/module/utils-kit",
7
7
  "repository": {