@techdocs/cli 0.0.0-nightly-20240627021712 → 0.0.0-nightly-20240628021735
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 +46 -46
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/static/{main.2457c7e1.js → main.7315d124.js} +1 -1
- package/dist/embedded-app/static/{main.2457c7e1.js.map → main.7315d124.js.map} +1 -1
- package/dist/embedded-app/static/module-mui.6a6952b4.js +3 -0
- package/dist/embedded-app/static/module-mui.6a6952b4.js.map +1 -0
- package/dist/embedded-app/static/{runtime.2457c7e1.js → runtime.7315d124.js} +1 -1
- package/dist/embedded-app/static/{runtime.2457c7e1.js.map → runtime.7315d124.js.map} +1 -1
- package/dist/embedded-app/static/{vendor.2457c7e1.js → vendor.7315d124.js} +1 -1
- package/dist/embedded-app/static/{vendor.2457c7e1.js.map → vendor.7315d124.js.map} +1 -1
- package/package.json +4 -4
- package/dist/embedded-app/static/module-mui.bb6867cb.js +0 -3
- package/dist/embedded-app/static/module-mui.bb6867cb.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# @techdocs/cli
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20240628021735
|
|
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-
|
|
10
|
-
- @backstage/plugin-techdocs-node@0.0.0-nightly-
|
|
9
|
+
- @backstage/backend-defaults@0.0.0-nightly-20240628021735
|
|
10
|
+
- @backstage/plugin-techdocs-node@0.0.0-nightly-20240628021735
|
|
11
11
|
- @backstage/catalog-model@1.5.0
|
|
12
12
|
- @backstage/cli-common@0.1.14
|
|
13
13
|
- @backstage/config@1.2.0
|
|
@@ -333,51 +333,6 @@
|
|
|
333
333
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
334
334
|
}
|
|
335
335
|
},
|
|
336
|
-
{
|
|
337
|
-
"path": "../../plugins/techdocs/config.d.ts",
|
|
338
|
-
"value": {
|
|
339
|
-
"type": "object",
|
|
340
|
-
"properties": {
|
|
341
|
-
"techdocs": {
|
|
342
|
-
"description": "Configuration options for the techdocs plugin",
|
|
343
|
-
"type": "object",
|
|
344
|
-
"properties": {
|
|
345
|
-
"builder": {
|
|
346
|
-
"description": "Documentation building process depends on the builder attr",
|
|
347
|
-
"visibility": "frontend",
|
|
348
|
-
"enum": [
|
|
349
|
-
"external",
|
|
350
|
-
"local"
|
|
351
|
-
],
|
|
352
|
-
"type": "string"
|
|
353
|
-
},
|
|
354
|
-
"legacyUseCaseSensitiveTripletPaths": {
|
|
355
|
-
"description": "Allows fallback to case-sensitive triplets in case of migration issues.",
|
|
356
|
-
"visibility": "frontend",
|
|
357
|
-
"type": "boolean"
|
|
358
|
-
},
|
|
359
|
-
"sanitizer": {
|
|
360
|
-
"type": "object",
|
|
361
|
-
"properties": {
|
|
362
|
-
"allowedIframeHosts": {
|
|
363
|
-
"description": "Allows iframe tag only for listed hosts\nExample:\n allowedIframeHosts: [\"example.com\"]\n this will allow all iframes with the host `example.com` in the src attribute",
|
|
364
|
-
"visibility": "frontend",
|
|
365
|
-
"type": "array",
|
|
366
|
-
"items": {
|
|
367
|
-
"type": "string"
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
"required": [
|
|
376
|
-
"techdocs"
|
|
377
|
-
],
|
|
378
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
379
|
-
}
|
|
380
|
-
},
|
|
381
336
|
{
|
|
382
337
|
"path": "../core-components/config.d.ts",
|
|
383
338
|
"value": {
|
|
@@ -423,6 +378,51 @@
|
|
|
423
378
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
424
379
|
}
|
|
425
380
|
},
|
|
381
|
+
{
|
|
382
|
+
"path": "../../plugins/techdocs/config.d.ts",
|
|
383
|
+
"value": {
|
|
384
|
+
"type": "object",
|
|
385
|
+
"properties": {
|
|
386
|
+
"techdocs": {
|
|
387
|
+
"description": "Configuration options for the techdocs plugin",
|
|
388
|
+
"type": "object",
|
|
389
|
+
"properties": {
|
|
390
|
+
"builder": {
|
|
391
|
+
"description": "Documentation building process depends on the builder attr",
|
|
392
|
+
"visibility": "frontend",
|
|
393
|
+
"enum": [
|
|
394
|
+
"external",
|
|
395
|
+
"local"
|
|
396
|
+
],
|
|
397
|
+
"type": "string"
|
|
398
|
+
},
|
|
399
|
+
"legacyUseCaseSensitiveTripletPaths": {
|
|
400
|
+
"description": "Allows fallback to case-sensitive triplets in case of migration issues.",
|
|
401
|
+
"visibility": "frontend",
|
|
402
|
+
"type": "boolean"
|
|
403
|
+
},
|
|
404
|
+
"sanitizer": {
|
|
405
|
+
"type": "object",
|
|
406
|
+
"properties": {
|
|
407
|
+
"allowedIframeHosts": {
|
|
408
|
+
"description": "Allows iframe tag only for listed hosts\nExample:\n allowedIframeHosts: [\"example.com\"]\n this will allow all iframes with the host `example.com` in the src attribute",
|
|
409
|
+
"visibility": "frontend",
|
|
410
|
+
"type": "array",
|
|
411
|
+
"items": {
|
|
412
|
+
"type": "string"
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"required": [
|
|
421
|
+
"techdocs"
|
|
422
|
+
],
|
|
423
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
426
|
{
|
|
427
427
|
"path": "../integration/config.d.ts",
|
|
428
428
|
"value": {
|
|
@@ -1487,7 +1487,7 @@
|
|
|
1487
1487
|
}
|
|
1488
1488
|
},
|
|
1489
1489
|
{
|
|
1490
|
-
"path": "../../node_modules/@backstage-community/plugin-
|
|
1490
|
+
"path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/core-components/config.d.ts",
|
|
1491
1491
|
"value": {
|
|
1492
1492
|
"type": "object",
|
|
1493
1493
|
"properties": {
|
|
@@ -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.7315d124.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.7315d124.js"></script><script defer="defer" src="/static/main.7315d124.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
|
@@ -506,4 +506,4 @@ ${N.href}
|
|
|
506
506
|
|
|
507
507
|
Feedback:`),Wt=(q==null?void 0:q.type)==="github"?(0,Bo.F)(X.href,"blob"):X.href,Vt=Fo()(Wt),Kt=`/${Vt.organization}/${Vt.name}`,Mt=N.cloneNode();switch(q==null?void 0:q.type){case"gitlab":Mt.href=`${X.origin}${Kt}/issues/new?issue[title]=${Ct}&issue[description]=${Ut}`;break;case"github":Mt.href=`${X.origin}${Kt}/issues/new?title=${Ct}&body=${Ut}`;break;default:return R}return Bn(i.createElement(Uo.A),Mt),Mt.style.paddingLeft="5px",Mt.title="Leave feedback for this page",Mt.id="git-feedback-link",N==null||N.insertAdjacentElement("beforebegin",Mt),R},to=()=>p=>(setTimeout(()=>{const R=p==null?void 0:p.querySelectorAll("li.md-nav__item--active");R.length!==0&&(R.forEach(N=>{const X=N==null?void 0:N.querySelector("input");X!=null&&X.checked||X==null||X.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),[,N]=(0,Ko.A)(),X=(0,i.useCallback)(()=>{N(p),$(!0)},[p,N]),q=(0,i.useCallback)(()=>{$(!1)},[$]);return(0,o.jsx)(Un,{title:"Copied to clipboard",placement:"left",open:R,onClose:q,leaveDelay:1e3,children:(0,o.jsx)(jt.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:X,children:(0,o.jsx)($n,{})})})},oo=p=>R=>{const $=R.querySelectorAll("pre > code");for(const X of $){var N;const q=X.textContent||"",rt=document.createElement("div");X==null||(N=X.parentElement)===null||N===void 0||N.prepend(rt),Bn((0,o.jsx)(Wo.A,{theme:p,children:(0,o.jsx)(zo,{text:q})}),rt)}return R},so=({baseUrl:p,onClick:R})=>$=>(Array.from($.getElementsByTagName("a")).forEach(N=>{N.addEventListener("click",X=>{const rt=N.getAttribute("href");rt&&rt.startsWith(p)&&!N.hasAttribute("download")&&(X.preventDefault(),R(X,rt))})}),$),ro=({onLoading:p,onLoaded:R})=>$=>(p(),$.addEventListener(E,function N(){R(),$.removeEventListener(E,N)}),$);function Ho(p,R){const $=new URL(R),N=`${$.origin}${$.pathname.replace(/\/$/,"")}`,X=p.replace(N,"").replace(/^\/+/,""),q=new URL(`http://localhost/${X}`);return`${q.pathname}${q.search}${q.hash}`}function Vo(){const p=(0,Nt.Zp)(),$=(0,J.gf)(et.U).getOptionalString("app.baseUrl");return(0,i.useCallback)(X=>{let q=X;if($)try{q=Ho(X,$)}catch{}p(q)},[p,$])}const _o="screen and (max-width: 76.1875em)",Go=p=>{const R=Vo(),$=(0,un.A)(),N=(0,ze.A)(_o),X=Rt(),q=gn(),rt=(0,V.s)(),Ct=(0,J.gf)(Ye.s),Ut=(0,J.gf)(Tn.Y),{state:Wt,path:Vt,content:Kt}=ye(),[Mt,ee]=(0,i.useState)(null),pe=h(Mt),ne=(0,i.useCallback)(()=>{if(!Mt)return;Mt.querySelectorAll(".md-sidebar").forEach(_t=>{if(N)_t.style.top="0px";else{var Zt;const Le=(Zt=document)===null||Zt===void 0?void 0:Zt.querySelector(".techdocs-reader-page");var Ae;const le=(Ae=Le==null?void 0:Le.getBoundingClientRect().top)!==null&&Ae!==void 0?Ae:0;var Oe;let Wn=(Oe=Mt.getBoundingClientRect().top)!==null&&Oe!==void 0?Oe:0;const kn=Mt.querySelector(".md-container > .md-tabs");var Ge;const Zo=(Ge=kn==null?void 0:kn.getBoundingClientRect().height)!==null&&Ge!==void 0?Ge:0;Wn<le&&(Wn=le);const vn=Math.max(Wn,0)+Zo;_t.style.top=`${vn}px`;const Kn=Mt.querySelector(".md-container > .md-footer");var fe;const yn=(fe=Kn==null?void 0:Kn.getBoundingClientRect().top)!==null&&fe!==void 0?fe:window.innerHeight;_t.style.height=`${yn-vn}px`}_t.style.setProperty("opacity","1")})},[Mt,N]);(0,i.useEffect)(()=>(window.addEventListener("resize",ne),window.addEventListener("scroll",ne,!0),()=>{window.removeEventListener("resize",ne),window.removeEventListener("scroll",ne,!0)}),[Mt,ne]);const qt=(0,i.useCallback)(()=>{if(!Mt)return;const Lt=Mt.querySelector(".md-footer");Lt&&(Lt.style.width=`${Mt.getBoundingClientRect().width}px`)},[Mt]);(0,i.useEffect)(()=>(window.addEventListener("resize",qt),()=>{window.removeEventListener("resize",qt)}),[Mt,qt]),(0,i.useEffect)(()=>{pe||(qt(),ne())},[Wt,pe,qt,ne]);const Qt=(0,i.useCallback)((Lt,_t)=>He(Lt,[X,Mn({techdocsStorageApi:Ct,entityId:p,path:_t}),Ln(),qn(),Lo(),jo(),No(Ut),q]),[p,Ut,Ct,X,q]),ce=(0,i.useCallback)(async Lt=>He(Lt,[to(),oo($),so({baseUrl:window.location.origin,onClick:(_t,Zt)=>{var Ae;const Oe=_t.ctrlKey||_t.metaKey,Ge=new URL(Zt),fe=((Ae=_t.target)===null||Ae===void 0?void 0:Ae.innerText)||Zt,Le=Zt.replace(window.location.origin,"");if(rt.captureEvent("click",fe,{attributes:{to:Le}}),Ge.hash)if(Oe)window.open(Zt,"_blank");else{var le;R(Zt),Lt==null||(le=Lt.querySelector(`[id="${Ge.hash.slice(1)}"]`))===null||le===void 0||le.scrollIntoView()}else Oe?window.open(Zt,"_blank"):R(Zt)}}),ro({onLoading:()=>{},onLoaded:()=>{var _t;(_t=Lt.querySelector(".md-nav__title"))===null||_t===void 0||_t.removeAttribute("for")}}),ro({onLoading:()=>{Array.from(Lt.querySelectorAll(".md-sidebar")).forEach(Zt=>{Zt.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[$,R,rt]);return(0,i.useEffect)(()=>{if(!Kt)return()=>{};let Lt=!0;return Qt(Kt,Vt).then(async _t=>{if(!(_t!=null&&_t.innerHTML)||!Lt)return;window.scroll({top:0});const Zt=await ce(_t);ee(Zt)}),()=>{Lt=!1}},[Kt,Vt,Qt,ce]),Mt};var Fn=t(41883),Yo=t(72020),Nn=t(99730);const Qo=()=>{const p=(0,Yo.YR)(),{shadowRoot:R}=(0,y.V)(),$=R==null?void 0:R.querySelector('[data-md-component="content"]'),N=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let X=N==null?void 0:N.querySelector('[data-techdocs-addons-location="primary sidebar"]');X||(X=document.createElement("div"),X.setAttribute("data-techdocs-addons-location","primary sidebar"),N==null||N.prepend(X));const q=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let rt=q==null?void 0:q.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return rt||(rt=document.createElement("div"),rt.setAttribute("data-techdocs-addons-location","secondary sidebar"),q==null||q.prepend(rt)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Fn.A,{container:X,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,O.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),ao=Qe(p=>{var R;const{withSearch:$=!0,onReady:N}=p,X=io(),{entityMetadata:{value:q,loading:rt},entityRef:Ct,setShadowRoot:Ut,incShadowRootVersion:Wt}=(0,y.V)(),Vt=Go(Ct),Kt=window.location.pathname,Mt=window.location.hash,ee=h(Vt),[pe]=P([`[id="${Mt.slice(1)}"]`]);(0,i.useEffect)(()=>{if(!ee)if(Mt)pe&&pe.scrollIntoView();else{var qt,Qt;(Qt=document)===null||Qt===void 0||(qt=Qt.querySelector("header"))===null||qt===void 0||qt.scrollIntoView()}},[Kt,Mt,pe,ee]);const ne=(0,i.useCallback)(qt=>{Ut(qt),Wt(),N instanceof Function&&N()},[Ut,Wt,N]);return rt===!1&&!q?(0,o.jsx)(M.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Vt?(0,o.jsx)(v.U,{children:(0,o.jsxs)(d.A,{container:!0,children:[(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(Ue,{})}),$&&(0,o.jsx)(d.A,{className:X.search,xs:"auto",item:!0,children:(0,o.jsx)(ie,{entityId:Ct,entityTitle:q==null||(R=q.metadata)===null||R===void 0?void 0:R.title})}),(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(S,{element:Vt,onAppend:ne,children:(0,o.jsx)(Qo,{})})})]})}):(0,o.jsx)(v.U,{children:(0,o.jsx)(d.A,{container:!0,children:(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(Ue,{})})})})}),Dt=null},45061:(Q,T,t)=>{"use strict";t.d(T,{T:()=>tt});var o=t(31085),i=t(14041),d=t(93285),O=t(42899),y=t(4387),m=t(13660),g=t(72020),c=t(86892),C=t(99730),E=t(67871),w=t(8859),h=t(34428),S=t(51372),f=t(58837),B=t(268),P=t(72501),A=t(72072);const U=(0,f.A)(et=>({root:{textAlign:"left"},label:{color:et.page.fontColor,fontWeight:et.typography.fontWeightBold,letterSpacing:0,fontSize:et.typography.fontSize,marginBottom:et.spacing(1)/2,lineHeight:1},value:{color:(0,B.X4)(et.page.fontColor,.8),fontSize:et.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),M=({value:et,className:dt,typographyRootComponent:ht})=>(0,o.jsx)(P.A,{component:ht!=null?ht:typeof et=="string"?"p":"span",className:dt,children:et});function v(et){const{label:dt,value:ht,url:Ot,contentTypograpyRootComponent:ut}=et,lt=U(),ct=(0,o.jsx)(M,{className:lt.value,value:ht||"<Unknown>",typographyRootComponent:ut});return(0,o.jsx)(O.A,{item:!0,children:(0,o.jsxs)(P.A,{component:"span",className:lt.root,children:[(0,o.jsx)(P.A,{className:lt.label,children:dt}),Ot?(0,o.jsx)(A.N_,{to:Ot,children:ct}):ct]})})}var z=t(69814),H=t(72427),_=t(65461),K=t(9222),W=t(45250),J=t(82779);const V=(0,o.jsx)(y.A,{animation:"wave",variant:"text",height:40}),tt=et=>{const{children:dt}=et,ht=(0,g.YR)(),Ot=(0,H.gf)(_.U),{title:ut,setTitle:lt,subtitle:ct,setSubtitle:gt,entityRef:At,metadata:{value:yt,loading:Tt},entityMetadata:{value:mt,loading:wt}}=(0,c.V)();(0,i.useEffect)(()=>{yt&&(lt(yt.site_name),gt(()=>{let{site_description:It}=yt;return(!It||It==="None")&&(It=""),It}))},[yt,lt,gt]);const jt=Ot.getOptional("app.title")||"Backstage",ft=[ut,ct,jt].filter(Boolean).join(" | "),{locationMetadata:St,spec:pt}=mt||{},k=pt==null?void 0:pt.lifecycle,G=mt?(0,E.t)(mt,S.vv):[],at=(0,K.S)(J.rQ)(),vt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{label:(0,W.capitalize)((mt==null?void 0:mt.kind)||"entity"),value:(0,o.jsx)(w.z,{color:"inherit",entityRef:At,title:mt==null?void 0:mt.metadata.title,defaultKind:"Component"})}),G.length>0&&(0,o.jsx)(v,{label:"Owner",value:(0,o.jsx)(h.i,{color:"inherit",entityRefs:G,defaultKind:"group"})}),k?(0,o.jsx)(v,{label:"Lifecycle",value:String(k)}):null,St&&St.type!=="dir"&&St.type!=="file"?(0,o.jsx)(v,{label:"",value:(0,o.jsxs)(O.A,{container:!0,direction:"column",alignItems:"center",children:[(0,o.jsx)(O.A,{style:{padding:0},item:!0,children:(0,o.jsx)(m.A,{style:{marginTop:"-25px"}})}),(0,o.jsx)(O.A,{style:{padding:0},item:!0,children:"Source"})]}),url:St.target}):null]});return!wt&&mt===void 0||!Tt&&yt===void 0?null:(0,o.jsxs)(z.Y,{type:"Documentation",typeLink:at,title:ut||V,subtitle:ct===""?void 0:ct||V,children:[(0,o.jsx)(d.A,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:ft})}),vt,dt,ht.renderComponentsByLocation(C.e.Header)]})}},82779:(Q,T,t)=>{"use strict";t.d(T,{Oc:()=>d,Ri:()=>O,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"]}),O=(0,o.H)({id:"techdocs:catalog-reader-view"})},27698:(Q,T,t)=>{"use strict";t.r(T),t.d(T,{TechDocsSearchResultListItem:()=>E});var o=t(31085),i=t(14041),d=t(46423),O=t(5951),y=t(58837),m=t(72501),g=t(72072),c=t(70734);const C=(0,y.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),E=w=>{const{result:h,highlight:S,lineClamp:f=5,asListItem:B=!0,asLink:P=!0,title:A,icon:U}=w,M=C(),v=({children:_})=>P?(0,o.jsx)(g.N_,{noTrack:!0,to:h.location,children:_}):(0,o.jsx)(o.Fragment,{children:_}),z=()=>{const _=S!=null&&S.fields.title?(0,o.jsx)(c.e,{text:S.fields.title,preTag:S.preTag,postTag:S.postTag}):h.title,K=S!=null&&S.fields.entityTitle?(0,o.jsx)(c.e,{text:S.fields.entityTitle,preTag:S.preTag,postTag:S.postTag}):h.entityTitle,W=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)(O.A,{className:M.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(v,{children:A||(0,o.jsxs)(o.Fragment,{children:[_," | ",K!=null?K:W," 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:_})=>B?(0,o.jsxs)(o.Fragment,{children:[U&&(0,o.jsx)(d.A,{children:typeof U=="function"?U(h):U}),(0,o.jsx)("div",{className:M.flexContainer,children:_})]}):(0,o.jsx)(o.Fragment,{children:_});return(0,o.jsx)(H,{children:(0,o.jsx)(z,{})})}},86973:()=>{}},Q=>{var T=o=>Q(Q.s=o);Q.O(0,[1751,1888,5067,1678,235,6587,2754,9669,1975,5042,7400,4121],()=>T(85318));var t=Q.O()}]);})();
|
|
508
508
|
|
|
509
|
-
//# sourceMappingURL=main.
|
|
509
|
+
//# sourceMappingURL=main.7315d124.js.map
|