@techdocs/cli 0.0.0-nightly-20240505021515 → 0.0.0-nightly-20240507021634

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-20240505021515
3
+ ## 0.0.0-nightly-20240507021634
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - 1a0e009: Fix cookie endpoint mock for `serve`
8
8
  - Updated dependencies
9
- - @backstage/catalog-model@0.0.0-nightly-20240505021515
10
- - @backstage/backend-common@0.0.0-nightly-20240505021515
11
- - @backstage/plugin-techdocs-node@0.0.0-nightly-20240505021515
9
+ - @backstage/catalog-model@0.0.0-nightly-20240507021634
10
+ - @backstage/backend-common@0.0.0-nightly-20240507021634
11
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20240507021634
12
12
 
13
13
  ## 1.8.11-next.1
14
14
 
@@ -125,6 +125,51 @@
125
125
  "$schema": "http://json-schema.org/draft-07/schema#"
126
126
  }
127
127
  },
128
+ {
129
+ "path": "../core-components/config.d.ts",
130
+ "value": {
131
+ "type": "object",
132
+ "properties": {
133
+ "auth": {
134
+ "type": "object",
135
+ "properties": {
136
+ "autologout": {
137
+ "description": "Autologout feature configuration",
138
+ "type": "object",
139
+ "properties": {
140
+ "enabled": {
141
+ "description": "Enable or disable the autologout feature",
142
+ "visibility": "frontend",
143
+ "type": "boolean"
144
+ },
145
+ "idleTimeoutMinutes": {
146
+ "description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
147
+ "visibility": "frontend",
148
+ "type": "number"
149
+ },
150
+ "promptBeforeIdleSeconds": {
151
+ "description": "Number of seconds before the idle timeout where the user will be asked if it's still active.\nA dialog will be shown.\nDefault is 10 seconds.\nSet to 0 seconds to disable the prompt.",
152
+ "visibility": "frontend",
153
+ "type": "number"
154
+ },
155
+ "useWorkerTimers": {
156
+ "description": "Enable/disable the usage of worker thread timers instead of main thread timers.\nDefault is true.\nIf you experience some browser incompatibility, you may try to set this to false.",
157
+ "visibility": "frontend",
158
+ "type": "boolean"
159
+ },
160
+ "logoutIfDisconnected": {
161
+ "description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
162
+ "visibility": "frontend",
163
+ "type": "boolean"
164
+ }
165
+ }
166
+ }
167
+ }
168
+ }
169
+ },
170
+ "$schema": "http://json-schema.org/draft-07/schema#"
171
+ }
172
+ },
128
173
  {
129
174
  "path": "../core-app-api/config.d.ts",
130
175
  "value": {
@@ -333,51 +378,6 @@
333
378
  "$schema": "http://json-schema.org/draft-07/schema#"
334
379
  }
335
380
  },
336
- {
337
- "path": "../core-components/config.d.ts",
338
- "value": {
339
- "type": "object",
340
- "properties": {
341
- "auth": {
342
- "type": "object",
343
- "properties": {
344
- "autologout": {
345
- "description": "Autologout feature configuration",
346
- "type": "object",
347
- "properties": {
348
- "enabled": {
349
- "description": "Enable or disable the autologout feature",
350
- "visibility": "frontend",
351
- "type": "boolean"
352
- },
353
- "idleTimeoutMinutes": {
354
- "description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
355
- "visibility": "frontend",
356
- "type": "number"
357
- },
358
- "promptBeforeIdleSeconds": {
359
- "description": "Number of seconds before the idle timeout where the user will be asked if it's still active.\nA dialog will be shown.\nDefault is 10 seconds.\nSet to 0 seconds to disable the prompt.",
360
- "visibility": "frontend",
361
- "type": "number"
362
- },
363
- "useWorkerTimers": {
364
- "description": "Enable/disable the usage of worker thread timers instead of main thread timers.\nDefault is true.\nIf you experience some browser incompatibility, you may try to set this to false.",
365
- "visibility": "frontend",
366
- "type": "boolean"
367
- },
368
- "logoutIfDisconnected": {
369
- "description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
370
- "visibility": "frontend",
371
- "type": "boolean"
372
- }
373
- }
374
- }
375
- }
376
- }
377
- },
378
- "$schema": "http://json-schema.org/draft-07/schema#"
379
- }
380
- },
381
381
  {
382
382
  "path": "../../plugins/techdocs/config.d.ts",
383
383
  "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.009fafa0.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.3056800b.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.955be94f.js"></script><script defer="defer" src="/static/module-i18next.40b7c233.js"></script><script defer="defer" src="/static/vendor.009fafa0.js"></script><script defer="defer" src="/static/main.009fafa0.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.526d584f.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.3056800b.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.526d584f.js"></script><script defer="defer" src="/static/main.526d584f.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -494,4 +494,4 @@ ${F.href}
494
494
 
495
495
  Feedback:`),Kt=(X==null?void 0:X.type)==="github"?(0,Uo.F)(Q.href,"blob"):Q.href,Zt=No()(Kt),Ht=`/${Zt.organization}/${Zt.name}`,Pt=F.cloneNode();switch(X==null?void 0:X.type){case"gitlab":Pt.href=`${Q.origin}${Ht}/issues/new?issue[title]=${St}&issue[description]=${jt}`;break;case"github":Pt.href=`${Q.origin}${Ht}/issues/new?title=${St}&body=${jt}`;break;default:return I}return Ln(i.createElement($o.A),Pt),Pt.style.paddingLeft="5px",Pt.title="Leave feedback for this page",Pt.id="git-feedback-link",F==null||F.insertAdjacentElement("beforebegin",Pt),I},Xn=()=>p=>(setTimeout(()=>{const I=p==null?void 0:p.querySelectorAll("li.md-nav__item--active");I.length!==0&&(I.forEach(F=>{const Q=F==null?void 0:F.querySelector("input");Q!=null&&Q.checked||Q==null||Q.click()}),I[I.length-1].scrollIntoView())},200),p);var ko=t(50868),Ko=t(10437),qn=t(71677),to=t(87051),zo=t(36338);const Bn=(0,to.A)(p=>({tooltip:{fontSize:"inherit",color:p.palette.text.primary,margin:0,padding:p.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(qn.Ay),jn=()=>(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"})}),Ho=({text:p})=>{const[I,$]=(0,i.useState)(!1),[,F]=(0,zo.A)(),Q=(0,i.useCallback)(()=>{F(p),$(!0)},[p,F]),X=(0,i.useCallback)(()=>{$(!1)},[$]);return(0,o.jsx)(Bn,{title:"Copied to clipboard",placement:"left",open:I,onClose:X,leaveDelay:1e3,children:(0,o.jsx)(ft.A,{style:{color:"inherit"},className:"md-clipboard md-icon",onClick:Q,children:(0,o.jsx)(jn,{})})})},eo=p=>I=>{const $=I.querySelectorAll("pre > code");for(const Q of $){var F;const X=Q.textContent||"",lt=document.createElement("div");Q==null||(F=Q.parentElement)===null||F===void 0||F.prepend(lt),Ln((0,o.jsx)(ko.A,{theme:p,children:(0,o.jsx)(Ho,{text:X})}),lt)}return I},no=({baseUrl:p,onClick:I})=>$=>(Array.from($.getElementsByTagName("a")).forEach(F=>{F.addEventListener("click",Q=>{const lt=F.getAttribute("href");lt&&lt.startsWith(p)&&!F.hasAttribute("download")&&(Q.preventDefault(),I(Q,lt))})}),$),oo=({onLoading:p,onLoaded:I})=>$=>(p(),$.addEventListener(A,function F(){I(),$.removeEventListener(A,F)}),$);function _o(p,I){const $=new URL(I),F=`${$.origin}${$.pathname.replace(/\/$/,"")}`,Q=p.replace(F,"").replace(/^\/+/,""),X=new URL(`http://localhost/${Q}`);return`${X.pathname}${X.search}${X.hash}`}function Vo(){const p=(0,Wt.Zp)(),$=(0,G.gf)(q.U).getOptionalString("app.baseUrl");return(0,i.useCallback)(Q=>{let X=Q;if($)try{X=_o(Q,$)}catch{}p(X)},[p,$])}const Go="screen and (max-width: 76.1875em)",Yo=p=>{const I=Vo(),$=(0,_e.A)(),F=(0,He.A)(Go),Q=ue(),X=nn(),lt=(0,H.s)(),St=(0,G.gf)(Ye.s),jt=(0,G.gf)(en.Y),{state:Kt,path:Zt,content:Ht}=ge(),[Pt,he]=(0,i.useState)(null),Ee=h(Pt),Jt=(0,i.useCallback)(()=>{if(!Pt)return;Pt.querySelectorAll(".md-sidebar").forEach(Vt=>{if(F)Vt.style.top="0px";else{var te;const Be=(te=document)===null||te===void 0?void 0:te.querySelector(".techdocs-reader-page");var xe;const ie=(xe=Be==null?void 0:Be.getBoundingClientRect().top)!==null&&xe!==void 0?xe:0;var Le;let Fn=(Le=Pt.getBoundingClientRect().top)!==null&&Le!==void 0?Le:0;const Nn=Pt.querySelector(".md-container > .md-tabs");var Fe;const Wn=(Fe=Nn==null?void 0:Nn.getBoundingClientRect().height)!==null&&Fe!==void 0?Fe:0;Fn<ie&&(Fn=ie);const io=Math.max(Fn,0)+Wn;Vt.style.top=`${io}px`;const on=Pt.querySelector(".md-container > .md-footer");var ve;const En=(ve=on==null?void 0:on.getBoundingClientRect().top)!==null&&ve!==void 0?ve:window.innerHeight;Vt.style.height=`${En-io}px`}Vt.style.setProperty("opacity","1")})},[Pt,F]);(0,i.useEffect)(()=>(window.addEventListener("resize",Jt),window.addEventListener("scroll",Jt,!0),()=>{window.removeEventListener("resize",Jt),window.removeEventListener("scroll",Jt,!0)}),[Pt,Jt]);const _t=(0,i.useCallback)(()=>{if(!Pt)return;const Bt=Pt.querySelector(".md-footer");Bt&&(Bt.style.width=`${Pt.getBoundingClientRect().width}px`)},[Pt]);(0,i.useEffect)(()=>(window.addEventListener("resize",_t),()=>{window.removeEventListener("resize",_t)}),[Pt,_t]),(0,i.useEffect)(()=>{Ee||(_t(),Jt())},[Kt,Ee,_t,Jt]);const le=(0,i.useCallback)((Bt,Vt)=>yn(Bt,[Q,Do({techdocsStorageApi:St,entityId:p,path:Vt}),Mo(),Jn(),Bo(),jo(),Wo(jt),X]),[p,jt,St,Q,X]),Ae=(0,i.useCallback)(async Bt=>yn(Bt,[Xn(),eo($),no({baseUrl:window.location.origin,onClick:(Vt,te)=>{var xe;const Le=Vt.ctrlKey||Vt.metaKey,Fe=new URL(te),ve=((xe=Vt.target)===null||xe===void 0?void 0:xe.innerText)||te,Be=te.replace(window.location.origin,"");if(lt.captureEvent("click",ve,{attributes:{to:Be}}),Fe.hash)if(Le)window.open(te,"_blank");else{var ie;I(te),Bt==null||(ie=Bt.querySelector(`[id="${Fe.hash.slice(1)}"]`))===null||ie===void 0||ie.scrollIntoView()}else Le?window.open(te,"_blank"):I(te)}}),oo({onLoading:()=>{},onLoaded:()=>{var Vt;(Vt=Bt.querySelector(".md-nav__title"))===null||Vt===void 0||Vt.removeAttribute("for")}}),oo({onLoading:()=>{Array.from(Bt.querySelectorAll(".md-sidebar")).forEach(te=>{te.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[$,I,lt]);return(0,i.useEffect)(()=>{if(!Ht)return()=>{};let Bt=!0;return le(Ht,Zt).then(async Vt=>{if(!(Vt!=null&&Vt.innerHTML)||!Bt)return;window.scroll({top:0});const te=await Ae(Vt);he(te)}),()=>{Bt=!1}},[Ht,Zt,le,Ae]),Pt};var Un=t(41883),Qo=t(72020),$n=t(99730);const ro=()=>{const p=(0,Qo.YR)(),{shadowRoot:I}=(0,m.V)(),$=I==null?void 0:I.querySelector('[data-md-component="content"]'),F=I==null?void 0:I.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let Q=F==null?void 0:F.querySelector('[data-techdocs-addons-location="primary sidebar"]');Q||(Q=document.createElement("div"),Q.setAttribute("data-techdocs-addons-location","primary sidebar"),F==null||F.prepend(Q));const X=I==null?void 0:I.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let lt=X==null?void 0:X.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return lt||(lt=document.createElement("div"),lt.setAttribute("data-techdocs-addons-location","secondary sidebar"),X==null||X.prepend(lt)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Un.A,{container:Q,children:p.renderComponentsByLocation($n.e.PrimarySidebar)}),(0,o.jsx)(Un.A,{container:$,children:p.renderComponentsByLocation($n.e.Content)}),(0,o.jsx)(Un.A,{container:lt,children:p.renderComponentsByLocation($n.e.SecondarySidebar)})]})},so=(0,O.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Dt=Qe(p=>{var I;const{withSearch:$=!0,onReady:F}=p,Q=so(),{entityMetadata:{value:X,loading:lt},entityRef:St,setShadowRoot:jt}=(0,m.V)(),Kt=Yo(St),Zt=window.location.pathname,Ht=window.location.hash,Pt=h(Kt),[he]=P([`[id="${Ht.slice(1)}"]`]);(0,i.useEffect)(()=>{if(!Pt)if(Ht)he&&he.scrollIntoView();else{var Jt,_t;(_t=document)===null||_t===void 0||(Jt=_t.querySelector("header"))===null||Jt===void 0||Jt.scrollIntoView()}},[Zt,Ht,he,Pt]);const Ee=(0,i.useCallback)(Jt=>{jt(Jt),F instanceof Function&&F()},[jt,F]);return lt===!1&&!X?(0,o.jsx)(R.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Kt?(0,o.jsx)(x.U,{children:(0,o.jsxs)(d.A,{container:!0,children:[(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)($e,{})}),$&&(0,o.jsx)(d.A,{className:Q.search,xs:"auto",item:!0,children:(0,o.jsx)(de,{entityId:St,entityTitle:X==null||(I=X.metadata)===null||I===void 0?void 0:I.title})}),(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(b,{element:Kt,onAppend:Ee,children:(0,o.jsx)(ro,{})})})]})}):(0,o.jsx)(x.U,{children:(0,o.jsx)(d.A,{container:!0,children:(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)($e,{})})})})}),fe=null},45061:function(Y,T,t){"use strict";t.d(T,{T:function(){return J}});var o=t(31085),i=t(14041),d=t(93285),O=t(42899),m=t(4387),g=t(13660),f=t(72020),c=t(86892),C=t(99730),A=t(67871),w=t(8859),h=t(34428),b=t(51372),v=t(58837),D=t(268),P=t(72501),y=t(72072);const j=(0,v.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,D.X4)(q.page.fontColor,.8),fontSize:q.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),R=({value:q,className:yt,typographyRootComponent:at})=>(0,o.jsx)(P.A,{component:at!=null?at:typeof q=="string"?"p":"span",className:yt,children:q});function x(q){const{label:yt,value:at,url:Ot,contentTypograpyRootComponent:ut}=q,vt=j(),ct=(0,o.jsx)(R,{className:vt.value,value:at||"<Unknown>",typographyRootComponent:ut});return(0,o.jsx)(O.A,{item:!0,children:(0,o.jsxs)(P.A,{component:"span",className:vt.root,children:[(0,o.jsx)(P.A,{className:vt.label,children:yt}),Ot?(0,o.jsx)(y.N_,{to:Ot,children:ct}):ct]})})}var z=t(69814),_=t(72427),tt=t(65461),K=t(9222),W=t(45250),G=t(82779);const H=(0,o.jsx)(m.A,{animation:"wave",variant:"text",height:40}),J=q=>{const{children:yt}=q,at=(0,f.YR)(),Ot=(0,_.gf)(tt.U),{title:ut,setTitle:vt,subtitle:ct,setSubtitle:st,entityRef:mt,metadata:{value:Et,loading:Tt},entityMetadata:{value:gt,loading:it}}=(0,c.V)();(0,i.useEffect)(()=>{Et&&(vt(Et.site_name),st(()=>{let{site_description:Mt}=Et;return(!Mt||Mt==="None")&&(Mt=""),Mt}))},[Et,vt,st]);const ft=Ot.getOptional("app.title")||"Backstage",pt=[ut,ct,ft].filter(Boolean).join(" | "),{locationMetadata:Rt,spec:xt}=gt||{},N=xt==null?void 0:xt.lifecycle,V=gt?(0,A.t)(gt,b.vv):[],At=(0,K.S)(G.rQ)(),wt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x,{label:(0,W.capitalize)((gt==null?void 0:gt.kind)||"entity"),value:(0,o.jsx)(w.z,{color:"inherit",entityRef:mt,title:gt==null?void 0:gt.metadata.title,defaultKind:"Component"})}),V.length>0&&(0,o.jsx)(x,{label:"Owner",value:(0,o.jsx)(h.i,{color:"inherit",entityRefs:V,defaultKind:"group"})}),N?(0,o.jsx)(x,{label:"Lifecycle",value:String(N)}):null,Rt&&Rt.type!=="dir"&&Rt.type!=="file"?(0,o.jsx)(x,{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)(g.A,{style:{marginTop:"-25px"}})}),(0,o.jsx)(O.A,{style:{padding:0},item:!0,children:"Source"})]}),url:Rt.target}):null]});return!it&&gt===void 0||!Tt&&Et===void 0?null:(0,o.jsxs)(z.Y,{type:"Documentation",typeLink:At,title:ut||H,subtitle:ct===""?void 0:ct||H,children:[(0,o.jsx)(d.A,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:pt})}),wt,yt,at.renderComponentsByLocation(C.e.Header)]})}},82779:function(Y,T,t){"use strict";t.d(T,{Oc:function(){return d},Ri:function(){return O},rQ:function(){return 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:function(Y,T,t){"use strict";t.r(T),t.d(T,{TechDocsSearchResultListItem:function(){return A}});var o=t(31085),i=t(14041),d=t(46423),O=t(5951),m=t(58837),g=t(72501),f=t(72072),c=t(70734);const C=(0,m.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),A=w=>{const{result:h,highlight:b,lineClamp:v=5,asListItem:D=!0,asLink:P=!0,title:y,icon:j}=w,R=C(),x=({children:tt})=>P?(0,o.jsx)(f.N_,{noTrack:!0,to:h.location,children:tt}):(0,o.jsx)(o.Fragment,{children:tt}),z=()=>{const tt=b!=null&&b.fields.title?(0,o.jsx)(c.e,{text:b.fields.title,preTag:b.preTag,postTag:b.postTag}):h.title,K=b!=null&&b.fields.entityTitle?(0,o.jsx)(c.e,{text:b.fields.entityTitle,preTag:b.preTag,postTag:b.postTag}):h.entityTitle,W=b!=null&&b.fields.name?(0,o.jsx)(c.e,{text:b.fields.name,preTag:b.preTag,postTag:b.postTag}):h.name;return h?(0,o.jsx)(O.A,{className:R.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(x,{children:y||(0,o.jsxs)(o.Fragment,{children:[tt," | ",K!=null?K:W," docs"]})}),secondary:(0,o.jsx)(g.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:v,overflow:"hidden"},color:"textSecondary",variant:"body2",children:b!=null&&b.fields.text?(0,o.jsx)(c.e,{text:b.fields.text,preTag:b.preTag,postTag:b.postTag}):h.text})}):null},_=({children:tt})=>D?(0,o.jsxs)(o.Fragment,{children:[j&&(0,o.jsx)(d.A,{children:typeof j=="function"?j(h):j}),(0,o.jsx)("div",{className:R.flexContainer,children:tt})]}):(0,o.jsx)(o.Fragment,{children:tt});return(0,o.jsx)(_,{children:(0,o.jsx)(z,{})})}},86973:function(){}},function(Y){var T=function(o){return Y(Y.s=o)};Y.O(0,[1751,1888,5067,1678,235,6587,2754,9669,1975,5042,7400,4121],function(){return T(85318)});var t=Y.O()}]);})();
496
496
 
497
- //# sourceMappingURL=main.009fafa0.js.map
497
+ //# sourceMappingURL=main.526d584f.js.map