@nuxt/devtools 0.2.5 → 0.3.0

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 (134) hide show
  1. package/README.md +3 -3
  2. package/dist/chunks/module-main.mjs +692 -258
  3. package/dist/chunks/plugin-metrics.mjs +54 -0
  4. package/dist/chunks/vite-inspect.mjs +12 -13
  5. package/dist/chunks/vscode.mjs +44 -26
  6. package/dist/chunks/vue-inspector.mjs +2 -2
  7. package/dist/cli.mjs +5 -4
  8. package/dist/client/200.html +2 -2
  9. package/dist/client/404.html +2 -2
  10. package/dist/client/__inspecting/index.html +2 -2
  11. package/dist/client/_nuxt/Badge.0f8d5f6f.js +1 -0
  12. package/dist/client/_nuxt/DrawerRight.vue.6b933252.js +1 -0
  13. package/dist/client/_nuxt/DurationDisplay.vue.5c57289e.js +1 -0
  14. package/dist/client/_nuxt/FilepathItem.vue.e8c3a52c.js +1 -0
  15. package/dist/client/_nuxt/LaunchPage.vue.87f21877.js +1 -0
  16. package/dist/client/_nuxt/NCheckbox.vue.4b9ea1cc.js +1 -0
  17. package/dist/client/_nuxt/NCodeBlock.vue.431c1fae.js +1 -0
  18. package/dist/client/_nuxt/NIconButton.vue.9bdc7adc.js +1 -0
  19. package/dist/client/_nuxt/NIconTitle.vue.f40c1405.js +1 -0
  20. package/dist/client/_nuxt/NMarkdown.vue.725d1f67.js +1 -0
  21. package/dist/client/_nuxt/NSectionBlock.aae79980.js +1 -0
  22. package/dist/client/_nuxt/NSelect.vue.b136ef78.js +1 -0
  23. package/dist/client/_nuxt/NSwitch.vue.73a2b8d5.js +1 -0
  24. package/dist/client/_nuxt/NTextInput.vue.543d16d0.js +1 -0
  25. package/dist/client/_nuxt/NTip.vue.130b714b.js +1 -0
  26. package/dist/client/_nuxt/NpmVersionCheck.vue.b49a7a81.js +1 -0
  27. package/dist/client/_nuxt/{NuxtLogo.8111403f.js → NuxtLogo.18339464.js} +1 -1
  28. package/dist/client/_nuxt/{PanelLeftRight.vue.56b5906c.js → PanelLeftRight.vue.b026a23a.js} +1 -1
  29. package/dist/client/_nuxt/StateEditor.vue.dae03388.js +1 -0
  30. package/dist/client/_nuxt/{TabIcon.vue.30ae65eb.js → TabIcon.vue.d87fc756.js} +1 -1
  31. package/dist/client/_nuxt/{__inspecting.8819ade8.js → __inspecting.9a5a53c2.js} +1 -1
  32. package/dist/client/_nuxt/assets.a9e5a6b0.js +16 -0
  33. package/dist/client/_nuxt/components.70b3c3a4.js +1 -0
  34. package/dist/client/_nuxt/context.c8f67be1.js +1 -0
  35. package/dist/client/_nuxt/custom-_name_.54344ca3.js +1 -0
  36. package/dist/client/_nuxt/default.a8c4c373.js +1 -0
  37. package/dist/client/_nuxt/editor.e302ec86.js +1 -0
  38. package/dist/client/_nuxt/entry.654353dc.css +32 -0
  39. package/dist/client/_nuxt/entry.91db41b9.js +259 -0
  40. package/dist/client/_nuxt/error-404.6d04f9a0.js +1 -0
  41. package/dist/client/_nuxt/{error-500.8f6cefc5.js → error-500.44287dc0.js} +1 -1
  42. package/dist/client/_nuxt/error-component.a0e84e89.js +3 -0
  43. package/dist/client/_nuxt/hooks.784bc58b.js +1 -0
  44. package/dist/client/_nuxt/icons.43eaabec.js +1 -0
  45. package/dist/client/_nuxt/imports.2e67f433.js +1 -0
  46. package/dist/client/_nuxt/{index.a6656ecb.js → index.3b3b7aca.js} +5 -5
  47. package/dist/client/_nuxt/index.4213289c.js +1 -0
  48. package/dist/client/_nuxt/index.c769634a.js +3 -0
  49. package/dist/client/_nuxt/layouts.3ece608d.js +1 -0
  50. package/dist/client/_nuxt/middleware.c0b48cbf.js +1 -0
  51. package/dist/client/_nuxt/modules.b85b1f76.js +1 -0
  52. package/dist/client/_nuxt/{none.394b52e6.js → none.d95ed4cd.js} +1 -1
  53. package/dist/client/_nuxt/overview.c2dfff9d.js +1 -0
  54. package/dist/client/_nuxt/pages.c8f066b4.js +1 -0
  55. package/dist/client/_nuxt/payload.299d8527.js +1 -0
  56. package/dist/client/_nuxt/plugins.4b3cd1e3.js +1 -0
  57. package/dist/client/_nuxt/runtime-configs.0f55338b.js +1 -0
  58. package/dist/client/_nuxt/server-routes.e48a8508.js +1 -0
  59. package/dist/client/_nuxt/settings.b70bc182.js +1 -0
  60. package/dist/client/_nuxt/storage.adf41f3f.js +1 -0
  61. package/dist/client/_nuxt/terminals.2f58f3e7.js +1 -0
  62. package/dist/client/_nuxt/terminals.4329aeb9.css +1 -0
  63. package/dist/client/_nuxt/{unocss-runtime.daeb320e.js → unocss-runtime.f654b492.js} +2 -2
  64. package/dist/client/_nuxt/virtual-files.dbe38c70.js +1 -0
  65. package/dist/client/index.html +2 -2
  66. package/dist/client/modules/assets/index.html +7 -0
  67. package/dist/client/modules/components/index.html +2 -2
  68. package/dist/client/modules/hooks/index.html +2 -2
  69. package/dist/client/modules/imports/index.html +2 -2
  70. package/dist/client/modules/layouts/index.html +2 -2
  71. package/dist/client/modules/middleware/index.html +2 -2
  72. package/dist/client/modules/modules/index.html +2 -2
  73. package/dist/client/modules/overview/index.html +2 -2
  74. package/dist/client/modules/pages/index.html +2 -2
  75. package/dist/client/modules/payload/index.html +2 -2
  76. package/dist/client/modules/plugins/index.html +2 -2
  77. package/dist/client/modules/runtime-configs/index.html +2 -2
  78. package/dist/client/modules/server-routes/index.html +2 -2
  79. package/dist/client/modules/storage/index.html +2 -2
  80. package/dist/client/modules/terminals/index.html +7 -0
  81. package/dist/client/modules/virtual-files/index.html +2 -2
  82. package/dist/client/settings/index.html +7 -0
  83. package/dist/dirs.mjs +2 -2
  84. package/dist/module.d.ts +3 -33
  85. package/dist/module.json +1 -1
  86. package/dist/module.mjs +2 -2
  87. package/dist/runtime/plugins/devtools.client.mjs +7 -1
  88. package/dist/shared/{devtools.258c6e2e.mjs → devtools.30090c6e.mjs} +1 -1
  89. package/dist/types.d.ts +4 -337
  90. package/dist/types.mjs +1 -1
  91. package/package.json +36 -35
  92. package/dist/client/_nuxt/Badge.4f16da14.js +0 -1
  93. package/dist/client/_nuxt/FilepathItem.vue.235fa07d.js +0 -1
  94. package/dist/client/_nuxt/LaunchPage.vue.86f00e85.js +0 -1
  95. package/dist/client/_nuxt/NButton.a7fda268.css +0 -1
  96. package/dist/client/_nuxt/NButton.vue.76dccbb9.js +0 -100
  97. package/dist/client/_nuxt/NCheckbox.vue.60126ccb.js +0 -1
  98. package/dist/client/_nuxt/NMarkdown.vue.abb154b8.js +0 -1
  99. package/dist/client/_nuxt/NSectionBlock.58837776.js +0 -1
  100. package/dist/client/_nuxt/NSectionBlock.891fa081.css +0 -1
  101. package/dist/client/_nuxt/NTextInput.vue.1fd15b74.js +0 -1
  102. package/dist/client/_nuxt/StateEditor.vue.bdb7e5c8.js +0 -1
  103. package/dist/client/_nuxt/asyncData.103aad72.js +0 -1
  104. package/dist/client/_nuxt/client.9c41f495.js +0 -1
  105. package/dist/client/_nuxt/components.43dee80b.js +0 -1
  106. package/dist/client/_nuxt/context.55688cca.js +0 -1
  107. package/dist/client/_nuxt/custom-_name_.8832be9d.js +0 -1
  108. package/dist/client/_nuxt/default.c29c3e74.js +0 -1
  109. package/dist/client/_nuxt/editor.66e59505.js +0 -1
  110. package/dist/client/_nuxt/entry.3a404c59.css +0 -1
  111. package/dist/client/_nuxt/entry.883bcfe6.js +0 -11
  112. package/dist/client/_nuxt/error-404.d027ece6.js +0 -1
  113. package/dist/client/_nuxt/error-component.ee11a8ba.js +0 -3
  114. package/dist/client/_nuxt/hooks.427abdcd.js +0 -1
  115. package/dist/client/_nuxt/icons.7b11eba5.js +0 -1
  116. package/dist/client/_nuxt/imports.2dc7174b.js +0 -1
  117. package/dist/client/_nuxt/index.0d6abd2a.js +0 -1
  118. package/dist/client/_nuxt/json-editor-vue.a65019ca.js +0 -137
  119. package/dist/client/_nuxt/layouts.4db8e1e6.js +0 -1
  120. package/dist/client/_nuxt/middleware.c4f2a57b.js +0 -1
  121. package/dist/client/_nuxt/modules.a2209d2d.js +0 -1
  122. package/dist/client/_nuxt/nuxt-link.a34a1045.js +0 -1
  123. package/dist/client/_nuxt/overview.5053fd45.js +0 -1
  124. package/dist/client/_nuxt/pages.9a1a9ac3.js +0 -1
  125. package/dist/client/_nuxt/payload.ed4c5688.js +0 -1
  126. package/dist/client/_nuxt/plugins.95c9e3e6.js +0 -1
  127. package/dist/client/_nuxt/runtime-configs.7ebddf6f.js +0 -1
  128. package/dist/client/_nuxt/server-routes.5337ffc6.js +0 -1
  129. package/dist/client/_nuxt/state.1f523208.js +0 -1
  130. package/dist/client/_nuxt/storage.4459d7bf.js +0 -1
  131. package/dist/client/_nuxt/virtual-files.a15894d9.js +0 -3
  132. package/dist/iframe-client.d.ts +0 -15
  133. package/dist/iframe-client.mjs +0 -32
  134. package/iframe-client.d.ts +0 -1
@@ -1 +0,0 @@
1
- import{_ as D}from"./NTextInput.vue.1fd15b74.js";import{a as N,l as w,p as F,o as t,c as b,w as v,h as n,m as y,i as k,u as e,k as C,f as u,F as V,t as I,A as B,N as z,P as j,Q as E,R as T,y as M,S as P,r as A,q as S}from"./entry.883bcfe6.js";import{_ as U}from"./FilepathItem.vue.235fa07d.js";import{_ as K}from"./NMarkdown.vue.abb154b8.js";import{_ as R}from"./NButton.vue.76dccbb9.js";import{u as q,o as L}from"./editor.66e59505.js";import{_ as Q}from"./NSectionBlock.58837776.js";import{a as G,h as H,i as J,j as O,g as W}from"./state.1f523208.js";import{F as X}from"./fuse.esm.88e2763d.js";import"./client.9c41f495.js";import"./nuxt-link.a34a1045.js";/* empty css */import"./json-editor-vue.a65019ca.js";import"./context.55688cca.js";import"./asyncData.103aad72.js";const Y={"hover:text-primary":""},Z={key:0,"text-primary":""},ee={"max-w-100":""},te={"text-sm":"",px4:"",py3:""},oe={flex:"~ gap2",n:"primary xs"},ae={border:"t base",px4:"",py3:""},se={"text-sm":""},ne=n("span",{op50:""},"It has been referenced ",-1),ie={"text-primary":""},le=n("span",{op50:""}," times by:",-1),re={flex:"~ col gap-2","text-sm":"","items-start":"",pt3:""},me={key:1,op50:"","text-sm":""},de=N({__name:"ComposableItem",props:{item:null,metadata:null,filepath:null},setup(s){const r=s,x=q(),o=w(()=>r.item.as||r.item.name),c=w(()=>r.metadata?.injectionUsage?.[o.value]?.count||0),a=w(()=>r.metadata?.injectionUsage?.[o.value]?.moduleIds||[]);return(p,_)=>{const m=K,l=R,d=U,g=F("VDropdown");return t(),b(g,{disabled:!r.metadata},{popper:v(()=>[n("div",ee,[n("div",te,[s.item.meta?.description?(t(),b(m,{key:0,tag:"div","text-sm":"",pb3:"",markdown:s.item.meta.description},null,8,["markdown"])):y("",!0),n("div",oe,[k(l,{"n-solid":"",onClick:_[0]||(_[0]=f=>e(x)(e(o)))},{default:v(()=>[C(" Copy ")]),_:1}),s.filepath?(t(),b(l,{key:0,"n-solid":"",onClick:_[1]||(_[1]=f=>s.filepath&&("openInEditor"in p?p.openInEditor:e(L))(s.filepath))},{default:v(()=>[C(" Source ")]),_:1})):y("",!0),s.item.meta?.docsUrl?(t(),b(l,{key:1,"n-solid":"",to:s.item.meta?.docsUrl,target:"_blank"},{default:v(()=>[C(" Docs ")]),_:1},8,["to"])):y("",!0)])]),n("div",ae,[e(c)?(t(),u(V,{key:0},[n("div",se,[ne,n("strong",ie,I(e(c)),1),le]),n("div",re,[(t(!0),u(V,null,B(e(a),f=>(t(),b(d,{key:f,filepath:f},null,8,["filepath"]))),128))])],64)):(t(),u("div",me," Not in use via auto import. "))])])]),default:v(()=>[n("button",Y,[n("code",{px2:"",py1:"",rounded:"","font-mono":"","text-sm":"","bg-gray:5":"",class:z(s.metadata&&!e(c)?"op30 hover:op100":"")},[C(I(e(o))+" ",1),e(c)?(t(),u("sup",Z,"x"+I(e(c)),1)):y("",!0)],2)])]),_:1},8,["disabled"])}}}),ce={flex:"~ wrap gap2",p2:"",pl4:""},ue=N({__name:"ComposableTree",props:{map:null,root:null,metadata:null},setup(s){return(r,x)=>{const o=U,c=de;return t(),u("div",null,[(t(!0),u(V,null,B(s.map.entries(),([a,p])=>(t(),u("div",{key:a},[k(o,{filepath:a,op50:"","hover:underline":""},null,8,["filepath"]),n("div",ce,[(t(!0),u(V,null,B(p,_=>(t(),b(c,{key:_.as,item:_,metadata:s.metadata,filepath:a.match(/^[\w@]/)?void 0:a},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),pe=["checked","disabled"],fe=["disabled"],_e=n("div",{class:"n-transition peer-active:n-active-base peer-focus-visible:n-focus-base n-switch-slider n-checked:n-switch-slider-checked"},[n("div",{class:"n-transition n-switch-thumb n-checked:n-switch-thumb-checked"})],-1),he=N({__name:"NSwitch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(s,{emit:r}){const o=j(s,"modelValue",r,{passive:!0});return(c,a)=>(t(),u("label",{class:"n-disabled:n-disabled n-switch n-switch-base",checked:e(o)||null,disabled:s.disabled||null},[E(n("input",{"onUpdate:modelValue":a[0]||(a[0]=p=>M(o)?o.value=p:null),type:"checkbox",class:"absolute op0 peer",disabled:s.disabled,onKeypress:a[1]||(a[1]=P(p=>o.value=!e(o),["enter"]))},null,40,fe),[[T,e(o)]]),_e,n("span",null,[A(c.$slots,"default")])],8,pe))}}),be={key:0,"h-full":"","of-auto":""},ve={flex:"~ col gap4",border:"b base",px4:"","flex-1":"","navbar-glass":"",pt4:"",pb2:""},ye={key:0},ze=N({__name:"imports",setup(s){const r=G(),x=S(!1),o=S(""),c=H(),a=w(()=>c.value?.metadata),p=w(()=>c.value?.imports.filter(l=>l.as||l.name).sort((l,d)=>(l.as||l.name).localeCompare(d.as||d.name))||[]),_=w(()=>new X(p.value,{keys:["from","as","name"]})),m=w(()=>{const l=new Map,d=new Map,g=new Map;let f=o.value?_.value.search(o.value).map(i=>i.item):p.value;x.value&&a.value&&(f=f.filter(i=>(i.as||i.name)in a.value.injectionUsage));const $={user:0,lib:0,builtin:0};return f.forEach(i=>{const h=J(i.from)?O(W(i.from))?g:d:l;h.has(i.from)||h.set(i.from,[]),h.get(i.from).push(i),$[h===l?"user":h===d?"lib":"builtin"]++}),{user:l,lib:d,builtin:g,count:$}});return(l,d)=>{const g=D,f=he,$=ue,i=Q;return e(r)?(t(),u("div",be,[n("div",ve,[k(g,{modelValue:e(o),"onUpdate:modelValue":d[0]||(d[0]=h=>M(o)?o.value=h:null),placeholder:"Search...",icon:"carbon-search",p:"x5 y2",n:"primary"},null,8,["modelValue"]),e(a)?(t(),u("div",ye,[k(f,{modelValue:e(x),"onUpdate:modelValue":d[1]||(d[1]=h=>M(x)?x.value=h:null),n:"primary sm"},{default:v(()=>[C(" Show used only ")]),_:1},8,["modelValue"])])):y("",!0)]),e(m).user.size?(t(),b(i,{key:0,icon:"carbon-function",text:"User composables",description:`${e(m).count.user} composables from ${e(m).user.size} modules`},{default:v(()=>[k($,{map:e(m).user,root:e(r).rootDir,metadata:e(a)},null,8,["map","root","metadata"])]),_:1},8,["description"])):y("",!0),e(m).builtin.size?(t(),b(i,{key:1,icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${e(m).count.builtin} composables`},{default:v(()=>[k($,{map:e(m).builtin,root:e(r).rootDir,metadata:e(a)},null,8,["map","root","metadata"])]),_:1},8,["description"])):y("",!0),e(m).lib.size?(t(),b(i,{key:2,icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${e(m).count.lib} composables from ${e(m).lib.size} packages`},{default:v(()=>[k($,{map:e(m).lib,root:e(r).rootDir,metadata:e(a)},null,8,["map","root","metadata"])]),_:1},8,["description"])):y("",!0)])):y("",!0)}}});export{ze as default};
@@ -1 +0,0 @@
1
- import{_ as r}from"./NuxtLogo.8111403f.js";import{_ as c}from"./Badge.4f16da14.js";import{_}from"./NButton.vue.76dccbb9.js";import{a as p,f as l,h as e,i as o,w as m,j as u,k as t,o as d}from"./entry.883bcfe6.js";import"./nuxt-link.a34a1045.js";/* empty css */import"./client.9c41f495.js";import"./json-editor-vue.a65019ca.js";const x={flex:"~ col gap4","h-screen":"","items-center":"","justify-center":"","text-center":"","w-160":"",mxa:""},f={flex:"~","justify-center":"","items-center":""},h=e("p",{"text-xl":"","font-bold":"",my2:""}," 👋 Welcome trying the preview of Nuxt DevTools! ",-1),v=e("p",{"text-lg":""},[e("b",{"font-bold":""},"Nuxt DevTools"),t(" is a set of visual tools that help you to know your app/site better, and enhance your development experience with Nuxt. ")],-1),g=e("p",{"text-lg":""},[t(" Be aware that "),e("span",{px2:"",rounded:"","font-bold":"","bg-orange:10":"","py0.5":"","text-orange":""},"Nuxt DevTools is still in early preview"),t(", features might be incomplete and unstable. "),e("a",{href:"https://github.com/nuxt/devtools",target:"_blank","text-primary":"","hover-underline":""},"Create an issue or discussion"),t(" if you find any bugs or have any suggestions. Thank you and have fun! ")],-1),y=e("span",null,"Get Started",-1),F=p({__name:"index",setup(b){function n(){u.value=!1}return(w,N)=>{const s=r,i=c,a=_;return d(),l("div",x,[e("div",f,[o(s,{"h-16":""}),o(i,{"bg-green-400:10":"","text-green-400":"","mr--15":"","mt--5":"",title:"preview",textContent:"preview"})]),h,v,g,o(a,{to:"/modules/overview","mt-4":"",n:"xl primary",onClick:n},{default:m(()=>[y]),_:1})])}}});export{F as default};