@techdocs/cli 0.0.0-nightly-20240712021724 → 0.0.0-nightly-20240713021735

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/CHANGELOG.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # @techdocs/cli
2
2
 
3
- ## 0.0.0-nightly-20240712021724
3
+ ## 0.0.0-nightly-20240713021735
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - c964a3d: Import discovery from backend-defaults instead of backend-common
8
8
  - Updated dependencies
9
- - @backstage/backend-defaults@0.0.0-nightly-20240712021724
10
- - @backstage/plugin-techdocs-node@0.0.0-nightly-20240712021724
9
+ - @backstage/backend-defaults@0.0.0-nightly-20240713021735
10
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20240713021735
11
11
  - @backstage/catalog-model@1.5.0
12
12
  - @backstage/cli-common@0.1.14
13
13
  - @backstage/config@1.2.0
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.48de2197.js"></script><script defer="defer" src="/static/module-material-ui.1eefc717.js"></script><script defer="defer" src="/static/module-lodash.1a2b8e11.js"></script><script defer="defer" src="/static/module-date-fns.196adaa7.js"></script><script defer="defer" src="/static/module-mui.6a6952b4.js"></script><script defer="defer" src="/static/module-material-table.892da5bc.js"></script><script defer="defer" src="/static/module-react-dom.3e65b8bc.js"></script><script defer="defer" src="/static/module-react-router.07ec2a81.js"></script><script defer="defer" src="/static/module-react-router-dom.ba9d01bf.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.8a51ed97.js"></script><script defer="defer" src="/static/module-zod.52dba18e.js"></script><script defer="defer" src="/static/module-i18next.40b7c233.js"></script><script defer="defer" src="/static/vendor.48de2197.js"></script><script defer="defer" src="/static/main.48de2197.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.13d7f252.js"></script><script defer="defer" src="/static/module-material-ui.1eefc717.js"></script><script defer="defer" src="/static/module-lodash.1a2b8e11.js"></script><script defer="defer" src="/static/module-date-fns.196adaa7.js"></script><script defer="defer" src="/static/module-mui.6a6952b4.js"></script><script defer="defer" src="/static/module-material-table.892da5bc.js"></script><script defer="defer" src="/static/module-react-dom.3e65b8bc.js"></script><script defer="defer" src="/static/module-react-router.07ec2a81.js"></script><script defer="defer" src="/static/module-react-router-dom.ba9d01bf.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.8a51ed97.js"></script><script defer="defer" src="/static/module-zod.52dba18e.js"></script><script defer="defer" src="/static/module-i18next.40b7c233.js"></script><script defer="defer" src="/static/vendor.13d7f252.js"></script><script defer="defer" src="/static/main.13d7f252.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -504,6 +504,6 @@ ${Yt.reduce((R,$)=>{var k;const G=(k=p.typography.htmlFontSize)!==null&&k!==void
504
504
  `],Qt=()=>(0,te.Ut)(),tn=()=>{const p=Qt(),R=(0,un.A)();return(0,i.useMemo)(()=>{const $={theme:R,sidebar:p};return Ge.reduce((k,G)=>k+G($),"")},[R,p])},gn=()=>{const p=tn();return(0,i.useCallback)(R=>(R.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${p}</style>`),R),[p])},_e=async(p,R)=>{let $;if(typeof p=="string")$=new DOMParser().parseFromString(p,"text/html").documentElement;else if(p instanceof Element)$=p;else throw new Error("dom is not a recognized type");for(const k of R)$=await k($);return $},Ye=(p,R,$)=>{const k=p==="src"&&R.endsWith(".svg"),G=!R.match(/^([a-z]*:)?\/\//i),tt=R.startsWith($);return k&&(G||tt)},Ln=({techdocsStorageApi:p,entityId:R,path:$})=>async k=>{const G=await p.getApiOrigin(),tt=async(rt,At)=>{for(const Mt of rt)if(Mt.hasAttribute(At)){const Wt=Mt.getAttribute(At);if(!Wt)return;const Zt=await p.getBaseUrl(Wt,R,$);if(Ye(At,Wt,G))try{const It=await(await fetch(Zt,{credentials:"include"})).text();Mt.setAttribute(At,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(It)))}`)}catch{Mt.setAttribute("alt",`Error: ${Wt}`)}else Mt.setAttribute(At,Zt)}};return await Promise.all([tt(k.querySelectorAll("img"),"src"),tt(k.querySelectorAll("script"),"src"),tt(k.querySelectorAll("source"),"src"),tt(k.querySelectorAll("link"),"href"),tt(k.querySelectorAll("a[download]"),"href")]),k},Mn=()=>p=>((($,k)=>{Array.from($).filter(G=>G.hasAttribute(k)).forEach(G=>{const tt=G.getAttribute(k);if(tt){tt.match(/^https?:\/\//i)&&G.setAttribute("target","_blank");try{const rt=Ne(window.location.href);G.setAttribute(k,new URL(tt,rt).toString())}catch{G.replaceWith(G.textContent||tt)}}})})(Array.from(p.getElementsByTagName("a")),"href"),p);function Ne(p){const R=new URL(p);return!R.pathname.endsWith("/")&&!R.pathname.endsWith(".html")&&(R.pathname+="/"),R.toString()}var Lo=t(27326);let Bn;Bn=Promise.resolve().then(t.t.bind(t,25873,19));function jn(p,R){Bn.then($=>{"createRoot"in $?$.createRoot(R).render(p):$.render(p,R)})}const qn=()=>p=>{const R=p.querySelector('.md-header label[for="__drawer"]'),$=p.querySelector("article");if(!R||!$)return p;const k=R.cloneNode();return jn(i.createElement(Lo.A),k),k.id="toggle-sidebar",k.title="Toggle Sidebar",k.classList.add("md-content__button"),k.style.setProperty("padding","0 0 0 5px"),k.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),$==null||$.prepend(k),p},Mo=()=>p=>{var R;return(R=p.querySelector(".md-header"))===null||R===void 0||R.remove(),p},Bo=()=>p=>{var R,$;return(R=p.querySelector(".md-footer .md-copyright"))===null||R===void 0||R.remove(),($=p.querySelector(".md-footer-copyright"))===null||$===void 0||$.remove(),p};var jo=t(36021),Uo=t(90292),$o=t(52536),Fo=t.n($o);const No=p=>R=>{var $;const k=R.querySelector('[title="Edit this page"]');if(!k||!k.href)return R;const G=new URL(k.href),tt=p.byUrl(G);if((tt==null?void 0:tt.type)!=="github"&&(tt==null?void 0:tt.type)!=="gitlab")return R;const rt=(($=R.querySelector("article>h1"))===null||$===void 0?void 0:$.childNodes[0].textContent)||"",At=encodeURIComponent(`Documentation Feedback: ${rt}`),Mt=encodeURIComponent(`Page source:
505
505
  ${k.href}
506
506
 
507
- Feedback:`),Wt=(tt==null?void 0:tt.type)==="github"?(0,jo.F)(G.href,"blob"):G.href,Zt=Fo()(Wt),kt=`/${Zt.organization}/${Zt.name}`,It=k.cloneNode();switch(tt==null?void 0:tt.type){case"gitlab":It.href=`${G.origin}${kt}/issues/new?issue[title]=${At}&issue[description]=${Mt}`;break;case"github":It.href=`${G.origin}${kt}/issues/new?title=${At}&body=${Mt}`;break;default:return R}return jn(i.createElement(Uo.A),It),It.style.paddingLeft="5px",It.title="Leave feedback for this page",It.id="git-feedback-link",k==null||k.insertAdjacentElement("beforebegin",It),R},to=()=>p=>(setTimeout(()=>{const R=p==null?void 0:p.querySelectorAll("li.md-nav__item--active");R.length!==0&&(R.forEach(k=>{const G=k==null?void 0:k.querySelector("input");G!=null&&G.checked||G==null||G.click()}),R[R.length-1].scrollIntoView())},200),p);var Wo=t(50868),ko=t(10437),eo=t(71677),no=t(87051),Ko=t(36338);const Un=(0,no.A)(p=>({tooltip:{fontSize:"inherit",color:p.palette.text.primary,margin:0,padding:p.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(eo.Ay),$n=()=>(0,o.jsx)(ko.A,{children:(0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})}),zo=({text:p})=>{const[R,$]=(0,i.useState)(!1),[,k]=(0,Ko.A)(),G=(0,i.useCallback)(()=>{k(p),$(!0)},[p,k]),tt=(0,i.useCallback)(()=>{$(!1)},[$]);return(0,o.jsx)(Un,{title:"Copied to clipboard",placement:"left",open:R,onClose:tt,leaveDelay:1e3,children:(0,o.jsx)(jt.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:G,children:(0,o.jsx)($n,{})})})},oo=p=>R=>{const $=R.querySelectorAll("pre > code");for(const G of $){var k;const tt=G.textContent||"",rt=document.createElement("div");G==null||(k=G.parentElement)===null||k===void 0||k.prepend(rt),jn((0,o.jsx)(Wo.A,{theme:p,children:(0,o.jsx)(zo,{text:tt})}),rt)}return R},so=({baseUrl:p,onClick:R})=>$=>(Array.from($.getElementsByTagName("a")).forEach(k=>{k.addEventListener("click",G=>{const rt=k.getAttribute("href");rt&&rt.startsWith(p)&&!k.hasAttribute("download")&&(G.preventDefault(),R(G,rt))})}),$),ro=({onLoading:p,onLoaded:R})=>$=>(p(),$.addEventListener(y,function k(){R(),$.removeEventListener(y,k)}),$);function Ho(p,R){const $=new URL(R),k=`${$.origin}${$.pathname.replace(/\/$/,"")}`,G=p.replace(k,"").replace(/^\/+/,""),tt=new URL(`http://localhost/${G}`);return`${tt.pathname}${tt.search}${tt.hash}`}function _o(){const p=(0,Ht.Zp)(),$=(0,Z.gf)(q.U).getOptionalString("app.baseUrl");return(0,i.useCallback)(G=>{let tt=G;if($)try{tt=Ho(G,$)}catch{}p(tt)},[p,$])}const Vo="screen and (max-width: 76.1875em)",Go=p=>{const R=_o(),$=(0,un.A)(),k=(0,He.A)(Vo),G=Pt(),tt=gn(),rt=(0,_.s)(),At=(0,Z.gf)(Ze.s),Mt=(0,Z.gf)(Tn.Y),{state:Wt,path:Zt,content:kt}=me(),[It,ee]=(0,i.useState)(null),xe=h(It),Jt=(0,i.useCallback)(()=>{if(!It)return;It.querySelectorAll(".md-sidebar").forEach(Gt=>{if(k)Gt.style.top="0px";else{var Xt;const Ue=(Xt=document)===null||Xt===void 0?void 0:Xt.querySelector(".techdocs-reader-page");var Ce;const ce=(Ce=Ue==null?void 0:Ue.getBoundingClientRect().top)!==null&&Ce!==void 0?Ce:0;var Pe;let Wn=(Pe=It.getBoundingClientRect().top)!==null&&Pe!==void 0?Pe:0;const kn=It.querySelector(".md-container > .md-tabs");var Qe;const Zo=(Qe=kn==null?void 0:kn.getBoundingClientRect().height)!==null&&Qe!==void 0?Qe:0;Wn<ce&&(Wn=ce);const vn=Math.max(Wn,0)+Zo;Gt.style.top=`${vn}px`;const Kn=It.querySelector(".md-container > .md-footer");var pe;const yn=(pe=Kn==null?void 0:Kn.getBoundingClientRect().top)!==null&&pe!==void 0?pe:window.innerHeight;Gt.style.height=`${yn-vn}px`}Gt.style.setProperty("opacity","1")})},[It,k]);(0,i.useEffect)(()=>(window.addEventListener("resize",Jt),window.addEventListener("scroll",Jt,!0),()=>{window.removeEventListener("resize",Jt),window.removeEventListener("scroll",Jt,!0)}),[It,Jt]);const ne=(0,i.useCallback)(()=>{if(!It)return;const Dt=It.querySelector(".md-footer");Dt&&(Dt.style.width=`${It.getBoundingClientRect().width}px`)},[It]);(0,i.useEffect)(()=>(window.addEventListener("resize",ne),()=>{window.removeEventListener("resize",ne)}),[It,ne]),(0,i.useEffect)(()=>{xe||(ne(),Jt())},[Wt,xe,ne,Jt]);const oe=(0,i.useCallback)((Dt,Gt)=>_e(Dt,[G,Ln({techdocsStorageApi:At,entityId:p,path:Gt}),Mn(),qn(),Mo(),Bo(),No(Mt),tt]),[p,Mt,At,G,tt]),de=(0,i.useCallback)(async Dt=>_e(Dt,[to(),oo($),so({baseUrl:window.location.origin,onClick:(Gt,Xt)=>{var Ce;const Pe=Gt.ctrlKey||Gt.metaKey,Qe=new URL(Xt),pe=((Ce=Gt.target)===null||Ce===void 0?void 0:Ce.innerText)||Xt,Ue=Xt.replace(window.location.origin,"");if(rt.captureEvent("click",pe,{attributes:{to:Ue}}),Qe.hash)if(Pe)window.open(Xt,"_blank");else{var ce;R(Xt),Dt==null||(ce=Dt.querySelector(`[id="${Qe.hash.slice(1)}"]`))===null||ce===void 0||ce.scrollIntoView()}else Pe?window.open(Xt,"_blank"):R(Xt)}}),ro({onLoading:()=>{},onLoaded:()=>{var Gt;(Gt=Dt.querySelector(".md-nav__title"))===null||Gt===void 0||Gt.removeAttribute("for")}}),ro({onLoading:()=>{Array.from(Dt.querySelectorAll(".md-sidebar")).forEach(Xt=>{Xt.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[$,R,rt]);return(0,i.useEffect)(()=>{if(!kt)return()=>{};let Dt=!0;return oe(kt,Zt).then(async Gt=>{if(!(Gt!=null&&Gt.innerHTML)||!Dt)return;window.scroll({top:0});const Xt=await de(Gt);ee(Xt)}),()=>{Dt=!1}},[kt,Zt,oe,de]),It};var Fn=t(41883),Yo=t(72020),Nn=t(99730);const Qo=()=>{const p=(0,Yo.YR)(),{shadowRoot:R}=(0,v.V)(),$=R==null?void 0:R.querySelector('[data-md-component="content"]'),k=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let G=k==null?void 0:k.querySelector('[data-techdocs-addons-location="primary sidebar"]');G||(G=document.createElement("div"),G.setAttribute("data-techdocs-addons-location","primary sidebar"),k==null||k.prepend(G));const tt=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let rt=tt==null?void 0:tt.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return rt||(rt=document.createElement("div"),rt.setAttribute("data-techdocs-addons-location","secondary sidebar"),tt==null||tt.prepend(rt)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Fn.A,{container:G,children:p.renderComponentsByLocation(Nn.e.PrimarySidebar)}),(0,o.jsx)(Fn.A,{container:$,children:p.renderComponentsByLocation(Nn.e.Content)}),(0,o.jsx)(Fn.A,{container:rt,children:p.renderComponentsByLocation(Nn.e.SecondarySidebar)})]})},io=(0,w.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),ao=Je(p=>{var R;const{withSearch:$=!0,onReady:k}=p,G=io(),{entityMetadata:{value:tt,loading:rt},entityRef:At,setShadowRoot:Mt}=(0,v.V)(),Wt=Go(At),Zt=window.location.pathname,kt=window.location.hash,It=h(Wt),[ee]=P([`[id="${kt.slice(1)}"]`]);(0,i.useEffect)(()=>{if(!It)if(kt)ee&&ee.scrollIntoView();else{var Jt,ne;(ne=document)===null||ne===void 0||(Jt=ne.querySelector("header"))===null||Jt===void 0||Jt.scrollIntoView()}},[Zt,kt,ee,It]);const xe=(0,i.useCallback)(Jt=>{Mt(Jt),k instanceof Function&&k()},[Mt,k]);return rt===!1&&!tt?(0,o.jsx)(L.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Wt?(0,o.jsx)(C.U,{children:(0,o.jsxs)(d.A,{container:!0,children:[(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(Fe,{})}),$&&(0,o.jsx)(d.A,{className:G.search,xs:"auto",item:!0,children:(0,o.jsx)(Re,{entityId:At,entityTitle:tt==null||(R=tt.metadata)===null||R===void 0?void 0:R.title})}),(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(S,{element:Wt,onAppend:xe,children:(0,o.jsx)(Qo,{})})})]})}):(0,o.jsx)(C.U,{children:(0,o.jsx)(d.A,{container:!0,children:(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(Fe,{})})})})}),Rt=null},45061:(J,T,t)=>{"use strict";t.d(T,{T:()=>ot});var o=t(31085),i=t(14041),d=t(93285),w=t(42899),v=t(4387),m=t(13660),g=t(72020),c=t(86892),A=t(99730),y=t(67871),O=t(8859),h=t(34428),S=t(51372),f=t(58837),j=t(268),P=t(72501),x=t(72072);const U=(0,f.A)(q=>({root:{textAlign:"left"},label:{color:q.page.fontColor,fontWeight:q.typography.fontWeightBold,letterSpacing:0,fontSize:q.typography.fontSize,marginBottom:q.spacing(1)/2,lineHeight:1},value:{color:(0,j.X4)(q.page.fontColor,.8),fontSize:q.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),L=({value:q,className:ht,typographyRootComponent:ut})=>(0,o.jsx)(P.A,{component:ut!=null?ut:typeof q=="string"?"p":"span",className:ht,children:q});function C(q){const{label:ht,value:ut,url:Ot,contentTypograpyRootComponent:Tt}=q,Et=U(),gt=(0,o.jsx)(L,{className:Et.value,value:ut||"<Unknown>",typographyRootComponent:Tt});return(0,o.jsx)(w.A,{item:!0,children:(0,o.jsxs)(P.A,{component:"span",className:Et.root,children:[(0,o.jsx)(P.A,{className:Et.label,children:ht}),Ot?(0,o.jsx)(x.N_,{to:Ot,children:gt}):gt]})})}var z=t(69814),H=t(72427),Y=t(65461),W=t(9222),K=t(45250),Z=t(82779);const _=(0,o.jsx)(v.A,{animation:"wave",variant:"text",height:40}),ot=q=>{const{children:ht}=q,ut=(0,g.YR)(),Ot=(0,H.gf)(Y.U),{title:Tt,setTitle:Et,subtitle:gt,setSubtitle:xt,entityRef:ct,metadata:{value:it,loading:bt},entityMetadata:{value:pt,loading:St}}=(0,c.V)();(0,i.useEffect)(()=>{it&&(Et(it.site_name),xt(()=>{let{site_description:mt}=it;return(!mt||mt==="None")&&(mt=""),mt}))},[it,Et,xt]);const jt=Ot.getOptional("app.title")||"Backstage",Bt=[Tt,gt,jt].filter(Boolean).join(" | "),{locationMetadata:Ut,spec:Ct}=pt||{},F=Ct==null?void 0:Ct.lifecycle,V=pt?(0,y.t)(pt,S.vv):[],lt=(0,W.S)(Z.rQ)(),dt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(C,{label:(0,K.capitalize)((pt==null?void 0:pt.kind)||"entity"),value:(0,o.jsx)(O.z,{color:"inherit",entityRef:ct,title:pt==null?void 0:pt.metadata.title,defaultKind:"Component"})}),V.length>0&&(0,o.jsx)(C,{label:"Owner",value:(0,o.jsx)(h.i,{color:"inherit",entityRefs:V,defaultKind:"group"})}),F?(0,o.jsx)(C,{label:"Lifecycle",value:String(F)}):null,Ut&&Ut.type!=="dir"&&Ut.type!=="file"?(0,o.jsx)(C,{label:"",value:(0,o.jsxs)(w.A,{container:!0,direction:"column",alignItems:"center",children:[(0,o.jsx)(w.A,{style:{padding:0},item:!0,children:(0,o.jsx)(m.A,{style:{marginTop:"-25px"}})}),(0,o.jsx)(w.A,{style:{padding:0},item:!0,children:"Source"})]}),url:Ut.target}):null]});return!St&&pt===void 0||!bt&&it===void 0?null:(0,o.jsxs)(z.Y,{type:"Documentation",typeLink:lt,title:Tt||_,subtitle:gt===""?void 0:gt||_,children:[(0,o.jsx)(d.A,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:Bt})}),dt,ht,ut.renderComponentsByLocation(A.e.Header)]})}},82779:(J,T,t)=>{"use strict";t.d(T,{Oc:()=>d,Ri:()=>w,rQ:()=>i});var o=t(34569);const i=(0,o.H)({id:"techdocs:index-page"}),d=(0,o.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),w=(0,o.H)({id:"techdocs:catalog-reader-view"})},27698:(J,T,t)=>{"use strict";t.r(T),t.d(T,{TechDocsSearchResultListItem:()=>y});var o=t(31085),i=t(14041),d=t(46423),w=t(5951),v=t(58837),m=t(72501),g=t(72072),c=t(70734);const A=(0,v.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),y=O=>{const{result:h,highlight:S,lineClamp:f=5,asListItem:j=!0,asLink:P=!0,title:x,icon:U}=O,L=A(),C=({children:Y})=>P?(0,o.jsx)(g.N_,{noTrack:!0,to:h.location,children:Y}):(0,o.jsx)(o.Fragment,{children:Y}),z=()=>{const Y=S!=null&&S.fields.title?(0,o.jsx)(c.e,{text:S.fields.title,preTag:S.preTag,postTag:S.postTag}):h.title,W=S!=null&&S.fields.entityTitle?(0,o.jsx)(c.e,{text:S.fields.entityTitle,preTag:S.preTag,postTag:S.postTag}):h.entityTitle,K=S!=null&&S.fields.name?(0,o.jsx)(c.e,{text:S.fields.name,preTag:S.preTag,postTag:S.postTag}):h.name;return h?(0,o.jsx)(w.A,{className:L.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(C,{children:x||(0,o.jsxs)(o.Fragment,{children:[Y," | ",W!=null?W:K," docs"]})}),secondary:(0,o.jsx)(m.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:f,overflow:"hidden"},color:"textSecondary",variant:"body2",children:S!=null&&S.fields.text?(0,o.jsx)(c.e,{text:S.fields.text,preTag:S.preTag,postTag:S.postTag}):h.text})}):null},H=({children:Y})=>j?(0,o.jsxs)(o.Fragment,{children:[U&&(0,o.jsx)(d.A,{children:typeof U=="function"?U(h):U}),(0,o.jsx)("div",{className:L.flexContainer,children:Y})]}):(0,o.jsx)(o.Fragment,{children:Y});return(0,o.jsx)(H,{children:(0,o.jsx)(z,{})})}},86973:()=>{}},J=>{var T=o=>J(J.s=o);J.O(0,[1751,1888,5067,1678,235,6587,2754,9669,1975,5042,7400,4121],()=>T(85318));var t=J.O()}]);})();
507
+ Feedback:`),Wt=(tt==null?void 0:tt.type)==="github"?(0,jo.F)(G.href,"blob"):G.href,Zt=Fo()(Wt),kt=`/${Zt.organization}/${Zt.name}`,It=k.cloneNode();switch(tt==null?void 0:tt.type){case"gitlab":It.href=`${G.origin}${kt}/issues/new?issue[title]=${At}&issue[description]=${Mt}`;break;case"github":It.href=`${G.origin}${kt}/issues/new?title=${At}&body=${Mt}`;break;default:return R}return jn(i.createElement(Uo.A),It),It.style.paddingLeft="5px",It.title="Leave feedback for this page",It.id="git-feedback-link",k==null||k.insertAdjacentElement("beforebegin",It),R},to=()=>p=>(setTimeout(()=>{const R=p==null?void 0:p.querySelectorAll("li.md-nav__item--active");R.length!==0&&(R.forEach(k=>{const G=k==null?void 0:k.querySelector("input");G!=null&&G.checked||G==null||G.click()}),R[R.length-1].scrollIntoView())},200),p);var Wo=t(50868),ko=t(10437),eo=t(71677),no=t(87051),Ko=t(36338);const Un=(0,no.A)(p=>({tooltip:{fontSize:"inherit",color:p.palette.text.primary,margin:0,padding:p.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(eo.Ay),$n=()=>(0,o.jsx)(ko.A,{children:(0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})}),zo=({text:p})=>{const[R,$]=(0,i.useState)(!1),[,k]=(0,Ko.A)(),G=(0,i.useCallback)(()=>{k(p),$(!0)},[p,k]),tt=(0,i.useCallback)(()=>{$(!1)},[$]);return(0,o.jsx)(Un,{title:"Copied to clipboard",placement:"left",open:R,onClose:tt,leaveDelay:1e3,children:(0,o.jsx)(jt.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:G,children:(0,o.jsx)($n,{})})})},oo=p=>R=>{const $=R.querySelectorAll("pre > code");for(const G of $){var k;const tt=G.textContent||"",rt=document.createElement("div");G==null||(k=G.parentElement)===null||k===void 0||k.prepend(rt),jn((0,o.jsx)(Wo.A,{theme:p,children:(0,o.jsx)(zo,{text:tt})}),rt)}return R},so=({baseUrl:p,onClick:R})=>$=>(Array.from($.getElementsByTagName("a")).forEach(k=>{k.addEventListener("click",G=>{const rt=k.getAttribute("href");rt&&rt.startsWith(p)&&!k.hasAttribute("download")&&(G.preventDefault(),R(G,rt))})}),$),ro=({onLoading:p,onLoaded:R})=>$=>(p(),$.addEventListener(y,function k(){R(),$.removeEventListener(y,k)}),$);function Ho(p,R){const $=new URL(R),k=`${$.origin}${$.pathname.replace(/\/$/,"")}`,G=p.replace(k,"").replace(/^\/+/,""),tt=new URL(`http://localhost/${G}`);return`${tt.pathname}${tt.search}${tt.hash}`}function _o(){const p=(0,i.useRef)((0,Ht.Zp)()),$=(0,Z.gf)(q.U).getOptionalString("app.baseUrl");return(0,i.useCallback)(G=>{let tt=G;if($)try{tt=Ho(G,$)}catch{}p.current(tt)},[$])}const Vo="screen and (max-width: 76.1875em)",Go=p=>{const R=_o(),$=(0,un.A)(),k=(0,He.A)(Vo),G=Pt(),tt=gn(),rt=(0,_.s)(),At=(0,Z.gf)(Ze.s),Mt=(0,Z.gf)(Tn.Y),{state:Wt,path:Zt,content:kt}=me(),[It,ee]=(0,i.useState)(null),xe=h(It),Jt=(0,i.useCallback)(()=>{if(!It)return;It.querySelectorAll(".md-sidebar").forEach(Gt=>{if(k)Gt.style.top="0px";else{var Xt;const Ue=(Xt=document)===null||Xt===void 0?void 0:Xt.querySelector(".techdocs-reader-page");var Ce;const ce=(Ce=Ue==null?void 0:Ue.getBoundingClientRect().top)!==null&&Ce!==void 0?Ce:0;var Pe;let Wn=(Pe=It.getBoundingClientRect().top)!==null&&Pe!==void 0?Pe:0;const kn=It.querySelector(".md-container > .md-tabs");var Qe;const Zo=(Qe=kn==null?void 0:kn.getBoundingClientRect().height)!==null&&Qe!==void 0?Qe:0;Wn<ce&&(Wn=ce);const vn=Math.max(Wn,0)+Zo;Gt.style.top=`${vn}px`;const Kn=It.querySelector(".md-container > .md-footer");var pe;const yn=(pe=Kn==null?void 0:Kn.getBoundingClientRect().top)!==null&&pe!==void 0?pe:window.innerHeight;Gt.style.height=`${yn-vn}px`}Gt.style.setProperty("opacity","1")})},[It,k]);(0,i.useEffect)(()=>(window.addEventListener("resize",Jt),window.addEventListener("scroll",Jt,!0),()=>{window.removeEventListener("resize",Jt),window.removeEventListener("scroll",Jt,!0)}),[It,Jt]);const ne=(0,i.useCallback)(()=>{if(!It)return;const Dt=It.querySelector(".md-footer");Dt&&(Dt.style.width=`${It.getBoundingClientRect().width}px`)},[It]);(0,i.useEffect)(()=>(window.addEventListener("resize",ne),()=>{window.removeEventListener("resize",ne)}),[It,ne]),(0,i.useEffect)(()=>{xe||(ne(),Jt())},[Wt,xe,ne,Jt]);const oe=(0,i.useCallback)((Dt,Gt)=>_e(Dt,[G,Ln({techdocsStorageApi:At,entityId:p,path:Gt}),Mn(),qn(),Mo(),Bo(),No(Mt),tt]),[p,Mt,At,G,tt]),de=(0,i.useCallback)(async Dt=>_e(Dt,[to(),oo($),so({baseUrl:window.location.origin,onClick:(Gt,Xt)=>{var Ce;const Pe=Gt.ctrlKey||Gt.metaKey,Qe=new URL(Xt),pe=((Ce=Gt.target)===null||Ce===void 0?void 0:Ce.innerText)||Xt,Ue=Xt.replace(window.location.origin,"");if(rt.captureEvent("click",pe,{attributes:{to:Ue}}),Qe.hash)if(Pe)window.open(Xt,"_blank");else{var ce;R(Xt),Dt==null||(ce=Dt.querySelector(`[id="${Qe.hash.slice(1)}"]`))===null||ce===void 0||ce.scrollIntoView()}else Pe?window.open(Xt,"_blank"):R(Xt)}}),ro({onLoading:()=>{},onLoaded:()=>{var Gt;(Gt=Dt.querySelector(".md-nav__title"))===null||Gt===void 0||Gt.removeAttribute("for")}}),ro({onLoading:()=>{Array.from(Dt.querySelectorAll(".md-sidebar")).forEach(Xt=>{Xt.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[$,R,rt]);return(0,i.useEffect)(()=>{if(!kt)return()=>{};let Dt=!0;return oe(kt,Zt).then(async Gt=>{if(!(Gt!=null&&Gt.innerHTML)||!Dt)return;window.scroll({top:0});const Xt=await de(Gt);ee(Xt)}),()=>{Dt=!1}},[kt,Zt,oe,de]),It};var Fn=t(41883),Yo=t(72020),Nn=t(99730);const Qo=()=>{const p=(0,Yo.YR)(),{shadowRoot:R}=(0,v.V)(),$=R==null?void 0:R.querySelector('[data-md-component="content"]'),k=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let G=k==null?void 0:k.querySelector('[data-techdocs-addons-location="primary sidebar"]');G||(G=document.createElement("div"),G.setAttribute("data-techdocs-addons-location","primary sidebar"),k==null||k.prepend(G));const tt=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let rt=tt==null?void 0:tt.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return rt||(rt=document.createElement("div"),rt.setAttribute("data-techdocs-addons-location","secondary sidebar"),tt==null||tt.prepend(rt)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Fn.A,{container:G,children:p.renderComponentsByLocation(Nn.e.PrimarySidebar)}),(0,o.jsx)(Fn.A,{container:$,children:p.renderComponentsByLocation(Nn.e.Content)}),(0,o.jsx)(Fn.A,{container:rt,children:p.renderComponentsByLocation(Nn.e.SecondarySidebar)})]})},io=(0,w.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),ao=Je(p=>{var R;const{withSearch:$=!0,onReady:k}=p,G=io(),{entityMetadata:{value:tt,loading:rt},entityRef:At,setShadowRoot:Mt}=(0,v.V)(),Wt=Go(At),Zt=window.location.pathname,kt=window.location.hash,It=h(Wt),[ee]=P([`[id="${kt.slice(1)}"]`]);(0,i.useEffect)(()=>{if(!It)if(kt)ee&&ee.scrollIntoView();else{var Jt,ne;(ne=document)===null||ne===void 0||(Jt=ne.querySelector("header"))===null||Jt===void 0||Jt.scrollIntoView()}},[Zt,kt,ee,It]);const xe=(0,i.useCallback)(Jt=>{Mt(Jt),k instanceof Function&&k()},[Mt,k]);return rt===!1&&!tt?(0,o.jsx)(L.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Wt?(0,o.jsx)(C.U,{children:(0,o.jsxs)(d.A,{container:!0,children:[(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(Fe,{})}),$&&(0,o.jsx)(d.A,{className:G.search,xs:"auto",item:!0,children:(0,o.jsx)(Re,{entityId:At,entityTitle:tt==null||(R=tt.metadata)===null||R===void 0?void 0:R.title})}),(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(S,{element:Wt,onAppend:xe,children:(0,o.jsx)(Qo,{})})})]})}):(0,o.jsx)(C.U,{children:(0,o.jsx)(d.A,{container:!0,children:(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(Fe,{})})})})}),Rt=null},45061:(J,T,t)=>{"use strict";t.d(T,{T:()=>ot});var o=t(31085),i=t(14041),d=t(93285),w=t(42899),v=t(4387),m=t(13660),g=t(72020),c=t(86892),A=t(99730),y=t(67871),O=t(8859),h=t(34428),S=t(51372),f=t(58837),j=t(268),P=t(72501),x=t(72072);const U=(0,f.A)(q=>({root:{textAlign:"left"},label:{color:q.page.fontColor,fontWeight:q.typography.fontWeightBold,letterSpacing:0,fontSize:q.typography.fontSize,marginBottom:q.spacing(1)/2,lineHeight:1},value:{color:(0,j.X4)(q.page.fontColor,.8),fontSize:q.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),L=({value:q,className:ht,typographyRootComponent:ut})=>(0,o.jsx)(P.A,{component:ut!=null?ut:typeof q=="string"?"p":"span",className:ht,children:q});function C(q){const{label:ht,value:ut,url:Ot,contentTypograpyRootComponent:Tt}=q,Et=U(),gt=(0,o.jsx)(L,{className:Et.value,value:ut||"<Unknown>",typographyRootComponent:Tt});return(0,o.jsx)(w.A,{item:!0,children:(0,o.jsxs)(P.A,{component:"span",className:Et.root,children:[(0,o.jsx)(P.A,{className:Et.label,children:ht}),Ot?(0,o.jsx)(x.N_,{to:Ot,children:gt}):gt]})})}var z=t(69814),H=t(72427),Y=t(65461),W=t(9222),K=t(45250),Z=t(82779);const _=(0,o.jsx)(v.A,{animation:"wave",variant:"text",height:40}),ot=q=>{const{children:ht}=q,ut=(0,g.YR)(),Ot=(0,H.gf)(Y.U),{title:Tt,setTitle:Et,subtitle:gt,setSubtitle:xt,entityRef:ct,metadata:{value:it,loading:bt},entityMetadata:{value:pt,loading:St}}=(0,c.V)();(0,i.useEffect)(()=>{it&&(Et(it.site_name),xt(()=>{let{site_description:mt}=it;return(!mt||mt==="None")&&(mt=""),mt}))},[it,Et,xt]);const jt=Ot.getOptional("app.title")||"Backstage",Bt=[Tt,gt,jt].filter(Boolean).join(" | "),{locationMetadata:Ut,spec:Ct}=pt||{},F=Ct==null?void 0:Ct.lifecycle,V=pt?(0,y.t)(pt,S.vv):[],lt=(0,W.S)(Z.rQ)(),dt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(C,{label:(0,K.capitalize)((pt==null?void 0:pt.kind)||"entity"),value:(0,o.jsx)(O.z,{color:"inherit",entityRef:ct,title:pt==null?void 0:pt.metadata.title,defaultKind:"Component"})}),V.length>0&&(0,o.jsx)(C,{label:"Owner",value:(0,o.jsx)(h.i,{color:"inherit",entityRefs:V,defaultKind:"group"})}),F?(0,o.jsx)(C,{label:"Lifecycle",value:String(F)}):null,Ut&&Ut.type!=="dir"&&Ut.type!=="file"?(0,o.jsx)(C,{label:"",value:(0,o.jsxs)(w.A,{container:!0,direction:"column",alignItems:"center",children:[(0,o.jsx)(w.A,{style:{padding:0},item:!0,children:(0,o.jsx)(m.A,{style:{marginTop:"-25px"}})}),(0,o.jsx)(w.A,{style:{padding:0},item:!0,children:"Source"})]}),url:Ut.target}):null]});return!St&&pt===void 0||!bt&&it===void 0?null:(0,o.jsxs)(z.Y,{type:"Documentation",typeLink:lt,title:Tt||_,subtitle:gt===""?void 0:gt||_,children:[(0,o.jsx)(d.A,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:Bt})}),dt,ht,ut.renderComponentsByLocation(A.e.Header)]})}},82779:(J,T,t)=>{"use strict";t.d(T,{Oc:()=>d,Ri:()=>w,rQ:()=>i});var o=t(34569);const i=(0,o.H)({id:"techdocs:index-page"}),d=(0,o.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),w=(0,o.H)({id:"techdocs:catalog-reader-view"})},27698:(J,T,t)=>{"use strict";t.r(T),t.d(T,{TechDocsSearchResultListItem:()=>y});var o=t(31085),i=t(14041),d=t(46423),w=t(5951),v=t(58837),m=t(72501),g=t(72072),c=t(70734);const A=(0,v.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),y=O=>{const{result:h,highlight:S,lineClamp:f=5,asListItem:j=!0,asLink:P=!0,title:x,icon:U}=O,L=A(),C=({children:Y})=>P?(0,o.jsx)(g.N_,{noTrack:!0,to:h.location,children:Y}):(0,o.jsx)(o.Fragment,{children:Y}),z=()=>{const Y=S!=null&&S.fields.title?(0,o.jsx)(c.e,{text:S.fields.title,preTag:S.preTag,postTag:S.postTag}):h.title,W=S!=null&&S.fields.entityTitle?(0,o.jsx)(c.e,{text:S.fields.entityTitle,preTag:S.preTag,postTag:S.postTag}):h.entityTitle,K=S!=null&&S.fields.name?(0,o.jsx)(c.e,{text:S.fields.name,preTag:S.preTag,postTag:S.postTag}):h.name;return h?(0,o.jsx)(w.A,{className:L.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(C,{children:x||(0,o.jsxs)(o.Fragment,{children:[Y," | ",W!=null?W:K," docs"]})}),secondary:(0,o.jsx)(m.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:f,overflow:"hidden"},color:"textSecondary",variant:"body2",children:S!=null&&S.fields.text?(0,o.jsx)(c.e,{text:S.fields.text,preTag:S.preTag,postTag:S.postTag}):h.text})}):null},H=({children:Y})=>j?(0,o.jsxs)(o.Fragment,{children:[U&&(0,o.jsx)(d.A,{children:typeof U=="function"?U(h):U}),(0,o.jsx)("div",{className:L.flexContainer,children:Y})]}):(0,o.jsx)(o.Fragment,{children:Y});return(0,o.jsx)(H,{children:(0,o.jsx)(z,{})})}},86973:()=>{}},J=>{var T=o=>J(J.s=o);J.O(0,[1751,1888,5067,1678,235,6587,2754,9669,1975,5042,7400,4121],()=>T(85318));var t=J.O()}]);})();
508
508
 
509
- //# sourceMappingURL=main.48de2197.js.map
509
+ //# sourceMappingURL=main.13d7f252.js.map