@techdocs/cli 0.0.0-nightly-20260118025620 → 0.0.0-nightly-20260120025109

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,12 +1,12 @@
1
1
  # @techdocs/cli
2
2
 
3
- ## 0.0.0-nightly-20260118025620
3
+ ## 0.0.0-nightly-20260120025109
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies
8
- - @backstage/backend-defaults@0.0.0-nightly-20260118025620
9
- - @backstage/plugin-techdocs-node@0.0.0-nightly-20260118025620
8
+ - @backstage/backend-defaults@0.0.0-nightly-20260120025109
9
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20260120025109
10
10
  - @backstage/catalog-model@1.7.6
11
11
  - @backstage/cli-common@0.1.16
12
12
  - @backstage/config@1.3.6
@@ -1291,6 +1291,52 @@
1291
1291
  },
1292
1292
  "packageName": "@backstage/backend-plugin-api"
1293
1293
  },
1294
+ {
1295
+ "path": "../../plugins/auth-backend-module-guest-provider/config.d.ts",
1296
+ "value": {
1297
+ "type": "object",
1298
+ "properties": {
1299
+ "auth": {
1300
+ "description": "Configuration options for the auth plugin",
1301
+ "type": "object",
1302
+ "properties": {
1303
+ "providers": {
1304
+ "type": "object",
1305
+ "properties": {
1306
+ "guest": {
1307
+ "type": "object",
1308
+ "properties": {
1309
+ "userEntityRef": {
1310
+ "description": "The entity reference to use for the guest user.",
1311
+ "default": "user:development/guest",
1312
+ "type": "string"
1313
+ },
1314
+ "ownershipEntityRefs": {
1315
+ "description": "A list of entity references to user for ownership of the guest user if the user\n is not found in the catalog.",
1316
+ "default": "[userEntityRef]",
1317
+ "type": "array",
1318
+ "items": {
1319
+ "type": "string"
1320
+ }
1321
+ },
1322
+ "dangerouslyAllowOutsideDevelopment": {
1323
+ "description": "Allow users to sign in with the guest provider outside of their development environments.",
1324
+ "type": "boolean"
1325
+ }
1326
+ }
1327
+ }
1328
+ }
1329
+ }
1330
+ },
1331
+ "required": [
1332
+ "providers"
1333
+ ]
1334
+ }
1335
+ },
1336
+ "$schema": "http://json-schema.org/draft-07/schema#"
1337
+ },
1338
+ "packageName": "@backstage/plugin-auth-backend-module-guest-provider"
1339
+ },
1294
1340
  {
1295
1341
  "path": "../../plugins/auth-backend/config.d.ts",
1296
1342
  "value": {
@@ -1446,52 +1492,6 @@
1446
1492
  },
1447
1493
  "packageName": "@backstage/plugin-auth-backend"
1448
1494
  },
1449
- {
1450
- "path": "../../plugins/auth-backend-module-guest-provider/config.d.ts",
1451
- "value": {
1452
- "type": "object",
1453
- "properties": {
1454
- "auth": {
1455
- "description": "Configuration options for the auth plugin",
1456
- "type": "object",
1457
- "properties": {
1458
- "providers": {
1459
- "type": "object",
1460
- "properties": {
1461
- "guest": {
1462
- "type": "object",
1463
- "properties": {
1464
- "userEntityRef": {
1465
- "description": "The entity reference to use for the guest user.",
1466
- "default": "user:development/guest",
1467
- "type": "string"
1468
- },
1469
- "ownershipEntityRefs": {
1470
- "description": "A list of entity references to user for ownership of the guest user if the user\n is not found in the catalog.",
1471
- "default": "[userEntityRef]",
1472
- "type": "array",
1473
- "items": {
1474
- "type": "string"
1475
- }
1476
- },
1477
- "dangerouslyAllowOutsideDevelopment": {
1478
- "description": "Allow users to sign in with the guest provider outside of their development environments.",
1479
- "type": "boolean"
1480
- }
1481
- }
1482
- }
1483
- }
1484
- }
1485
- },
1486
- "required": [
1487
- "providers"
1488
- ]
1489
- }
1490
- },
1491
- "$schema": "http://json-schema.org/draft-07/schema#"
1492
- },
1493
- "packageName": "@backstage/plugin-auth-backend-module-guest-provider"
1494
- },
1495
1495
  {
1496
1496
  "path": "../backend-app-api/config.d.ts",
1497
1497
  "value": {
@@ -1,4 +1,4 @@
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="color-scheme" content="light dark"/><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.f12aa553.js"></script><script defer="defer" src="/static/module-material-ui.9517effb.js"></script><script defer="defer" src="/static/module-lodash.7d4f904e.js"></script><script defer="defer" src="/static/module-date-fns.fe699224.js"></script><script defer="defer" src="/static/module-mui.375d6d62.js"></script><script defer="defer" src="/static/module-material-table.5a3a2d93.js"></script><script defer="defer" src="/static/module-micromark-core-commonmark.909b7d4e.js"></script><script defer="defer" src="/static/module-parse5.94980036.js"></script><script defer="defer" src="/static/module-zod.4600b494.js"></script><script defer="defer" src="/static/module-react-dom.44002a3f.js"></script><script defer="defer" src="/static/module-i18next.685d0b2d.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.29de0c3a.js"></script><script defer="defer" src="/static/module-remix-run.8b5ff4b7.js"></script><script defer="defer" src="/static/vendor.55ff2174.js"></script><script defer="defer" src="/static/main.48ae5130.js"></script><link href="/static/main.0c6dd09c.css" rel="stylesheet"><script type="backstage.io/config">[
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="color-scheme" content="light dark"/><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.f12aa553.js"></script><script defer="defer" src="/static/module-material-ui.9517effb.js"></script><script defer="defer" src="/static/module-lodash.7d4f904e.js"></script><script defer="defer" src="/static/module-date-fns.fe699224.js"></script><script defer="defer" src="/static/module-mui.375d6d62.js"></script><script defer="defer" src="/static/module-material-table.5a3a2d93.js"></script><script defer="defer" src="/static/module-micromark-core-commonmark.909b7d4e.js"></script><script defer="defer" src="/static/module-parse5.94980036.js"></script><script defer="defer" src="/static/module-zod.4600b494.js"></script><script defer="defer" src="/static/module-react-dom.44002a3f.js"></script><script defer="defer" src="/static/module-i18next.685d0b2d.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.29de0c3a.js"></script><script defer="defer" src="/static/module-remix-run.8b5ff4b7.js"></script><script defer="defer" src="/static/vendor.55ff2174.js"></script><script defer="defer" src="/static/main.f6407dc4.js"></script><link href="/static/main.0c6dd09c.css" rel="stylesheet"><script type="backstage.io/config">[
2
2
  {
3
3
  "context": "app-config.yaml",
4
4
  "data": {
@@ -43,7 +43,7 @@
43
43
  color="#5bbad5"
44
44
  />
45
45
  <title><%= config.getString('app.title') %></title>
46
- <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.f12aa553.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.9517effb.js"></script><script defer src="<%= publicPath %>/static/module-lodash.7d4f904e.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.fe699224.js"></script><script defer src="<%= publicPath %>/static/module-mui.375d6d62.js"></script><script defer src="<%= publicPath %>/static/module-material-table.5a3a2d93.js"></script><script defer src="<%= publicPath %>/static/module-micromark-core-commonmark.909b7d4e.js"></script><script defer src="<%= publicPath %>/static/module-parse5.94980036.js"></script><script defer src="<%= publicPath %>/static/module-zod.4600b494.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.44002a3f.js"></script><script defer src="<%= publicPath %>/static/module-i18next.685d0b2d.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.29de0c3a.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.8b5ff4b7.js"></script><script defer src="<%= publicPath %>/static/vendor.55ff2174.js"></script><script defer src="<%= publicPath %>/static/main.48ae5130.js"></script><link href="<%= publicPath %>/static/main.0c6dd09c.css" rel="stylesheet"></head>
46
+ <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.f12aa553.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.9517effb.js"></script><script defer src="<%= publicPath %>/static/module-lodash.7d4f904e.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.fe699224.js"></script><script defer src="<%= publicPath %>/static/module-mui.375d6d62.js"></script><script defer src="<%= publicPath %>/static/module-material-table.5a3a2d93.js"></script><script defer src="<%= publicPath %>/static/module-micromark-core-commonmark.909b7d4e.js"></script><script defer src="<%= publicPath %>/static/module-parse5.94980036.js"></script><script defer src="<%= publicPath %>/static/module-zod.4600b494.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.44002a3f.js"></script><script defer src="<%= publicPath %>/static/module-i18next.685d0b2d.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.29de0c3a.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.8b5ff4b7.js"></script><script defer src="<%= publicPath %>/static/vendor.55ff2174.js"></script><script defer src="<%= publicPath %>/static/main.f6407dc4.js"></script><link href="<%= publicPath %>/static/main.0c6dd09c.css" rel="stylesheet"></head>
47
47
  <body>
48
48
  <noscript>You need to enable JavaScript to run this app.</noscript>
49
49
  <div id="root"></div>
@@ -13,8 +13,8 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
13
13
  /* FONT */
14
14
  --md-default-fg-color: ${e.palette.text.primary};
15
15
  --md-default-fg-color--light: ${e.palette.text.secondary};
16
- --md-default-fg-color--lighter: ${(0,eO.a)(e.palette.text.secondary,.7)};
17
- --md-default-fg-color--lightest: ${(0,eO.a)(e.palette.text.secondary,.3)};
16
+ --md-default-fg-color--lighter: ${(0,eO.X4)(e.palette.text.secondary,.3)};
17
+ --md-default-fg-color--lightest: ${(0,eO.X4)(e.palette.text.secondary,.15)};
18
18
 
19
19
  /* BACKGROUND */
20
20
  --md-default-bg-color:${e.palette.background.default};
@@ -101,7 +101,7 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
101
101
  --md-typeset-font-size: 1rem;
102
102
  --md-typeset-color: var(--md-default-fg-color);
103
103
  --md-typeset-a-color: ${e.palette.link};
104
- --md-typeset-table-color: ${e.palette.text.primary};
104
+ --md-typeset-table-color: ${(0,eO.X4)(e.palette.text.primary,.15)};
105
105
  --md-typeset-table-color--light: ${(0,eO.X4)(e.palette.text.primary,.05)};
106
106
  --md-typeset-del-color: ${"dark"===e.palette.type?(0,eO.X4)(e.palette.error.dark,.5):(0,eO.X4)(e.palette.error.light,.5)};
107
107
  --md-typeset-ins-color: ${"dark"===e.palette.type?(0,eO.X4)(e.palette.success.dark,.5):(0,eO.X4)(e.palette.success.light,.5)};
@@ -433,7 +433,7 @@ ${eL.reduce((t,r)=>{let i=e.typography.htmlFontSize??16,{lineHeight:n,fontFamily
433
433
 
434
434
  .md-typeset table:not([class]) {
435
435
  font-size: var(--md-typeset-font-size);
436
- border: 1px solid var(--md-default-fg-color);
436
+ border: 1px solid var(--md-typeset-table-color);
437
437
  border-bottom: none;
438
438
  border-collapse: collapse;
439
439
  border-radius: ${e.shape.borderRadius}px;
@@ -442,7 +442,7 @@ ${eL.reduce((t,r)=>{let i=e.typography.htmlFontSize??16,{lineHeight:n,fontFamily
442
442
  font-weight: bold;
443
443
  }
444
444
  .md-typeset table:not([class]) td, .md-typeset table:not([class]) th {
445
- border-bottom: 1px solid var(--md-default-fg-color);
445
+ border-bottom: 1px solid var(--md-typeset-table-color);
446
446
  }
447
447
 
448
448
  .md-typeset pre > code::-webkit-scrollbar-thumb {
@@ -543,8 +543,8 @@ ${eL.reduce((t,r)=>{let i=e.typography.htmlFontSize??16,{lineHeight:n,fontFamily
543
543
  ${eN[e.palette.type].map(e=>`img[src$="${e}"]`).join(", ")} {
544
544
  display: none;
545
545
  }
546
- `],eF=async(e,t)=>{let r;if("string"==typeof e)r=new DOMParser().parseFromString(e,"text/html").documentElement;else if(e instanceof Element)r=e;else throw Error("dom is not a recognized type");for(let e of t)r=await e(r);return r},ez=(e,t,r)=>{let i=new URL(t,"https://ignored.com").pathname,n="src"===e&&i.endsWith(".svg"),a=!t.match(/^([a-z]*:)?\/\//i),o=t.startsWith(r);return n&&(a||o)};function eM(e){let t=new URL(e);return t.pathname.endsWith("/")||t.pathname.endsWith(".html")||(t.pathname+="/"),t.toString()}var eD=r(27326);function e_(e,t){i.then(r=>{"createRoot"in r?r.createRoot(t).render(e):r.render(e,t)})}i=Promise.resolve().then(r.t.bind(r,25873,19));var eq=r(87393),eH=r(90292),eV=r(52536),eW=r.n(eV),eK=r(38097);let eG=(0,c.A)(e=>({button:{color:e.palette.primary.light,textDecoration:"underline"}})),eY=({message:e,handleButtonClick:t,autoHideDuration:r})=>{let i=eG(),[n,a]=(0,s.useState)(!0),l=()=>a(!1);return(0,o.jsx)(eK.A,{open:n,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:r,color:"primary",onClose:l,message:e,action:(0,o.jsx)(D.A,{classes:{root:i.button},size:"small",onClick:()=>{l(),t()},children:"Redirect now"})})};var eZ=r(50868),eQ=r(10437),eJ=r(71677),eX=r(24568),e0=r(11688);let e1=(0,eX.A)(e=>({tooltip:{fontSize:"inherit",color:e.palette.text.primary,margin:0,padding:e.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(eJ.Ay),e2=()=>(0,o.jsx)(eQ.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"})}),e5=({text:e})=>{let[t,r]=(0,s.useState)(!1),[,i]=(0,e0.A)(),n=(0,s.useCallback)(()=>{i(e),r(!0)},[e,i]),a=(0,s.useCallback)(()=>{r(!1)},[r]);return(0,o.jsx)(e1,{title:"Copied to clipboard",placement:"left",open:t,onClose:a,leaveDelay:1e3,children:(0,o.jsx)(F.A,{style:{position:"absolute"},className:"md-clipboard md-icon",onClick:n,"aria-label":"Copy to clipboard",children:(0,o.jsx)(e2,{})})})},e3=({onLoading:e,onLoaded:t})=>r=>(e(),r.addEventListener(g,function e(){t(),r.removeEventListener(g,e)}),r);var e4=r(41883),e8=r(90479),e7=r(10337);let e6=()=>{let e=(0,e8.YR)(),{shadowRoot:t}=(0,d.V)(),r=t?.querySelector('[data-md-component="content"]'),i=t?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]'),n=i?.querySelector('[data-techdocs-addons-location="primary sidebar"]');n||((n=document.createElement("div")).setAttribute("data-techdocs-addons-location","primary sidebar"),i?.prepend(n));let a=t?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]'),s=a?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return s||((s=document.createElement("div")).setAttribute("data-techdocs-addons-location","secondary sidebar"),a?.prepend(s)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e4.A,{container:n,children:e.renderComponentsByLocation(e7.e.PrimarySidebar)}),(0,o.jsx)(e4.A,{container:r,children:e.renderComponentsByLocation(e7.e.Content)}),(0,o.jsx)(e4.A,{container:s,children:e.renderComponentsByLocation(e7.e.SecondarySidebar)})]})},e9=(0,c.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),te=(a=e=>{let{withSearch:t=!0,searchResultUrlMapper:r,onReady:i}=e,n=e9(),{entityMetadata:{value:a,loading:c},entityRef:u,setShadowRoot:p}=(0,d.V)(),{state:h}=ey(),g=((e,t)=>{let r,i,n,a,l,c,d,u=(r=(0,s.useRef)((0,Q.Zp)()),i=(0,E.gf)($.U).getOptionalString("app.baseUrl"),(0,s.useCallback)(e=>{let t=e;if(i)try{let r,n,a,o;r=new URL(i),n=`${r.origin}${r.pathname.replace(/\/$/,"")}`,a=e.replace(n,"").replace(/^\/+/,""),o=new URL(`http://localhost/${a}`),t=`${o.pathname}${o.search}${o.hash}`}catch(e){}r.current(t)},[i])),p=(0,eA.A)(),h=(0,ex.A)("screen and (max-width: 76.1875em)"),g=(n=(0,E.gf)($.U),a=(0,s.useMemo)(()=>n.getOptionalConfig("techdocs.sanitizer"),[n]),(0,s.useCallback)(async e=>{let t=a?.getOptionalStringArray("allowedIframeHosts");ek.A.addHook("beforeSanitizeElements",e$);let r=["link","meta"];t&&(r.push("iframe"),ek.A.addHook("beforeSanitizeElements",e=>{e.nodeType!==Node.ELEMENT_NODE||"IFRAME"!==e.nodeName||((e,t)=>{let r=e.getAttribute("src")||"";try{let{host:e}=new URL(r);return t.includes(e)}catch{return!1}})(e,t)||e.remove()}));ek.A.addHook("uponSanitizeElement",eI),ek.A.addHook("uponSanitizeAttribute",eR);let i=a?.getOptionalString("allowedCustomElementTagNameRegExp"),n=a?.getOptionalString("allowedCustomElementAttributeNameRegExp"),o=["callto","cid","ftp","ftps","http","https","mailto","matrix","sms","tel","xmpp",...a?.getOptionalStringArray("additionalAllowedURIProtocols")||[]].filter(Boolean),s=RegExp(`^(?:${o.join("|")}:|[^a-z]|[a-z+.-]+(?:[^a-z+.\\-:]|$))`,"i");return ek.A.sanitize(e.outerHTML,{ADD_TAGS:r,FORBID_TAGS:["style"],ADD_ATTR:["http-equiv","content","dominant-baseline"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0,ALLOWED_URI_REGEXP:s,CUSTOM_ELEMENT_HANDLING:{tagNameCheck:i?new RegExp(i):void 0,attributeNameCheck:n?new RegExp(n):void 0}})},[a])),m=(l=(0,eT.Ut)(),c=(0,eA.A)(),d=(0,s.useMemo)(()=>{let e={theme:c,sidebar:l};return eP.reduce((t,r)=>t+r(e),"")},[c,l]),(0,s.useCallback)(e=>(e.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${d}</style>`),e),[d])),y=(0,C.s)(),v=(0,E.gf)(eg.s),b=(0,E.gf)(eS.Y),w=(0,E.gf)($.U),{state:x,path:A,content:S}=ey(),{"*":k=""}=(0,Q.g)(),[j,I]=(0,s.useState)(null),R=f(j);(e=>{let t=(0,Q.zy)(),r=(0,Q.Zp)(),{"*":i=""}=(0,Q.g)();(0,s.useLayoutEffect)(()=>{""===i&&e&&r(`${t.pathname}${e}`,{replace:!0})},[])})(t);let T=(0,s.useCallback)(()=>{j&&j.querySelectorAll(".md-sidebar").forEach(e=>{if(h)e.style.top="0px";else{let t=document?.querySelector(".techdocs-reader-page"),r=t?.getBoundingClientRect().top??0,i=j.getBoundingClientRect().top??0,n=j.querySelector(".md-container > .md-tabs"),a=n?.getBoundingClientRect().height??0;i<r&&(i=r);let o=Math.max(i,0)+a;e.style.top=`${o}px`;let s=j.querySelector(".md-container > .md-footer"),l=s?.getBoundingClientRect().top??window.innerHeight;e.style.height=`${l-o}px`}e.style.setProperty("opacity","1")})},[j,h]);(0,s.useEffect)(()=>(window.addEventListener("resize",T),window.addEventListener("scroll",T,!0),()=>{window.removeEventListener("resize",T),window.removeEventListener("scroll",T,!0)}),[j,T]);let O=(0,s.useCallback)(()=>{if(!j)return;let e=j.querySelector(".md-footer");e&&(e.style.width=`${j.getBoundingClientRect().width}px`)},[j]);(0,s.useEffect)(()=>(window.addEventListener("resize",O),()=>{window.removeEventListener("resize",O)}),[j,O]),(0,s.useEffect)(()=>{R||(O(),T())},[x,R,O,T]);let L=(0,s.useCallback)((t,r)=>eF(t,[g,(({techdocsStorageApi:e,entityId:t,path:r})=>async i=>{let n=await e.getApiOrigin(),a=async(i,a)=>{for(let o of i)if(o.hasAttribute(a)){let i=o.getAttribute(a);if(!i)return;let s=await e.getBaseUrl(i,t,r);if(ez(a,i,n))try{let e=await fetch(s,{credentials:"include"}),t=await e.text();o.setAttribute(a,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(t)))}`)}catch(e){o.setAttribute("alt",`Error: ${i}`)}else o.setAttribute(a,s)}};return await Promise.all([a(i.querySelectorAll("img"),"src"),a(i.querySelectorAll("script"),"src"),a(i.querySelectorAll("source"),"src"),a(i.querySelectorAll("link"),"href"),a(i.querySelectorAll("a[download]"),"href")]),i})({techdocsStorageApi:v,entityId:e,path:r}),e=>{var t,r;return t=Array.from(e.getElementsByTagName("a")),r="href",Array.from(t).filter(e=>e.hasAttribute(r)).forEach(e=>{let t=e.getAttribute(r);if(t){t.match(/^https?:\/\//i)&&e.setAttribute("target","_blank");try{let i=eM(window.location.href);e.setAttribute(r,new URL(t,i).toString())}catch(r){e.replaceWith(e.textContent||t)}}}),e},e=>{let t=e.querySelector('.md-header label[for="__drawer"]'),r=e.querySelector("article");if(!t||!r)return e;let i=t.cloneNode();return e_((0,s.createElement)(eD.default),i),i.id="toggle-sidebar",i.title="Toggle Sidebar",i.classList.add("md-content__button"),i.style.setProperty("padding","0 0 0 5px"),i.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),r?.prepend(i),e},e=>(e.querySelector(".md-header")?.remove(),e),e=>(e.querySelector(".md-footer .md-copyright")?.remove(),e.querySelector(".md-footer-copyright")?.remove(),e),e=>{let t=e.querySelector('[title="Edit this page"]');if(!t||!t.href)return e;let r=new URL(t.href),i=b.byUrl(r);if(i?.type!=="github"&&i?.type!=="gitlab")return e;let n=e.querySelector("article>h1")?.childNodes[0].textContent||"",a=encodeURIComponent(`Documentation Feedback: ${n}`),o=encodeURIComponent(`Page source:
546
+ `],eF=async(e,t)=>{let r;if("string"==typeof e)r=new DOMParser().parseFromString(e,"text/html").documentElement;else if(e instanceof Element)r=e;else throw Error("dom is not a recognized type");for(let e of t)r=await e(r);return r},ez=(e,t,r)=>{let i=new URL(t,"https://ignored.com").pathname,n="src"===e&&i.endsWith(".svg"),a=!t.match(/^([a-z]*:)?\/\//i),o=t.startsWith(r);return n&&(a||o)};function eM(e){let t=new URL(e);return t.pathname.endsWith("/")||t.pathname.endsWith(".html")||(t.pathname+="/"),t.toString()}var eD=r(27326);function e_(e,t){i.then(r=>{"createRoot"in r?r.createRoot(t).render(e):r.render(e,t)})}i=Promise.resolve().then(r.t.bind(r,25873,19));var eq=r(87393),eH=r(90292),eV=r(52536),eW=r.n(eV),eK=r(38097);let eG=(0,c.A)(e=>({button:{color:e.palette.primary.light,textDecoration:"underline"}})),eY=({message:e,handleButtonClick:t,autoHideDuration:r})=>{let i=eG(),[n,a]=(0,s.useState)(!0),l=()=>a(!1);return(0,o.jsx)(eK.A,{open:n,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:r,color:"primary",onClose:l,message:e,action:(0,o.jsx)(D.A,{classes:{root:i.button},size:"small",onClick:()=>{l(),t()},children:"Redirect now"})})};var eZ=r(50868),eQ=r(10437),eJ=r(71677),eX=r(24568),e0=r(11688);let e1=(0,eX.A)(e=>({tooltip:{fontSize:"inherit",color:e.palette.text.primary,margin:0,padding:e.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(eJ.Ay),e2=()=>(0,o.jsx)(eQ.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"})}),e5=({text:e})=>{let[t,r]=(0,s.useState)(!1),[,i]=(0,e0.A)(),n=(0,s.useCallback)(()=>{i(e),r(!0)},[e,i]),a=(0,s.useCallback)(()=>{r(!1)},[r]);return(0,o.jsx)(e1,{title:"Copied to clipboard",placement:"left",open:t,onClose:a,leaveDelay:1e3,children:(0,o.jsx)(F.A,{style:{position:"absolute",top:"0.5rem",right:"0.5rem"},className:"md-clipboard md-icon",onClick:n,"aria-label":"Copy to clipboard",children:(0,o.jsx)(e2,{})})})},e3=({onLoading:e,onLoaded:t})=>r=>(e(),r.addEventListener(g,function e(){t(),r.removeEventListener(g,e)}),r);var e4=r(41883),e8=r(90479),e7=r(10337);let e6=()=>{let e=(0,e8.YR)(),{shadowRoot:t}=(0,d.V)(),r=t?.querySelector('[data-md-component="content"]'),i=t?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]'),n=i?.querySelector('[data-techdocs-addons-location="primary sidebar"]');n||((n=document.createElement("div")).setAttribute("data-techdocs-addons-location","primary sidebar"),i?.prepend(n));let a=t?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]'),s=a?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return s||((s=document.createElement("div")).setAttribute("data-techdocs-addons-location","secondary sidebar"),a?.prepend(s)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e4.A,{container:n,children:e.renderComponentsByLocation(e7.e.PrimarySidebar)}),(0,o.jsx)(e4.A,{container:r,children:e.renderComponentsByLocation(e7.e.Content)}),(0,o.jsx)(e4.A,{container:s,children:e.renderComponentsByLocation(e7.e.SecondarySidebar)})]})},e9=(0,c.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),te=(a=e=>{let{withSearch:t=!0,searchResultUrlMapper:r,onReady:i}=e,n=e9(),{entityMetadata:{value:a,loading:c},entityRef:u,setShadowRoot:p}=(0,d.V)(),{state:h}=ey(),g=((e,t)=>{let r,i,n,a,l,c,d,u=(r=(0,s.useRef)((0,Q.Zp)()),i=(0,E.gf)($.U).getOptionalString("app.baseUrl"),(0,s.useCallback)(e=>{let t=e;if(i)try{let r,n,a,o;r=new URL(i),n=`${r.origin}${r.pathname.replace(/\/$/,"")}`,a=e.replace(n,"").replace(/^\/+/,""),o=new URL(`http://localhost/${a}`),t=`${o.pathname}${o.search}${o.hash}`}catch(e){}r.current(t)},[i])),p=(0,eA.A)(),h=(0,ex.A)("screen and (max-width: 76.1875em)"),g=(n=(0,E.gf)($.U),a=(0,s.useMemo)(()=>n.getOptionalConfig("techdocs.sanitizer"),[n]),(0,s.useCallback)(async e=>{let t=a?.getOptionalStringArray("allowedIframeHosts");ek.A.addHook("beforeSanitizeElements",e$);let r=["link","meta"];t&&(r.push("iframe"),ek.A.addHook("beforeSanitizeElements",e=>{e.nodeType!==Node.ELEMENT_NODE||"IFRAME"!==e.nodeName||((e,t)=>{let r=e.getAttribute("src")||"";try{let{host:e}=new URL(r);return t.includes(e)}catch{return!1}})(e,t)||e.remove()}));ek.A.addHook("uponSanitizeElement",eI),ek.A.addHook("uponSanitizeAttribute",eR);let i=a?.getOptionalString("allowedCustomElementTagNameRegExp"),n=a?.getOptionalString("allowedCustomElementAttributeNameRegExp"),o=["callto","cid","ftp","ftps","http","https","mailto","matrix","sms","tel","xmpp",...a?.getOptionalStringArray("additionalAllowedURIProtocols")||[]].filter(Boolean),s=RegExp(`^(?:${o.join("|")}:|[^a-z]|[a-z+.-]+(?:[^a-z+.\\-:]|$))`,"i");return ek.A.sanitize(e.outerHTML,{ADD_TAGS:r,FORBID_TAGS:["style"],ADD_ATTR:["http-equiv","content","dominant-baseline"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0,ALLOWED_URI_REGEXP:s,CUSTOM_ELEMENT_HANDLING:{tagNameCheck:i?new RegExp(i):void 0,attributeNameCheck:n?new RegExp(n):void 0}})},[a])),m=(l=(0,eT.Ut)(),c=(0,eA.A)(),d=(0,s.useMemo)(()=>{let e={theme:c,sidebar:l};return eP.reduce((t,r)=>t+r(e),"")},[c,l]),(0,s.useCallback)(e=>(e.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${d}</style>`),e),[d])),y=(0,C.s)(),v=(0,E.gf)(eg.s),b=(0,E.gf)(eS.Y),w=(0,E.gf)($.U),{state:x,path:A,content:S}=ey(),{"*":k=""}=(0,Q.g)(),[j,I]=(0,s.useState)(null),R=f(j);(e=>{let t=(0,Q.zy)(),r=(0,Q.Zp)(),{"*":i=""}=(0,Q.g)();(0,s.useLayoutEffect)(()=>{""===i&&e&&r(`${t.pathname}${e}`,{replace:!0})},[])})(t);let T=(0,s.useCallback)(()=>{j&&j.querySelectorAll(".md-sidebar").forEach(e=>{if(h)e.style.top="0px";else{let t=document?.querySelector(".techdocs-reader-page"),r=t?.getBoundingClientRect().top??0,i=j.getBoundingClientRect().top??0,n=j.querySelector(".md-container > .md-tabs"),a=n?.getBoundingClientRect().height??0;i<r&&(i=r);let o=Math.max(i,0)+a;e.style.top=`${o}px`;let s=j.querySelector(".md-container > .md-footer"),l=s?.getBoundingClientRect().top??window.innerHeight;e.style.height=`${l-o}px`}e.style.setProperty("opacity","1")})},[j,h]);(0,s.useEffect)(()=>(window.addEventListener("resize",T),window.addEventListener("scroll",T,!0),()=>{window.removeEventListener("resize",T),window.removeEventListener("scroll",T,!0)}),[j,T]);let O=(0,s.useCallback)(()=>{if(!j)return;let e=j.querySelector(".md-footer");e&&(e.style.width=`${j.getBoundingClientRect().width}px`)},[j]);(0,s.useEffect)(()=>(window.addEventListener("resize",O),()=>{window.removeEventListener("resize",O)}),[j,O]),(0,s.useEffect)(()=>{R||(O(),T())},[x,R,O,T]);let L=(0,s.useCallback)((t,r)=>eF(t,[g,(({techdocsStorageApi:e,entityId:t,path:r})=>async i=>{let n=await e.getApiOrigin(),a=async(i,a)=>{for(let o of i)if(o.hasAttribute(a)){let i=o.getAttribute(a);if(!i)return;let s=await e.getBaseUrl(i,t,r);if(ez(a,i,n))try{let e=await fetch(s,{credentials:"include"}),t=await e.text();o.setAttribute(a,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(t)))}`)}catch(e){o.setAttribute("alt",`Error: ${i}`)}else o.setAttribute(a,s)}};return await Promise.all([a(i.querySelectorAll("img"),"src"),a(i.querySelectorAll("script"),"src"),a(i.querySelectorAll("source"),"src"),a(i.querySelectorAll("link"),"href"),a(i.querySelectorAll("a[download]"),"href")]),i})({techdocsStorageApi:v,entityId:e,path:r}),e=>{var t,r;return t=Array.from(e.getElementsByTagName("a")),r="href",Array.from(t).filter(e=>e.hasAttribute(r)).forEach(e=>{let t=e.getAttribute(r);if(t){t.match(/^https?:\/\//i)&&e.setAttribute("target","_blank");try{let i=eM(window.location.href);e.setAttribute(r,new URL(t,i).toString())}catch(r){e.replaceWith(e.textContent||t)}}}),e},e=>{let t=e.querySelector('.md-header label[for="__drawer"]'),r=e.querySelector("article");if(!t||!r)return e;let i=t.cloneNode();return e_((0,s.createElement)(eD.default),i),i.id="toggle-sidebar",i.title="Toggle Sidebar",i.classList.add("md-content__button"),i.style.setProperty("padding","0 0 0 5px"),i.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),r?.prepend(i),e},e=>(e.querySelector(".md-header")?.remove(),e),e=>(e.querySelector(".md-footer .md-copyright")?.remove(),e.querySelector(".md-footer-copyright")?.remove(),e),e=>{let t=e.querySelector('[title="Edit this page"]');if(!t||!t.href)return e;let r=new URL(t.href),i=b.byUrl(r);if(i?.type!=="github"&&i?.type!=="gitlab")return e;let n=e.querySelector("article>h1")?.childNodes[0].textContent||"",a=encodeURIComponent(`Documentation Feedback: ${n}`),o=encodeURIComponent(`Page source:
547
547
  ${t.href}
548
548
 
549
549
  Feedback:`),l=i?.type==="github"?(0,eq.F)(r.href,"blob"):r.href,c=eW()(l),d=`/${c.organization}/${c.name}`,u=t.cloneNode();switch(i?.type){case"gitlab":u.href=`${r.origin}${d}/issues/new?issue[title]=${a}&issue[description]=${o}`;break;case"github":u.href=`${r.origin}${d}/issues/new?title=${a}&body=${o}`;break;default:return e}return e_((0,s.createElement)(eH.default),u),u.style.paddingLeft="5px",u.title="Leave feedback for this page",u.id="git-feedback-link",t?.insertAdjacentElement("beforebegin",u),e},m]),[e,b,v,g,m]),B=(0,s.useCallback)(async t=>{var r;let i;return eF(t,[(r=e.name,i=e=>{let t=eM(window.location.href),i=new URL(e,t);if(i.hostname!==window.location.hostname){let e=window.location.pathname,i=e.indexOf(r);return new URL(e.slice(0,i+r.length),t).href}return i.href},e=>{for(let t of Array.from(e.querySelectorAll("meta")))if("refresh"===t.getAttribute("http-equiv")){let r=t.getAttribute("content")?.split("url=");if(!r||r.length<2)return e;let n=i(r[1]);if(window.location.href===n)return e;let a=document.createElement("div");e_((0,o.jsx)(eY,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>u(n),autoHideDuration:3e3}),a),document.body.appendChild(a),setTimeout(()=>{u(n)},3e3);break}return e}),e=>(setTimeout(()=>{let t=e?.querySelectorAll("li.md-nav__item--active");0!==t.length&&(t.forEach(e=>{let t=e?.querySelector("input");t?.checked||t?.click()}),t[t.length-1].scrollIntoView())},200),e),e=>{for(let t of e.querySelectorAll("pre > code")){let e=t.textContent||"",r=document.createElement("div");t?.parentElement?.prepend(r),e_((0,o.jsx)(eZ.A,{theme:p,children:(0,o.jsx)(e5,{text:e})}),r)}return e},(({baseUrl:e,onClick:t})=>r=>(Array.from(r.getElementsByTagName("a")).forEach(r=>{r.addEventListener("click",i=>{let n=r.getAttribute("href");n&&n.startsWith(e)&&!r.hasAttribute("download")&&(i.preventDefault(),t(i,n))})}),r))({baseUrl:w.getOptionalString("app.baseUrl")||window.location.origin,onClick:(e,r)=>{let i=e.ctrlKey||e.metaKey,n=new URL(r),a=e.target?.innerText||r,o=r.replace(window.location.origin,"");y.captureEvent("click",a,{attributes:{to:o}}),n.hash?i?window.open(r,"_blank"):(window.location.pathname!==n.pathname?u(r):window.history.pushState(null,document.title,n.hash),t?.querySelector(`[id="${n.hash.slice(1)}"]`)?.scrollIntoView(),t?.querySelector(`[id="${n.hash.slice(1)}"]`)?.querySelector("a, button, [tabindex]")?.focus()):i?window.open(r,"_blank"):u(r)}}),e3({onLoading:()=>{},onLoaded:()=>{t.querySelector(".md-nav__title")?.removeAttribute("for")}}),e3({onLoading:()=>{Array.from(t.querySelectorAll(".md-sidebar")).forEach(e=>{e.style.setProperty("opacity","0")})},onLoaded:()=>{}}),e=>(e.querySelectorAll("label.md-nav__link[for]").forEach(t=>{t.setAttribute("tabIndex","0"),t.addEventListener("keydown",r=>{if("Enter"===r.key||" "===r.key){let i=t.getAttribute("for");if(!i)return;let n=e.querySelector(`#${i}`);n&&"checkbox"===n.type&&(n.checked=!n.checked,n.dispatchEvent(new Event("change",{bubbles:!0})),r.preventDefault(),r.stopPropagation())}})}),e)])},[p,u,y,e.name,w]);return(0,s.useEffect)(()=>{if(!S)return()=>{};let e=!0;return L(S,A).then(async t=>{t?.innerHTML&&e&&k===A&&(window.scroll({top:0}),I(await B(t)))}),()=>{e=!1}},[S,k,A,L,B]),j})(u,e.defaultPath),w=window.location.pathname,x=window.location.hash,A=f(g),[S]=(0,y.$r)([`[id="${x.slice(1)}"]`]),{NotFoundErrorPage:k}=(0,P.n)().getComponents();(0,s.useEffect)(()=>{!A&&(x?S&&S.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[w,x,S,A]);let j=(0,s.useCallback)(e=>{p(e),i instanceof Function&&i()},[p,i]);return!1!==c||a?g?(0,o.jsx)(v.U,{children:(0,o.jsxs)(l.A,{container:!0,children:[(0,o.jsx)(l.A,{xs:12,item:!0,children:(0,o.jsx)(ew,{})}),t&&(0,o.jsx)(l.A,{className:n.search,xs:"auto",item:!0,children:(0,o.jsx)(ee,{entityId:u,entityTitle:a?.metadata?.title,searchResultUrlMapper:r})}),(0,o.jsxs)(l.A,{xs:12,item:!0,children:[("CHECKING"===h||A)&&(0,o.jsx)(b.k,{}),(0,o.jsx)(m,{element:g,onAppend:j,children:(0,o.jsx)(e6,{})})]})]})}):(0,o.jsx)(v.U,{children:(0,o.jsx)(l.A,{container:!0,children:(0,o.jsx)(l.A,{xs:12,item:!0,children:(0,o.jsx)(ew,{})})})}):(0,o.jsx)(k,{})},e=>(0,o.jsx)(ev,{children:(0,o.jsx)(a,{...e})}))},68999(e,t,r){"use strict";r.d(t,{T:()=>B});var i=r(31085),n=r(14041),a=r(93285),o=r(42899),s=r(4387),l=r(13660),c=r(90479),d=r(63401),u=r(10337),p=r(87623),h=r(53320),g=r(76025),f=r(53987),m=r(96403),y=r(58077),v=r(58837),b=r(268),w=r(72501),x=r(60603);let A=(0,v.A)(e=>({root:{textAlign:"left"},label:{color:e.page.fontColor,fontWeight:e.typography.fontWeightBold,letterSpacing:0,fontSize:e.typography.fontSize,marginBottom:e.spacing(1)/2,lineHeight:1},value:{color:(0,b.X4)(e.page.fontColor,.8),fontSize:e.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),S=({value:e,className:t,typographyRootComponent:r})=>(0,i.jsx)(w.A,{component:r??("string"==typeof e?"p":"span"),className:t,children:e});function k(e){let{label:t,value:r,url:n,contentTypograpyRootComponent:a}=e,s=A(),l=(0,i.jsx)(S,{className:s.value,value:r||"<Unknown>",typographyRootComponent:a});return(0,i.jsx)(o.A,{item:!0,children:(0,i.jsxs)(w.A,{component:"span",className:s.root,children:[(0,i.jsx)(w.A,{className:s.label,children:t}),n?(0,i.jsx)(x.N_,{to:n,children:l}):l]})})}var E=r(66990),C=r(50509),j=r(19735),$=r(16647),I=r(56005),R=r.n(I),T=r(90898),O=r(18690);let L=(0,i.jsx)(s.A,{animation:"wave",variant:"text",height:40}),B=e=>{let{children:t}=e,r=(0,c.YR)(),s=(0,C.gf)(j.U),v=(0,C.gf)(p.n),{"*":b=""}=(0,O.g)(),{title:w,setTitle:x,subtitle:A,setSubtitle:S,entityRef:I,metadata:{value:B,loading:U},entityMetadata:{value:N,loading:P}}=(0,d.V)();(0,n.useEffect)(()=>{B&&(x(B.site_name),S(()=>{let{site_description:e}=B;return e&&"None"!==e||(e=""),e}))},[B,x,S]);let F=s.getOptional("app.title")||"Backstage",{locationMetadata:z,spec:M}=N||{},D=M?.lifecycle,_=N?(0,h.t)(N,m.vv):[],q=(0,$.S)(T.rQ)(),H=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k,{label:R()(N?.kind||"entity"),value:(0,i.jsx)(g.z,{color:"inherit",entityRef:I,title:N?.metadata.title,defaultKind:"Component"})}),_.length>0&&(0,i.jsx)(k,{label:"Owner",value:(0,i.jsx)(f.i,{color:"inherit",entityRefs:_,defaultKind:"group"})}),D?(0,i.jsx)(k,{label:"Lifecycle",value:String(D)}):null,z&&"dir"!==z.type&&"file"!==z.type?(0,i.jsx)(k,{label:"",value:(0,i.jsxs)(o.A,{container:!0,direction:"column",alignItems:"center",children:[(0,i.jsx)(o.A,{style:{padding:0},item:!0,children:(0,i.jsx)(l.default,{style:{marginTop:"-25px"}})}),(0,i.jsx)(o.A,{style:{padding:0},item:!0,children:"Source"})]}),url:z.target}):null]}),V=!U&&void 0===B;if(!P&&void 0===N||V)return null;let W=(0,y.U2)(I),K=v.forEntity(W).snapshot.primaryTitle,G=[];""!==b&&(G=b.replace(/\/$/,"").split("/").map(e=>e.replace(/[-_]/g," ").split(" ").map(R()).join(" ")));let Y=[K,...G,F].join(" | ");return(0,i.jsxs)(E.Y,{type:"Documentation",typeLink:q,title:w||L,subtitle:""===A?void 0:A||L,children:[(0,i.jsx)(a.A,{titleTemplate:"%s",children:(0,i.jsx)("title",{children:Y})}),H,t,r.renderComponentsByLocation(u.e.Header)]})}},90898(e,t,r){"use strict";r.d(t,{Oc:()=>a,Ri:()=>o,rQ:()=>n});var i=r(96296);let n=(0,i.H)({id:"techdocs:index-page"}),a=(0,i.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),o=(0,i.H)({id:"techdocs:catalog-reader-view"})},26761(e,t,r){"use strict";r.d(t,{TechDocsSearchResultListItem:()=>u});var i=r(31085),n=r(46423),a=r(5951),o=r(58837),s=r(72501),l=r(60603),c=r(7613);let d=(0,o.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),u=e=>{let{result:t,highlight:r,lineClamp:o=5,asListItem:u=!0,asLink:p=!0,title:h,icon:g}=e,f=d(),m=({children:e})=>p?(0,i.jsx)(l.N_,{noTrack:!0,to:t.location,children:e}):(0,i.jsx)(i.Fragment,{children:e});return(0,i.jsx)(({children:e})=>u?(0,i.jsxs)(i.Fragment,{children:[g&&(0,i.jsx)(n.A,{children:"function"==typeof g?g(t):g}),(0,i.jsx)("div",{className:f.flexContainer,children:e})]}):(0,i.jsx)(i.Fragment,{children:e}),{children:(0,i.jsx)(()=>{let e=r?.fields.title?(0,i.jsx)(c.e,{text:r.fields.title,preTag:r.preTag,postTag:r.postTag}):t.title,n=r?.fields.entityTitle?(0,i.jsx)(c.e,{text:r.fields.entityTitle,preTag:r.preTag,postTag:r.postTag}):t.entityTitle,l=r?.fields.name?(0,i.jsx)(c.e,{text:r.fields.name,preTag:r.preTag,postTag:r.postTag}):t.name;return t?(0,i.jsx)(a.A,{className:f.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,i.jsx)(m,{children:h||(0,i.jsxs)(i.Fragment,{children:[e," | ",n??l," docs"]})}),secondary:(0,i.jsx)(s.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o,overflow:"hidden"},color:"textSecondary",variant:"body2",children:r?.fields.text?(0,i.jsx)(c.e,{text:r.fields.text,preTag:r.preTag,postTag:r.postTag}):t.text})}):null},{})})}},20621(e,t,r){let i=document.querySelector('meta[name="backstage-public-path"]'),n=i?.getAttribute("content");n&&(r.p=n)},33783(){}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["131","183","2284","2328","6417","7192","7364","7740","7769","9178","9343","9400","9474"],function(){return t(20621),t(8220)}),e.O()}]);
550
- //# sourceMappingURL=main.48ae5130.js.map
550
+ //# sourceMappingURL=main.f6407dc4.js.map