@techdocs/cli 0.0.0-nightly-20240928023157 → 0.0.0-nightly-20240929023448

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,15 +1,15 @@
1
1
  # @techdocs/cli
2
2
 
3
- ## 0.0.0-nightly-20240928023157
3
+ ## 0.0.0-nightly-20240929023448
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies
8
- - @backstage/backend-defaults@0.0.0-nightly-20240928023157
8
+ - @backstage/backend-defaults@0.0.0-nightly-20240929023448
9
9
  - @backstage/catalog-model@1.7.0
10
10
  - @backstage/cli-common@0.1.14
11
11
  - @backstage/config@1.2.0
12
- - @backstage/plugin-techdocs-node@0.0.0-nightly-20240928023157
12
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20240929023448
13
13
 
14
14
  ## 1.8.20-next.0
15
15
 
@@ -1032,52 +1032,52 @@
1032
1032
  }
1033
1033
  },
1034
1034
  {
1035
- "path": "../../node_modules/@oriflame/backstage-plugin-score-card/config.d.ts",
1035
+ "path": "../../node_modules/@backstage-community/plugin-stackstorm/config.d.ts",
1036
1036
  "value": {
1037
1037
  "type": "object",
1038
1038
  "properties": {
1039
- "scorecards": {
1040
- "description": "Extra configuration for score card plugin",
1039
+ "stackstorm": {
1041
1040
  "type": "object",
1042
1041
  "properties": {
1043
- "jsonDataUrl": {
1044
- "description": "The public absolute root URL with json file defining the score card entries.",
1045
- "visibility": "frontend",
1046
- "type": "string"
1047
- },
1048
- "wikiLinkTemplate": {
1049
- "description": "The template for the link to the wiki, e.g. \"https://TBD/XXX/_wiki/wikis/XXX.wiki/{id}\"",
1042
+ "webUrl": {
1043
+ "description": "StackStorm Web UI url\nUsed in links to StackStorm web UI",
1050
1044
  "visibility": "frontend",
1051
1045
  "type": "string"
1052
1046
  }
1053
- }
1047
+ },
1048
+ "required": [
1049
+ "webUrl"
1050
+ ]
1054
1051
  }
1055
1052
  },
1056
- "required": [
1057
- "scorecards"
1058
- ],
1059
1053
  "$schema": "http://json-schema.org/draft-07/schema#"
1060
1054
  }
1061
1055
  },
1062
1056
  {
1063
- "path": "../../node_modules/@backstage-community/plugin-stackstorm/config.d.ts",
1057
+ "path": "../../node_modules/@oriflame/backstage-plugin-score-card/config.d.ts",
1064
1058
  "value": {
1065
1059
  "type": "object",
1066
1060
  "properties": {
1067
- "stackstorm": {
1061
+ "scorecards": {
1062
+ "description": "Extra configuration for score card plugin",
1068
1063
  "type": "object",
1069
1064
  "properties": {
1070
- "webUrl": {
1071
- "description": "StackStorm Web UI url\nUsed in links to StackStorm web UI",
1065
+ "jsonDataUrl": {
1066
+ "description": "The public absolute root URL with json file defining the score card entries.",
1067
+ "visibility": "frontend",
1068
+ "type": "string"
1069
+ },
1070
+ "wikiLinkTemplate": {
1071
+ "description": "The template for the link to the wiki, e.g. \"https://TBD/XXX/_wiki/wikis/XXX.wiki/{id}\"",
1072
1072
  "visibility": "frontend",
1073
1073
  "type": "string"
1074
1074
  }
1075
- },
1076
- "required": [
1077
- "webUrl"
1078
- ]
1075
+ }
1079
1076
  }
1080
1077
  },
1078
+ "required": [
1079
+ "scorecards"
1080
+ ],
1081
1081
  "$schema": "http://json-schema.org/draft-07/schema#"
1082
1082
  }
1083
1083
  },
@@ -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.576b7e26.js"></script><script defer="defer" src="/static/module-material-ui.116dde6e.js"></script><script defer="defer" src="/static/module-lodash.aa647045.js"></script><script defer="defer" src="/static/module-date-fns.c633d602.js"></script><script defer="defer" src="/static/module-mui.f5e57c92.js"></script><script defer="defer" src="/static/module-material-table.84f30b2f.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.js"></script><script defer="defer" src="/static/module-react-router.fae32787.js"></script><script defer="defer" src="/static/module-react-router-dom.bf7ca63f.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer="defer" src="/static/module-zod.4f2eeb8c.js"></script><script defer="defer" src="/static/module-i18next.f50c1612.js"></script><script defer="defer" src="/static/vendor.576b7e26.js"></script><script defer="defer" src="/static/main.576b7e26.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.0682f99d.js"></script><script defer="defer" src="/static/module-material-ui.116dde6e.js"></script><script defer="defer" src="/static/module-lodash.aa647045.js"></script><script defer="defer" src="/static/module-date-fns.c633d602.js"></script><script defer="defer" src="/static/module-mui.f5e57c92.js"></script><script defer="defer" src="/static/module-material-table.84f30b2f.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.js"></script><script defer="defer" src="/static/module-react-router.fae32787.js"></script><script defer="defer" src="/static/module-react-router-dom.bf7ca63f.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer="defer" src="/static/module-zod.4f2eeb8c.js"></script><script defer="defer" src="/static/module-i18next.f50c1612.js"></script><script defer="defer" src="/static/vendor.0682f99d.js"></script><script defer="defer" src="/static/main.0682f99d.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -42,7 +42,7 @@
42
42
  color="#5bbad5"
43
43
  />
44
44
  <title><%= config.getString('app.title') %></title>
45
- <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.576b7e26.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.116dde6e.js"></script><script defer src="<%= publicPath %>/static/module-lodash.aa647045.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.c633d602.js"></script><script defer src="<%= publicPath %>/static/module-mui.f5e57c92.js"></script><script defer src="<%= publicPath %>/static/module-material-table.84f30b2f.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.42a304d3.js"></script><script defer src="<%= publicPath %>/static/module-react-router.fae32787.js"></script><script defer src="<%= publicPath %>/static/module-react-router-dom.bf7ca63f.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer src="<%= publicPath %>/static/module-zod.4f2eeb8c.js"></script><script defer src="<%= publicPath %>/static/module-i18next.f50c1612.js"></script><script defer src="<%= publicPath %>/static/vendor.576b7e26.js"></script><script defer src="<%= publicPath %>/static/main.576b7e26.js"></script></head>
45
+ <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.0682f99d.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.116dde6e.js"></script><script defer src="<%= publicPath %>/static/module-lodash.aa647045.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.c633d602.js"></script><script defer src="<%= publicPath %>/static/module-mui.f5e57c92.js"></script><script defer src="<%= publicPath %>/static/module-material-table.84f30b2f.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.42a304d3.js"></script><script defer src="<%= publicPath %>/static/module-react-router.fae32787.js"></script><script defer src="<%= publicPath %>/static/module-react-router-dom.bf7ca63f.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer src="<%= publicPath %>/static/module-zod.4f2eeb8c.js"></script><script defer src="<%= publicPath %>/static/module-i18next.f50c1612.js"></script><script defer src="<%= publicPath %>/static/vendor.0682f99d.js"></script><script defer src="<%= publicPath %>/static/main.0682f99d.js"></script></head>
46
46
  <body>
47
47
  <noscript>You need to enable JavaScript to run this app.</noscript>
48
48
  <div id="root"></div>
@@ -530,4 +530,4 @@ ${U.href}
530
530
 
531
531
  Feedback:`),Ot=W?.type==="github"?(0,hs.F)(F.href,"blob"):F.href,Mt=ps()(Ot),wt=`/${Mt.organization}/${Mt.name}`,$t=U.cloneNode();switch(W?.type){case"gitlab":$t.href=`${F.origin}${wt}/issues/new?issue[title]=${ot}&issue[description]=${St}`;break;case"github":$t.href=`${F.origin}${wt}/issues/new?title=${ot}&body=${St}`;break;default:return R}return ln(a.createElement(jn.A),$t),$t.style.paddingLeft="5px",$t.title="Leave feedback for this page",$t.id="git-feedback-link",U?.insertAdjacentElement("beforebegin",$t),R};var Un=t(38097);const fs=(0,x.A)(f=>({button:{color:f.palette.primary.light,textDecoration:"underline"}})),xn=({message:f,handleButtonClick:R,autoHideDuration:U})=>{const F=fs(),[W,Y]=(0,a.useState)(!0),ot=()=>Y(!1);return(0,n.jsx)(Un.A,{open:W,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:U,color:"primary",onClose:ot,message:f,action:(0,n.jsx)(M.A,{classes:{root:F.button},size:"small",onClick:()=>{ot(),R()},children:"Redirect now"})})},Cn=(f,R)=>{const F=W=>{const Y=An(window.location.href),ot=new URL(W,Y);if(ot.hostname!==window.location.hostname){const Ot=window.location.pathname,Mt=Ot.indexOf(R),wt=Ot.slice(0,Mt+R.length);return new URL(wt,Y).href}return ot.href};return W=>{for(const Y of Array.from(W.querySelectorAll("meta")))if(Y.getAttribute("http-equiv")==="refresh"){const ot=Y.getAttribute("content")?.split("url=");if(!ot||ot.length<2)return W;const St=ot[1],Ot=F(St);if(window.location.href===Ot)return W;const Mt=document.createElement("div");return ln((0,n.jsx)(xn,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>f(Ot),autoHideDuration:3e3}),Mt),document.body.appendChild(Mt),setTimeout(()=>{f(Ot)},3e3),W}return W}},ms=()=>f=>(setTimeout(()=>{const R=f?.querySelectorAll("li.md-nav__item--active");R.length!==0&&(R.forEach(F=>{const W=F?.querySelector("input");W?.checked||W?.click()}),R[R.length-1].scrollIntoView())},200),f);var $n=t(50868),Fn=t(10437),vs=t(71677),ys=t(87051),Es=t(36338);const As=(0,ys.A)(f=>({tooltip:{fontSize:"inherit",color:f.palette.text.primary,margin:0,padding:f.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(vs.Ay),xs=()=>(0,n.jsx)(Fn.A,{children:(0,n.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"})}),Cs=({text:f})=>{const[R,U]=(0,a.useState)(!1),[,F]=(0,Es.A)(),W=(0,a.useCallback)(()=>{F(f),U(!0)},[f,F]),Y=(0,a.useCallback)(()=>{U(!1)},[U]);return(0,n.jsx)(As,{title:"Copied to clipboard",placement:"left",open:R,onClose:Y,leaveDelay:1e3,children:(0,n.jsx)(zt.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:W,children:(0,n.jsx)(xs,{})})})},bs=f=>R=>{const U=R.querySelectorAll("pre > code");for(const F of U){const W=F.textContent||"",Y=document.createElement("div");F?.parentElement?.prepend(Y),ln((0,n.jsx)($n.A,{theme:f,children:(0,n.jsx)(Cs,{text:W})}),Y)}return R},Ss=({baseUrl:f,onClick:R})=>U=>(Array.from(U.getElementsByTagName("a")).forEach(F=>{F.addEventListener("click",W=>{const ot=F.getAttribute("href");ot&&ot.startsWith(f)&&!F.hasAttribute("download")&&(W.preventDefault(),R(W,ot))})}),U),Nn=({onLoading:f,onLoaded:R})=>U=>(f(),U.addEventListener(y,function F(){R(),U.removeEventListener(y,F)}),U);function Os(f,R){const U=new URL(R),F=`${U.origin}${U.pathname.replace(/\/$/,"")}`,W=f.replace(F,"").replace(/^\/+/,""),Y=new URL(`http://localhost/${W}`);return`${Y.pathname}${Y.search}${Y.hash}`}function Ts(){const f=(0,a.useRef)((0,Ut.Zp)()),U=(0,q.gf)(Q.U).getOptionalString("app.baseUrl");return(0,a.useCallback)(W=>{let Y=W;if(U)try{Y=Os(W,U)}catch{}f.current(Y)},[U])}const Ps="screen and (max-width: 76.1875em)",kn=f=>{const R=Ts(),U=(0,l.A)(),F=(0,D.A)(Ps),W=Oe(),Y=os(),ot=(0,J.s)(),St=(0,q.gf)(qe.s),Ot=(0,q.gf)(E.Y),{state:Mt,path:wt,content:$t}=We(),[Bt,ue]=(0,a.useState)(null),ie=A(Bt),Vt=(0,a.useCallback)(()=>{if(!Bt)return;Bt.querySelectorAll(".md-sidebar").forEach(te=>{if(F)te.style.top="0px";else{const Te=document?.querySelector(".techdocs-reader-page")?.getBoundingClientRect().top??0;let Ne=Bt.getBoundingClientRect().top??0;const Ke=Bt.querySelector(".md-container > .md-tabs")?.getBoundingClientRect().height??0;Ne<Te&&(Ne=Te);const sn=Math.max(Ne,0)+Ke;te.style.top=`${sn}px`;const Pe=Bt.querySelector(".md-container > .md-footer")?.getBoundingClientRect().top??window.innerHeight;te.style.height=`${Pe-sn}px`}te.style.setProperty("opacity","1")})},[Bt,F]);(0,a.useEffect)(()=>(window.addEventListener("resize",Vt),window.addEventListener("scroll",Vt,!0),()=>{window.removeEventListener("resize",Vt),window.removeEventListener("scroll",Vt,!0)}),[Bt,Vt]);const he=(0,a.useCallback)(()=>{if(!Bt)return;const Ft=Bt.querySelector(".md-footer");Ft&&(Ft.style.width=`${Bt.getBoundingClientRect().width}px`)},[Bt]);(0,a.useEffect)(()=>(window.addEventListener("resize",he),()=>{window.removeEventListener("resize",he)}),[Bt,he]),(0,a.useEffect)(()=>{ie||(he(),Vt())},[Mt,ie,he,Vt]);const qt=(0,a.useCallback)((Ft,te)=>cn(Ft,[W,Ln({techdocsStorageApi:St,entityId:f,path:te}),is(),ls(),ds(),us(),Bn(Ot),Y]),[f,Ot,St,W,Y]),ae=(0,a.useCallback)(async Ft=>cn(Ft,[Cn(R,f.name),ms(),bs(U),Ss({baseUrl:window.location.origin,onClick:(te,re)=>{const Te=te.ctrlKey||te.metaKey,Ne=new URL(re),Ve=te.target?.innerText||re,Ke=re.replace(window.location.origin,"");ot.captureEvent("click",Ve,{attributes:{to:Ke}}),Ne.hash?Te?window.open(re,"_blank"):(R(re),Ft?.querySelector(`[id="${Ne.hash.slice(1)}"]`)?.scrollIntoView()):Te?window.open(re,"_blank"):R(re)}}),Nn({onLoading:()=>{},onLoaded:()=>{Ft.querySelector(".md-nav__title")?.removeAttribute("for")}}),Nn({onLoading:()=>{Array.from(Ft.querySelectorAll(".md-sidebar")).forEach(re=>{re.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[U,R,ot,f.name]);return(0,a.useEffect)(()=>{if(!$t)return()=>{};let Ft=!0;return qt($t,wt).then(async te=>{if(!te?.innerHTML||!Ft)return;window.scroll({top:0});const re=await ae(te);ue(re)}),()=>{Ft=!1}},[$t,wt,qt,ae]),Bt};var dn=t(41883),ws=t(72020),bn=t(99730);const Ue=()=>{const f=(0,ws.YR)(),{shadowRoot:R}=(0,m.V)(),U=R?.querySelector('[data-md-component="content"]'),F=R?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let W=F?.querySelector('[data-techdocs-addons-location="primary sidebar"]');W||(W=document.createElement("div"),W.setAttribute("data-techdocs-addons-location","primary sidebar"),F?.prepend(W));const Y=R?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let ot=Y?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return ot||(ot=document.createElement("div"),ot.setAttribute("data-techdocs-addons-location","secondary sidebar"),Y?.prepend(ot)),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(dn.A,{container:W,children:f.renderComponentsByLocation(bn.e.PrimarySidebar)}),(0,n.jsx)(dn.A,{container:U,children:f.renderComponentsByLocation(bn.e.Content)}),(0,n.jsx)(dn.A,{container:ot,children:f.renderComponentsByLocation(bn.e.SecondarySidebar)})]})},$e=(0,x.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Fe=ye(f=>{const{withSearch:R=!0,onReady:U}=f,F=$e(),{entityMetadata:{value:W,loading:Y},entityRef:ot,setShadowRoot:St}=(0,m.V)(),Ot=kn(ot),Mt=window.location.pathname,wt=window.location.hash,$t=A(Ot),[Bt]=S([`[id="${wt.slice(1)}"]`]);(0,a.useEffect)(()=>{$t||(wt?Bt&&Bt.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[Mt,wt,Bt,$t]);const ue=(0,a.useCallback)(ie=>{St(ie),U instanceof Function&&U()},[St,U]);return Y===!1&&!W?(0,n.jsx)(L.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Ot?(0,n.jsx)(X.U,{children:(0,n.jsxs)(d.A,{container:!0,children:[(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(Je,{})}),R&&(0,n.jsx)(d.A,{className:F.search,xs:"auto",item:!0,children:(0,n.jsx)(ge,{entityId:ot,entityTitle:W?.metadata?.title})}),(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(T,{element:Ot,onAppend:ue,children:(0,n.jsx)(Ue,{})})})]})}):(0,n.jsx)(X.U,{children:(0,n.jsx)(d.A,{container:!0,children:(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(Je,{})})})})}),Ks=null},45061:(H,b,t)=>{"use strict";t.d(b,{T:()=>G});var n=t(31085),a=t(14041),d=t(93285),x=t(42899),m=t(4387),h=t(13660),u=t(72020),g=t(86892),p=t(99730),y=t(67871),v=t(8859),A=t(34428),T=t(51372),O=t(58837),w=t(268),S=t(72501),j=t(72072);const k=(0,O.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,w.X4)(Q.page.fontColor,.8),fontSize:Q.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),L=({value:Q,className:rt,typographyRootComponent:it})=>(0,n.jsx)(S.A,{component:it??(typeof Q=="string"?"p":"span"),className:rt,children:Q});function X(Q){const{label:rt,value:it,url:pt,contentTypograpyRootComponent:At}=Q,Ct=k(),ft=(0,n.jsx)(L,{className:Ct.value,value:it||"<Unknown>",typographyRootComponent:At});return(0,n.jsx)(x.A,{item:!0,children:(0,n.jsxs)(S.A,{component:"span",className:Ct.root,children:[(0,n.jsx)(S.A,{className:Ct.label,children:rt}),pt?(0,n.jsx)(j.N_,{to:pt,children:ft}):ft]})})}var V=t(69814),N=t(72427),Z=t(65461),K=t(9222),_=t(45250),q=t(82779);const J=(0,n.jsx)(m.A,{animation:"wave",variant:"text",height:40}),G=Q=>{const{children:rt}=Q,it=(0,u.YR)(),pt=(0,N.gf)(Z.U),{title:At,setTitle:Ct,subtitle:ft,setSubtitle:dt,entityRef:xt,metadata:{value:mt,loading:Tt},entityMetadata:{value:bt,loading:It}}=(0,g.V)();(0,a.useEffect)(()=>{mt&&(Ct(mt.site_name),dt(()=>{let{site_description:Et}=mt;return(!Et||Et==="None")&&(Et=""),Et}))},[mt,Ct,dt]);const Kt=pt.getOptional("app.title")||"Backstage",zt=[At,ft,Kt].filter(Boolean).join(" | "),{locationMetadata:vt,spec:Dt}=bt||{},M=Dt?.lifecycle,$=bt?(0,y.t)(bt,T.vv):[],nt=(0,K.S)(q.rQ)(),ct=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(X,{label:(0,_.capitalize)(bt?.kind||"entity"),value:(0,n.jsx)(v.z,{color:"inherit",entityRef:xt,title:bt?.metadata.title,defaultKind:"Component"})}),$.length>0&&(0,n.jsx)(X,{label:"Owner",value:(0,n.jsx)(A.i,{color:"inherit",entityRefs:$,defaultKind:"group"})}),M?(0,n.jsx)(X,{label:"Lifecycle",value:String(M)}):null,vt&&vt.type!=="dir"&&vt.type!=="file"?(0,n.jsx)(X,{label:"",value:(0,n.jsxs)(x.A,{container:!0,direction:"column",alignItems:"center",children:[(0,n.jsx)(x.A,{style:{padding:0},item:!0,children:(0,n.jsx)(h.A,{style:{marginTop:"-25px"}})}),(0,n.jsx)(x.A,{style:{padding:0},item:!0,children:"Source"})]}),url:vt.target}):null]});return!It&&bt===void 0||!Tt&&mt===void 0?null:(0,n.jsxs)(V.Y,{type:"Documentation",typeLink:nt,title:At||J,subtitle:ft===""?void 0:ft||J,children:[(0,n.jsx)(d.A,{titleTemplate:"%s",children:(0,n.jsx)("title",{children:zt})}),ct,rt,it.renderComponentsByLocation(p.e.Header)]})}},82779:(H,b,t)=>{"use strict";t.d(b,{Oc:()=>d,Ri:()=>x,rQ:()=>a});var n=t(34569);const a=(0,n.H)({id:"techdocs:index-page"}),d=(0,n.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),x=(0,n.H)({id:"techdocs:catalog-reader-view"})},27698:(H,b,t)=>{"use strict";t.r(b),t.d(b,{TechDocsSearchResultListItem:()=>y});var n=t(31085),a=t(14041),d=t(46423),x=t(5951),m=t(58837),h=t(72501),u=t(72072),g=t(70734);const p=(0,m.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),y=v=>{const{result:A,highlight:T,lineClamp:O=5,asListItem:w=!0,asLink:S=!0,title:j,icon:k}=v,L=p(),X=({children:Z})=>S?(0,n.jsx)(u.N_,{noTrack:!0,to:A.location,children:Z}):(0,n.jsx)(n.Fragment,{children:Z}),V=()=>{const Z=T?.fields.title?(0,n.jsx)(g.e,{text:T.fields.title,preTag:T.preTag,postTag:T.postTag}):A.title,K=T?.fields.entityTitle?(0,n.jsx)(g.e,{text:T.fields.entityTitle,preTag:T.preTag,postTag:T.postTag}):A.entityTitle,_=T?.fields.name?(0,n.jsx)(g.e,{text:T.fields.name,preTag:T.preTag,postTag:T.postTag}):A.name;return A?(0,n.jsx)(x.A,{className:L.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,n.jsx)(X,{children:j||(0,n.jsxs)(n.Fragment,{children:[Z," | ",K??_," docs"]})}),secondary:(0,n.jsx)(h.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:O,overflow:"hidden"},color:"textSecondary",variant:"body2",children:T?.fields.text?(0,n.jsx)(g.e,{text:T.fields.text,preTag:T.preTag,postTag:T.postTag}):A.text})}):null},N=({children:Z})=>w?(0,n.jsxs)(n.Fragment,{children:[k&&(0,n.jsx)(d.A,{children:typeof k=="function"?k(A):k}),(0,n.jsx)("div",{className:L.flexContainer,children:Z})]}):(0,n.jsx)(n.Fragment,{children:Z});return(0,n.jsx)(N,{children:(0,n.jsx)(V,{})})}},97184:(H,b,t)=>{const a=document.querySelector('meta[name="backstage-public-path"]')?.getAttribute("content");a&&(t.p=a)},86973:()=>{}},H=>{var b=n=>H(H.s=n);H.O(0,[1751,1888,5067,1678,235,6587,2754,9669,1975,5042,7400,4121],()=>(b(97184),b(85318)));var t=H.O()}]);})();
532
532
 
533
- //# sourceMappingURL=main.576b7e26.js.map
533
+ //# sourceMappingURL=main.0682f99d.js.map