@techdocs/cli 0.0.0-nightly-20250403023724 → 0.0.0-nightly-20250408023830
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 +3 -3
- package/dist/embedded-app/.config-schema.json +21 -21
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/index.html.tmpl +1 -1
- package/dist/embedded-app/static/{main.d6d48c47.js → main.ff98f0fa.js} +2 -2
- package/dist/embedded-app/static/{main.d6d48c47.js.map → main.ff98f0fa.js.map} +1 -1
- package/dist/embedded-app/static/{module-material-table.d6e8d890.js → module-material-table.00de7997.js} +2 -2
- package/dist/embedded-app/static/{module-material-table.d6e8d890.js.map → module-material-table.00de7997.js.map} +1 -1
- package/dist/embedded-app/static/module-react-beautiful-dnd.e9f14677.js +67 -0
- package/dist/embedded-app/static/module-react-beautiful-dnd.e9f14677.js.map +1 -0
- package/dist/embedded-app/static/{runtime.d6d48c47.js → runtime.ff98f0fa.js} +1 -1
- package/dist/embedded-app/static/{runtime.d6d48c47.js.map → runtime.ff98f0fa.js.map} +1 -1
- package/dist/embedded-app/static/vendor.ff98f0fa.js +170 -0
- package/dist/embedded-app/static/vendor.ff98f0fa.js.map +1 -0
- package/dist/package.json.cjs.js +1 -1
- package/package.json +4 -4
- package/dist/embedded-app/static/module-react-beautiful-dnd.b474cfe9.js +0 -67
- package/dist/embedded-app/static/module-react-beautiful-dnd.b474cfe9.js.map +0 -1
- package/dist/embedded-app/static/vendor.d6d48c47.js +0 -170
- package/dist/embedded-app/static/vendor.d6d48c47.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# @techdocs/cli
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20250408023830
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies
|
|
8
|
-
- @backstage/backend-defaults@0.0.0-nightly-
|
|
9
|
-
- @backstage/plugin-techdocs-node@0.0.0-nightly-
|
|
8
|
+
- @backstage/backend-defaults@0.0.0-nightly-20250408023830
|
|
9
|
+
- @backstage/plugin-techdocs-node@0.0.0-nightly-20250408023830
|
|
10
10
|
- @backstage/catalog-model@1.7.3
|
|
11
11
|
- @backstage/cli-common@0.1.15
|
|
12
12
|
- @backstage/config@1.3.2
|
|
@@ -106,27 +106,6 @@
|
|
|
106
106
|
},
|
|
107
107
|
"path": "../cli/package.json"
|
|
108
108
|
},
|
|
109
|
-
{
|
|
110
|
-
"path": "../../plugins/permission-common/config.d.ts",
|
|
111
|
-
"value": {
|
|
112
|
-
"type": "object",
|
|
113
|
-
"properties": {
|
|
114
|
-
"permission": {
|
|
115
|
-
"description": "Configuration options for Backstage permissions and authorization",
|
|
116
|
-
"type": "object",
|
|
117
|
-
"properties": {
|
|
118
|
-
"enabled": {
|
|
119
|
-
"description": "Whether authorization is enabled in Backstage. Defaults to false, which means authorization\nrequests will be automatically allowed without invoking the authorization policy.",
|
|
120
|
-
"visibility": "frontend",
|
|
121
|
-
"type": "boolean"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
127
|
-
},
|
|
128
|
-
"packageName": "@backstage/plugin-permission-common"
|
|
129
|
-
},
|
|
130
109
|
{
|
|
131
110
|
"path": "../core-app-api/config.d.ts",
|
|
132
111
|
"value": {
|
|
@@ -1080,6 +1059,27 @@
|
|
|
1080
1059
|
},
|
|
1081
1060
|
"packageName": "@backstage/plugin-catalog"
|
|
1082
1061
|
},
|
|
1062
|
+
{
|
|
1063
|
+
"path": "../../plugins/permission-common/config.d.ts",
|
|
1064
|
+
"value": {
|
|
1065
|
+
"type": "object",
|
|
1066
|
+
"properties": {
|
|
1067
|
+
"permission": {
|
|
1068
|
+
"description": "Configuration options for Backstage permissions and authorization",
|
|
1069
|
+
"type": "object",
|
|
1070
|
+
"properties": {
|
|
1071
|
+
"enabled": {
|
|
1072
|
+
"description": "Whether authorization is enabled in Backstage. Defaults to false, which means authorization\nrequests will be automatically allowed without invoking the authorization policy.",
|
|
1073
|
+
"visibility": "frontend",
|
|
1074
|
+
"type": "boolean"
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1080
|
+
},
|
|
1081
|
+
"packageName": "@backstage/plugin-permission-common"
|
|
1082
|
+
},
|
|
1083
1083
|
{
|
|
1084
1084
|
"path": "../../node_modules/@backstage-community/plugin-stackstorm/config.d.ts",
|
|
1085
1085
|
"value": {
|
|
@@ -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.
|
|
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.ff98f0fa.js"></script><script defer="defer" src="/static/module-material-ui.557c1930.js"></script><script defer="defer" src="/static/module-lodash.05581125.js"></script><script defer="defer" src="/static/module-date-fns.c633d602.js"></script><script defer="defer" src="/static/module-mui.f702282a.js"></script><script defer="defer" src="/static/module-material-table.00de7997.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.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/module-react-beautiful-dnd.e9f14677.js"></script><script defer="defer" src="/static/module-remix-run.ae6d33c5.js"></script><script defer="defer" src="/static/vendor.ff98f0fa.js"></script><script defer="defer" src="/static/main.ff98f0fa.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.
|
|
45
|
+
<meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.ff98f0fa.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.557c1930.js"></script><script defer src="<%= publicPath %>/static/module-lodash.05581125.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.c633d602.js"></script><script defer src="<%= publicPath %>/static/module-mui.f702282a.js"></script><script defer src="<%= publicPath %>/static/module-material-table.00de7997.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.42a304d3.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/module-react-beautiful-dnd.e9f14677.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.ae6d33c5.js"></script><script defer src="<%= publicPath %>/static/vendor.ff98f0fa.js"></script><script defer src="<%= publicPath %>/static/main.ff98f0fa.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>
|
|
@@ -548,6 +548,6 @@ ${pn[f.palette.type].map(D=>`img[src$="${D}"]`).join(", ")} {
|
|
|
548
548
|
`],as=()=>(0,Le.Ut)(),is=()=>{const f=as(),D=(0,ke.A)();return(0,a.useMemo)(()=>{const U={theme:D,sidebar:f};return os.reduce((N,k)=>N+k(U),"")},[D,f])},Cn=()=>{const f=is();return(0,a.useCallback)(D=>(D.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${f}</style>`),D),[f])},Ln=async(f,D)=>{let U;if(typeof f=="string")U=new DOMParser().parseFromString(f,"text/html").documentElement;else if(f instanceof Element)U=f;else throw new Error("dom is not a recognized type");for(const N of D)U=await N(U);return U},Mn=(f,D,U)=>{const N=new URL(D,"https://ignored.com").pathname,k=f==="src"&&N.endsWith(".svg"),X=!D.match(/^([a-z]*:)?\/\//i),st=D.startsWith(U);return k&&(X||st)},cs=({techdocsStorageApi:f,entityId:D,path:U})=>async N=>{const k=await f.getApiOrigin(),X=async(st,St)=>{for(const Rt of st)if(Rt.hasAttribute(St)){const $t=Rt.getAttribute(St);if(!$t)return;const Bt=await f.getBaseUrl($t,D,U);if(Mn(St,$t,k))try{const Xt=await(await fetch(Bt,{credentials:"include"})).text();Rt.setAttribute(St,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(Xt)))}`)}catch{Rt.setAttribute("alt",`Error: ${$t}`)}else Rt.setAttribute(St,Bt)}};return await Promise.all([X(N.querySelectorAll("img"),"src"),X(N.querySelectorAll("script"),"src"),X(N.querySelectorAll("source"),"src"),X(N.querySelectorAll("link"),"href"),X(N.querySelectorAll("a[download]"),"href")]),N},Bn=()=>f=>(((U,N)=>{Array.from(U).filter(k=>k.hasAttribute(N)).forEach(k=>{const X=k.getAttribute(N);if(X){X.match(/^https?:\/\//i)&&k.setAttribute("target","_blank");try{const st=jn(window.location.href);k.setAttribute(N,new URL(X,st).toString())}catch{k.replaceWith(k.textContent||X)}}})})(Array.from(f.getElementsByTagName("a")),"href"),f);function jn(f){const D=new URL(f);return!D.pathname.endsWith("/")&&!D.pathname.endsWith(".html")&&(D.pathname+="/"),D.toString()}var ls=t(27326);let Un;Un=Promise.resolve().then(t.t.bind(t,25873,19));function fn(f,D){Un.then(U=>{"createRoot"in U?U.createRoot(D).render(f):U.render(f,D)})}const ds=()=>f=>{const D=f.querySelector('.md-header label[for="__drawer"]'),U=f.querySelector("article");if(!D||!U)return f;const N=D.cloneNode();return fn(a.createElement(ls.A),N),N.id="toggle-sidebar",N.title="Toggle Sidebar",N.classList.add("md-content__button"),N.style.setProperty("padding","0 0 0 5px"),N.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),U?.prepend(N),f},us=()=>f=>(f.querySelector(".md-header")?.remove(),f),hs=()=>f=>(f.querySelector(".md-footer .md-copyright")?.remove(),f.querySelector(".md-footer-copyright")?.remove(),f);var $n=t(36021),gs=t(90292),ps=t(52536),Fn=t.n(ps);const Nn=f=>D=>{const U=D.querySelector('[title="Edit this page"]');if(!U||!U.href)return D;const N=new URL(U.href),k=f.byUrl(N);if(k?.type!=="github"&&k?.type!=="gitlab")return D;const X=D.querySelector("article>h1")?.childNodes[0].textContent||"",st=encodeURIComponent(`Documentation Feedback: ${X}`),St=encodeURIComponent(`Page source:
|
|
549
549
|
${U.href}
|
|
550
550
|
|
|
551
|
-
Feedback:`),Rt=k?.type==="github"?(0,$n.F)(N.href,"blob"):N.href,$t=Fn()(Rt),Bt=`/${$t.organization}/${$t.name}`,Ft=U.cloneNode();switch(k?.type){case"gitlab":Ft.href=`${N.origin}${Bt}/issues/new?issue[title]=${st}&issue[description]=${St}`;break;case"github":Ft.href=`${N.origin}${Bt}/issues/new?title=${st}&body=${St}`;break;default:return D}return fn(a.createElement(gs.A),Ft),Ft.style.paddingLeft="5px",Ft.title="Leave feedback for this page",Ft.id="git-feedback-link",U?.insertAdjacentElement("beforebegin",Ft),D};var fs=t(38097);const bn=(0,x.A)(f=>({button:{color:f.palette.primary.light,textDecoration:"underline"}})),Sn=({message:f,handleButtonClick:D,autoHideDuration:U})=>{const N=bn(),[k,X]=(0,a.useState)(!0),st=()=>X(!1);return(0,n.jsx)(fs.A,{open:k,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:U,color:"primary",onClose:st,message:f,action:(0,n.jsx)(ht.A,{classes:{root:N.button},size:"small",onClick:()=>{st(),D()},children:"Redirect now"})})},ms=(f,D)=>{const N=k=>{const X=jn(window.location.href),st=new URL(k,X);if(st.hostname!==window.location.hostname){const Rt=window.location.pathname,$t=Rt.indexOf(D),Bt=Rt.slice(0,$t+D.length);return new URL(Bt,X).href}return st.href};return k=>{for(const X of Array.from(k.querySelectorAll("meta")))if(X.getAttribute("http-equiv")==="refresh"){const st=X.getAttribute("content")?.split("url=");if(!st||st.length<2)return k;const St=st[1],Rt=N(St);if(window.location.href===Rt)return k;const $t=document.createElement("div");return fn((0,n.jsx)(Sn,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>f(Rt),autoHideDuration:3e3}),$t),document.body.appendChild($t),setTimeout(()=>{f(Rt)},3e3),k}return k}},kn=()=>f=>(setTimeout(()=>{const D=f?.querySelectorAll("li.md-nav__item--active");D.length!==0&&(D.forEach(N=>{const k=N?.querySelector("input");k?.checked||k?.click()}),D[D.length-1].scrollIntoView())},200),f);var Wn=t(50868),ys=t(10437),vs=t(71677),Es=t(87051),As=t(36338);const xs=(0,Es.A)(f=>({tooltip:{fontSize:"inherit",color:f.palette.text.primary,margin:0,padding:f.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(vs.Ay),Cs=()=>(0,n.jsx)(ys.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"})}),bs=({text:f})=>{const[D,U]=(0,a.useState)(!1),[,N]=(0,As.A)(),k=(0,a.useCallback)(()=>{N(f),U(!0)},[f,N]),X=(0,a.useCallback)(()=>{U(!1)},[U]);return(0,n.jsx)(xs,{title:"Copied to clipboard",placement:"left",open:D,onClose:X,leaveDelay:1e3,children:(0,n.jsx)(mt.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:k,children:(0,n.jsx)(Cs,{})})})},Ss=f=>D=>{const U=D.querySelectorAll("pre > code");for(const N of U){const k=N.textContent||"",X=document.createElement("div");N?.parentElement?.prepend(X),fn((0,n.jsx)(Wn.A,{theme:f,children:(0,n.jsx)(bs,{text:k})}),X)}return D},Os=({baseUrl:f,onClick:D})=>U=>(Array.from(U.getElementsByTagName("a")).forEach(N=>{N.addEventListener("click",k=>{const st=N.getAttribute("href");st&&st.startsWith(f)&&!N.hasAttribute("download")&&(k.preventDefault(),D(k,st))})}),U),Kn=({onLoading:f,onLoaded:D})=>U=>(f(),U.addEventListener(g,function N(){D(),U.removeEventListener(g,N)}),U);function Ps(f,D){const U=new URL(D),N=`${U.origin}${U.pathname.replace(/\/$/,"")}`,k=f.replace(N,"").replace(/^\/+/,""),X=new URL(`http://localhost/${k}`);return`${X.pathname}${X.search}${X.hash}`}function Ts(){const f=(0,a.useRef)((0,Nt.Zp)()),U=(0,nt.gf)(Y.U).getOptionalString("app.baseUrl");return(0,a.useCallback)(k=>{let X=k;if(U)try{X=Ps(k,U)}catch{}f.current(X)},[U])}const zn="screen and (max-width: 76.1875em)",Hn=f=>{const D=Ts(),U=(0,ke.A)(),N=(0,He.A)(zn),k=ie(),X=Cn(),st=(0,W.s)(),St=(0,nt.gf)(ge.s),Rt=(0,nt.gf)(Qe.Y),$t=(0,nt.gf)(Y.U),{state:Bt,path:Ft,content:Xt}=De(),{"*":he=""}=(0,Nt.g)(),[Ht,_t]=(0,a.useState)(null),Ae=A(Ht),re=(0,a.useCallback)(()=>{if(!Ht)return;Ht.querySelectorAll(".md-sidebar").forEach(ce=>{if(N)ce.style.top="0px";else{const Fe=document?.querySelector(".techdocs-reader-page")?.getBoundingClientRect().top??0;let Me=Ht.getBoundingClientRect().top??0;const ln=Ht.querySelector(".md-container > .md-tabs")?.getBoundingClientRect().height??0;Me<Fe&&(Me=Fe);const pe=Math.max(Me,0)+ln;ce.style.top=`${pe}px`;const dn=Ht.querySelector(".md-container > .md-footer")?.getBoundingClientRect().top??window.innerHeight;ce.style.height=`${dn-pe}px`}ce.style.setProperty("opacity","1")})},[Ht,N]);(0,a.useEffect)(()=>(window.addEventListener("resize",re),window.addEventListener("scroll",re,!0),()=>{window.removeEventListener("resize",re),window.removeEventListener("scroll",re,!0)}),[Ht,re]);const Zt=(0,a.useCallback)(()=>{if(!Ht)return;const qt=Ht.querySelector(".md-footer");qt&&(qt.style.width=`${Ht.getBoundingClientRect().width}px`)},[Ht]);(0,a.useEffect)(()=>(window.addEventListener("resize",Zt),()=>{window.removeEventListener("resize",Zt)}),[Ht,Zt]),(0,a.useEffect)(()=>{Ae||(Zt(),re())},[Bt,Ae,Zt,re]);const Jt=(0,a.useCallback)((qt,ce)=>Ln(qt,[k,cs({techdocsStorageApi:St,entityId:f,path:ce}),Bn(),ds(),us(),hs(),Nn(Rt),X]),[f,Rt,St,k,X]),Se=(0,a.useCallback)(async qt=>Ln(qt,[ms(D,f.name),kn(),Ss(U),Os({baseUrl:$t.getOptionalString("app.baseUrl")||window.location.origin,onClick:(ce,le)=>{const Fe=ce.ctrlKey||ce.metaKey,Me=new URL(le),nn=ce.target?.innerText||le,ln=le.replace(window.location.origin,"");st.captureEvent("click",nn,{attributes:{to:ln}}),Me.hash?Fe?window.open(le,"_blank"):(window.location.pathname!==Me.pathname?D(le):window.history.pushState(null,document.title,Me.hash),qt?.querySelector(`[id="${Me.hash.slice(1)}"]`)?.scrollIntoView()):Fe?window.open(le,"_blank"):D(le)}}),Kn({onLoading:()=>{},onLoaded:()=>{qt.querySelector(".md-nav__title")?.removeAttribute("for")}}),Kn({onLoading:()=>{Array.from(qt.querySelectorAll(".md-sidebar")).forEach(le=>{le.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[U,D,st,f.name,$t]);return(0,a.useEffect)(()=>{if(!Xt)return()=>{};let qt=!0;return Jt(Xt,Ft).then(async ce=>{if(!ce?.innerHTML||!qt||he!==Ft)return;window.scroll({top:0});const le=await Se(ce);_t(le)}),()=>{qt=!1}},[Xt,he,Ft,Jt,Se]),Ht};var On=t(41883),ws=t(72020),we=t(99730);const Ue=()=>{const f=(0,ws.YR)(),{shadowRoot:D}=(0,m.V)(),U=D?.querySelector('[data-md-component="content"]'),N=D?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let k=N?.querySelector('[data-techdocs-addons-location="primary sidebar"]');k||(k=document.createElement("div"),k.setAttribute("data-techdocs-addons-location","primary sidebar"),N?.prepend(k));const X=D?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let st=X?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return st||(st=document.createElement("div"),st.setAttribute("data-techdocs-addons-location","secondary sidebar"),X?.prepend(st)),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(On.A,{container:k,children:f.renderComponentsByLocation(we.e.PrimarySidebar)}),(0,n.jsx)(On.A,{container:U,children:f.renderComponentsByLocation(we.e.Content)}),(0,n.jsx)(On.A,{container:st,children:f.renderComponentsByLocation(we.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"}}}),Rs=ze(f=>{const{withSearch:D=!0,searchResultUrlMapper:U,onReady:N}=f,k=$e(),{entityMetadata:{value:X,loading:st},entityRef:St,setShadowRoot:Rt}=(0,m.V)(),{state:$t}=De(),Bt=Hn(St),Ft=window.location.pathname,Xt=window.location.hash,he=A(Bt),[Ht]=L([`[id="${Xt.slice(1)}"]`]),_t=(0,it.n)(),{NotFoundErrorPage:Ae}=_t.getComponents();(0,a.useEffect)(()=>{he||(Xt?Ht&&Ht.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[Ft,Xt,Ht,he]);const re=(0,a.useCallback)(Zt=>{Rt(Zt),N instanceof Function&&N()},[Rt,N]);return st===!1&&!X?(0,n.jsx)(Ae,{}):Bt?(0,n.jsx)($.U,{children:(0,n.jsxs)(d.A,{container:!0,children:[(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(ye,{})}),D&&(0,n.jsx)(d.A,{className:k.search,xs:"auto",item:!0,children:(0,n.jsx)(jt,{entityId:St,entityTitle:X?.metadata?.title,searchResultUrlMapper:U})}),(0,n.jsxs)(d.A,{xs:12,item:!0,children:[($t==="CHECKING"||he)&&(0,n.jsx)(M.k,{}),(0,n.jsx)(v,{element:Bt,onAppend:re,children:(0,n.jsx)(Ue,{})})]})]})}):(0,n.jsx)($.U,{children:(0,n.jsx)(d.A,{container:!0,children:(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(ye,{})})})})}),Is=null},45061:(V,S,t)=>{"use strict";t.d(S,{T:()=>bt});var n=t(31085),a=t(14041),d=t(93285),x=t(42899),m=t(4387),h=t(13660),u=t(72020),p=t(86892),g=t(99730),y=t(82292),A=t(67871),v=t(8859),T=t(34428),P=t(51372),L=t(6820),O=t(58837),j=t(268),$=t(72501),M=t(72072);const J=(0,O.A)(At=>({root:{textAlign:"left"},label:{color:At.page.fontColor,fontWeight:At.typography.fontWeightBold,letterSpacing:0,fontSize:At.typography.fontSize,marginBottom:At.spacing(1)/2,lineHeight:1},value:{color:(0,j.X4)(At.page.fontColor,.8),fontSize:At.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),Q=({value:At,className:Dt,typographyRootComponent:lt})=>(0,n.jsx)($.A,{component:lt??(typeof At=="string"?"p":"span"),className:Dt,children:At});function F(At){const{label:Dt,value:lt,url:dt,contentTypograpyRootComponent:xt}=At,ft=J(),Ct=(0,n.jsx)(Q,{className:ft.value,value:lt||"<Unknown>",typographyRootComponent:xt});return(0,n.jsx)(x.A,{item:!0,children:(0,n.jsxs)($.A,{component:"span",className:ft.root,children:[(0,n.jsx)($.A,{className:ft.label,children:Dt}),dt?(0,n.jsx)(M.N_,{to:dt,children:Ct}):Ct]})})}var G=t(69814),H=t(72427),nt=t(65461),W=t(9222),Z=t(56005),Y=t.n(Z),at=t(82779),pt=t(18690);const Et=(0,n.jsx)(m.A,{animation:"wave",variant:"text",height:40}),bt=At=>{const{children:Dt}=At,lt=(0,u.YR)(),dt=(0,H.gf)(nt.U),xt=(0,H.gf)(y.n),{"*":ft=""}=(0,pt.g)(),{title:Ct,setTitle:Pt,subtitle:it,setSubtitle:mt,entityRef:yt,metadata:{value:et,loading:ht},entityMetadata:{value:rt,loading:B}}=(0,p.V)();(0,a.useEffect)(()=>{et&&(Pt(et.site_name),mt(()=>{let{site_description:de}=et;return(!de||de==="None")&&(de=""),de}))},[et,Pt,mt]);const z=dt.getOptional("app.title")||"Backstage",{locationMetadata:ut,spec:Ot}=rt||{},It=Ot?.lifecycle,Lt=rt?(0,A.t)(rt,P.vv):[],Ut=(0,W.S)(at.rQ)(),Nt=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(F,{label:Y()(rt?.kind||"entity"),value:(0,n.jsx)(v.z,{color:"inherit",entityRef:yt,title:rt?.metadata.title,defaultKind:"Component"})}),Lt.length>0&&(0,n.jsx)(F,{label:"Owner",value:(0,n.jsx)(T.i,{color:"inherit",entityRefs:Lt,defaultKind:"group"})}),It?(0,n.jsx)(F,{label:"Lifecycle",value:String(It)}):null,ut&&ut.type!=="dir"&&ut.type!=="file"?(0,n.jsx)(F,{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:ut.target}):null]});if(!B&&rt===void 0||!ht&&et===void 0)return null;const te=(0,L.U2)(yt),jt=xt.forEntity(te).snapshot.primaryTitle,kt=de=>de.replace(/\/$/,""),ee=de=>de.replace(/-/g," ").split(" ").map(Y()).join(" ");let fe=[];ft!==""&&(fe=kt(ft).split("/").slice(0,3).map(ee));const ne=[z,jt,...fe].join(" | ");return(0,n.jsxs)(G.Y,{type:"Documentation",typeLink:Ut,title:Ct||Et,subtitle:it===""?void 0:it||Et,children:[(0,n.jsx)(d.A,{titleTemplate:"%s",children:(0,n.jsx)("title",{children:ne})}),Nt,Dt,lt.renderComponentsByLocation(g.e.Header)]})}},82779:(V,S,t)=>{"use strict";t.d(S,{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:(V,S,t)=>{"use strict";t.r(S),t.d(S,{TechDocsSearchResultListItem:()=>y});var n=t(31085),a=t(14041),d=t(68804),x=t(5951),m=t(58837),h=t(72501),u=t(72072),p=t(70734);const g=(0,m.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),y=A=>{const{result:v,highlight:T,lineClamp:P=5,asListItem:L=!0,asLink:O=!0,title:j,icon:$}=A,M=g(),J=({children:G})=>O?(0,n.jsx)(u.N_,{noTrack:!0,to:v.location,children:G}):(0,n.jsx)(n.Fragment,{children:G}),Q=()=>{const G=T?.fields.title?(0,n.jsx)(p.e,{text:T.fields.title,preTag:T.preTag,postTag:T.postTag}):v.title,H=T?.fields.entityTitle?(0,n.jsx)(p.e,{text:T.fields.entityTitle,preTag:T.preTag,postTag:T.postTag}):v.entityTitle,nt=T?.fields.name?(0,n.jsx)(p.e,{text:T.fields.name,preTag:T.preTag,postTag:T.postTag}):v.name;return v?(0,n.jsx)(x.A,{className:M.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,n.jsx)(J,{children:j||(0,n.jsxs)(n.Fragment,{children:[G," | ",H??nt," docs"]})}),secondary:(0,n.jsx)(h.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:P,overflow:"hidden"},color:"textSecondary",variant:"body2",children:T?.fields.text?(0,n.jsx)(p.e,{text:T.fields.text,preTag:T.preTag,postTag:T.postTag}):v.text})}):null},F=({children:G})=>L?(0,n.jsxs)(n.Fragment,{children:[$&&(0,n.jsx)(d.A,{children:typeof $=="function"?$(v):$}),(0,n.jsx)("div",{className:M.flexContainer,children:G})]}):(0,n.jsx)(n.Fragment,{children:G});return(0,n.jsx)(F,{children:(0,n.jsx)(Q,{})})}},97184:(V,S,t)=>{const a=document.querySelector('meta[name="backstage-public-path"]')?.getAttribute("content");a&&(t.p=a)},86973:()=>{}},V=>{var S=n=>V(V.s=n);V.O(0,[1751,1888,5067,1678,235,6587,1975,5042,7400,4538,4121],()=>(S(97184),S(71543)));var t=V.O()}]);})();
|
|
551
|
+
Feedback:`),Rt=k?.type==="github"?(0,$n.F)(N.href,"blob"):N.href,$t=Fn()(Rt),Bt=`/${$t.organization}/${$t.name}`,Ft=U.cloneNode();switch(k?.type){case"gitlab":Ft.href=`${N.origin}${Bt}/issues/new?issue[title]=${st}&issue[description]=${St}`;break;case"github":Ft.href=`${N.origin}${Bt}/issues/new?title=${st}&body=${St}`;break;default:return D}return fn(a.createElement(gs.A),Ft),Ft.style.paddingLeft="5px",Ft.title="Leave feedback for this page",Ft.id="git-feedback-link",U?.insertAdjacentElement("beforebegin",Ft),D};var fs=t(38097);const bn=(0,x.A)(f=>({button:{color:f.palette.primary.light,textDecoration:"underline"}})),Sn=({message:f,handleButtonClick:D,autoHideDuration:U})=>{const N=bn(),[k,X]=(0,a.useState)(!0),st=()=>X(!1);return(0,n.jsx)(fs.A,{open:k,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:U,color:"primary",onClose:st,message:f,action:(0,n.jsx)(ht.A,{classes:{root:N.button},size:"small",onClick:()=>{st(),D()},children:"Redirect now"})})},ms=(f,D)=>{const N=k=>{const X=jn(window.location.href),st=new URL(k,X);if(st.hostname!==window.location.hostname){const Rt=window.location.pathname,$t=Rt.indexOf(D),Bt=Rt.slice(0,$t+D.length);return new URL(Bt,X).href}return st.href};return k=>{for(const X of Array.from(k.querySelectorAll("meta")))if(X.getAttribute("http-equiv")==="refresh"){const st=X.getAttribute("content")?.split("url=");if(!st||st.length<2)return k;const St=st[1],Rt=N(St);if(window.location.href===Rt)return k;const $t=document.createElement("div");return fn((0,n.jsx)(Sn,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>f(Rt),autoHideDuration:3e3}),$t),document.body.appendChild($t),setTimeout(()=>{f(Rt)},3e3),k}return k}},kn=()=>f=>(setTimeout(()=>{const D=f?.querySelectorAll("li.md-nav__item--active");D.length!==0&&(D.forEach(N=>{const k=N?.querySelector("input");k?.checked||k?.click()}),D[D.length-1].scrollIntoView())},200),f);var Wn=t(50868),ys=t(10437),vs=t(71677),Es=t(87051),As=t(36338);const xs=(0,Es.A)(f=>({tooltip:{fontSize:"inherit",color:f.palette.text.primary,margin:0,padding:f.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(vs.Ay),Cs=()=>(0,n.jsx)(ys.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"})}),bs=({text:f})=>{const[D,U]=(0,a.useState)(!1),[,N]=(0,As.A)(),k=(0,a.useCallback)(()=>{N(f),U(!0)},[f,N]),X=(0,a.useCallback)(()=>{U(!1)},[U]);return(0,n.jsx)(xs,{title:"Copied to clipboard",placement:"left",open:D,onClose:X,leaveDelay:1e3,children:(0,n.jsx)(mt.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:k,children:(0,n.jsx)(Cs,{})})})},Ss=f=>D=>{const U=D.querySelectorAll("pre > code");for(const N of U){const k=N.textContent||"",X=document.createElement("div");N?.parentElement?.prepend(X),fn((0,n.jsx)(Wn.A,{theme:f,children:(0,n.jsx)(bs,{text:k})}),X)}return D},Os=({baseUrl:f,onClick:D})=>U=>(Array.from(U.getElementsByTagName("a")).forEach(N=>{N.addEventListener("click",k=>{const st=N.getAttribute("href");st&&st.startsWith(f)&&!N.hasAttribute("download")&&(k.preventDefault(),D(k,st))})}),U),Kn=({onLoading:f,onLoaded:D})=>U=>(f(),U.addEventListener(g,function N(){D(),U.removeEventListener(g,N)}),U);function Ps(f,D){const U=new URL(D),N=`${U.origin}${U.pathname.replace(/\/$/,"")}`,k=f.replace(N,"").replace(/^\/+/,""),X=new URL(`http://localhost/${k}`);return`${X.pathname}${X.search}${X.hash}`}function Ts(){const f=(0,a.useRef)((0,Nt.Zp)()),U=(0,nt.gf)(Y.U).getOptionalString("app.baseUrl");return(0,a.useCallback)(k=>{let X=k;if(U)try{X=Ps(k,U)}catch{}f.current(X)},[U])}const zn="screen and (max-width: 76.1875em)",Hn=f=>{const D=Ts(),U=(0,ke.A)(),N=(0,He.A)(zn),k=ie(),X=Cn(),st=(0,W.s)(),St=(0,nt.gf)(ge.s),Rt=(0,nt.gf)(Qe.Y),$t=(0,nt.gf)(Y.U),{state:Bt,path:Ft,content:Xt}=De(),{"*":he=""}=(0,Nt.g)(),[Ht,_t]=(0,a.useState)(null),Ae=A(Ht),re=(0,a.useCallback)(()=>{if(!Ht)return;Ht.querySelectorAll(".md-sidebar").forEach(ce=>{if(N)ce.style.top="0px";else{const Fe=document?.querySelector(".techdocs-reader-page")?.getBoundingClientRect().top??0;let Me=Ht.getBoundingClientRect().top??0;const ln=Ht.querySelector(".md-container > .md-tabs")?.getBoundingClientRect().height??0;Me<Fe&&(Me=Fe);const pe=Math.max(Me,0)+ln;ce.style.top=`${pe}px`;const dn=Ht.querySelector(".md-container > .md-footer")?.getBoundingClientRect().top??window.innerHeight;ce.style.height=`${dn-pe}px`}ce.style.setProperty("opacity","1")})},[Ht,N]);(0,a.useEffect)(()=>(window.addEventListener("resize",re),window.addEventListener("scroll",re,!0),()=>{window.removeEventListener("resize",re),window.removeEventListener("scroll",re,!0)}),[Ht,re]);const Zt=(0,a.useCallback)(()=>{if(!Ht)return;const qt=Ht.querySelector(".md-footer");qt&&(qt.style.width=`${Ht.getBoundingClientRect().width}px`)},[Ht]);(0,a.useEffect)(()=>(window.addEventListener("resize",Zt),()=>{window.removeEventListener("resize",Zt)}),[Ht,Zt]),(0,a.useEffect)(()=>{Ae||(Zt(),re())},[Bt,Ae,Zt,re]);const Jt=(0,a.useCallback)((qt,ce)=>Ln(qt,[k,cs({techdocsStorageApi:St,entityId:f,path:ce}),Bn(),ds(),us(),hs(),Nn(Rt),X]),[f,Rt,St,k,X]),Se=(0,a.useCallback)(async qt=>Ln(qt,[ms(D,f.name),kn(),Ss(U),Os({baseUrl:$t.getOptionalString("app.baseUrl")||window.location.origin,onClick:(ce,le)=>{const Fe=ce.ctrlKey||ce.metaKey,Me=new URL(le),nn=ce.target?.innerText||le,ln=le.replace(window.location.origin,"");st.captureEvent("click",nn,{attributes:{to:ln}}),Me.hash?Fe?window.open(le,"_blank"):(window.location.pathname!==Me.pathname?D(le):window.history.pushState(null,document.title,Me.hash),qt?.querySelector(`[id="${Me.hash.slice(1)}"]`)?.scrollIntoView()):Fe?window.open(le,"_blank"):D(le)}}),Kn({onLoading:()=>{},onLoaded:()=>{qt.querySelector(".md-nav__title")?.removeAttribute("for")}}),Kn({onLoading:()=>{Array.from(qt.querySelectorAll(".md-sidebar")).forEach(le=>{le.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[U,D,st,f.name,$t]);return(0,a.useEffect)(()=>{if(!Xt)return()=>{};let qt=!0;return Jt(Xt,Ft).then(async ce=>{if(!ce?.innerHTML||!qt||he!==Ft)return;window.scroll({top:0});const le=await Se(ce);_t(le)}),()=>{qt=!1}},[Xt,he,Ft,Jt,Se]),Ht};var On=t(41883),ws=t(72020),we=t(99730);const Ue=()=>{const f=(0,ws.YR)(),{shadowRoot:D}=(0,m.V)(),U=D?.querySelector('[data-md-component="content"]'),N=D?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let k=N?.querySelector('[data-techdocs-addons-location="primary sidebar"]');k||(k=document.createElement("div"),k.setAttribute("data-techdocs-addons-location","primary sidebar"),N?.prepend(k));const X=D?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let st=X?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return st||(st=document.createElement("div"),st.setAttribute("data-techdocs-addons-location","secondary sidebar"),X?.prepend(st)),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(On.A,{container:k,children:f.renderComponentsByLocation(we.e.PrimarySidebar)}),(0,n.jsx)(On.A,{container:U,children:f.renderComponentsByLocation(we.e.Content)}),(0,n.jsx)(On.A,{container:st,children:f.renderComponentsByLocation(we.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"}}}),Rs=ze(f=>{const{withSearch:D=!0,searchResultUrlMapper:U,onReady:N}=f,k=$e(),{entityMetadata:{value:X,loading:st},entityRef:St,setShadowRoot:Rt}=(0,m.V)(),{state:$t}=De(),Bt=Hn(St),Ft=window.location.pathname,Xt=window.location.hash,he=A(Bt),[Ht]=L([`[id="${Xt.slice(1)}"]`]),_t=(0,it.n)(),{NotFoundErrorPage:Ae}=_t.getComponents();(0,a.useEffect)(()=>{he||(Xt?Ht&&Ht.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[Ft,Xt,Ht,he]);const re=(0,a.useCallback)(Zt=>{Rt(Zt),N instanceof Function&&N()},[Rt,N]);return st===!1&&!X?(0,n.jsx)(Ae,{}):Bt?(0,n.jsx)($.U,{children:(0,n.jsxs)(d.A,{container:!0,children:[(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(ye,{})}),D&&(0,n.jsx)(d.A,{className:k.search,xs:"auto",item:!0,children:(0,n.jsx)(jt,{entityId:St,entityTitle:X?.metadata?.title,searchResultUrlMapper:U})}),(0,n.jsxs)(d.A,{xs:12,item:!0,children:[($t==="CHECKING"||he)&&(0,n.jsx)(M.k,{}),(0,n.jsx)(v,{element:Bt,onAppend:re,children:(0,n.jsx)(Ue,{})})]})]})}):(0,n.jsx)($.U,{children:(0,n.jsx)(d.A,{container:!0,children:(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(ye,{})})})})}),Is=null},45061:(V,S,t)=>{"use strict";t.d(S,{T:()=>bt});var n=t(31085),a=t(14041),d=t(93285),x=t(42899),m=t(4387),h=t(13660),u=t(72020),p=t(86892),g=t(99730),y=t(82292),A=t(67871),v=t(8859),T=t(34428),P=t(51372),L=t(6820),O=t(58837),j=t(268),$=t(72501),M=t(72072);const J=(0,O.A)(At=>({root:{textAlign:"left"},label:{color:At.page.fontColor,fontWeight:At.typography.fontWeightBold,letterSpacing:0,fontSize:At.typography.fontSize,marginBottom:At.spacing(1)/2,lineHeight:1},value:{color:(0,j.X4)(At.page.fontColor,.8),fontSize:At.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),Q=({value:At,className:Dt,typographyRootComponent:lt})=>(0,n.jsx)($.A,{component:lt??(typeof At=="string"?"p":"span"),className:Dt,children:At});function F(At){const{label:Dt,value:lt,url:dt,contentTypograpyRootComponent:xt}=At,ft=J(),Ct=(0,n.jsx)(Q,{className:ft.value,value:lt||"<Unknown>",typographyRootComponent:xt});return(0,n.jsx)(x.A,{item:!0,children:(0,n.jsxs)($.A,{component:"span",className:ft.root,children:[(0,n.jsx)($.A,{className:ft.label,children:Dt}),dt?(0,n.jsx)(M.N_,{to:dt,children:Ct}):Ct]})})}var G=t(69814),H=t(72427),nt=t(65461),W=t(9222),Z=t(56005),Y=t.n(Z),at=t(82779),pt=t(18690);const Et=(0,n.jsx)(m.A,{animation:"wave",variant:"text",height:40}),bt=At=>{const{children:Dt}=At,lt=(0,u.YR)(),dt=(0,H.gf)(nt.U),xt=(0,H.gf)(y.n),{"*":ft=""}=(0,pt.g)(),{title:Ct,setTitle:Pt,subtitle:it,setSubtitle:mt,entityRef:yt,metadata:{value:et,loading:ht},entityMetadata:{value:rt,loading:B}}=(0,p.V)();(0,a.useEffect)(()=>{et&&(Pt(et.site_name),mt(()=>{let{site_description:de}=et;return(!de||de==="None")&&(de=""),de}))},[et,Pt,mt]);const z=dt.getOptional("app.title")||"Backstage",{locationMetadata:ut,spec:Ot}=rt||{},It=Ot?.lifecycle,Lt=rt?(0,A.t)(rt,P.vv):[],Ut=(0,W.S)(at.rQ)(),Nt=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(F,{label:Y()(rt?.kind||"entity"),value:(0,n.jsx)(v.z,{color:"inherit",entityRef:yt,title:rt?.metadata.title,defaultKind:"Component"})}),Lt.length>0&&(0,n.jsx)(F,{label:"Owner",value:(0,n.jsx)(T.i,{color:"inherit",entityRefs:Lt,defaultKind:"group"})}),It?(0,n.jsx)(F,{label:"Lifecycle",value:String(It)}):null,ut&&ut.type!=="dir"&&ut.type!=="file"?(0,n.jsx)(F,{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:ut.target}):null]});if(!B&&rt===void 0||!ht&&et===void 0)return null;const te=(0,L.U2)(yt),jt=xt.forEntity(te).snapshot.primaryTitle,kt=de=>de.replace(/\/$/,""),ee=de=>de.replace(/-/g," ").split(" ").map(Y()).join(" ");let fe=[];ft!==""&&(fe=kt(ft).split("/").slice(0,3).map(ee));const ne=[z,jt,...fe].join(" | ");return(0,n.jsxs)(G.Y,{type:"Documentation",typeLink:Ut,title:Ct||Et,subtitle:it===""?void 0:it||Et,children:[(0,n.jsx)(d.A,{titleTemplate:"%s",children:(0,n.jsx)("title",{children:ne})}),Nt,Dt,lt.renderComponentsByLocation(g.e.Header)]})}},82779:(V,S,t)=>{"use strict";t.d(S,{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:(V,S,t)=>{"use strict";t.r(S),t.d(S,{TechDocsSearchResultListItem:()=>y});var n=t(31085),a=t(14041),d=t(68804),x=t(5951),m=t(58837),h=t(72501),u=t(72072),p=t(70734);const g=(0,m.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),y=A=>{const{result:v,highlight:T,lineClamp:P=5,asListItem:L=!0,asLink:O=!0,title:j,icon:$}=A,M=g(),J=({children:G})=>O?(0,n.jsx)(u.N_,{noTrack:!0,to:v.location,children:G}):(0,n.jsx)(n.Fragment,{children:G}),Q=()=>{const G=T?.fields.title?(0,n.jsx)(p.e,{text:T.fields.title,preTag:T.preTag,postTag:T.postTag}):v.title,H=T?.fields.entityTitle?(0,n.jsx)(p.e,{text:T.fields.entityTitle,preTag:T.preTag,postTag:T.postTag}):v.entityTitle,nt=T?.fields.name?(0,n.jsx)(p.e,{text:T.fields.name,preTag:T.preTag,postTag:T.postTag}):v.name;return v?(0,n.jsx)(x.A,{className:M.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,n.jsx)(J,{children:j||(0,n.jsxs)(n.Fragment,{children:[G," | ",H??nt," docs"]})}),secondary:(0,n.jsx)(h.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:P,overflow:"hidden"},color:"textSecondary",variant:"body2",children:T?.fields.text?(0,n.jsx)(p.e,{text:T.fields.text,preTag:T.preTag,postTag:T.postTag}):v.text})}):null},F=({children:G})=>L?(0,n.jsxs)(n.Fragment,{children:[$&&(0,n.jsx)(d.A,{children:typeof $=="function"?$(v):$}),(0,n.jsx)("div",{className:M.flexContainer,children:G})]}):(0,n.jsx)(n.Fragment,{children:G});return(0,n.jsx)(F,{children:(0,n.jsx)(Q,{})})}},97184:(V,S,t)=>{const a=document.querySelector('meta[name="backstage-public-path"]')?.getAttribute("content");a&&(t.p=a)},86973:()=>{}},V=>{var S=n=>V(V.s=n);V.O(0,[1751,1888,5067,1678,235,6587,5042,7400,1975,4538,4121],()=>(S(97184),S(71543)));var t=V.O()}]);})();
|
|
552
552
|
|
|
553
|
-
//# sourceMappingURL=main.
|
|
553
|
+
//# sourceMappingURL=main.ff98f0fa.js.map
|