@techdocs/cli 0.0.0-nightly-20240711021914 → 0.0.0-nightly-20240713021735

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,13 +1,13 @@
1
1
  # @techdocs/cli
2
2
 
3
- ## 0.0.0-nightly-20240711021914
3
+ ## 0.0.0-nightly-20240713021735
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-20240711021914
10
- - @backstage/plugin-techdocs-node@0.0.0-nightly-20240711021914
9
+ - @backstage/backend-defaults@0.0.0-nightly-20240713021735
10
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20240713021735
11
11
  - @backstage/catalog-model@1.5.0
12
12
  - @backstage/cli-common@0.1.14
13
13
  - @backstage/config@1.2.0
@@ -1598,7 +1598,116 @@
1598
1598
  }
1599
1599
  },
1600
1600
  {
1601
- "path": "../backend-app-api/config.d.ts",
1601
+ "path": "../integration-aws-node/config.d.ts",
1602
+ "value": {
1603
+ "type": "object",
1604
+ "properties": {
1605
+ "aws": {
1606
+ "description": "Configuration for access to AWS accounts",
1607
+ "type": "object",
1608
+ "properties": {
1609
+ "accountDefaults": {
1610
+ "description": "Defaults for retrieving AWS account credentials",
1611
+ "type": "object",
1612
+ "properties": {
1613
+ "roleName": {
1614
+ "description": "The IAM role to assume to retrieve temporary AWS credentials",
1615
+ "type": "string"
1616
+ },
1617
+ "partition": {
1618
+ "description": "The AWS partition of the IAM role, e.g. \"aws\", \"aws-cn\"",
1619
+ "type": "string"
1620
+ },
1621
+ "region": {
1622
+ "description": "The STS regional endpoint to use when retrieving temporary AWS credentials, e.g. \"ap-northeast-1\"",
1623
+ "type": "string"
1624
+ },
1625
+ "externalId": {
1626
+ "description": "The unique identifier needed to assume the role to retrieve temporary AWS credentials",
1627
+ "visibility": "secret",
1628
+ "type": "string"
1629
+ }
1630
+ }
1631
+ },
1632
+ "mainAccount": {
1633
+ "description": "Main account to use for retrieving AWS account credentials",
1634
+ "type": "object",
1635
+ "properties": {
1636
+ "accessKeyId": {
1637
+ "description": "The access key ID for a set of static AWS credentials",
1638
+ "visibility": "secret",
1639
+ "type": "string"
1640
+ },
1641
+ "secretAccessKey": {
1642
+ "description": "The secret access key for a set of static AWS credentials",
1643
+ "visibility": "secret",
1644
+ "type": "string"
1645
+ },
1646
+ "profile": {
1647
+ "description": "The configuration profile from a credentials file at ~/.aws/credentials and\na configuration file at ~/.aws/config.",
1648
+ "type": "string"
1649
+ },
1650
+ "region": {
1651
+ "description": "The STS regional endpoint to use for the main account, e.g. \"ap-northeast-1\"",
1652
+ "type": "string"
1653
+ }
1654
+ }
1655
+ },
1656
+ "accounts": {
1657
+ "description": "Configuration for retrieving AWS accounts credentials",
1658
+ "type": "array",
1659
+ "items": {
1660
+ "type": "object",
1661
+ "properties": {
1662
+ "accountId": {
1663
+ "description": "The account ID of the target account that this matches on, e.g. \"123456789012\"",
1664
+ "type": "string"
1665
+ },
1666
+ "accessKeyId": {
1667
+ "description": "The access key ID for a set of static AWS credentials",
1668
+ "visibility": "secret",
1669
+ "type": "string"
1670
+ },
1671
+ "secretAccessKey": {
1672
+ "description": "The secret access key for a set of static AWS credentials",
1673
+ "visibility": "secret",
1674
+ "type": "string"
1675
+ },
1676
+ "profile": {
1677
+ "description": "The configuration profile from a credentials file at ~/.aws/credentials and\na configuration file at ~/.aws/config.",
1678
+ "type": "string"
1679
+ },
1680
+ "roleName": {
1681
+ "description": "The IAM role to assume to retrieve temporary AWS credentials",
1682
+ "type": "string"
1683
+ },
1684
+ "partition": {
1685
+ "description": "The AWS partition of the IAM role, e.g. \"aws\", \"aws-cn\"",
1686
+ "type": "string"
1687
+ },
1688
+ "region": {
1689
+ "description": "The STS regional endpoint to use when retrieving temporary AWS credentials, e.g. \"ap-northeast-1\"",
1690
+ "type": "string"
1691
+ },
1692
+ "externalId": {
1693
+ "description": "The unique identifier needed to assume the role to retrieve temporary AWS credentials",
1694
+ "visibility": "secret",
1695
+ "type": "string"
1696
+ }
1697
+ },
1698
+ "required": [
1699
+ "accountId"
1700
+ ]
1701
+ }
1702
+ }
1703
+ }
1704
+ }
1705
+ },
1706
+ "$schema": "http://json-schema.org/draft-07/schema#"
1707
+ }
1708
+ },
1709
+ {
1710
+ "path": "../backend-defaults/config.d.ts",
1602
1711
  "value": {
1603
1712
  "type": "object",
1604
1713
  "properties": {
@@ -1606,6 +1715,7 @@
1606
1715
  "type": "object",
1607
1716
  "properties": {
1608
1717
  "auth": {
1718
+ "description": "Options used by the default auth, httpAuth and userInfo services.",
1609
1719
  "type": "object",
1610
1720
  "properties": {
1611
1721
  "dangerouslyDisableDefaultAuthPolicy": {
@@ -1931,17 +2041,17 @@
1931
2041
  }
1932
2042
  },
1933
2043
  "discovery": {
1934
- "description": "Discovery options.",
2044
+ "description": "Options used by the default discovery service.",
1935
2045
  "type": "object",
1936
2046
  "properties": {
1937
2047
  "endpoints": {
1938
- "description": "Endpoints\n\nA list of target baseUrls and the associated plugins.",
2048
+ "description": "A list of target baseUrls and the associated plugins.",
1939
2049
  "type": "array",
1940
2050
  "items": {
1941
2051
  "type": "object",
1942
2052
  "properties": {
1943
2053
  "target": {
1944
- "description": "The target baseUrl to use for the plugin\n\nCan be either a string or an object with internal and external keys.\nTargets with `{{pluginId}}` or `{{ pluginId }} in the url will be replaced with the pluginId.",
2054
+ "description": "The target base URL to use for the plugin.\n\nCan be either a string or an object with internal and external keys.\nTargets with `{{pluginId}}` or `{{ pluginId }} in the URL will be replaced with the plugin ID.",
1945
2055
  "anyOf": [
1946
2056
  {
1947
2057
  "type": "object",
@@ -1964,7 +2074,7 @@
1964
2074
  ]
1965
2075
  },
1966
2076
  "plugins": {
1967
- "description": "Array of plugins which use the target baseUrl.",
2077
+ "description": "Array of plugins which use the target base URL.",
1968
2078
  "type": "array",
1969
2079
  "items": {
1970
2080
  "type": "string"
@@ -1987,7 +2097,7 @@
1987
2097
  }
1988
2098
  },
1989
2099
  {
1990
- "path": "../backend-defaults/config.d.ts",
2100
+ "path": "../backend-app-api/config.d.ts",
1991
2101
  "value": {
1992
2102
  "type": "object",
1993
2103
  "properties": {
@@ -1995,7 +2105,6 @@
1995
2105
  "type": "object",
1996
2106
  "properties": {
1997
2107
  "auth": {
1998
- "description": "Options used by the default auth, httpAuth and userInfo services.",
1999
2108
  "type": "object",
2000
2109
  "properties": {
2001
2110
  "dangerouslyDisableDefaultAuthPolicy": {
@@ -2321,17 +2430,17 @@
2321
2430
  }
2322
2431
  },
2323
2432
  "discovery": {
2324
- "description": "Options used by the default discovery service.",
2433
+ "description": "Discovery options.",
2325
2434
  "type": "object",
2326
2435
  "properties": {
2327
2436
  "endpoints": {
2328
- "description": "A list of target baseUrls and the associated plugins.",
2437
+ "description": "Endpoints\n\nA list of target baseUrls and the associated plugins.",
2329
2438
  "type": "array",
2330
2439
  "items": {
2331
2440
  "type": "object",
2332
2441
  "properties": {
2333
2442
  "target": {
2334
- "description": "The target base URL to use for the plugin.\n\nCan be either a string or an object with internal and external keys.\nTargets with `{{pluginId}}` or `{{ pluginId }} in the URL will be replaced with the plugin ID.",
2443
+ "description": "The target baseUrl to use for the plugin\n\nCan be either a string or an object with internal and external keys.\nTargets with `{{pluginId}}` or `{{ pluginId }} in the url will be replaced with the pluginId.",
2335
2444
  "anyOf": [
2336
2445
  {
2337
2446
  "type": "object",
@@ -2354,7 +2463,7 @@
2354
2463
  ]
2355
2464
  },
2356
2465
  "plugins": {
2357
- "description": "Array of plugins which use the target base URL.",
2466
+ "description": "Array of plugins which use the target baseUrl.",
2358
2467
  "type": "array",
2359
2468
  "items": {
2360
2469
  "type": "string"
@@ -2376,115 +2485,6 @@
2376
2485
  "$schema": "http://json-schema.org/draft-07/schema#"
2377
2486
  }
2378
2487
  },
2379
- {
2380
- "path": "../integration-aws-node/config.d.ts",
2381
- "value": {
2382
- "type": "object",
2383
- "properties": {
2384
- "aws": {
2385
- "description": "Configuration for access to AWS accounts",
2386
- "type": "object",
2387
- "properties": {
2388
- "accountDefaults": {
2389
- "description": "Defaults for retrieving AWS account credentials",
2390
- "type": "object",
2391
- "properties": {
2392
- "roleName": {
2393
- "description": "The IAM role to assume to retrieve temporary AWS credentials",
2394
- "type": "string"
2395
- },
2396
- "partition": {
2397
- "description": "The AWS partition of the IAM role, e.g. \"aws\", \"aws-cn\"",
2398
- "type": "string"
2399
- },
2400
- "region": {
2401
- "description": "The STS regional endpoint to use when retrieving temporary AWS credentials, e.g. \"ap-northeast-1\"",
2402
- "type": "string"
2403
- },
2404
- "externalId": {
2405
- "description": "The unique identifier needed to assume the role to retrieve temporary AWS credentials",
2406
- "visibility": "secret",
2407
- "type": "string"
2408
- }
2409
- }
2410
- },
2411
- "mainAccount": {
2412
- "description": "Main account to use for retrieving AWS account credentials",
2413
- "type": "object",
2414
- "properties": {
2415
- "accessKeyId": {
2416
- "description": "The access key ID for a set of static AWS credentials",
2417
- "visibility": "secret",
2418
- "type": "string"
2419
- },
2420
- "secretAccessKey": {
2421
- "description": "The secret access key for a set of static AWS credentials",
2422
- "visibility": "secret",
2423
- "type": "string"
2424
- },
2425
- "profile": {
2426
- "description": "The configuration profile from a credentials file at ~/.aws/credentials and\na configuration file at ~/.aws/config.",
2427
- "type": "string"
2428
- },
2429
- "region": {
2430
- "description": "The STS regional endpoint to use for the main account, e.g. \"ap-northeast-1\"",
2431
- "type": "string"
2432
- }
2433
- }
2434
- },
2435
- "accounts": {
2436
- "description": "Configuration for retrieving AWS accounts credentials",
2437
- "type": "array",
2438
- "items": {
2439
- "type": "object",
2440
- "properties": {
2441
- "accountId": {
2442
- "description": "The account ID of the target account that this matches on, e.g. \"123456789012\"",
2443
- "type": "string"
2444
- },
2445
- "accessKeyId": {
2446
- "description": "The access key ID for a set of static AWS credentials",
2447
- "visibility": "secret",
2448
- "type": "string"
2449
- },
2450
- "secretAccessKey": {
2451
- "description": "The secret access key for a set of static AWS credentials",
2452
- "visibility": "secret",
2453
- "type": "string"
2454
- },
2455
- "profile": {
2456
- "description": "The configuration profile from a credentials file at ~/.aws/credentials and\na configuration file at ~/.aws/config.",
2457
- "type": "string"
2458
- },
2459
- "roleName": {
2460
- "description": "The IAM role to assume to retrieve temporary AWS credentials",
2461
- "type": "string"
2462
- },
2463
- "partition": {
2464
- "description": "The AWS partition of the IAM role, e.g. \"aws\", \"aws-cn\"",
2465
- "type": "string"
2466
- },
2467
- "region": {
2468
- "description": "The STS regional endpoint to use when retrieving temporary AWS credentials, e.g. \"ap-northeast-1\"",
2469
- "type": "string"
2470
- },
2471
- "externalId": {
2472
- "description": "The unique identifier needed to assume the role to retrieve temporary AWS credentials",
2473
- "visibility": "secret",
2474
- "type": "string"
2475
- }
2476
- },
2477
- "required": [
2478
- "accountId"
2479
- ]
2480
- }
2481
- }
2482
- }
2483
- }
2484
- },
2485
- "$schema": "http://json-schema.org/draft-07/schema#"
2486
- }
2487
- },
2488
2488
  {
2489
2489
  "path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/integration/config.d.ts",
2490
2490
  "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.48de2197.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.48de2197.js"></script><script defer="defer" src="/static/main.48de2197.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.13d7f252.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.13d7f252.js"></script><script defer="defer" src="/static/main.13d7f252.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -504,6 +504,6 @@ ${Yt.reduce((R,$)=>{var k;const G=(k=p.typography.htmlFontSize)!==null&&k!==void
504
504
  `],Qt=()=>(0,te.Ut)(),tn=()=>{const p=Qt(),R=(0,un.A)();return(0,i.useMemo)(()=>{const $={theme:R,sidebar:p};return Ge.reduce((k,G)=>k+G($),"")},[R,p])},gn=()=>{const p=tn();return(0,i.useCallback)(R=>(R.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${p}</style>`),R),[p])},_e=async(p,R)=>{let $;if(typeof p=="string")$=new DOMParser().parseFromString(p,"text/html").documentElement;else if(p instanceof Element)$=p;else throw new Error("dom is not a recognized type");for(const k of R)$=await k($);return $},Ye=(p,R,$)=>{const k=p==="src"&&R.endsWith(".svg"),G=!R.match(/^([a-z]*:)?\/\//i),tt=R.startsWith($);return k&&(G||tt)},Ln=({techdocsStorageApi:p,entityId:R,path:$})=>async k=>{const G=await p.getApiOrigin(),tt=async(rt,At)=>{for(const Mt of rt)if(Mt.hasAttribute(At)){const Wt=Mt.getAttribute(At);if(!Wt)return;const Zt=await p.getBaseUrl(Wt,R,$);if(Ye(At,Wt,G))try{const It=await(await fetch(Zt,{credentials:"include"})).text();Mt.setAttribute(At,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(It)))}`)}catch{Mt.setAttribute("alt",`Error: ${Wt}`)}else Mt.setAttribute(At,Zt)}};return await Promise.all([tt(k.querySelectorAll("img"),"src"),tt(k.querySelectorAll("script"),"src"),tt(k.querySelectorAll("source"),"src"),tt(k.querySelectorAll("link"),"href"),tt(k.querySelectorAll("a[download]"),"href")]),k},Mn=()=>p=>((($,k)=>{Array.from($).filter(G=>G.hasAttribute(k)).forEach(G=>{const tt=G.getAttribute(k);if(tt){tt.match(/^https?:\/\//i)&&G.setAttribute("target","_blank");try{const rt=Ne(window.location.href);G.setAttribute(k,new URL(tt,rt).toString())}catch{G.replaceWith(G.textContent||tt)}}})})(Array.from(p.getElementsByTagName("a")),"href"),p);function Ne(p){const R=new URL(p);return!R.pathname.endsWith("/")&&!R.pathname.endsWith(".html")&&(R.pathname+="/"),R.toString()}var Lo=t(27326);let Bn;Bn=Promise.resolve().then(t.t.bind(t,25873,19));function jn(p,R){Bn.then($=>{"createRoot"in $?$.createRoot(R).render(p):$.render(p,R)})}const qn=()=>p=>{const R=p.querySelector('.md-header label[for="__drawer"]'),$=p.querySelector("article");if(!R||!$)return p;const k=R.cloneNode();return jn(i.createElement(Lo.A),k),k.id="toggle-sidebar",k.title="Toggle Sidebar",k.classList.add("md-content__button"),k.style.setProperty("padding","0 0 0 5px"),k.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),$==null||$.prepend(k),p},Mo=()=>p=>{var R;return(R=p.querySelector(".md-header"))===null||R===void 0||R.remove(),p},Bo=()=>p=>{var R,$;return(R=p.querySelector(".md-footer .md-copyright"))===null||R===void 0||R.remove(),($=p.querySelector(".md-footer-copyright"))===null||$===void 0||$.remove(),p};var jo=t(36021),Uo=t(90292),$o=t(52536),Fo=t.n($o);const No=p=>R=>{var $;const k=R.querySelector('[title="Edit this page"]');if(!k||!k.href)return R;const G=new URL(k.href),tt=p.byUrl(G);if((tt==null?void 0:tt.type)!=="github"&&(tt==null?void 0:tt.type)!=="gitlab")return R;const rt=(($=R.querySelector("article>h1"))===null||$===void 0?void 0:$.childNodes[0].textContent)||"",At=encodeURIComponent(`Documentation Feedback: ${rt}`),Mt=encodeURIComponent(`Page source:
505
505
  ${k.href}
506
506
 
507
- Feedback:`),Wt=(tt==null?void 0:tt.type)==="github"?(0,jo.F)(G.href,"blob"):G.href,Zt=Fo()(Wt),kt=`/${Zt.organization}/${Zt.name}`,It=k.cloneNode();switch(tt==null?void 0:tt.type){case"gitlab":It.href=`${G.origin}${kt}/issues/new?issue[title]=${At}&issue[description]=${Mt}`;break;case"github":It.href=`${G.origin}${kt}/issues/new?title=${At}&body=${Mt}`;break;default:return R}return jn(i.createElement(Uo.A),It),It.style.paddingLeft="5px",It.title="Leave feedback for this page",It.id="git-feedback-link",k==null||k.insertAdjacentElement("beforebegin",It),R},to=()=>p=>(setTimeout(()=>{const R=p==null?void 0:p.querySelectorAll("li.md-nav__item--active");R.length!==0&&(R.forEach(k=>{const G=k==null?void 0:k.querySelector("input");G!=null&&G.checked||G==null||G.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),[,k]=(0,Ko.A)(),G=(0,i.useCallback)(()=>{k(p),$(!0)},[p,k]),tt=(0,i.useCallback)(()=>{$(!1)},[$]);return(0,o.jsx)(Un,{title:"Copied to clipboard",placement:"left",open:R,onClose:tt,leaveDelay:1e3,children:(0,o.jsx)(jt.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:G,children:(0,o.jsx)($n,{})})})},oo=p=>R=>{const $=R.querySelectorAll("pre > code");for(const G of $){var k;const tt=G.textContent||"",rt=document.createElement("div");G==null||(k=G.parentElement)===null||k===void 0||k.prepend(rt),jn((0,o.jsx)(Wo.A,{theme:p,children:(0,o.jsx)(zo,{text:tt})}),rt)}return R},so=({baseUrl:p,onClick:R})=>$=>(Array.from($.getElementsByTagName("a")).forEach(k=>{k.addEventListener("click",G=>{const rt=k.getAttribute("href");rt&&rt.startsWith(p)&&!k.hasAttribute("download")&&(G.preventDefault(),R(G,rt))})}),$),ro=({onLoading:p,onLoaded:R})=>$=>(p(),$.addEventListener(y,function k(){R(),$.removeEventListener(y,k)}),$);function Ho(p,R){const $=new URL(R),k=`${$.origin}${$.pathname.replace(/\/$/,"")}`,G=p.replace(k,"").replace(/^\/+/,""),tt=new URL(`http://localhost/${G}`);return`${tt.pathname}${tt.search}${tt.hash}`}function _o(){const p=(0,Ht.Zp)(),$=(0,Z.gf)(q.U).getOptionalString("app.baseUrl");return(0,i.useCallback)(G=>{let tt=G;if($)try{tt=Ho(G,$)}catch{}p(tt)},[p,$])}const Vo="screen and (max-width: 76.1875em)",Go=p=>{const R=_o(),$=(0,un.A)(),k=(0,He.A)(Vo),G=Pt(),tt=gn(),rt=(0,_.s)(),At=(0,Z.gf)(Ze.s),Mt=(0,Z.gf)(Tn.Y),{state:Wt,path:Zt,content:kt}=me(),[It,ee]=(0,i.useState)(null),xe=h(It),Jt=(0,i.useCallback)(()=>{if(!It)return;It.querySelectorAll(".md-sidebar").forEach(Gt=>{if(k)Gt.style.top="0px";else{var Xt;const Ue=(Xt=document)===null||Xt===void 0?void 0:Xt.querySelector(".techdocs-reader-page");var Ce;const ce=(Ce=Ue==null?void 0:Ue.getBoundingClientRect().top)!==null&&Ce!==void 0?Ce:0;var Pe;let Wn=(Pe=It.getBoundingClientRect().top)!==null&&Pe!==void 0?Pe:0;const kn=It.querySelector(".md-container > .md-tabs");var Qe;const Zo=(Qe=kn==null?void 0:kn.getBoundingClientRect().height)!==null&&Qe!==void 0?Qe:0;Wn<ce&&(Wn=ce);const vn=Math.max(Wn,0)+Zo;Gt.style.top=`${vn}px`;const Kn=It.querySelector(".md-container > .md-footer");var pe;const yn=(pe=Kn==null?void 0:Kn.getBoundingClientRect().top)!==null&&pe!==void 0?pe:window.innerHeight;Gt.style.height=`${yn-vn}px`}Gt.style.setProperty("opacity","1")})},[It,k]);(0,i.useEffect)(()=>(window.addEventListener("resize",Jt),window.addEventListener("scroll",Jt,!0),()=>{window.removeEventListener("resize",Jt),window.removeEventListener("scroll",Jt,!0)}),[It,Jt]);const ne=(0,i.useCallback)(()=>{if(!It)return;const Dt=It.querySelector(".md-footer");Dt&&(Dt.style.width=`${It.getBoundingClientRect().width}px`)},[It]);(0,i.useEffect)(()=>(window.addEventListener("resize",ne),()=>{window.removeEventListener("resize",ne)}),[It,ne]),(0,i.useEffect)(()=>{xe||(ne(),Jt())},[Wt,xe,ne,Jt]);const oe=(0,i.useCallback)((Dt,Gt)=>_e(Dt,[G,Ln({techdocsStorageApi:At,entityId:p,path:Gt}),Mn(),qn(),Mo(),Bo(),No(Mt),tt]),[p,Mt,At,G,tt]),de=(0,i.useCallback)(async Dt=>_e(Dt,[to(),oo($),so({baseUrl:window.location.origin,onClick:(Gt,Xt)=>{var Ce;const Pe=Gt.ctrlKey||Gt.metaKey,Qe=new URL(Xt),pe=((Ce=Gt.target)===null||Ce===void 0?void 0:Ce.innerText)||Xt,Ue=Xt.replace(window.location.origin,"");if(rt.captureEvent("click",pe,{attributes:{to:Ue}}),Qe.hash)if(Pe)window.open(Xt,"_blank");else{var ce;R(Xt),Dt==null||(ce=Dt.querySelector(`[id="${Qe.hash.slice(1)}"]`))===null||ce===void 0||ce.scrollIntoView()}else Pe?window.open(Xt,"_blank"):R(Xt)}}),ro({onLoading:()=>{},onLoaded:()=>{var Gt;(Gt=Dt.querySelector(".md-nav__title"))===null||Gt===void 0||Gt.removeAttribute("for")}}),ro({onLoading:()=>{Array.from(Dt.querySelectorAll(".md-sidebar")).forEach(Xt=>{Xt.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[$,R,rt]);return(0,i.useEffect)(()=>{if(!kt)return()=>{};let Dt=!0;return oe(kt,Zt).then(async Gt=>{if(!(Gt!=null&&Gt.innerHTML)||!Dt)return;window.scroll({top:0});const Xt=await de(Gt);ee(Xt)}),()=>{Dt=!1}},[kt,Zt,oe,de]),It};var Fn=t(41883),Yo=t(72020),Nn=t(99730);const Qo=()=>{const p=(0,Yo.YR)(),{shadowRoot:R}=(0,v.V)(),$=R==null?void 0:R.querySelector('[data-md-component="content"]'),k=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let G=k==null?void 0:k.querySelector('[data-techdocs-addons-location="primary sidebar"]');G||(G=document.createElement("div"),G.setAttribute("data-techdocs-addons-location","primary sidebar"),k==null||k.prepend(G));const tt=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let rt=tt==null?void 0:tt.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return rt||(rt=document.createElement("div"),rt.setAttribute("data-techdocs-addons-location","secondary sidebar"),tt==null||tt.prepend(rt)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Fn.A,{container:G,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,w.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),ao=Je(p=>{var R;const{withSearch:$=!0,onReady:k}=p,G=io(),{entityMetadata:{value:tt,loading:rt},entityRef:At,setShadowRoot:Mt}=(0,v.V)(),Wt=Go(At),Zt=window.location.pathname,kt=window.location.hash,It=h(Wt),[ee]=P([`[id="${kt.slice(1)}"]`]);(0,i.useEffect)(()=>{if(!It)if(kt)ee&&ee.scrollIntoView();else{var Jt,ne;(ne=document)===null||ne===void 0||(Jt=ne.querySelector("header"))===null||Jt===void 0||Jt.scrollIntoView()}},[Zt,kt,ee,It]);const xe=(0,i.useCallback)(Jt=>{Mt(Jt),k instanceof Function&&k()},[Mt,k]);return rt===!1&&!tt?(0,o.jsx)(L.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Wt?(0,o.jsx)(C.U,{children:(0,o.jsxs)(d.A,{container:!0,children:[(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(Fe,{})}),$&&(0,o.jsx)(d.A,{className:G.search,xs:"auto",item:!0,children:(0,o.jsx)(Re,{entityId:At,entityTitle:tt==null||(R=tt.metadata)===null||R===void 0?void 0:R.title})}),(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(S,{element:Wt,onAppend:xe,children:(0,o.jsx)(Qo,{})})})]})}):(0,o.jsx)(C.U,{children:(0,o.jsx)(d.A,{container:!0,children:(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(Fe,{})})})})}),Rt=null},45061:(J,T,t)=>{"use strict";t.d(T,{T:()=>ot});var o=t(31085),i=t(14041),d=t(93285),w=t(42899),v=t(4387),m=t(13660),g=t(72020),c=t(86892),A=t(99730),y=t(67871),O=t(8859),h=t(34428),S=t(51372),f=t(58837),j=t(268),P=t(72501),x=t(72072);const U=(0,f.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,j.X4)(q.page.fontColor,.8),fontSize:q.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),L=({value:q,className:ht,typographyRootComponent:ut})=>(0,o.jsx)(P.A,{component:ut!=null?ut:typeof q=="string"?"p":"span",className:ht,children:q});function C(q){const{label:ht,value:ut,url:Ot,contentTypograpyRootComponent:Tt}=q,Et=U(),gt=(0,o.jsx)(L,{className:Et.value,value:ut||"<Unknown>",typographyRootComponent:Tt});return(0,o.jsx)(w.A,{item:!0,children:(0,o.jsxs)(P.A,{component:"span",className:Et.root,children:[(0,o.jsx)(P.A,{className:Et.label,children:ht}),Ot?(0,o.jsx)(x.N_,{to:Ot,children:gt}):gt]})})}var z=t(69814),H=t(72427),Y=t(65461),W=t(9222),K=t(45250),Z=t(82779);const _=(0,o.jsx)(v.A,{animation:"wave",variant:"text",height:40}),ot=q=>{const{children:ht}=q,ut=(0,g.YR)(),Ot=(0,H.gf)(Y.U),{title:Tt,setTitle:Et,subtitle:gt,setSubtitle:xt,entityRef:ct,metadata:{value:it,loading:bt},entityMetadata:{value:pt,loading:St}}=(0,c.V)();(0,i.useEffect)(()=>{it&&(Et(it.site_name),xt(()=>{let{site_description:mt}=it;return(!mt||mt==="None")&&(mt=""),mt}))},[it,Et,xt]);const jt=Ot.getOptional("app.title")||"Backstage",Bt=[Tt,gt,jt].filter(Boolean).join(" | "),{locationMetadata:Ut,spec:Ct}=pt||{},F=Ct==null?void 0:Ct.lifecycle,V=pt?(0,y.t)(pt,S.vv):[],lt=(0,W.S)(Z.rQ)(),dt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(C,{label:(0,K.capitalize)((pt==null?void 0:pt.kind)||"entity"),value:(0,o.jsx)(O.z,{color:"inherit",entityRef:ct,title:pt==null?void 0:pt.metadata.title,defaultKind:"Component"})}),V.length>0&&(0,o.jsx)(C,{label:"Owner",value:(0,o.jsx)(h.i,{color:"inherit",entityRefs:V,defaultKind:"group"})}),F?(0,o.jsx)(C,{label:"Lifecycle",value:String(F)}):null,Ut&&Ut.type!=="dir"&&Ut.type!=="file"?(0,o.jsx)(C,{label:"",value:(0,o.jsxs)(w.A,{container:!0,direction:"column",alignItems:"center",children:[(0,o.jsx)(w.A,{style:{padding:0},item:!0,children:(0,o.jsx)(m.A,{style:{marginTop:"-25px"}})}),(0,o.jsx)(w.A,{style:{padding:0},item:!0,children:"Source"})]}),url:Ut.target}):null]});return!St&&pt===void 0||!bt&&it===void 0?null:(0,o.jsxs)(z.Y,{type:"Documentation",typeLink:lt,title:Tt||_,subtitle:gt===""?void 0:gt||_,children:[(0,o.jsx)(d.A,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:Bt})}),dt,ht,ut.renderComponentsByLocation(A.e.Header)]})}},82779:(J,T,t)=>{"use strict";t.d(T,{Oc:()=>d,Ri:()=>w,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"]}),w=(0,o.H)({id:"techdocs:catalog-reader-view"})},27698:(J,T,t)=>{"use strict";t.r(T),t.d(T,{TechDocsSearchResultListItem:()=>y});var o=t(31085),i=t(14041),d=t(46423),w=t(5951),v=t(58837),m=t(72501),g=t(72072),c=t(70734);const A=(0,v.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),y=O=>{const{result:h,highlight:S,lineClamp:f=5,asListItem:j=!0,asLink:P=!0,title:x,icon:U}=O,L=A(),C=({children:Y})=>P?(0,o.jsx)(g.N_,{noTrack:!0,to:h.location,children:Y}):(0,o.jsx)(o.Fragment,{children:Y}),z=()=>{const Y=S!=null&&S.fields.title?(0,o.jsx)(c.e,{text:S.fields.title,preTag:S.preTag,postTag:S.postTag}):h.title,W=S!=null&&S.fields.entityTitle?(0,o.jsx)(c.e,{text:S.fields.entityTitle,preTag:S.preTag,postTag:S.postTag}):h.entityTitle,K=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)(w.A,{className:L.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(C,{children:x||(0,o.jsxs)(o.Fragment,{children:[Y," | ",W!=null?W:K," 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:Y})=>j?(0,o.jsxs)(o.Fragment,{children:[U&&(0,o.jsx)(d.A,{children:typeof U=="function"?U(h):U}),(0,o.jsx)("div",{className:L.flexContainer,children:Y})]}):(0,o.jsx)(o.Fragment,{children:Y});return(0,o.jsx)(H,{children:(0,o.jsx)(z,{})})}},86973:()=>{}},J=>{var T=o=>J(J.s=o);J.O(0,[1751,1888,5067,1678,235,6587,2754,9669,1975,5042,7400,4121],()=>T(85318));var t=J.O()}]);})();
507
+ Feedback:`),Wt=(tt==null?void 0:tt.type)==="github"?(0,jo.F)(G.href,"blob"):G.href,Zt=Fo()(Wt),kt=`/${Zt.organization}/${Zt.name}`,It=k.cloneNode();switch(tt==null?void 0:tt.type){case"gitlab":It.href=`${G.origin}${kt}/issues/new?issue[title]=${At}&issue[description]=${Mt}`;break;case"github":It.href=`${G.origin}${kt}/issues/new?title=${At}&body=${Mt}`;break;default:return R}return jn(i.createElement(Uo.A),It),It.style.paddingLeft="5px",It.title="Leave feedback for this page",It.id="git-feedback-link",k==null||k.insertAdjacentElement("beforebegin",It),R},to=()=>p=>(setTimeout(()=>{const R=p==null?void 0:p.querySelectorAll("li.md-nav__item--active");R.length!==0&&(R.forEach(k=>{const G=k==null?void 0:k.querySelector("input");G!=null&&G.checked||G==null||G.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),[,k]=(0,Ko.A)(),G=(0,i.useCallback)(()=>{k(p),$(!0)},[p,k]),tt=(0,i.useCallback)(()=>{$(!1)},[$]);return(0,o.jsx)(Un,{title:"Copied to clipboard",placement:"left",open:R,onClose:tt,leaveDelay:1e3,children:(0,o.jsx)(jt.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:G,children:(0,o.jsx)($n,{})})})},oo=p=>R=>{const $=R.querySelectorAll("pre > code");for(const G of $){var k;const tt=G.textContent||"",rt=document.createElement("div");G==null||(k=G.parentElement)===null||k===void 0||k.prepend(rt),jn((0,o.jsx)(Wo.A,{theme:p,children:(0,o.jsx)(zo,{text:tt})}),rt)}return R},so=({baseUrl:p,onClick:R})=>$=>(Array.from($.getElementsByTagName("a")).forEach(k=>{k.addEventListener("click",G=>{const rt=k.getAttribute("href");rt&&rt.startsWith(p)&&!k.hasAttribute("download")&&(G.preventDefault(),R(G,rt))})}),$),ro=({onLoading:p,onLoaded:R})=>$=>(p(),$.addEventListener(y,function k(){R(),$.removeEventListener(y,k)}),$);function Ho(p,R){const $=new URL(R),k=`${$.origin}${$.pathname.replace(/\/$/,"")}`,G=p.replace(k,"").replace(/^\/+/,""),tt=new URL(`http://localhost/${G}`);return`${tt.pathname}${tt.search}${tt.hash}`}function _o(){const p=(0,i.useRef)((0,Ht.Zp)()),$=(0,Z.gf)(q.U).getOptionalString("app.baseUrl");return(0,i.useCallback)(G=>{let tt=G;if($)try{tt=Ho(G,$)}catch{}p.current(tt)},[$])}const Vo="screen and (max-width: 76.1875em)",Go=p=>{const R=_o(),$=(0,un.A)(),k=(0,He.A)(Vo),G=Pt(),tt=gn(),rt=(0,_.s)(),At=(0,Z.gf)(Ze.s),Mt=(0,Z.gf)(Tn.Y),{state:Wt,path:Zt,content:kt}=me(),[It,ee]=(0,i.useState)(null),xe=h(It),Jt=(0,i.useCallback)(()=>{if(!It)return;It.querySelectorAll(".md-sidebar").forEach(Gt=>{if(k)Gt.style.top="0px";else{var Xt;const Ue=(Xt=document)===null||Xt===void 0?void 0:Xt.querySelector(".techdocs-reader-page");var Ce;const ce=(Ce=Ue==null?void 0:Ue.getBoundingClientRect().top)!==null&&Ce!==void 0?Ce:0;var Pe;let Wn=(Pe=It.getBoundingClientRect().top)!==null&&Pe!==void 0?Pe:0;const kn=It.querySelector(".md-container > .md-tabs");var Qe;const Zo=(Qe=kn==null?void 0:kn.getBoundingClientRect().height)!==null&&Qe!==void 0?Qe:0;Wn<ce&&(Wn=ce);const vn=Math.max(Wn,0)+Zo;Gt.style.top=`${vn}px`;const Kn=It.querySelector(".md-container > .md-footer");var pe;const yn=(pe=Kn==null?void 0:Kn.getBoundingClientRect().top)!==null&&pe!==void 0?pe:window.innerHeight;Gt.style.height=`${yn-vn}px`}Gt.style.setProperty("opacity","1")})},[It,k]);(0,i.useEffect)(()=>(window.addEventListener("resize",Jt),window.addEventListener("scroll",Jt,!0),()=>{window.removeEventListener("resize",Jt),window.removeEventListener("scroll",Jt,!0)}),[It,Jt]);const ne=(0,i.useCallback)(()=>{if(!It)return;const Dt=It.querySelector(".md-footer");Dt&&(Dt.style.width=`${It.getBoundingClientRect().width}px`)},[It]);(0,i.useEffect)(()=>(window.addEventListener("resize",ne),()=>{window.removeEventListener("resize",ne)}),[It,ne]),(0,i.useEffect)(()=>{xe||(ne(),Jt())},[Wt,xe,ne,Jt]);const oe=(0,i.useCallback)((Dt,Gt)=>_e(Dt,[G,Ln({techdocsStorageApi:At,entityId:p,path:Gt}),Mn(),qn(),Mo(),Bo(),No(Mt),tt]),[p,Mt,At,G,tt]),de=(0,i.useCallback)(async Dt=>_e(Dt,[to(),oo($),so({baseUrl:window.location.origin,onClick:(Gt,Xt)=>{var Ce;const Pe=Gt.ctrlKey||Gt.metaKey,Qe=new URL(Xt),pe=((Ce=Gt.target)===null||Ce===void 0?void 0:Ce.innerText)||Xt,Ue=Xt.replace(window.location.origin,"");if(rt.captureEvent("click",pe,{attributes:{to:Ue}}),Qe.hash)if(Pe)window.open(Xt,"_blank");else{var ce;R(Xt),Dt==null||(ce=Dt.querySelector(`[id="${Qe.hash.slice(1)}"]`))===null||ce===void 0||ce.scrollIntoView()}else Pe?window.open(Xt,"_blank"):R(Xt)}}),ro({onLoading:()=>{},onLoaded:()=>{var Gt;(Gt=Dt.querySelector(".md-nav__title"))===null||Gt===void 0||Gt.removeAttribute("for")}}),ro({onLoading:()=>{Array.from(Dt.querySelectorAll(".md-sidebar")).forEach(Xt=>{Xt.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[$,R,rt]);return(0,i.useEffect)(()=>{if(!kt)return()=>{};let Dt=!0;return oe(kt,Zt).then(async Gt=>{if(!(Gt!=null&&Gt.innerHTML)||!Dt)return;window.scroll({top:0});const Xt=await de(Gt);ee(Xt)}),()=>{Dt=!1}},[kt,Zt,oe,de]),It};var Fn=t(41883),Yo=t(72020),Nn=t(99730);const Qo=()=>{const p=(0,Yo.YR)(),{shadowRoot:R}=(0,v.V)(),$=R==null?void 0:R.querySelector('[data-md-component="content"]'),k=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let G=k==null?void 0:k.querySelector('[data-techdocs-addons-location="primary sidebar"]');G||(G=document.createElement("div"),G.setAttribute("data-techdocs-addons-location","primary sidebar"),k==null||k.prepend(G));const tt=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let rt=tt==null?void 0:tt.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return rt||(rt=document.createElement("div"),rt.setAttribute("data-techdocs-addons-location","secondary sidebar"),tt==null||tt.prepend(rt)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Fn.A,{container:G,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,w.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),ao=Je(p=>{var R;const{withSearch:$=!0,onReady:k}=p,G=io(),{entityMetadata:{value:tt,loading:rt},entityRef:At,setShadowRoot:Mt}=(0,v.V)(),Wt=Go(At),Zt=window.location.pathname,kt=window.location.hash,It=h(Wt),[ee]=P([`[id="${kt.slice(1)}"]`]);(0,i.useEffect)(()=>{if(!It)if(kt)ee&&ee.scrollIntoView();else{var Jt,ne;(ne=document)===null||ne===void 0||(Jt=ne.querySelector("header"))===null||Jt===void 0||Jt.scrollIntoView()}},[Zt,kt,ee,It]);const xe=(0,i.useCallback)(Jt=>{Mt(Jt),k instanceof Function&&k()},[Mt,k]);return rt===!1&&!tt?(0,o.jsx)(L.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Wt?(0,o.jsx)(C.U,{children:(0,o.jsxs)(d.A,{container:!0,children:[(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(Fe,{})}),$&&(0,o.jsx)(d.A,{className:G.search,xs:"auto",item:!0,children:(0,o.jsx)(Re,{entityId:At,entityTitle:tt==null||(R=tt.metadata)===null||R===void 0?void 0:R.title})}),(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(S,{element:Wt,onAppend:xe,children:(0,o.jsx)(Qo,{})})})]})}):(0,o.jsx)(C.U,{children:(0,o.jsx)(d.A,{container:!0,children:(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(Fe,{})})})})}),Rt=null},45061:(J,T,t)=>{"use strict";t.d(T,{T:()=>ot});var o=t(31085),i=t(14041),d=t(93285),w=t(42899),v=t(4387),m=t(13660),g=t(72020),c=t(86892),A=t(99730),y=t(67871),O=t(8859),h=t(34428),S=t(51372),f=t(58837),j=t(268),P=t(72501),x=t(72072);const U=(0,f.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,j.X4)(q.page.fontColor,.8),fontSize:q.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),L=({value:q,className:ht,typographyRootComponent:ut})=>(0,o.jsx)(P.A,{component:ut!=null?ut:typeof q=="string"?"p":"span",className:ht,children:q});function C(q){const{label:ht,value:ut,url:Ot,contentTypograpyRootComponent:Tt}=q,Et=U(),gt=(0,o.jsx)(L,{className:Et.value,value:ut||"<Unknown>",typographyRootComponent:Tt});return(0,o.jsx)(w.A,{item:!0,children:(0,o.jsxs)(P.A,{component:"span",className:Et.root,children:[(0,o.jsx)(P.A,{className:Et.label,children:ht}),Ot?(0,o.jsx)(x.N_,{to:Ot,children:gt}):gt]})})}var z=t(69814),H=t(72427),Y=t(65461),W=t(9222),K=t(45250),Z=t(82779);const _=(0,o.jsx)(v.A,{animation:"wave",variant:"text",height:40}),ot=q=>{const{children:ht}=q,ut=(0,g.YR)(),Ot=(0,H.gf)(Y.U),{title:Tt,setTitle:Et,subtitle:gt,setSubtitle:xt,entityRef:ct,metadata:{value:it,loading:bt},entityMetadata:{value:pt,loading:St}}=(0,c.V)();(0,i.useEffect)(()=>{it&&(Et(it.site_name),xt(()=>{let{site_description:mt}=it;return(!mt||mt==="None")&&(mt=""),mt}))},[it,Et,xt]);const jt=Ot.getOptional("app.title")||"Backstage",Bt=[Tt,gt,jt].filter(Boolean).join(" | "),{locationMetadata:Ut,spec:Ct}=pt||{},F=Ct==null?void 0:Ct.lifecycle,V=pt?(0,y.t)(pt,S.vv):[],lt=(0,W.S)(Z.rQ)(),dt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(C,{label:(0,K.capitalize)((pt==null?void 0:pt.kind)||"entity"),value:(0,o.jsx)(O.z,{color:"inherit",entityRef:ct,title:pt==null?void 0:pt.metadata.title,defaultKind:"Component"})}),V.length>0&&(0,o.jsx)(C,{label:"Owner",value:(0,o.jsx)(h.i,{color:"inherit",entityRefs:V,defaultKind:"group"})}),F?(0,o.jsx)(C,{label:"Lifecycle",value:String(F)}):null,Ut&&Ut.type!=="dir"&&Ut.type!=="file"?(0,o.jsx)(C,{label:"",value:(0,o.jsxs)(w.A,{container:!0,direction:"column",alignItems:"center",children:[(0,o.jsx)(w.A,{style:{padding:0},item:!0,children:(0,o.jsx)(m.A,{style:{marginTop:"-25px"}})}),(0,o.jsx)(w.A,{style:{padding:0},item:!0,children:"Source"})]}),url:Ut.target}):null]});return!St&&pt===void 0||!bt&&it===void 0?null:(0,o.jsxs)(z.Y,{type:"Documentation",typeLink:lt,title:Tt||_,subtitle:gt===""?void 0:gt||_,children:[(0,o.jsx)(d.A,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:Bt})}),dt,ht,ut.renderComponentsByLocation(A.e.Header)]})}},82779:(J,T,t)=>{"use strict";t.d(T,{Oc:()=>d,Ri:()=>w,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"]}),w=(0,o.H)({id:"techdocs:catalog-reader-view"})},27698:(J,T,t)=>{"use strict";t.r(T),t.d(T,{TechDocsSearchResultListItem:()=>y});var o=t(31085),i=t(14041),d=t(46423),w=t(5951),v=t(58837),m=t(72501),g=t(72072),c=t(70734);const A=(0,v.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),y=O=>{const{result:h,highlight:S,lineClamp:f=5,asListItem:j=!0,asLink:P=!0,title:x,icon:U}=O,L=A(),C=({children:Y})=>P?(0,o.jsx)(g.N_,{noTrack:!0,to:h.location,children:Y}):(0,o.jsx)(o.Fragment,{children:Y}),z=()=>{const Y=S!=null&&S.fields.title?(0,o.jsx)(c.e,{text:S.fields.title,preTag:S.preTag,postTag:S.postTag}):h.title,W=S!=null&&S.fields.entityTitle?(0,o.jsx)(c.e,{text:S.fields.entityTitle,preTag:S.preTag,postTag:S.postTag}):h.entityTitle,K=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)(w.A,{className:L.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(C,{children:x||(0,o.jsxs)(o.Fragment,{children:[Y," | ",W!=null?W:K," 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:Y})=>j?(0,o.jsxs)(o.Fragment,{children:[U&&(0,o.jsx)(d.A,{children:typeof U=="function"?U(h):U}),(0,o.jsx)("div",{className:L.flexContainer,children:Y})]}):(0,o.jsx)(o.Fragment,{children:Y});return(0,o.jsx)(H,{children:(0,o.jsx)(z,{})})}},86973:()=>{}},J=>{var T=o=>J(J.s=o);J.O(0,[1751,1888,5067,1678,235,6587,2754,9669,1975,5042,7400,4121],()=>T(85318));var t=J.O()}]);})();
508
508
 
509
- //# sourceMappingURL=main.48de2197.js.map
509
+ //# sourceMappingURL=main.13d7f252.js.map