@nuxt/devtools-nightly 3.2.4-29563482.f9a1d97 → 4.0.0-29884714.dcb247f

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.
Files changed (151) hide show
  1. package/README.md +48 -10
  2. package/dist/chunks/analyze-build.mjs +31 -3
  3. package/dist/chunks/assets.mjs +24 -0
  4. package/dist/chunks/code-server.mjs +74 -0
  5. package/dist/chunks/data-inspector.mjs +82 -0
  6. package/dist/chunks/module-main.mjs +906 -10876
  7. package/dist/chunks/og.mjs +32 -0
  8. package/dist/chunks/timeline.mjs +102 -41
  9. package/dist/chunks/vite-inspect.mjs +89 -53
  10. package/dist/chunks/vue-devtools.mjs +48 -5
  11. package/dist/dirs.d.mts +1 -3
  12. package/dist/dirs.mjs +2 -4
  13. package/dist/module.d.mts +1 -1
  14. package/dist/module.json +2 -2
  15. package/dist/module.mjs +1 -1
  16. package/dist/runtime/plugins/devtools.client.d.ts +3 -2
  17. package/dist/runtime/plugins/devtools.client.js +3 -6
  18. package/dist/runtime/plugins/view/client.js +15 -82
  19. package/dist/runtime/plugins/vite-devtools.client.js +5 -1
  20. package/dist/runtime/shared/hooks.d.ts +10 -2
  21. package/dist/shared/{devtools-nightly.LsRDzDTD.d.mts → devtools-nightly.DIKI0iiX.d.mts} +1 -7
  22. package/dist/shared/devtools-nightly.DnJkSJYB.mjs +122 -0
  23. package/dist/types.d.mts +2 -31
  24. package/dist/webcomponents/index.mjs +42 -44
  25. package/package.json +90 -88
  26. package/.discoveryrc.cjs +0 -13
  27. package/dist/chunks/vscode.mjs +0 -170
  28. package/dist/client/200.html +0 -1
  29. package/dist/client/404.html +0 -1
  30. package/dist/client/_nuxt/__blank-cpzbm3dn.js +0 -1
  31. package/dist/client/_nuxt/_plugin-vue_export-helper-n58akrbk.js +0 -1
  32. package/dist/client/_nuxt/analyze-build-e7v5vkef.js +0 -1
  33. package/dist/client/_nuxt/assets-b5c187l4.js +0 -6
  34. package/dist/client/_nuxt/assets.css-hmxl533k.css +0 -1
  35. package/dist/client/_nuxt/builds/latest.json +0 -1
  36. package/dist/client/_nuxt/builds/meta/fac6756b-364c-424d-9354-b01ecbf17dce.json +0 -1
  37. package/dist/client/_nuxt/client-im47u3kz.js +0 -1
  38. package/dist/client/_nuxt/code-diff-idsu3m0z.js +0 -8
  39. package/dist/client/_nuxt/code-snippets-k81hoi4s.js +0 -1
  40. package/dist/client/_nuxt/color-b9xoe9j2.js +0 -1
  41. package/dist/client/_nuxt/components-bmictfph.js +0 -1
  42. package/dist/client/_nuxt/composable-item-cza22cup.js +0 -1
  43. package/dist/client/_nuxt/composables-b2ccklz4.js +0 -1
  44. package/dist/client/_nuxt/constants-ih922r91.js +0 -1
  45. package/dist/client/_nuxt/custom-_name_-gqm5kr56.js +0 -1
  46. package/dist/client/_nuxt/data-schema-button-b308wyi0.js +0 -1
  47. package/dist/client/_nuxt/data-schema-drawer-lr34uwsh.js +0 -2
  48. package/dist/client/_nuxt/debug-kgc8fptp.js +0 -1
  49. package/dist/client/_nuxt/default-jvhm51ri.js +0 -1
  50. package/dist/client/_nuxt/dev-auth-ojiqold5.js +0 -1
  51. package/dist/client/_nuxt/dist-duc3zu0y.js +0 -1
  52. package/dist/client/_nuxt/dist-m49wlq01.js +0 -1
  53. package/dist/client/_nuxt/dist-mnod32r1.js +0 -1
  54. package/dist/client/_nuxt/duration-display-f7ucshmo.js +0 -1
  55. package/dist/client/_nuxt/entry.css-me26coxn.css +0 -1
  56. package/dist/client/_nuxt/error-404-nggtc73s.js +0 -1
  57. package/dist/client/_nuxt/error-404.css-j1aav08u.css +0 -1
  58. package/dist/client/_nuxt/error-500-dym2gzqx.js +0 -1
  59. package/dist/client/_nuxt/error-500.css-eu9fz4va.css +0 -1
  60. package/dist/client/_nuxt/error-fqinfa1x.js +0 -9
  61. package/dist/client/_nuxt/filepath-item-e1s52fbh.js +0 -1
  62. package/dist/client/_nuxt/full-et0weok9.js +0 -1
  63. package/dist/client/_nuxt/help-fab-hz6r2oxa.js +0 -1
  64. package/dist/client/_nuxt/help-fab.css-ms50khsu.css +0 -1
  65. package/dist/client/_nuxt/hooks-i7nsduqp.js +0 -1
  66. package/dist/client/_nuxt/i1wyrjhl.js +0 -4
  67. package/dist/client/_nuxt/imports-9o2qs53q.js +0 -1
  68. package/dist/client/_nuxt/launch-page-hpkkqhit.js +0 -1
  69. package/dist/client/_nuxt/mitt.es-fjx0h8xe.js +0 -1
  70. package/dist/client/_nuxt/modules-jok0opuq.js +0 -1
  71. package/dist/client/_nuxt/nbadge-m66xoquo.js +0 -1
  72. package/dist/client/_nuxt/nbutton-gygn07c2.js +0 -1
  73. package/dist/client/_nuxt/ncard-mqcl8pso.js +0 -1
  74. package/dist/client/_nuxt/ncheckbox-c0r45qtu.js +0 -1
  75. package/dist/client/_nuxt/ncode-block-figzf35k.js +0 -2
  76. package/dist/client/_nuxt/ncode-block.css-o2ixs97j.css +0 -1
  77. package/dist/client/_nuxt/ndrawer-bgqyrlmt.js +0 -1
  78. package/dist/client/_nuxt/ndropdown-cip8lboe.js +0 -1
  79. package/dist/client/_nuxt/nicon-m1crov2l.js +0 -1
  80. package/dist/client/_nuxt/nicon-title-tqdvw0w0.js +0 -1
  81. package/dist/client/_nuxt/nlink-od4lllbl.js +0 -1
  82. package/dist/client/_nuxt/nmarkdown-hw0hmqw7.js +0 -1
  83. package/dist/client/_nuxt/nnavbar-lpozm5fj.js +0 -1
  84. package/dist/client/_nuxt/none-bdxkqeml.js +0 -1
  85. package/dist/client/_nuxt/npanel-grids-dd23ifsw.js +0 -1
  86. package/dist/client/_nuxt/nsection-block-lqrohs9v.js +0 -1
  87. package/dist/client/_nuxt/nsection-block.css-h05mpq8x.css +0 -1
  88. package/dist/client/_nuxt/nselect-gczoit0g.js +0 -1
  89. package/dist/client/_nuxt/nselect-tabs-bsw5fg3d.js +0 -1
  90. package/dist/client/_nuxt/nswitch-ke379yjx.js +0 -1
  91. package/dist/client/_nuxt/ntext-input-cygthohl.js +0 -1
  92. package/dist/client/_nuxt/ntip-ke63ovgc.js +0 -1
  93. package/dist/client/_nuxt/nuxt-link-bumooa9d.js +0 -1
  94. package/dist/client/_nuxt/nuxt-otp6bp04.js +0 -1
  95. package/dist/client/_nuxt/open-graph-lumhcitx.js +0 -3
  96. package/dist/client/_nuxt/open-graph.css-dk03m1qz.css +0 -1
  97. package/dist/client/_nuxt/overview-gvx68ogm.js +0 -1
  98. package/dist/client/_nuxt/pages-cf1hvns3.js +0 -1
  99. package/dist/client/_nuxt/pages-lgihsvbt.js +0 -1
  100. package/dist/client/_nuxt/payload-fvgw4hh9.js +0 -1
  101. package/dist/client/_nuxt/pinia-lmrgyjxw.js +0 -1
  102. package/dist/client/_nuxt/plugins-ccaip8nh.js +0 -1
  103. package/dist/client/_nuxt/ready-dadbdj5i.js +0 -1
  104. package/dist/client/_nuxt/render-tree-corj3giw.js +0 -1
  105. package/dist/client/_nuxt/rolldown-runtime-oipoa1or.js +0 -1
  106. package/dist/client/_nuxt/rpc-ez4fzlum.js +0 -1
  107. package/dist/client/_nuxt/runtime-configs-im0uu24n.js +0 -1
  108. package/dist/client/_nuxt/server-discovery-ffkkczqi.js +0 -1
  109. package/dist/client/_nuxt/server-route-inputs-lspeoiem.js +0 -1
  110. package/dist/client/_nuxt/server-routes-dhvqrowz.js +0 -7
  111. package/dist/client/_nuxt/server-tasks-mr9ezn8q.js +0 -1
  112. package/dist/client/_nuxt/settings-issronwn.js +0 -1
  113. package/dist/client/_nuxt/splitpanes.es-bxyirks2.js +0 -1
  114. package/dist/client/_nuxt/stacktrace-list-hiui24c3.js +0 -1
  115. package/dist/client/_nuxt/state-components-fbls8ka7.js +0 -1
  116. package/dist/client/_nuxt/state-editor-c7e04uj2.js +0 -1
  117. package/dist/client/_nuxt/state-modules-inqbwd7z.js +0 -1
  118. package/dist/client/_nuxt/state-routes-jln33b1m.js +0 -1
  119. package/dist/client/_nuxt/state-tabs-etl5jr30.js +0 -1
  120. package/dist/client/_nuxt/storage-husj5pg6.js +0 -1
  121. package/dist/client/_nuxt/storage-options-cth3coln.js +0 -1
  122. package/dist/client/_nuxt/telemetry-eqv6a0hn.js +0 -1
  123. package/dist/client/_nuxt/terminals-kitd8oja.js +0 -1
  124. package/dist/client/_nuxt/terminals.css-mejv43xm.css +0 -1
  125. package/dist/client/_nuxt/timeline-gr4tcvcz.js +0 -31
  126. package/dist/client/_nuxt/timeline.css-m03aec2q.css +0 -1
  127. package/dist/client/_nuxt/unocss-runtime-cpug61u1.js +0 -1
  128. package/dist/client/_nuxt/utils-nbkl6byi.js +0 -2
  129. package/dist/client/_nuxt/vendor/json-editor-vue-eojr4v24.js +0 -3869
  130. package/dist/client/_nuxt/vendor/json-editor-vue.css-lkbe0qhh.css +0 -1
  131. package/dist/client/_nuxt/vendor/markdown-it-ckeo8pwp.js +0 -14
  132. package/dist/client/_nuxt/vendor/quicktype-core-k4qx3809.js +0 -929
  133. package/dist/client/_nuxt/vendor/shiki-lqo1hg2n.js +0 -153
  134. package/dist/client/_nuxt/vendor/unocss-k727ub0h.js +0 -3
  135. package/dist/client/_nuxt/vendor/unocss.css-3gd0e2sv.css +0 -1
  136. package/dist/client/_nuxt/vendor/vis-id8udisj.js +0 -26
  137. package/dist/client/_nuxt/vendor/xterm-ed0pys2e.js +0 -36
  138. package/dist/client/_nuxt/vendor/xterm.css-jqmddlol.css +0 -1
  139. package/dist/client/_nuxt/virtual-files-ky9cc4av.js +0 -1
  140. package/dist/client/_nuxt/virtual-files.css-l97kh4kx.css +0 -1
  141. package/dist/client/_nuxt/vue-devtools-dunhx2nz.js +0 -4
  142. package/dist/client/_nuxt/vue-router-jbnxw7nb.js +0 -1
  143. package/dist/client/discovery/index.html +0 -611
  144. package/dist/client/index.html +0 -1
  145. package/dist/client/nuxt.svg +0 -3
  146. package/dist/runtime/plugins/view/state.d.ts +0 -2
  147. package/dist/runtime/plugins/view/state.js +0 -12
  148. package/dist/runtime/vue-devtools-client.d.ts +0 -2
  149. package/dist/runtime/vue-devtools-client.js +0 -8
  150. package/dist/shared/devtools-nightly.COlX0Gls.mjs +0 -114
  151. package/types.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- import { NuxtDevtoolsIframeClient, NuxtDevtoolsHostClient, NuxtDevtoolsGlobal, PluginMetric, TimelineMetrics, LoadingTimeMetric } from '@nuxt/devtools-kit/types';
1
+ import { NuxtDevtoolsIframeClient, NuxtDevtoolsHostClient, PluginMetric, TimelineMetrics, LoadingTimeMetric } from '@nuxt/devtools-kit/types';
2
2
 
3
3
  declare global {
4
4
  interface Window {
@@ -10,12 +10,6 @@ declare global {
10
10
  * Nuxt DevTools client for host app
11
11
  */
12
12
  __NUXT_DEVTOOLS_HOST__?: NuxtDevtoolsHostClient;
13
- /**
14
- * Nuxt DevTools for receiving host client
15
- *
16
- * @internal
17
- */
18
- __NUXT_DEVTOOLS_VIEW__?: NuxtDevtoolsGlobal;
19
13
  /**
20
14
  * Metrics for plugin loading time
21
15
  *
@@ -0,0 +1,122 @@
1
+ import { defineNuxtModule } from '@nuxt/kit';
2
+
3
+ const E=globalThis.process?.env||Object.create(null),I=globalThis.process||{env:E},O=void 0!==I&&I.env&&I.env.NODE_ENV||void 0;const A=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:true}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:true}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:true}],["GOOGLE_CLOUDRUN","K_SERVICE"],["GOOGLE_CLOUDRUN_JOB","CLOUD_RUN_JOB"],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["JENKINS","JENKINS_URL"],["HUDSON","HUDSON_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:false}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:false}],["VERCEL","VERCEL_ENV",{ci:false}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:false}],["CODESANDBOX","CODESANDBOX_HOST",{ci:false}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:true}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOY"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:true}],["EDGEONE_PAGES","EO_PAGES_CI",{ci:true}]];function C(){for(const I of A){const O=I[1]||I[0];if(E[O])return {name:I[0].toLowerCase(),...I[2]}}return "/bin/jsh"===E.SHELL&&I.versions?.webcontainer?{name:"stackblitz",ci:false}:{name:"",ci:false}}const D=/* #__PURE__ */C(),T=/* #__PURE__ */(()=>D.name)();I.platform||"";!!I.stdout?.isTTY;!!E.DEBUG;"test"===O||!!E.TEST;"production"===O||"production"===E.MODE;"dev"===O||"development"===O||"development"===E.MODE;const d=(I.versions?.node||"").replace(/^v/,"")||null;Number(d?.split(".")[0])||null;const f=!!I?.versions?.node;!!I?.versions?.nub;const g="Bun"in globalThis,Y="Deno"in globalThis,p="fastly"in globalThis,b="Netlify"in globalThis,m="EdgeRuntime"in globalThis,v="Cloudflare-Workers"===globalThis.navigator?.userAgent,V=[[b,"netlify"],[m,"edge-light"],[v,"workerd"],[p,"fastly"],[Y,"deno"],[g,"bun"],[f,"node"]];const H=function(){const E=V.find(E=>E[0]);if(E)return {name:E[1]}}();H?.name||"";
4
+
5
+ const isSandboxed = T === "stackblitz" || T === "codesandbox";
6
+ const defaultOptions = {
7
+ enabled: void 0,
8
+ // determine multiple conditions
9
+ componentInspector: true,
10
+ vueDevTools: true,
11
+ viteInspect: true,
12
+ dataInspector: true,
13
+ codeServer: {
14
+ enabled: true
15
+ },
16
+ disableAuthorization: isSandboxed
17
+ };
18
+ let serverTasksEnabledByDefault = false;
19
+ function setServerTasksEnabledByDefault(enabled) {
20
+ serverTasksEnabledByDefault = enabled;
21
+ }
22
+ function createDefaultTabOptions() {
23
+ return {
24
+ behavior: {
25
+ telemetry: null,
26
+ openInEditor: void 0
27
+ },
28
+ ui: {
29
+ componentsView: "list",
30
+ componentsGraphShowNodeModules: false,
31
+ componentsGraphShowGlobalComponents: true,
32
+ componentsGraphShowPages: false,
33
+ componentsGraphShowLayouts: false,
34
+ componentsGraphShowWorkspace: true,
35
+ showExperimentalFeatures: false,
36
+ showHelpButtons: true,
37
+ scale: 1,
38
+ hiddenTabs: [],
39
+ pinnedTabs: [],
40
+ hiddenTabCategories: []
41
+ },
42
+ serverRoutes: {
43
+ selectedRoute: null,
44
+ view: "tree",
45
+ inputDefaults: {
46
+ query: [],
47
+ body: [],
48
+ headers: []
49
+ },
50
+ sendFrom: "app"
51
+ },
52
+ serverTasks: {
53
+ enabled: serverTasksEnabledByDefault,
54
+ selectedTask: null,
55
+ view: "list",
56
+ inputDefaults: {
57
+ query: [],
58
+ body: [],
59
+ headers: [
60
+ {
61
+ active: true,
62
+ key: "Content-Type",
63
+ value: "application/json",
64
+ type: "string"
65
+ }
66
+ ]
67
+ }
68
+ },
69
+ assets: {
70
+ view: "grid"
71
+ }
72
+ };
73
+ }
74
+ const defaultAllowedExtensions = [
75
+ "png",
76
+ "jpg",
77
+ "jpeg",
78
+ "gif",
79
+ "svg",
80
+ "webp",
81
+ "ico",
82
+ "mp4",
83
+ "ogg",
84
+ "mp3",
85
+ "wav",
86
+ "mov",
87
+ "mkv",
88
+ "mpg",
89
+ "txt",
90
+ "ttf",
91
+ "woff",
92
+ "woff2",
93
+ "eot",
94
+ "json",
95
+ "js",
96
+ "jsx",
97
+ "ts",
98
+ "tsx",
99
+ "md",
100
+ "mdx",
101
+ "vue",
102
+ "webm"
103
+ ];
104
+
105
+ const module$1 = defineNuxtModule({
106
+ meta: {
107
+ name: "@nuxt/devtools",
108
+ configKey: "devtools"
109
+ },
110
+ defaults: defaultOptions,
111
+ setup(options, nuxt) {
112
+ if (process.env.VITEST || process.env.TEST)
113
+ return;
114
+ if (typeof options === "boolean")
115
+ options = { enabled: options };
116
+ if (options.enabled === false)
117
+ return;
118
+ return import('../chunks/module-main.mjs').then(function (n) { return n.m; }).then(({ enableModule }) => enableModule(options, nuxt));
119
+ }
120
+ });
121
+
122
+ export { createDefaultTabOptions as c, defaultAllowedExtensions as d, module$1 as m, setServerTasksEnabledByDefault as s };
package/dist/types.d.mts CHANGED
@@ -1,41 +1,12 @@
1
- import './shared/devtools-nightly.LsRDzDTD.mjs';
1
+ import './shared/devtools-nightly.DIKI0iiX.mjs';
2
2
  import { ModuleStaticInfo } from '@nuxt/devtools-kit/types';
3
3
  export * from '@nuxt/devtools-kit/types';
4
4
 
5
- interface SocialPreviewResolved {
6
- url?: string;
7
- title?: string;
8
- description?: string;
9
- favicon?: string;
10
- image?: string;
11
- imageAlt?: string;
12
- }
13
- interface SocialPreviewCard {
14
- url?: SocialPreviewCardItem[];
15
- title?: SocialPreviewCardItem[];
16
- description?: SocialPreviewCardItem[];
17
- favicon?: SocialPreviewCardItem[];
18
- image?: SocialPreviewCardItem[];
19
- imageAlt?: SocialPreviewCardItem[];
20
- }
21
- interface SocialPreviewCardItem {
22
- tag: string;
23
- name?: string;
24
- }
25
- interface NormalizedHeadTag {
26
- tag: string;
27
- name: string;
28
- value: string;
29
- }
30
5
  interface InstallingModulestate {
31
6
  name: string;
32
7
  info: ModuleStaticInfo;
33
8
  processId: string;
34
9
  }
35
- interface AnalyzeBuildingState {
36
- name: string;
37
- processId: string;
38
- }
39
10
  type ModuleActionType = 'install' | 'uninstall';
40
11
 
41
- export type { AnalyzeBuildingState, InstallingModulestate, ModuleActionType, NormalizedHeadTag, SocialPreviewCard, SocialPreviewResolved };
12
+ export type { InstallingModulestate, ModuleActionType };
@@ -12,7 +12,6 @@ const noop = () => {};
12
12
  function toArray(value) {
13
13
  return Array.isArray(value) ? value : [value];
14
14
  }
15
-
16
15
  //#endregion
17
16
  //#region toRefs/index.ts
18
17
  /**
@@ -31,24 +30,24 @@ function toRefs(objectRef, options = {}) {
31
30
  },
32
31
  set(v) {
33
32
  var _toValue;
34
- if ((_toValue = toValue(options.replaceRef)) !== null && _toValue !== void 0 ? _toValue : true) if (Array.isArray(objectRef.value)) {
35
- const copy = [...objectRef.value];
36
- copy[key] = v;
37
- objectRef.value = copy;
38
- } else {
39
- const newObject = {
40
- ...objectRef.value,
41
- [key]: v
42
- };
43
- Object.setPrototypeOf(newObject, Object.getPrototypeOf(objectRef.value));
44
- objectRef.value = newObject;
45
- }
46
- else objectRef.value[key] = v;
33
+ if ((_toValue = toValue(options.replaceRef)) !== null && _toValue !== void 0 ? _toValue : true) {
34
+ if (Array.isArray(objectRef.value)) {
35
+ const copy = [...objectRef.value];
36
+ copy[key] = v;
37
+ objectRef.value = copy;
38
+ } else {
39
+ const newObject = {
40
+ ...objectRef.value,
41
+ [key]: v
42
+ };
43
+ Object.setPrototypeOf(newObject, Object.getPrototypeOf(objectRef.value));
44
+ objectRef.value = newObject;
45
+ }
46
+ } else objectRef.value[key] = v;
47
47
  }
48
48
  }));
49
49
  return result;
50
50
  }
51
-
52
51
  //#endregion
53
52
  //#region watchImmediate/index.ts
54
53
  /**
@@ -66,7 +65,6 @@ function watchImmediate(source, cb, options) {
66
65
  //#endregion
67
66
  //#region _configurable.ts
68
67
  const defaultWindow = isClient ? window : void 0;
69
-
70
68
  //#endregion
71
69
  //#region unrefElement/index.ts
72
70
  /**
@@ -79,7 +77,6 @@ function unrefElement(elRef) {
79
77
  const plain = toValue(elRef);
80
78
  return (_$el = plain === null || plain === void 0 ? void 0 : plain.$el) !== null && _$el !== void 0 ? _$el : plain;
81
79
  }
82
-
83
80
  //#endregion
84
81
  //#region useEventListener/index.ts
85
82
  function useEventListener(...args) {
@@ -109,18 +106,18 @@ function useEventListener(...args) {
109
106
  }, { flush: "post" });
110
107
  }
111
108
  function onClickOutside(target, handler, options = {}) {
112
- const { window: window$1 = defaultWindow, ignore = [], capture = true, detectIframe = false, controls = false } = options;
113
- if (!window$1) return controls ? {
109
+ const { window = defaultWindow, ignore = [], capture = true, detectIframe = false, controls = false } = options;
110
+ if (!window) return controls ? {
114
111
  stop: noop,
115
112
  cancel: noop,
116
113
  trigger: noop
117
114
  } : noop;
118
115
  let shouldListen = true;
119
116
  const shouldIgnore = (event) => {
120
- return toValue(ignore).some((target$1) => {
121
- if (typeof target$1 === "string") return Array.from(window$1.document.querySelectorAll(target$1)).some((el) => el === event.target || event.composedPath().includes(el));
117
+ return toValue(ignore).some((target) => {
118
+ if (typeof target === "string") return Array.from(window.document.querySelectorAll(target)).some((el) => el === event.target || event.composedPath().includes(el));
122
119
  else {
123
- const el = unrefElement(target$1);
120
+ const el = unrefElement(target);
124
121
  return el && (event.target === el || event.composedPath().includes(el));
125
122
  }
126
123
  });
@@ -129,12 +126,12 @@ function onClickOutside(target, handler, options = {}) {
129
126
  * Determines if the given target has multiple root elements.
130
127
  * Referenced from: https://github.com/vuejs/test-utils/blob/ccb460be55f9f6be05ab708500a41ec8adf6f4bc/src/vue-wrapper.ts#L21
131
128
  */
132
- function hasMultipleRoots(target$1) {
133
- const vm = toValue(target$1);
129
+ function hasMultipleRoots(target) {
130
+ const vm = toValue(target);
134
131
  return vm && vm.$.subTree.shapeFlag === 16;
135
132
  }
136
- function checkMultipleRoots(target$1, event) {
137
- const vm = toValue(target$1);
133
+ function checkMultipleRoots(target, event) {
134
+ const vm = toValue(target);
138
135
  const children = vm.$.subTree && vm.$.subTree.children;
139
136
  if (children == null || !Array.isArray(children)) return false;
140
137
  return children.some((child) => child.el === event.target || event.composedPath().includes(child.el));
@@ -153,7 +150,7 @@ function onClickOutside(target, handler, options = {}) {
153
150
  };
154
151
  let isProcessingClick = false;
155
152
  const cleanup = [
156
- useEventListener(window$1, "click", (event) => {
153
+ useEventListener(window, "click", (event) => {
157
154
  if (!isProcessingClick) {
158
155
  isProcessingClick = true;
159
156
  setTimeout(() => {
@@ -165,15 +162,16 @@ function onClickOutside(target, handler, options = {}) {
165
162
  passive: true,
166
163
  capture
167
164
  }),
168
- useEventListener(window$1, "pointerdown", (e) => {
165
+ useEventListener(window, "pointerdown", (e) => {
169
166
  const el = unrefElement(target);
170
167
  shouldListen = !shouldIgnore(e) && !!(el && !e.composedPath().includes(el));
171
168
  }, { passive: true }),
172
- detectIframe && useEventListener(window$1, "blur", (event) => {
169
+ detectIframe && useEventListener(window, "blur", (event) => {
173
170
  setTimeout(() => {
174
- var _window$document$acti;
175
171
  const el = unrefElement(target);
176
- if (((_window$document$acti = window$1.document.activeElement) === null || _window$document$acti === void 0 ? void 0 : _window$document$acti.tagName) === "IFRAME" && !(el === null || el === void 0 ? void 0 : el.contains(window$1.document.activeElement))) handler(event);
172
+ let activeEl = window.document.activeElement;
173
+ while (activeEl === null || activeEl === void 0 ? void 0 : activeEl.shadowRoot) activeEl = activeEl.shadowRoot.activeElement;
174
+ if ((activeEl === null || activeEl === void 0 ? void 0 : activeEl.tagName) === "IFRAME" && !(el === null || el === void 0 ? void 0 : el.contains(window.document.activeElement))) handler(event);
177
175
  }, 0);
178
176
  }, { passive: true })
179
177
  ].filter(Boolean);
@@ -191,7 +189,6 @@ function onClickOutside(target, handler, options = {}) {
191
189
  };
192
190
  return stop;
193
191
  }
194
-
195
192
  //#endregion
196
193
  //#region useDraggable/index.ts
197
194
  const defaultScrollConfig = {
@@ -212,7 +209,7 @@ function clampContainerScroll(container) {
212
209
  */
213
210
  function useDraggable(target, options = {}) {
214
211
  var _toValue, _toValue2, _toValue3, _scrollConfig$directi;
215
- const { pointerTypes, preventDefault: preventDefault$1, stopPropagation, exact, onMove, onEnd, onStart, initialValue, axis = "both", draggingElement = defaultWindow, containerElement, handle: draggingHandle = target, buttons = [0], restrictInView, autoScroll = false } = options;
212
+ const { pointerTypes, preventDefault, stopPropagation, exact, onMove, onEnd, onStart, initialValue, axis = "both", draggingElement = defaultWindow, containerElement, handle: draggingHandle = target, buttons = [0], restrictInView, autoScroll = false } = options;
216
213
  const position = ref((_toValue = toValue(initialValue)) !== null && _toValue !== void 0 ? _toValue : {
217
214
  x: 0,
218
215
  y: 0
@@ -223,7 +220,7 @@ function useDraggable(target, options = {}) {
223
220
  return true;
224
221
  };
225
222
  const handleEvent = (e) => {
226
- if (toValue(preventDefault$1)) e.preventDefault();
223
+ if (toValue(preventDefault)) e.preventDefault();
227
224
  if (toValue(stopPropagation)) e.stopPropagation();
228
225
  };
229
226
  const scrollConfig = toValue(autoScroll);
@@ -233,19 +230,19 @@ function useDraggable(target, options = {}) {
233
230
  direction: (_scrollConfig$directi = scrollConfig.direction) !== null && _scrollConfig$directi !== void 0 ? _scrollConfig$directi : defaultScrollConfig.direction
234
231
  } : defaultScrollConfig;
235
232
  const getScrollAxisValues = (value) => typeof value === "number" ? [value, value] : [value.x, value.y];
236
- const handleAutoScroll = (container, targetRect, position$1) => {
233
+ const handleAutoScroll = (container, targetRect, position) => {
237
234
  const { clientWidth, clientHeight, scrollLeft, scrollTop, scrollWidth, scrollHeight } = container;
238
235
  const [marginX, marginY] = getScrollAxisValues(scrollSettings.margin);
239
236
  const [speedX, speedY] = getScrollAxisValues(scrollSettings.speed);
240
237
  let deltaX = 0;
241
238
  let deltaY = 0;
242
239
  if (scrollSettings.direction === "x" || scrollSettings.direction === "both") {
243
- if (position$1.x < marginX && scrollLeft > 0) deltaX = -speedX;
244
- else if (position$1.x + targetRect.width > clientWidth - marginX && scrollLeft < scrollWidth - clientWidth) deltaX = speedX;
240
+ if (position.x < marginX && scrollLeft > 0) deltaX = -speedX;
241
+ else if (position.x + targetRect.width > clientWidth - marginX && scrollLeft < scrollWidth - clientWidth) deltaX = speedX;
245
242
  }
246
243
  if (scrollSettings.direction === "y" || scrollSettings.direction === "both") {
247
- if (position$1.y < marginY && scrollTop > 0) deltaY = -speedY;
248
- else if (position$1.y + targetRect.height > clientHeight - marginY && scrollTop < scrollHeight - clientHeight) deltaY = speedY;
244
+ if (position.y < marginY && scrollTop > 0) deltaY = -speedY;
245
+ else if (position.y + targetRect.height > clientHeight - marginY && scrollTop < scrollHeight - clientHeight) deltaY = speedY;
249
246
  }
250
247
  if (deltaX || deltaY) container.scrollBy({
251
248
  left: deltaX,
@@ -288,10 +285,11 @@ function useDraggable(target, options = {}) {
288
285
  if (!container) return;
289
286
  const targetRect = toValue(target).getBoundingClientRect();
290
287
  const { x, y } = position.value;
291
- if (isPointerNearEdge({
288
+ const relativePosition = {
292
289
  x: x - container.scrollLeft,
293
290
  y: y - container.scrollTop
294
- }, container, scrollSettings.margin, targetRect)) startAutoScroll();
291
+ };
292
+ if (isPointerNearEdge(relativePosition, container, scrollSettings.margin, targetRect)) startAutoScroll();
295
293
  else stopAutoScroll();
296
294
  };
297
295
  if (toValue(autoScroll)) watch(position, checkAutoScroll);
@@ -366,12 +364,12 @@ function useDraggable(target, options = {}) {
366
364
  var _options$capture;
367
365
  return {
368
366
  capture: (_options$capture = options.capture) !== null && _options$capture !== void 0 ? _options$capture : true,
369
- passive: !toValue(preventDefault$1)
367
+ passive: !toValue(preventDefault)
370
368
  };
371
369
  };
372
370
  useEventListener(draggingHandle, "pointerdown", start, config);
373
371
  useEventListener(draggingElement, "pointermove", move, config);
374
- useEventListener(draggingElement, "pointerup", end, config);
372
+ useEventListener(draggingElement, ["pointerup", "pointercancel"], end, config);
375
373
  }
376
374
  return {
377
375
  ...toRefs(position),
@@ -734,7 +732,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
734
732
  /* STABLE_FRAGMENT */
735
733
  );
736
734
  }
737
- const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/devtools/devtools/packages/devtools/src/webcomponents/components/NuxtDevtoolsInspectPanel.vue"]]);
735
+ const Component = /*#__PURE__*/ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/devtools/devtools/packages/devtools/src/webcomponents/components/NuxtDevtoolsInspectPanel.vue"]]);
738
736
 
739
737
  const NuxtDevtoolsInspectPanel = defineCustomElement(
740
738
  Component,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-nightly",
3
3
  "type": "module",
4
- "version": "3.2.4-29563482.f9a1d97",
4
+ "version": "4.0.0-29884714.dcb247f",
5
5
  "description": "The Nuxt DevTools gives you insights and transparency about your Nuxt App.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://devtools.nuxt.com",
@@ -11,123 +11,125 @@
11
11
  "directory": "packages/devtools"
12
12
  },
13
13
  "exports": {
14
- ".": {
15
- "types": "./dist/module.d.mts",
16
- "import": "./dist/module.mjs"
17
- },
18
- "./webcomponents": {
19
- "types": "./dist/webcomponents/index.d.mts",
20
- "import": "./dist/webcomponents/index.mjs"
21
- },
22
- "./types": {
23
- "types": "./dist/types.d.mts"
24
- },
14
+ ".": "./dist/module.mjs",
15
+ "./webcomponents": "./dist/webcomponents/index.mjs",
16
+ "./types": "./dist/types.mjs",
25
17
  "./*": "./*"
26
18
  },
27
19
  "types": "./dist/module.d.mts",
28
20
  "files": [
29
- "*.cjs",
30
- "*.d.ts",
31
- "*.mjs",
32
21
  "dist"
33
22
  ],
34
23
  "peerDependencies": {
35
- "vite": ">=6.0"
24
+ "@nuxt/kit": "^4.0.0-0 || ^5.0.0-0",
25
+ "nitro": "*",
26
+ "nitropack": "^2.0.0",
27
+ "unstorage": "^1.0.0 || ^2.0.0-0",
28
+ "vite": "^8.1.5",
29
+ "vite-plugin-inspect": "^12.1.0"
30
+ },
31
+ "peerDependenciesMeta": {
32
+ "nitro": {
33
+ "optional": true
34
+ },
35
+ "nitropack": {
36
+ "optional": true
37
+ },
38
+ "unstorage": {
39
+ "optional": true
40
+ },
41
+ "vite-plugin-inspect": {
42
+ "optional": true
43
+ }
36
44
  },
37
45
  "dependencies": {
38
- "@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@3.2.4-29563482.f9a1d97",
39
- "@nuxt/kit": "^4.4.2",
40
- "@vitejs/devtools": "^0.1.3",
41
- "@vitejs/devtools-kit": "^0.1.3",
42
- "@vue/devtools-core": "^8.1.0",
43
- "@vue/devtools-kit": "^8.1.0",
44
- "birpc": "^4.0.0",
46
+ "@devframes/hub": "^1.2.6",
47
+ "@devframes/plugin-assets": "^1.2.6",
48
+ "@devframes/plugin-code-server": "^1.2.6",
49
+ "@devframes/plugin-data-inspector": "^1.2.6",
50
+ "@devframes/plugin-og": "^1.2.6",
51
+ "@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-29884714.dcb247f",
52
+ "@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@4.0.0-29884714.dcb247f",
53
+ "@vitejs/devtools": "^0.8.0",
54
+ "@vitejs/devtools-kit": "^0.8.0",
45
55
  "consola": "^3.4.2",
46
56
  "destr": "^2.0.5",
47
- "error-stack-parser-es": "^1.0.5",
48
- "fast-npm-meta": "^1.4.2",
49
- "get-port-please": "^3.2.0",
50
- "hookable": "^6.1.0",
51
- "image-meta": "^0.2.2",
52
- "launch-editor": "^2.13.1",
53
- "local-pkg": "^1.1.2",
54
- "magicast": "^0.5.2",
55
- "ohash": "^2.0.11",
57
+ "devframe": "^1.2.6",
58
+ "error-stack-parser-es": "^2.0.1",
59
+ "escape-string-regexp": "^5.0.0",
60
+ "fast-npm-meta": "^2.2.0",
61
+ "hookable": "^6.1.2",
62
+ "local-pkg": "^1.2.1",
63
+ "magic-string": "^1.4.5",
64
+ "magicast": "^0.5.5",
65
+ "mlly": "^1.8.2",
56
66
  "pathe": "^2.0.3",
57
67
  "perfect-debounce": "^2.1.0",
58
- "pkg-types": "^2.3.0",
59
- "semver": "^7.7.4",
60
- "sirv": "^3.0.2",
61
- "structured-clone-es": "^2.0.0",
62
- "tinyexec": "^1.0.4",
63
- "tinyglobby": "^0.2.15",
64
- "vite-plugin-inspect": "^11.3.3",
65
- "vite-plugin-vue-tracer": "^1.3.0",
66
- "which": "^6.0.1",
67
- "ws": "^8.19.0"
68
+ "tinyglobby": "^0.2.17",
69
+ "unplugin": "^3.5.0",
70
+ "verkit": "^0.5.0",
71
+ "vite-plugin-vue-devtools": "^9.0.0-beta.1",
72
+ "vite-plugin-vue-tracer": "^1.6.0"
68
73
  },
69
74
  "devDependencies": {
70
75
  "@antfu/utils": "^9.3.0",
71
- "@discoveryjs/cli": "^2.14.7",
72
- "@discoveryjs/discovery": "1.0.0-beta.92",
73
76
  "@iconify-json/bxl": "^1.2.4",
74
- "@iconify-json/carbon": "^1.2.19",
75
- "@iconify-json/logos": "^1.2.10",
77
+ "@iconify-json/carbon": "^1.2.29",
78
+ "@iconify-json/logos": "^1.2.18",
76
79
  "@iconify-json/ph": "^1.2.2",
77
80
  "@iconify-json/ri": "^1.2.10",
78
- "@iconify-json/simple-icons": "^1.2.74",
79
- "@iconify-json/tabler": "^1.2.31",
80
- "@nuxt/test-utils": "^4.0.0",
81
- "@parcel/watcher": "^2.5.6",
81
+ "@iconify-json/simple-icons": "^1.2.101",
82
+ "@iconify-json/tabler": "^1.2.42",
83
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-2610052343-36eafab",
84
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-2610052343-36eafab",
85
+ "@parcel/watcher": "^2.6.0",
82
86
  "@types/markdown-it-link-attributes": "^3.0.5",
83
- "@unhead/schema": "^2.1.12",
84
- "@unocss/nuxt": "^66.6.6",
85
- "@unocss/preset-icons": "^66.6.6",
86
- "@unocss/preset-uno": "^66.6.6",
87
- "@unocss/runtime": "^66.6.6",
88
- "@vitejs/devtools": "^0.1.3",
89
- "@vitest/ui": "^4.1.0",
90
- "@vue/devtools-applet": "^8.1.0",
91
- "@vueuse/nuxt": "^14.2.1",
92
- "@xterm/addon-fit": "^0.11.0",
93
- "@xterm/xterm": "^6.0.0",
94
- "cronstrue": "^3.13.0",
95
- "exsolve": "^1.0.8",
96
- "floating-vue": "^5.2.2",
97
- "fuse.js": "^7.1.0",
98
- "json-editor-vue": "^0.18.1",
99
- "lightningcss": "^1.32.0",
100
- "markdown-it": "^14.1.1",
87
+ "@unocss/nuxt": "^66.12.0",
88
+ "@unocss/preset-icons": "^66.12.0",
89
+ "@unocss/preset-uno": "^66.12.0",
90
+ "@vueuse/nuxt": "^15.0.0",
91
+ "cronstrue": "^3.38.0",
92
+ "diff": "^9.0.0",
93
+ "dompurify": "^3.4.17",
94
+ "exsolve": "^1.1.3",
95
+ "floating-vue": "^5.4.0",
96
+ "fuse.js": "^7.5.0",
97
+ "json-editor-vue": "^0.19.2",
98
+ "lightningcss": "^1.33.0",
99
+ "markdown-exit": "^1.3.0",
101
100
  "markdown-it-link-attributes": "^4.0.1",
102
- "nitropack": "^2.13.1",
103
- "nuxt": "^4.4.2",
101
+ "nitro": "^3.0.260903-beta",
102
+ "nitropack": "^2.13.5",
103
+ "nuxt": "npm:nuxt-nightly@5.0.0-2610052343-36eafab",
104
104
  "ofetch": "^1.5.1",
105
- "package-manager-detector": "^1.6.0",
105
+ "package-manager-detector": "^1.9.0",
106
106
  "quicktype-core": "22.0.0",
107
107
  "scule": "^1.3.0",
108
- "shiki": "^4.0.2",
109
- "shiki-codegen": "^4.0.2",
108
+ "shiki": "^4.5.0",
109
+ "shiki-codegen": "^4.5.0",
110
+ "structured-clone-es": "^2.0.1",
110
111
  "theme-vitesse": "^1.0.0",
111
- "tsx": "^4.21.0",
112
+ "tsx": "^4.23.15",
112
113
  "ua-parser-modern": "^0.1.1",
113
- "unimport": "^6.0.2",
114
- "unocss": "^66.6.6",
115
- "unplugin-vue": "^7.1.1",
116
- "unplugin-vue-markdown": "^30.0.0",
117
- "vanilla-jsoneditor": "^3.11.0",
118
- "vis-data": "^8.0.3",
119
- "vis-network": "^10.0.2",
120
- "vue-tsc": "^3.2.6",
121
- "vue-virtual-scroller": "^2.0.0-beta.10"
114
+ "unbuild": "^3.6.1",
115
+ "unimport": "^7.0.2",
116
+ "unocss": "^66.12.0",
117
+ "unplugin-vue": "^8.0.0",
118
+ "unplugin-vue-markdown": "^32.1.1",
119
+ "unstorage": "^1.17.6",
120
+ "vanilla-jsoneditor": "^3.13.0",
121
+ "vis-data": "^8.0.6",
122
+ "vis-network": "^10.1.3",
123
+ "vite-plugin-inspect": "^12.1.0",
124
+ "vue-tsc": "^3.3.13",
125
+ "vue-virtual-scroller": "^3.0.5"
122
126
  },
123
127
  "scripts": {
124
- "build": "pnpm dev:prepare && pnpm build:module && pnpm build:discovery && pnpm build:client",
125
- "build:client": "nuxi generate client && cp -r client/.output/public/ dist/client/",
128
+ "build": "pnpm dev:prepare && pnpm build:module",
129
+ "build:client": "nuxi generate client && node scripts/copy-client.mjs",
126
130
  "build:module": "nuxt-build-module build",
127
- "build:discovery": "npx discovery-build -c .discoveryrc.cjs -s -o client/public/discovery",
128
- "dev:discovery": "discovery -c .discoveryrc.cjs",
129
131
  "stub": "nuxt-build-module build --stub",
130
- "dev": "pnpm build:discovery && nuxi dev client",
132
+ "dev": "nuxi dev client",
131
133
  "dev:playground": "pnpm build && nuxi dev playground",
132
134
  "dev:prepare": "pnpm run stub && nuxi prepare client"
133
135
  }
package/.discoveryrc.cjs DELETED
@@ -1,13 +0,0 @@
1
- const { join } = require('node:path')
2
-
3
- module.exports = {
4
- name: 'Nuxt Server Data',
5
- basedir: join(__dirname, 'discovery'),
6
- embed: true,
7
- // view: {
8
- // assets: [
9
- // './pages/common.css',
10
- // './pages/default.js',
11
- // ],
12
- // },
13
- }