@techdocs/cli 0.0.0-nightly-20240128021149 → 0.0.0-nightly-20240129021015

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,14 +1,14 @@
1
1
  # @techdocs/cli
2
2
 
3
- ## 0.0.0-nightly-20240128021149
3
+ ## 0.0.0-nightly-20240129021015
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - d8d243c: fix: mkdocs parameter casing
8
8
  - Updated dependencies
9
- - @backstage/backend-common@0.0.0-nightly-20240128021149
10
- - @backstage/plugin-techdocs-node@0.0.0-nightly-20240128021149
11
- - @backstage/catalog-model@1.4.3
9
+ - @backstage/backend-common@0.0.0-nightly-20240129021015
10
+ - @backstage/catalog-model@0.0.0-nightly-20240129021015
11
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20240129021015
12
12
  - @backstage/cli-common@0.1.13
13
13
  - @backstage/config@1.1.1
14
14
 
@@ -95,26 +95,6 @@
95
95
  },
96
96
  "path": "../cli/package.json"
97
97
  },
98
- {
99
- "path": "../../plugins/permission-common/config.d.ts",
100
- "value": {
101
- "type": "object",
102
- "properties": {
103
- "permission": {
104
- "description": "Configuration options for Backstage permissions and authorization",
105
- "type": "object",
106
- "properties": {
107
- "enabled": {
108
- "description": "Whether authorization is enabled in Backstage. Defaults to false, which means authorization\nrequests will be automatically allowed without invoking the authorization policy.",
109
- "visibility": "frontend",
110
- "type": "boolean"
111
- }
112
- }
113
- }
114
- },
115
- "$schema": "http://json-schema.org/draft-07/schema#"
116
- }
117
- },
118
98
  {
119
99
  "path": "../core-app-api/config.d.ts",
120
100
  "value": {
@@ -323,6 +303,26 @@
323
303
  "$schema": "http://json-schema.org/draft-07/schema#"
324
304
  }
325
305
  },
306
+ {
307
+ "path": "../../plugins/permission-common/config.d.ts",
308
+ "value": {
309
+ "type": "object",
310
+ "properties": {
311
+ "permission": {
312
+ "description": "Configuration options for Backstage permissions and authorization",
313
+ "type": "object",
314
+ "properties": {
315
+ "enabled": {
316
+ "description": "Whether authorization is enabled in Backstage. Defaults to false, which means authorization\nrequests will be automatically allowed without invoking the authorization policy.",
317
+ "visibility": "frontend",
318
+ "type": "boolean"
319
+ }
320
+ }
321
+ }
322
+ },
323
+ "$schema": "http://json-schema.org/draft-07/schema#"
324
+ }
325
+ },
326
326
  {
327
327
  "path": "../core-components/config.d.ts",
328
328
  "value": {
@@ -961,28 +961,6 @@
961
961
  "$schema": "http://json-schema.org/draft-07/schema#"
962
962
  }
963
963
  },
964
- {
965
- "path": "../../plugins/stackstorm/config.d.ts",
966
- "value": {
967
- "type": "object",
968
- "properties": {
969
- "stackstorm": {
970
- "type": "object",
971
- "properties": {
972
- "webUrl": {
973
- "description": "StackStorm Web UI url\nUsed in links to StackStorm web UI",
974
- "visibility": "frontend",
975
- "type": "string"
976
- }
977
- },
978
- "required": [
979
- "webUrl"
980
- ]
981
- }
982
- },
983
- "$schema": "http://json-schema.org/draft-07/schema#"
984
- }
985
- },
986
964
  {
987
965
  "path": "../../node_modules/@oriflame/backstage-plugin-score-card/config.d.ts",
988
966
  "value": {
@@ -1011,6 +989,28 @@
1011
989
  "$schema": "http://json-schema.org/draft-07/schema#"
1012
990
  }
1013
991
  },
992
+ {
993
+ "path": "../../plugins/stackstorm/config.d.ts",
994
+ "value": {
995
+ "type": "object",
996
+ "properties": {
997
+ "stackstorm": {
998
+ "type": "object",
999
+ "properties": {
1000
+ "webUrl": {
1001
+ "description": "StackStorm Web UI url\nUsed in links to StackStorm web UI",
1002
+ "visibility": "frontend",
1003
+ "type": "string"
1004
+ }
1005
+ },
1006
+ "required": [
1007
+ "webUrl"
1008
+ ]
1009
+ }
1010
+ },
1011
+ "$schema": "http://json-schema.org/draft-07/schema#"
1012
+ }
1013
+ },
1014
1014
  {
1015
1015
  "path": "../backend-common/config.d.ts",
1016
1016
  "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 platform 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><script defer="defer" src="/static/runtime.384b11ae.js"></script><script defer="defer" src="/static/module-material-ui.e26d0f76.js"></script><script defer="defer" src="/static/module-lodash.fa492ce2.js"></script><script defer="defer" src="/static/module-date-fns.b8b6c380.js"></script><script defer="defer" src="/static/module-material-table.dc2e7a78.js"></script><script defer="defer" src="/static/module-react-dom.c3454ade.js"></script><script defer="defer" src="/static/module-react-router.fc2430de.js"></script><script defer="defer" src="/static/module-react-router-dom.6a4a6115.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.d66821d2.js"></script><script defer="defer" src="/static/module-zod.9e0f365e.js"></script><script defer="defer" src="/static/module-i18next.db8a27ed.js"></script><script defer="defer" src="/static/vendor.384b11ae.js"></script><script defer="defer" src="/static/main.384b11ae.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 platform 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><script defer="defer" src="/static/runtime.8231481f.js"></script><script defer="defer" src="/static/module-material-ui.e26d0f76.js"></script><script defer="defer" src="/static/module-lodash.fa492ce2.js"></script><script defer="defer" src="/static/module-date-fns.b8b6c380.js"></script><script defer="defer" src="/static/module-material-table.dc2e7a78.js"></script><script defer="defer" src="/static/module-react-dom.c3454ade.js"></script><script defer="defer" src="/static/module-react-router.fc2430de.js"></script><script defer="defer" src="/static/module-react-router-dom.6a4a6115.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.d66821d2.js"></script><script defer="defer" src="/static/module-zod.9e0f365e.js"></script><script defer="defer" src="/static/module-i18next.db8a27ed.js"></script><script defer="defer" src="/static/vendor.8231481f.js"></script><script defer="defer" src="/static/main.8231481f.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -488,4 +488,4 @@ ${$.href}
488
488
 
489
489
  Feedback:`),$t=(ot==null?void 0:ot.type)==="github"?(0,Ro.B)(_.href,"blob"):_.href,Jt=Do()($t),Wt=`/${Jt.organization}/${Jt.name}`,Pt=$.cloneNode();switch(ot==null?void 0:ot.type){case"gitlab":Pt.href=`${_.origin}${Wt}/issues/new?issue[title]=${Ct}&issue[description]=${It}`;break;case"github":Pt.href=`${_.origin}${Wt}/issues/new?title=${Ct}&body=${It}`;break;default:return T}return Cn(i.createElement(Io.Z),Pt),Pt.style.paddingLeft="5px",Pt.title="Leave feedback for this page",Pt.id="git-feedback-link",$==null||$.insertAdjacentElement("beforebegin",Pt),T},Kn=()=>p=>(setTimeout(()=>{const T=p==null?void 0:p.querySelectorAll("li.md-nav__item--active");T.length!==0&&(T.forEach($=>{const _=$==null?void 0:$.querySelector("input");_!=null&&_.checked||_==null||_.click()}),T[T.length-1].scrollIntoView())},200),p);var Hn=t(15459),jo=t(80030),An=t(72379),Sn=t(41547),Mo=t(95074);const Gn=(0,Hn.Z)(p=>({tooltip:{fontSize:"inherit",color:p.palette.text.primary,margin:0,padding:p.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(jo.ZP),Vn=()=>(0,o.jsx)(An.Z,{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"})}),Bo=({text:p})=>{const[T,B]=(0,i.useState)(!1),[,$]=(0,Mo.Z)(),_=(0,i.useCallback)(()=>{$(p),B(!0)},[p,$]),ot=(0,i.useCallback)(()=>{B(!1)},[B]);return(0,o.jsx)(Gn,{title:"Copied to clipboard",placement:"left",open:T,onClose:ot,leaveDelay:1e3,children:(0,o.jsx)(ut.Z,{style:{color:"inherit"},className:"md-clipboard md-icon",onClick:_,children:(0,o.jsx)(Vn,{})})})},Uo=p=>T=>{const B=T.querySelectorAll("pre > code");for(const _ of B){var $;const ot=_.textContent||"",dt=document.createElement("div");_==null||($=_.parentElement)===null||$===void 0||$.prepend(dt),Cn((0,o.jsx)(Sn.Z,{theme:p,children:(0,o.jsx)(Bo,{text:ot})}),dt)}return T},Fo=({baseUrl:p,onClick:T})=>B=>(Array.from(B.getElementsByTagName("a")).forEach($=>{$.addEventListener("click",_=>{const dt=$.getAttribute("href");dt&&dt.startsWith(p)&&!$.hasAttribute("download")&&(_.preventDefault(),T(_,dt))})}),B),Yn=({onLoading:p,onLoaded:T})=>B=>(p(),B.addEventListener(x,function $(){T(),B.removeEventListener(x,$)}),B);function $o(p,T){const B=new URL(T),$=`${B.origin}${B.pathname.replace(/\/$/,"")}`,_=p.replace($,"").replace(/^\/+/,""),ot=new URL(`http://localhost/${_}`);return`${ot.pathname}${ot.search}${ot.hash}`}function No(){const p=(0,Yt.s0)(),B=(0,z.h_)(ft.D).getOptionalString("app.baseUrl");return(0,i.useCallback)(_=>{let ot=_;if(B)try{ot=$o(_,B)}catch{}p(ot)},[p,B])}const Wo="screen and (max-width: 76.1875em)",Zo=p=>{const T=No(),B=(0,lt.Z)(),$=(0,Ot.Z)(Wo),_=Un(),ot=So(),dt=(0,et.z)(),Ct=(0,z.h_)(ie.D),It=(0,z.h_)(Rt.q),{state:$t,path:Jt,content:Wt}=Ne(),[Pt,ce]=(0,i.useState)(null),me=v(Pt),Xt=(0,i.useCallback)(()=>{if(!Pt)return;Pt.querySelectorAll(".md-sidebar").forEach(Ht=>{if($)Ht.style.top="0px";else{var qt;const fe=(qt=document)===null||qt===void 0?void 0:qt.querySelector(".techdocs-reader-page");var Ce;const De=(Ce=fe==null?void 0:fe.getBoundingClientRect().top)!==null&&Ce!==void 0?Ce:0;var Ie;let ne=(Ie=Pt.getBoundingClientRect().top)!==null&&Ie!==void 0?Ie:0;const Xe=Pt.querySelector(".md-container > .md-tabs");var We;const dn=(We=Xe==null?void 0:Xe.getBoundingClientRect().height)!==null&&We!==void 0?We:0;ne<De&&(ne=De),Ht.style.top=`${Math.max(ne,0)+dn}px`}Ht.style.setProperty("opacity","1")})},[Pt,$]);(0,i.useEffect)(()=>(window.addEventListener("resize",Xt),window.addEventListener("scroll",Xt,!0),()=>{window.removeEventListener("resize",Xt),window.removeEventListener("scroll",Xt,!0)}),[Pt,Xt]);const Mt=(0,i.useCallback)(()=>{if(!Pt)return;const Dt=Pt.querySelector(".md-footer");Dt&&(Dt.style.width=`${Pt.getBoundingClientRect().width}px`)},[Pt]);(0,i.useEffect)(()=>(window.addEventListener("resize",Mt),()=>{window.removeEventListener("resize",Mt)}),[Pt,Mt]),(0,i.useEffect)(()=>{me||(Mt(),Xt())},[$t,me,Mt,Xt]);const re=(0,i.useCallback)((Dt,Ht)=>Nn(Dt,[_,bo({techdocsStorageApi:Ct,entityId:p,path:Ht}),Wn(),wo(),Po(),To(),Lo(It),ot]),[p,It,Ct,_,ot]),ye=(0,i.useCallback)(async Dt=>Nn(Dt,[Kn(),Uo(B),Fo({baseUrl:window.location.origin,onClick:(Ht,qt)=>{var Ce;const Ie=Ht.ctrlKey||Ht.metaKey,We=new URL(qt),fe=((Ce=Ht.target)===null||Ce===void 0?void 0:Ce.innerText)||qt,De=qt.replace(window.location.origin,"");if(dt.captureEvent("click",fe,{attributes:{to:De}}),We.hash)if(Ie)window.open(qt,"_blank");else{var ne;T(qt),Dt==null||(ne=Dt.querySelector(`[id="${We.hash.slice(1)}"]`))===null||ne===void 0||ne.scrollIntoView()}else Ie?window.open(qt,"_blank"):T(qt)}}),Yn({onLoading:()=>{},onLoaded:()=>{var Ht;(Ht=Dt.querySelector(".md-nav__title"))===null||Ht===void 0||Ht.removeAttribute("for")}}),Yn({onLoading:()=>{Array.from(Dt.querySelectorAll(".md-sidebar")).forEach(qt=>{qt.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[B,T,dt]);return(0,i.useEffect)(()=>{if(!Wt)return()=>{};let Dt=!0;return re(Wt,Jt).then(async Ht=>{if(!(Ht!=null&&Ht.innerHTML)||!Dt)return;window.scroll({top:0});const qt=await ye(Ht);ce(qt)}),()=>{Dt=!1}},[Wt,Jt,re,ye]),Pt};var cn=t(8560),Qn=t(2296),wt=t(57058);const ue=()=>{const p=(0,Qn.$L)(),{shadowRoot:T}=(0,m.x)(),B=T==null?void 0:T.querySelector('[data-md-component="content"]'),$=T==null?void 0:T.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let _=$==null?void 0:$.querySelector('[data-techdocs-addons-location="primary sidebar"]');_||(_=document.createElement("div"),_.setAttribute("data-techdocs-addons-location","primary sidebar"),$==null||$.prepend(_));const ot=T==null?void 0:T.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let dt=ot==null?void 0:ot.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return dt||(dt=document.createElement("div"),dt.setAttribute("data-techdocs-addons-location","secondary sidebar"),ot==null||ot.prepend(dt)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(cn.Z,{container:_,children:p.renderComponentsByLocation(wt.o.PrimarySidebar)}),(0,o.jsx)(cn.Z,{container:B,children:p.renderComponentsByLocation(wt.o.Content)}),(0,o.jsx)(cn.Z,{container:dt,children:p.renderComponentsByLocation(wt.o.SecondarySidebar)})]})},he=(0,d.Z)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),ko=f(p=>{var T;const{withSearch:B=!0,onReady:$}=p,_=he(),{entityMetadata:{value:ot,loading:dt},entityRef:Ct,setShadowRoot:It}=(0,m.x)(),$t=Zo(Ct),Jt=window.location.pathname,Wt=window.location.hash,Pt=v($t),[ce]=R([`[id="${Wt.slice(1)}"]`]);(0,i.useEffect)(()=>{if(!Pt)if(Wt)ce&&ce.scrollIntoView();else{var Xt,Mt;(Mt=document)===null||Mt===void 0||(Xt=Mt.querySelector("header"))===null||Xt===void 0||Xt.scrollIntoView()}},[Jt,Wt,ce,Pt]);const me=(0,i.useCallback)(Xt=>{It(Xt),$ instanceof Function&&$()},[It,$]);return dt===!1&&!ot?(0,o.jsx)(I.m,{status:"404",statusMessage:"PAGE NOT FOUND"}):$t?(0,o.jsx)(b.V,{children:(0,o.jsxs)(S.Z,{container:!0,children:[(0,o.jsx)(S.Z,{xs:12,item:!0,children:(0,o.jsx)(W,{})}),B&&(0,o.jsx)(S.Z,{className:_.search,xs:"auto",item:!0,children:(0,o.jsx)(_t,{entityId:Ct,entityTitle:ot==null||(T=ot.metadata)===null||T===void 0?void 0:T.title})}),(0,o.jsx)(S.Z,{xs:12,item:!0,children:(0,o.jsx)(A,{element:$t,onAppend:me,children:(0,o.jsx)(ue,{})})})]})}):(0,o.jsx)(b.V,{children:(0,o.jsx)(S.Z,{container:!0,children:(0,o.jsx)(S.Z,{xs:12,item:!0,children:(0,o.jsx)(W,{})})})})}),cr=null},65386:function(G,w,t){"use strict";t.d(w,{S:function(){return ft}});var o=t(52322),i=t(2784),d=t(18671),S=t(60905),m=t(98069),g=t(60364),c=t(73250),u=t(2296),y=t(68979),x=t(57058),O=t(75435),v=t(76277),A=t(51194),h=t(8709),M=t(79692),R=t(41128),P=t(90436),j=t(98864);const I=(0,M.Z)(bt=>({root:{textAlign:"left"},label:{color:bt.page.fontColor,fontWeight:bt.typography.fontWeightBold,letterSpacing:0,fontSize:bt.typography.fontSize,marginBottom:bt.spacing(1)/2,lineHeight:1},value:{color:(0,R.Fq)(bt.page.fontColor,.8),fontSize:bt.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),b=({value:bt,className:St,typographyRootComponent:Tt})=>(0,o.jsx)(P.Z,{component:Tt!=null?Tt:typeof bt=="string"?"p":"span",className:St,children:bt});function K(bt){const{label:St,value:Tt,url:pt,contentTypograpyRootComponent:xt}=bt,Y=I(),F=(0,o.jsx)(b,{className:Y.value,value:Tt||"<Unknown>",typographyRootComponent:xt});return(0,o.jsx)(S.Z,{item:!0,children:(0,o.jsxs)(P.Z,{component:"span",className:Y.root,children:[(0,o.jsx)(P.Z,{className:Y.label,children:St}),pt?(0,o.jsx)(j.rU,{to:pt,children:F}):F]})})}var H=t(48037),rt=t(44394),X=t(6542),V=t(37321),z=t(76635),et=t(95573);const it=(0,o.jsx)(m.Z,{animation:"wave",variant:"text",height:40}),ft=bt=>{const{palette:{common:{white:St}}}=(0,g.Z)(),{children:Tt}=bt,pt=(0,u.$L)(),xt=(0,rt.h_)(X.D),{title:Y,setTitle:F,subtitle:Q,setSubtitle:ct,entityRef:vt,metadata:{value:gt,loading:st},entityMetadata:{value:q,loading:ut}}=(0,y.x)();(0,i.useEffect)(()=>{gt&&(F(gt.site_name),ct(()=>{let{site_description:Lt}=gt;return(!Lt||Lt==="None")&&(Lt=""),Lt}))},[gt,F,ct]);const k=xt.getOptional("app.title")||"Backstage",Z=[Y,Q,k].filter(Boolean).join(" | "),{locationMetadata:tt,spec:nt}=q||{},mt=nt==null?void 0:nt.lifecycle,yt=q?(0,O.h)(q,h.S4):[],Bt=(0,V.t)(et._Z)(),zt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(K,{label:(0,z.capitalize)((q==null?void 0:q.kind)||"entity"),value:(0,o.jsx)(v.d,{color:"inherit",entityRef:vt,title:q==null?void 0:q.metadata.title,defaultKind:"Component"})}),yt.length>0&&(0,o.jsx)(K,{label:"Owner",value:(0,o.jsx)(A.r,{color:"inherit",entityRefs:yt,defaultKind:"group"})}),mt?(0,o.jsx)(K,{label:"Lifecycle",value:String(mt)}):null,tt&&tt.type!=="dir"&&tt.type!=="file"?(0,o.jsx)(K,{label:"",value:(0,o.jsxs)(S.Z,{container:!0,direction:"column",alignItems:"center",style:{color:St},children:[(0,o.jsx)(S.Z,{style:{padding:0},item:!0,children:(0,o.jsx)(c.Z,{style:{marginTop:"-25px"}})}),(0,o.jsx)(S.Z,{style:{padding:0},item:!0,children:"Source"})]}),url:tt.target}):null]});return!ut&&q===void 0||!st&&gt===void 0?null:(0,o.jsxs)(H.h,{type:"Documentation",typeLink:Bt,title:Y||it,subtitle:Q===""?void 0:Q||it,children:[(0,o.jsx)(d.Z,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:Z})}),zt,Tt,pt.renderComponentsByLocation(x.o.Header)]})}},95573:function(G,w,t){"use strict";t.d(w,{Fw:function(){return d},_Z:function(){return i},pd:function(){return S}});var o=t(30283);const i=(0,o.N)({id:"techdocs:index-page"}),d=(0,o.N)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),S=(0,o.N)({id:"techdocs:catalog-reader-view"})},55511:function(G,w,t){"use strict";t.r(w),t.d(w,{TechDocsSearchResultListItem:function(){return x}});var o=t(52322),i=t(2784),d=t(79692),S=t(49378),m=t(86136),g=t(90436),c=t(98864),u=t(76079);const y=(0,d.Z)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),x=O=>{const{result:v,highlight:A,lineClamp:h=5,asListItem:M=!0,asLink:R=!0,title:P,icon:j}=O,I=y(),b=({children:rt})=>R?(0,o.jsx)(c.rU,{noTrack:!0,to:v.location,children:rt}):(0,o.jsx)(o.Fragment,{children:rt}),K=()=>{const rt=A!=null&&A.fields.title?(0,o.jsx)(u.F,{text:A.fields.title,preTag:A.preTag,postTag:A.postTag}):v.title,X=A!=null&&A.fields.entityTitle?(0,o.jsx)(u.F,{text:A.fields.entityTitle,preTag:A.preTag,postTag:A.postTag}):v.entityTitle,V=A!=null&&A.fields.name?(0,o.jsx)(u.F,{text:A.fields.name,preTag:A.preTag,postTag:A.postTag}):v.name;return v?(0,o.jsx)(S.Z,{className:I.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(b,{children:P||(0,o.jsxs)(o.Fragment,{children:[rt," | ",X!=null?X:V," docs"]})}),secondary:(0,o.jsx)(g.Z,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:h,overflow:"hidden"},color:"textSecondary",variant:"body2",children:A!=null&&A.fields.text?(0,o.jsx)(u.F,{text:A.fields.text,preTag:A.preTag,postTag:A.postTag}):v.text})}):null},H=({children:rt})=>M?(0,o.jsxs)(o.Fragment,{children:[j&&(0,o.jsx)(m.Z,{children:typeof j=="function"?j(v):j}),(0,o.jsx)("div",{className:I.flexContainer,children:rt})]}):(0,o.jsx)(o.Fragment,{children:rt});return(0,o.jsx)(H,{children:(0,o.jsx)(K,{})})}},53260:function(){}},function(G){var w=function(o){return G(G.s=o)};G.O(0,[2370,6202,9284,7012,427,242,5109,5218,6816,1213,4736],function(){return w(51280)});var t=G.O()}]);})();
490
490
 
491
- //# sourceMappingURL=main.384b11ae.js.map
491
+ //# sourceMappingURL=main.8231481f.js.map