@nuxt/devtools 0.5.5 → 0.6.1

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 (148) hide show
  1. package/dist/chunks/module-main.mjs +145 -35
  2. package/dist/chunks/vscode.mjs +5 -2
  3. package/dist/client/200.html +2 -2
  4. package/dist/client/404.html +2 -2
  5. package/dist/client/__blank/index.html +7 -0
  6. package/dist/client/_nuxt/AuthRequiredPanel.vue.19da182f.js +1 -0
  7. package/dist/client/_nuxt/{Badge.e58c5f84.js → Badge.067326d6.js} +1 -1
  8. package/dist/client/_nuxt/CodeSnippets.vue.2f33c6d1.js +1 -0
  9. package/dist/client/_nuxt/DrawerRight.vue.aa1fd47b.js +1 -0
  10. package/dist/client/_nuxt/DurationDisplay.vue.4afc40a4.js +1 -0
  11. package/dist/client/_nuxt/FilepathItem.vue.3587ec1f.js +1 -0
  12. package/dist/client/_nuxt/{HelpFab.vue.044c905c.js → HelpFab.vue.dbb954dd.js} +1 -1
  13. package/dist/client/_nuxt/LaunchPage.vue.f137554e.js +1 -0
  14. package/dist/client/_nuxt/NCheckbox.vue.060051ad.js +1 -0
  15. package/dist/client/_nuxt/NCodeBlock.vue.e44529a6.js +2 -0
  16. package/dist/client/_nuxt/NIconButton.vue.ac7efd0c.js +1 -0
  17. package/dist/client/_nuxt/NIconTitle.vue.ace3a05a.js +1 -0
  18. package/dist/client/_nuxt/NLink.vue.372e1ca0.js +1 -0
  19. package/dist/client/_nuxt/NMarkdown.vue.9f252ec4.js +1 -0
  20. package/dist/client/_nuxt/{NPanelGrids.923427b0.js → NPanelGrids.54ee09bc.js} +1 -1
  21. package/dist/client/_nuxt/NSectionBlock.012f83f1.css +1 -0
  22. package/dist/client/_nuxt/NSectionBlock.9cbe0175.js +1 -0
  23. package/dist/client/_nuxt/NSelect.vue.3956d7b1.js +1 -0
  24. package/dist/client/_nuxt/NSwitch.vue.f0f70131.js +1 -0
  25. package/dist/client/_nuxt/NTip.vue.f50fcd60.js +1 -0
  26. package/dist/client/_nuxt/{Navbar.vue.1eab843e.js → Navbar.vue.bd98686f.js} +1 -1
  27. package/dist/client/_nuxt/NpmVersionCheck.vue.78bff2df.js +1 -0
  28. package/dist/client/_nuxt/{PanelLeftRight.vue.5807516f.js → PanelLeftRight.vue.8031c7d4.js} +1 -1
  29. package/dist/client/_nuxt/StateEditor.vue.4439d43c.js +1 -0
  30. package/dist/client/_nuxt/__blank.944beb26.js +1 -0
  31. package/dist/client/_nuxt/analyze-build.fd781999.js +1 -0
  32. package/dist/client/_nuxt/assets.f876e2b9.js +16 -0
  33. package/dist/client/_nuxt/{client.4ef5790f.js → client.d6464981.js} +1 -1
  34. package/dist/client/_nuxt/{components.1cc22fdb.js → components.d23cd7b8.js} +27 -27
  35. package/dist/client/_nuxt/custom-_name_.3701152b.js +1 -0
  36. package/dist/client/_nuxt/{default.2805e636.js → default.809c6e7c.js} +1 -1
  37. package/dist/client/_nuxt/editor.aee50e2c.js +1 -0
  38. package/dist/client/_nuxt/entry.717f6486.css +1 -0
  39. package/dist/client/_nuxt/entry.a0dd6aac.js +19 -0
  40. package/dist/client/_nuxt/{error-404.61da4836.js → error-404.d560629e.js} +1 -1
  41. package/dist/client/_nuxt/{error-500.68195134.js → error-500.d7ca8dd1.js} +1 -1
  42. package/dist/client/_nuxt/{error-component.db5245e7.js → error-component.15e0d602.js} +2 -2
  43. package/dist/client/_nuxt/{full.cfa15ba5.js → full.76363f3f.js} +1 -1
  44. package/dist/client/_nuxt/hooks.3a3b761d.js +1 -0
  45. package/dist/client/_nuxt/imports.e0b9437d.js +1 -0
  46. package/dist/client/_nuxt/{index.e17aa9ce.js → index.25d3cd66.js} +1 -1
  47. package/dist/client/_nuxt/{index.476fd219.js → index.d7252ef5.js} +1 -1
  48. package/dist/client/_nuxt/json-editor-vue.b8dc29b2.js +137 -0
  49. package/dist/client/_nuxt/{middleware.10bb56a6.js → middleware.cbbbe53d.js} +1 -1
  50. package/dist/client/_nuxt/modules.092674af.js +4 -0
  51. package/dist/client/_nuxt/{none.a68953c7.js → none.0a084ac9.js} +1 -1
  52. package/dist/client/_nuxt/nuxt-docs.100caa70.js +1 -0
  53. package/dist/client/_nuxt/open-graph.3563ee56.js +3 -0
  54. package/dist/client/_nuxt/overview.e4073f57.js +1 -0
  55. package/dist/client/_nuxt/pages.e4cfc065.js +1 -0
  56. package/dist/client/_nuxt/payload.0be0c356.js +1 -0
  57. package/dist/client/_nuxt/plugins.88ff2e07.js +1 -0
  58. package/dist/client/_nuxt/runtime-configs.7810c90a.js +1 -0
  59. package/dist/client/_nuxt/server-routes.911ca1ca.js +9 -0
  60. package/dist/client/_nuxt/settings.80338150.js +1 -0
  61. package/dist/client/_nuxt/state-components.3e562e84.js +1 -0
  62. package/dist/client/_nuxt/storage.4d3f94ab.js +1 -0
  63. package/dist/client/_nuxt/terminals.e433a70a.js +1 -0
  64. package/dist/client/_nuxt/{unocss-runtime.7eface6f.js → unocss-runtime.9d0d2556.js} +2 -2
  65. package/dist/client/_nuxt/{virtual-files.3e66a8af.js → virtual-files.ae241a9c.js} +1 -1
  66. package/dist/client/index.html +2 -2
  67. package/dist/client/modules/analyze-build/index.html +2 -2
  68. package/dist/client/modules/assets/index.html +2 -2
  69. package/dist/client/modules/components/index.html +2 -2
  70. package/dist/client/modules/hooks/index.html +2 -2
  71. package/dist/client/modules/imports/index.html +2 -2
  72. package/dist/client/modules/middleware/index.html +2 -2
  73. package/dist/client/modules/modules/index.html +2 -2
  74. package/dist/client/modules/open-graph/index.html +2 -2
  75. package/dist/client/modules/overview/index.html +2 -2
  76. package/dist/client/modules/pages/index.html +2 -2
  77. package/dist/client/modules/payload/index.html +2 -2
  78. package/dist/client/modules/plugins/index.html +2 -2
  79. package/dist/client/modules/runtime-configs/index.html +2 -2
  80. package/dist/client/modules/server-routes/index.html +2 -2
  81. package/dist/client/modules/storage/index.html +2 -2
  82. package/dist/client/modules/terminals/index.html +2 -2
  83. package/dist/client/modules/virtual-files/index.html +2 -2
  84. package/dist/client/settings/index.html +2 -2
  85. package/dist/module.json +1 -1
  86. package/dist/module.mjs +1 -1
  87. package/dist/runtime/auth/index.html +71 -0
  88. package/dist/runtime/nitro/inline.d.ts +3 -0
  89. package/dist/runtime/nitro/inline.mjs +6 -0
  90. package/dist/runtime/plugins/devtools.client.d.ts +8 -0
  91. package/dist/runtime/plugins/devtools.client.mjs +73 -8
  92. package/dist/runtime/plugins/devtools.server.d.ts +2 -0
  93. package/dist/runtime/plugins/devtools.server.mjs +8 -0
  94. package/dist/runtime/plugins/view/Frame.vue +31 -228
  95. package/dist/runtime/plugins/view/FrameBox.vue +167 -0
  96. package/dist/runtime/plugins/view/Main.vue +360 -0
  97. package/dist/runtime/plugins/view/client.d.ts +3 -0
  98. package/dist/runtime/plugins/view/client.mjs +45 -0
  99. package/dist/runtime/plugins/view/state.d.ts +2 -3
  100. package/dist/runtime/plugins/view/state.mjs +12 -9
  101. package/dist/runtime/plugins/view/utils.d.ts +1 -0
  102. package/dist/runtime/plugins/view/utils.mjs +9 -0
  103. package/dist/shared/{devtools.345c630c.mjs → devtools.7ab40af4.mjs} +3 -1
  104. package/dist/types.d.ts +1 -1
  105. package/package.json +30 -29
  106. package/dist/client/__inspecting/index.html +0 -7
  107. package/dist/client/_nuxt/CodeSnippets.vue.22b03a10.js +0 -1
  108. package/dist/client/_nuxt/DrawerRight.vue.58044cee.js +0 -1
  109. package/dist/client/_nuxt/DurationDisplay.vue.0d87f5bf.js +0 -1
  110. package/dist/client/_nuxt/FilepathItem.vue.063a2cdd.js +0 -1
  111. package/dist/client/_nuxt/LaunchPage.vue.59383ce6.js +0 -1
  112. package/dist/client/_nuxt/NCheckbox.vue.f53d5fde.js +0 -1
  113. package/dist/client/_nuxt/NCodeBlock.vue.e2044e41.js +0 -2
  114. package/dist/client/_nuxt/NIconButton.vue.6924c323.js +0 -1
  115. package/dist/client/_nuxt/NIconTitle.vue.19793f87.js +0 -1
  116. package/dist/client/_nuxt/NLink.vue.dddf8805.js +0 -1
  117. package/dist/client/_nuxt/NMarkdown.vue.2a7f337d.js +0 -1
  118. package/dist/client/_nuxt/NSectionBlock.2937e558.js +0 -1
  119. package/dist/client/_nuxt/NSectionBlock.63c19da9.css +0 -1
  120. package/dist/client/_nuxt/NSelect.vue.6bc1e782.js +0 -1
  121. package/dist/client/_nuxt/NSwitch.vue.e15ba847.js +0 -1
  122. package/dist/client/_nuxt/NTip.vue.16191ba5.js +0 -1
  123. package/dist/client/_nuxt/NpmVersionCheck.vue.47b612aa.js +0 -1
  124. package/dist/client/_nuxt/StateEditor.vue.d28666b8.js +0 -1
  125. package/dist/client/_nuxt/__inspecting.324d8c7c.js +0 -1
  126. package/dist/client/_nuxt/analyze-build.9257b30a.js +0 -1
  127. package/dist/client/_nuxt/assets.c3e8e0f3.js +0 -16
  128. package/dist/client/_nuxt/custom-_name_.e1ada273.js +0 -1
  129. package/dist/client/_nuxt/editor.721868d4.js +0 -1
  130. package/dist/client/_nuxt/entry.bf8a0e33.css +0 -1
  131. package/dist/client/_nuxt/entry.f02d2ccc.js +0 -19
  132. package/dist/client/_nuxt/hooks.a0b5858b.js +0 -1
  133. package/dist/client/_nuxt/imports.c13274b4.js +0 -1
  134. package/dist/client/_nuxt/json-editor-vue.3c153669.js +0 -137
  135. package/dist/client/_nuxt/modules.41d22931.js +0 -4
  136. package/dist/client/_nuxt/open-graph.87c9ce95.js +0 -3
  137. package/dist/client/_nuxt/overview.e078ddfd.js +0 -1
  138. package/dist/client/_nuxt/pages.2011bfab.js +0 -1
  139. package/dist/client/_nuxt/payload.aa12c647.js +0 -1
  140. package/dist/client/_nuxt/plugins.2722f367.js +0 -1
  141. package/dist/client/_nuxt/runtime-configs.1c597722.js +0 -1
  142. package/dist/client/_nuxt/server-routes.be515b73.js +0 -9
  143. package/dist/client/_nuxt/settings.bdc2ea51.js +0 -1
  144. package/dist/client/_nuxt/state-components.97be2043.js +0 -1
  145. package/dist/client/_nuxt/storage.b1a77fa3.js +0 -1
  146. package/dist/client/_nuxt/terminals.ce48c24d.js +0 -9
  147. package/dist/client/_nuxt/terminals.d1dcf297.css +0 -32
  148. package/dist/runtime/plugins/view/Container.vue +0 -97
@@ -1 +0,0 @@
1
- import{_ as B}from"./DurationDisplay.vue.0d87f5bf.js";import{a as S,r as C,p as v,o as i,h as m,f as o,l as c,s as p,u as n,F as T,q as F,t as _,S as D,i as h,am as I,b as V,c as H,w as g,v as N}from"./entry.f02d2ccc.js";import{_ as j}from"./NSectionBlock.2937e558.js";import{_ as L}from"./HelpFab.vue.044c905c.js";import"./NIconTitle.vue.19793f87.js";import"./NIconButton.vue.6924c323.js";const z={"w-full":""},A={border:"b base"},E={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},O={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},P={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},q={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},M={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},R={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},G={"text-sm":""},J={"ws-nowrap":""},K={"text-sm":""},Q={"w-0":"","text-center":"","text-sm":""},U={"w-0":"","text-center":"","text-sm":""},W={"w-0":"","text-right":"","text-sm":""},X=S({__name:"HooksTable",props:{hooks:null},setup(k){const l=k,a=C("duration"),r=C("asc"),b={duration:(e,t)=>(t.duration??1/0)-(e.duration??1/0),name:(e,t)=>e.name.localeCompare(t.name),listener:(e,t)=>t.listeners-e.listeners,start:(e,t)=>t.start-e.start,executions:(e,t)=>t.executions.length-e.executions.length},$=v(()=>l.hooks.map(e=>e.start).sort((e,t)=>e-t)),x=v(()=>{const e=b[a.value],t=[...l.hooks].sort(e);return r.value==="desc"&&t.reverse(),t});function d(e){const t=e.split(":");return t.length===1?"":`${t[0]}:`}function f(e){const t=e.split(":");return t.length===1?e:t.slice(1).join(":")}function w(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);return`hsl(${t%360}, 65%, 50%)`}function u(e){a.value===e?r.value=r.value==="asc"?"desc":"asc":a.value=e}return(e,t)=>{const y=B;return i(),m("table",z,[o("thead",A,[o("tr",null,[o("th",E,[o("button",{onClick:t[0]||(t[0]=s=>u("start"))},[c(" Order "),o("div",{"ml--1":"","text-xs":"",class:p([n(a)==="start"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",O,[o("button",{onClick:t[1]||(t[1]=s=>u("name"))},[c(" Hook name "),o("div",{"ml--1":"","text-xs":"",class:p([n(a)==="name"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",P,[o("button",{onClick:t[2]||(t[2]=s=>u("listener"))},[c(" Listeners "),o("div",{"ml--1":"","text-xs":"",class:p([n(a)==="listener"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",q,[o("button",{onClick:t[3]||(t[3]=s=>u("executions"))},[c(" Executions "),o("div",{"ml--1":"","text-xs":"",class:p([n(a)==="executions"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",M,[o("button",{onClick:t[4]||(t[4]=s=>u("duration"))},[c(" Duration "),o("div",{"ml--1":"","text-xs":"",class:p([n(a)==="duration"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),o("tbody",null,[(i(!0),m(T,null,F(n(x),s=>(i(),m("tr",{key:s.name,border:"b dashed transparent hover:base"},[o("td",R,_(n($).indexOf(s.start)),1),o("td",{"w-0":"","ws-nowrap":"","text-right":"",style:D({color:w(d(s.name))})},[o("code",G,_(d(s.name)),1)],4),o("td",J,[o("code",K,_(f(s.name)),1)]),o("td",Q,_(s.listeners),1),o("td",U,_(s.executions.length+1),1),o("td",W,[h(y,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),Y={class:"markdown-body"},Z=o("h1",null,"Hooks",-1),tt=o("p",null,[c("Hooks are an advanced API mainly for module authors or advanced use cases. The hooking system to expand almost every aspect of Nuxt. It’s powered by "),o("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),c(".")],-1),ot=o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),c(".")],-1),et=[Z,tt,ot],nt={__name:"hooks",setup(k,{expose:l}){return l({frontmatter:{}}),(r,b)=>(i(),m("div",Y,et))}},dt=S({__name:"hooks",setup(k){const l=I(),a=V(),r=v(()=>a.value?.getClientHooksMetrics());return(b,$)=>{const x=X,d=j,f=nt,w=L;return i(),m(T,null,[o("div",null,[n(r)?.length?(i(),H(d,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n(r).length}`,padding:"pl4 pr6"},{default:g(()=>[h(x,{hooks:n(r)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0),n(l)?.length?(i(),H(d,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${n(l)?.length}`,padding:"pl4 pr6"},{default:g(()=>[h(x,{hooks:n(l)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0)]),h(w,null,{default:g(()=>[h(f)]),_:1})],64)}}});export{dt as default};
@@ -1 +0,0 @@
1
- import{_ as z}from"./NSwitch.vue.e15ba847.js";import{_ as H}from"./Navbar.vue.1eab843e.js";import{_ as T}from"./FilepathItem.vue.063a2cdd.js";import{_ as j}from"./NMarkdown.vue.2a7f337d.js";import{a as C,p as v,a7 as P,o as e,c as h,w as f,f as r,v as b,i as _,u as t,l as M,h as l,F as w,t as D,q as S,s as q,k as O,an as N,a9 as L,ao as F,U as R,r as U,X as Y,a8 as G,I as B}from"./entry.f02d2ccc.js";import{a as J,u as K}from"./editor.721868d4.js";import{C as V,D as E}from"./constants.d7bcda3c.js";import{_ as Q}from"./NSectionBlock.2937e558.js";import{_ as W}from"./HelpFab.vue.044c905c.js";import"./client.4ef5790f.js";import"./NIconTitle.vue.19793f87.js";import"./NIconButton.vue.6924c323.js";const Z={"hover:text-primary":""},tt={key:0,"text-primary":""},et={"max-w-100":""},ot={px4:"",py3:"","text-sm":""},nt={flex:"~ gap2",n:"primary xs"},st={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},at={"text-sm":""},rt=r("span",{op50:""},"It has been referenced ",-1),it={"text-primary":""},lt=r("span",{op50:""}," times by:",-1),mt={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":""},ut={key:1,"text-sm":"",op50:""},ct=C({__name:"ComposableItem",props:{item:null,metadata:null,filepath:null},setup(u){const n=u,d=J(),i=K(),c=v(()=>n.item.as||n.item.name),o=v(()=>n.metadata?.injectionUsage?.[c.value]?.count||0),y=v(()=>n.metadata?.injectionUsage?.[c.value]?.moduleIds||[]),I=v(()=>{if(n.item.meta?.docsUrl)return n.item.meta.docsUrl;if(["nuxt","#app","nuxt3"].includes(n.item.from))return V.nuxt[n.item.name];if(n.item.from==="vue")return V.vue[n.item.name]});return(m,s)=>{const p=j,x=O,$=T,g=P("VDropdown");return e(),h(g,{disabled:!n.metadata},{popper:f(()=>[r("div",et,[r("div",ot,[u.item.meta?.description?(e(),h(p,{key:0,tag:"div",pb3:"","text-sm":"",markdown:u.item.meta.description},null,8,["markdown"])):b("",!0),r("div",nt,[_(x,{icon:"carbon-copy",onClick:s[0]||(s[0]=a=>t(d)(t(c)))},{default:f(()=>[M(" Copy ")]),_:1}),u.filepath?(e(),h(x,{key:0,icon:"carbon-code",onClick:s[1]||(s[1]=a=>u.filepath&&t(i)(u.filepath))},{default:f(()=>[M(" Source ")]),_:1})):b("",!0),t(I)?(e(),h(x,{key:1,icon:"carbon-catalog",to:t(I),target:"_blank"},{default:f(()=>[M(" Docs ")]),_:1},8,["to"])):b("",!0)])]),r("div",st,[t(o)?(e(),l(w,{key:0},[r("div",at,[rt,r("strong",it,D(t(o)),1),lt]),r("div",mt,[(e(!0),l(w,null,S(t(y),a=>(e(),h($,{key:a,filepath:a},null,8,["filepath"]))),128))])],64)):(e(),l("div",ut," Not in use via auto import. "))])])]),default:f(()=>[r("button",Z,[r("code",{rounded:"","bg-gray:5":"",px2:"",py1:"","font-mono":"","text-sm":"",class:q(u.metadata&&!t(o)?"op30 hover:op100":"")},[M(D(t(c))+" ",1),t(o)?(e(),l("sup",tt,"x"+D(t(o)),1)):b("",!0)],2)])]),_:1},8,["disabled"])}}}),pt={flex:"~ wrap gap2",p2:"",pl4:""},dt=C({__name:"ComposableTree",props:{map:null,root:null,metadata:null},setup(u){return(n,d)=>{const i=T,c=ct;return e(),l("div",null,[(e(!0),l(w,null,S(u.map.entries(),([o,y])=>(e(),l("div",{key:o},[_(i,{filepath:o,op50:"","hover:underline":""},null,8,["filepath"]),r("div",pt,[(e(!0),l(w,null,S(y,I=>(e(),h(c,{key:I.as,item:I,metadata:u.metadata,filepath:o.match(/^[\w@]/)?void 0:o},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),_t={key:0,flex:"~ col gap-2 items-start"},ft=C({__name:"HelpImportsDirs",setup(u){const n=N();return(d,i)=>{const c=T;return t(n)?.dirs?(e(),l("div",_t,[(e(!0),l(w,null,S(t(n).dirs,o=>(e(),h(c,{key:o,filepath:o,"text-primary":""},null,8,["filepath"]))),128))])):b("",!0)}}}),ht={flex:"~ gap-2 wrap",mb6:""},bt=C({__name:"HelpImportsModules",setup(u){const n=N(),d=v(()=>[...new Set(n.value?.imports.map(i=>L(i.from)).filter(i=>!!i&&!F(i)))]);return(i,c)=>(e(),l("div",ht,[(e(!0),l(w,null,S(t(d),o=>(e(),l("code",{key:o,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},D(o),1))),128))]))}}),vt={class:"markdown-body"},yt=r("h1",null,"Auto imports",-1),xt=r("p",null,"Nuxt auto-imports helper functions, composables and Vue APIs to use across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.",-1),gt=r("hr",null,null,-1),It=r("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1),$t=r("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1),kt=r("hr",null,null,-1),wt=r("p",null,[r("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more on the documentation")],-1),Mt={__name:"imports",setup(u,{expose:n}){return n({frontmatter:{}}),(i,c)=>{const o=ft,y=bt;return e(),l("div",vt,[yt,xt,gt,It,_(o),$t,_(y),kt,wt])}}},St={key:0,relative:"","h-full":"","of-auto":""},Ct={key:0},Ht=C({__name:"imports",setup(u){const n=R(),d=U(!1),i=U(""),c=N(),o=v(()=>c.value?.metadata),y=v(()=>c.value?.imports.filter(s=>s.as||s.name).sort((s,p)=>(s.as||s.name).localeCompare(p.as||p.name))||[]),I=v(()=>new Y(y.value,{keys:["from","as","name"]})),m=v(()=>{const s=new Map,p=new Map,x=new Map;let $=i.value?I.value.search(i.value).map(a=>a.item):y.value;d.value&&o.value&&($=$.filter(a=>(a.as||a.name)in o.value.injectionUsage));const g={user:0,lib:0,builtin:0};return $.forEach(a=>{const k=G(a.from)?F(L(a.from))?x:p:s;k.has(a.from)||k.set(a.from,[]),k.get(a.from).push(a),g[k===s?"user":k===p?"lib":"builtin"]++}),{user:s,lib:p,builtin:x,count:g}});return(s,p)=>{const x=z,$=H,g=dt,a=Q,k=Mt,X=W;return e(),l(w,null,[t(n)?(e(),l("div",St,[_($,{search:t(i),"onUpdate:search":p[1]||(p[1]=A=>B(i)?i.value=A:null),pb2:""},{default:f(()=>[t(o)?(e(),l("div",Ct,[_(x,{modelValue:t(d),"onUpdate:modelValue":p[0]||(p[0]=A=>B(d)?d.value=A:null),n:"primary sm"},{default:f(()=>[M(" Show used only ")]),_:1},8,["modelValue"])])):b("",!0)]),_:1},8,["search"]),t(m).user.size?(e(),h(a,{key:0,open:t(m).count.user<=("DETAILS_MAX_ITEMS"in s?s.DETAILS_MAX_ITEMS:t(E)),icon:"carbon-function",text:"User composables",description:`${t(m).count.user} composables from ${t(m).user.size} modules`},{default:f(()=>[_(g,{map:t(m).user,root:t(n).rootDir,metadata:t(o)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),t(m).builtin.size?(e(),h(a,{key:1,open:t(m).count.builtin<=("DETAILS_MAX_ITEMS"in s?s.DETAILS_MAX_ITEMS:t(E)),icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${t(m).count.builtin} composables`},{default:f(()=>[_(g,{map:t(m).builtin,root:t(n).rootDir,metadata:t(o)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),t(m).lib.size?(e(),h(a,{key:2,open:t(m).count.lib<=("DETAILS_MAX_ITEMS"in s?s.DETAILS_MAX_ITEMS:t(E)),icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${t(m).count.lib} composables from ${t(m).lib.size} packages`},{default:f(()=>[_(g,{map:t(m).lib,root:t(n).rootDir,metadata:t(o)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0)])):b("",!0),_(X,null,{default:f(()=>[_(k)]),_:1})],64)}}});export{Ht as default};