@techdocs/cli 0.0.0-nightly-20240626021705 → 0.0.0-nightly-20240628021735
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -3
- package/dist/embedded-app/.config-schema.json +41 -41
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/static/{main.fc9ef40b.js → main.7315d124.js} +3 -2
- package/dist/embedded-app/static/main.7315d124.js.map +1 -0
- package/dist/embedded-app/static/module-mui.6a6952b4.js +3 -0
- package/dist/embedded-app/static/module-mui.6a6952b4.js.map +1 -0
- package/dist/embedded-app/static/{runtime.fc9ef40b.js → runtime.7315d124.js} +1 -1
- package/dist/embedded-app/static/{runtime.fc9ef40b.js.map → runtime.7315d124.js.map} +1 -1
- package/dist/embedded-app/static/{vendor.fc9ef40b.js → vendor.7315d124.js} +1 -1
- package/dist/embedded-app/static/{vendor.fc9ef40b.js.map → vendor.7315d124.js.map} +1 -1
- package/package.json +4 -4
- package/dist/embedded-app/static/main.fc9ef40b.js.map +0 -1
- package/dist/embedded-app/static/module-mui.bb6867cb.js +0 -3
- package/dist/embedded-app/static/module-mui.bb6867cb.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# @techdocs/cli
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20240628021735
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- c964a3d: Import discovery from backend-defaults instead of backend-common
|
|
8
8
|
- Updated dependencies
|
|
9
|
-
- @backstage/backend-defaults@0.0.0-nightly-
|
|
10
|
-
- @backstage/plugin-techdocs-node@0.0.0-nightly-
|
|
9
|
+
- @backstage/backend-defaults@0.0.0-nightly-20240628021735
|
|
10
|
+
- @backstage/plugin-techdocs-node@0.0.0-nightly-20240628021735
|
|
11
11
|
- @backstage/catalog-model@1.5.0
|
|
12
12
|
- @backstage/cli-common@0.1.14
|
|
13
13
|
- @backstage/config@1.2.0
|
|
@@ -423,36 +423,6 @@
|
|
|
423
423
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
424
424
|
}
|
|
425
425
|
},
|
|
426
|
-
{
|
|
427
|
-
"path": "../../plugins/catalog/config.d.ts",
|
|
428
|
-
"value": {
|
|
429
|
-
"type": "object",
|
|
430
|
-
"properties": {
|
|
431
|
-
"catalog": {
|
|
432
|
-
"type": "object",
|
|
433
|
-
"properties": {
|
|
434
|
-
"experimentalPagination": {
|
|
435
|
-
"deepVisibility": "frontend",
|
|
436
|
-
"anyOf": [
|
|
437
|
-
{
|
|
438
|
-
"type": "object",
|
|
439
|
-
"properties": {
|
|
440
|
-
"limit": {
|
|
441
|
-
"type": "number"
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
"type": "boolean"
|
|
447
|
-
}
|
|
448
|
-
]
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
},
|
|
453
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
454
|
-
}
|
|
455
|
-
},
|
|
456
426
|
{
|
|
457
427
|
"path": "../integration/config.d.ts",
|
|
458
428
|
"value": {
|
|
@@ -898,6 +868,36 @@
|
|
|
898
868
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
899
869
|
}
|
|
900
870
|
},
|
|
871
|
+
{
|
|
872
|
+
"path": "../../plugins/catalog/config.d.ts",
|
|
873
|
+
"value": {
|
|
874
|
+
"type": "object",
|
|
875
|
+
"properties": {
|
|
876
|
+
"catalog": {
|
|
877
|
+
"type": "object",
|
|
878
|
+
"properties": {
|
|
879
|
+
"experimentalPagination": {
|
|
880
|
+
"deepVisibility": "frontend",
|
|
881
|
+
"anyOf": [
|
|
882
|
+
{
|
|
883
|
+
"type": "object",
|
|
884
|
+
"properties": {
|
|
885
|
+
"limit": {
|
|
886
|
+
"type": "number"
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"type": "boolean"
|
|
892
|
+
}
|
|
893
|
+
]
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
901
|
{
|
|
902
902
|
"path": "../frontend-app-api/config.d.ts",
|
|
903
903
|
"value": {
|
|
@@ -1686,7 +1686,7 @@
|
|
|
1686
1686
|
}
|
|
1687
1687
|
},
|
|
1688
1688
|
{
|
|
1689
|
-
"path": "../backend-
|
|
1689
|
+
"path": "../backend-defaults/config.d.ts",
|
|
1690
1690
|
"value": {
|
|
1691
1691
|
"type": "object",
|
|
1692
1692
|
"properties": {
|
|
@@ -1694,6 +1694,7 @@
|
|
|
1694
1694
|
"type": "object",
|
|
1695
1695
|
"properties": {
|
|
1696
1696
|
"auth": {
|
|
1697
|
+
"description": "Options used by the default auth, httpAuth and userInfo services.",
|
|
1697
1698
|
"type": "object",
|
|
1698
1699
|
"properties": {
|
|
1699
1700
|
"dangerouslyDisableDefaultAuthPolicy": {
|
|
@@ -2019,17 +2020,17 @@
|
|
|
2019
2020
|
}
|
|
2020
2021
|
},
|
|
2021
2022
|
"discovery": {
|
|
2022
|
-
"description": "
|
|
2023
|
+
"description": "Options used by the default discovery service.",
|
|
2023
2024
|
"type": "object",
|
|
2024
2025
|
"properties": {
|
|
2025
2026
|
"endpoints": {
|
|
2026
|
-
"description": "
|
|
2027
|
+
"description": "A list of target baseUrls and the associated plugins.",
|
|
2027
2028
|
"type": "array",
|
|
2028
2029
|
"items": {
|
|
2029
2030
|
"type": "object",
|
|
2030
2031
|
"properties": {
|
|
2031
2032
|
"target": {
|
|
2032
|
-
"description": "The target
|
|
2033
|
+
"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.",
|
|
2033
2034
|
"anyOf": [
|
|
2034
2035
|
{
|
|
2035
2036
|
"type": "object",
|
|
@@ -2052,7 +2053,7 @@
|
|
|
2052
2053
|
]
|
|
2053
2054
|
},
|
|
2054
2055
|
"plugins": {
|
|
2055
|
-
"description": "Array of plugins which use the target
|
|
2056
|
+
"description": "Array of plugins which use the target base URL.",
|
|
2056
2057
|
"type": "array",
|
|
2057
2058
|
"items": {
|
|
2058
2059
|
"type": "string"
|
|
@@ -2075,7 +2076,7 @@
|
|
|
2075
2076
|
}
|
|
2076
2077
|
},
|
|
2077
2078
|
{
|
|
2078
|
-
"path": "../backend-
|
|
2079
|
+
"path": "../backend-app-api/config.d.ts",
|
|
2079
2080
|
"value": {
|
|
2080
2081
|
"type": "object",
|
|
2081
2082
|
"properties": {
|
|
@@ -2083,7 +2084,6 @@
|
|
|
2083
2084
|
"type": "object",
|
|
2084
2085
|
"properties": {
|
|
2085
2086
|
"auth": {
|
|
2086
|
-
"description": "Options used by the default auth, httpAuth and userInfo services.",
|
|
2087
2087
|
"type": "object",
|
|
2088
2088
|
"properties": {
|
|
2089
2089
|
"dangerouslyDisableDefaultAuthPolicy": {
|
|
@@ -2409,17 +2409,17 @@
|
|
|
2409
2409
|
}
|
|
2410
2410
|
},
|
|
2411
2411
|
"discovery": {
|
|
2412
|
-
"description": "
|
|
2412
|
+
"description": "Discovery options.",
|
|
2413
2413
|
"type": "object",
|
|
2414
2414
|
"properties": {
|
|
2415
2415
|
"endpoints": {
|
|
2416
|
-
"description": "
|
|
2416
|
+
"description": "Endpoints\n\nA list of target baseUrls and the associated plugins.",
|
|
2417
2417
|
"type": "array",
|
|
2418
2418
|
"items": {
|
|
2419
2419
|
"type": "object",
|
|
2420
2420
|
"properties": {
|
|
2421
2421
|
"target": {
|
|
2422
|
-
"description": "The target
|
|
2422
|
+
"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.",
|
|
2423
2423
|
"anyOf": [
|
|
2424
2424
|
{
|
|
2425
2425
|
"type": "object",
|
|
@@ -2442,7 +2442,7 @@
|
|
|
2442
2442
|
]
|
|
2443
2443
|
},
|
|
2444
2444
|
"plugins": {
|
|
2445
|
-
"description": "Array of plugins which use the target
|
|
2445
|
+
"description": "Array of plugins which use the target baseUrl.",
|
|
2446
2446
|
"type": "array",
|
|
2447
2447
|
"items": {
|
|
2448
2448
|
"type": "string"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.7315d124.js"></script><script defer="defer" src="/static/module-material-ui.1eefc717.js"></script><script defer="defer" src="/static/module-lodash.1a2b8e11.js"></script><script defer="defer" src="/static/module-date-fns.196adaa7.js"></script><script defer="defer" src="/static/module-mui.6a6952b4.js"></script><script defer="defer" src="/static/module-material-table.892da5bc.js"></script><script defer="defer" src="/static/module-react-dom.3e65b8bc.js"></script><script defer="defer" src="/static/module-react-router.07ec2a81.js"></script><script defer="defer" src="/static/module-react-router-dom.ba9d01bf.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.8a51ed97.js"></script><script defer="defer" src="/static/module-zod.52dba18e.js"></script><script defer="defer" src="/static/module-i18next.40b7c233.js"></script><script defer="defer" src="/static/vendor.7315d124.js"></script><script defer="defer" src="/static/main.7315d124.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
|
@@ -190,6 +190,7 @@ body {
|
|
|
190
190
|
}
|
|
191
191
|
.md-sidebar .md-sidebar__scrollwrap {
|
|
192
192
|
width: calc(12.1rem);
|
|
193
|
+
overflow-y: hidden;
|
|
193
194
|
}
|
|
194
195
|
.md-sidebar--secondary {
|
|
195
196
|
right: ${p.spacing(3)}px;
|
|
@@ -346,7 +347,7 @@ body {
|
|
|
346
347
|
#toggle-sidebar {
|
|
347
348
|
display: none;
|
|
348
349
|
}
|
|
349
|
-
|
|
350
|
+
|
|
350
351
|
.md-content {
|
|
351
352
|
margin: 0;
|
|
352
353
|
width: 100%;
|
|
@@ -505,4 +506,4 @@ ${N.href}
|
|
|
505
506
|
|
|
506
507
|
Feedback:`),Wt=(q==null?void 0:q.type)==="github"?(0,Bo.F)(X.href,"blob"):X.href,Vt=Fo()(Wt),Kt=`/${Vt.organization}/${Vt.name}`,Mt=N.cloneNode();switch(q==null?void 0:q.type){case"gitlab":Mt.href=`${X.origin}${Kt}/issues/new?issue[title]=${Ct}&issue[description]=${Ut}`;break;case"github":Mt.href=`${X.origin}${Kt}/issues/new?title=${Ct}&body=${Ut}`;break;default:return R}return Bn(i.createElement(Uo.A),Mt),Mt.style.paddingLeft="5px",Mt.title="Leave feedback for this page",Mt.id="git-feedback-link",N==null||N.insertAdjacentElement("beforebegin",Mt),R},to=()=>p=>(setTimeout(()=>{const R=p==null?void 0:p.querySelectorAll("li.md-nav__item--active");R.length!==0&&(R.forEach(N=>{const X=N==null?void 0:N.querySelector("input");X!=null&&X.checked||X==null||X.click()}),R[R.length-1].scrollIntoView())},200),p);var Wo=t(50868),ko=t(10437),eo=t(71677),no=t(87051),Ko=t(36338);const Un=(0,no.A)(p=>({tooltip:{fontSize:"inherit",color:p.palette.text.primary,margin:0,padding:p.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(eo.Ay),$n=()=>(0,o.jsx)(ko.A,{children:(0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})}),zo=({text:p})=>{const[R,$]=(0,i.useState)(!1),[,N]=(0,Ko.A)(),X=(0,i.useCallback)(()=>{N(p),$(!0)},[p,N]),q=(0,i.useCallback)(()=>{$(!1)},[$]);return(0,o.jsx)(Un,{title:"Copied to clipboard",placement:"left",open:R,onClose:q,leaveDelay:1e3,children:(0,o.jsx)(jt.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:X,children:(0,o.jsx)($n,{})})})},oo=p=>R=>{const $=R.querySelectorAll("pre > code");for(const X of $){var N;const q=X.textContent||"",rt=document.createElement("div");X==null||(N=X.parentElement)===null||N===void 0||N.prepend(rt),Bn((0,o.jsx)(Wo.A,{theme:p,children:(0,o.jsx)(zo,{text:q})}),rt)}return R},so=({baseUrl:p,onClick:R})=>$=>(Array.from($.getElementsByTagName("a")).forEach(N=>{N.addEventListener("click",X=>{const rt=N.getAttribute("href");rt&&rt.startsWith(p)&&!N.hasAttribute("download")&&(X.preventDefault(),R(X,rt))})}),$),ro=({onLoading:p,onLoaded:R})=>$=>(p(),$.addEventListener(E,function N(){R(),$.removeEventListener(E,N)}),$);function Ho(p,R){const $=new URL(R),N=`${$.origin}${$.pathname.replace(/\/$/,"")}`,X=p.replace(N,"").replace(/^\/+/,""),q=new URL(`http://localhost/${X}`);return`${q.pathname}${q.search}${q.hash}`}function Vo(){const p=(0,Nt.Zp)(),$=(0,J.gf)(et.U).getOptionalString("app.baseUrl");return(0,i.useCallback)(X=>{let q=X;if($)try{q=Ho(X,$)}catch{}p(q)},[p,$])}const _o="screen and (max-width: 76.1875em)",Go=p=>{const R=Vo(),$=(0,un.A)(),N=(0,ze.A)(_o),X=Rt(),q=gn(),rt=(0,V.s)(),Ct=(0,J.gf)(Ye.s),Ut=(0,J.gf)(Tn.Y),{state:Wt,path:Vt,content:Kt}=ye(),[Mt,ee]=(0,i.useState)(null),pe=h(Mt),ne=(0,i.useCallback)(()=>{if(!Mt)return;Mt.querySelectorAll(".md-sidebar").forEach(_t=>{if(N)_t.style.top="0px";else{var Zt;const Le=(Zt=document)===null||Zt===void 0?void 0:Zt.querySelector(".techdocs-reader-page");var Ae;const le=(Ae=Le==null?void 0:Le.getBoundingClientRect().top)!==null&&Ae!==void 0?Ae:0;var Oe;let Wn=(Oe=Mt.getBoundingClientRect().top)!==null&&Oe!==void 0?Oe:0;const kn=Mt.querySelector(".md-container > .md-tabs");var Ge;const Zo=(Ge=kn==null?void 0:kn.getBoundingClientRect().height)!==null&&Ge!==void 0?Ge:0;Wn<le&&(Wn=le);const vn=Math.max(Wn,0)+Zo;_t.style.top=`${vn}px`;const Kn=Mt.querySelector(".md-container > .md-footer");var fe;const yn=(fe=Kn==null?void 0:Kn.getBoundingClientRect().top)!==null&&fe!==void 0?fe:window.innerHeight;_t.style.height=`${yn-vn}px`}_t.style.setProperty("opacity","1")})},[Mt,N]);(0,i.useEffect)(()=>(window.addEventListener("resize",ne),window.addEventListener("scroll",ne,!0),()=>{window.removeEventListener("resize",ne),window.removeEventListener("scroll",ne,!0)}),[Mt,ne]);const qt=(0,i.useCallback)(()=>{if(!Mt)return;const Lt=Mt.querySelector(".md-footer");Lt&&(Lt.style.width=`${Mt.getBoundingClientRect().width}px`)},[Mt]);(0,i.useEffect)(()=>(window.addEventListener("resize",qt),()=>{window.removeEventListener("resize",qt)}),[Mt,qt]),(0,i.useEffect)(()=>{pe||(qt(),ne())},[Wt,pe,qt,ne]);const Qt=(0,i.useCallback)((Lt,_t)=>He(Lt,[X,Mn({techdocsStorageApi:Ct,entityId:p,path:_t}),Ln(),qn(),Lo(),jo(),No(Ut),q]),[p,Ut,Ct,X,q]),ce=(0,i.useCallback)(async Lt=>He(Lt,[to(),oo($),so({baseUrl:window.location.origin,onClick:(_t,Zt)=>{var Ae;const Oe=_t.ctrlKey||_t.metaKey,Ge=new URL(Zt),fe=((Ae=_t.target)===null||Ae===void 0?void 0:Ae.innerText)||Zt,Le=Zt.replace(window.location.origin,"");if(rt.captureEvent("click",fe,{attributes:{to:Le}}),Ge.hash)if(Oe)window.open(Zt,"_blank");else{var le;R(Zt),Lt==null||(le=Lt.querySelector(`[id="${Ge.hash.slice(1)}"]`))===null||le===void 0||le.scrollIntoView()}else Oe?window.open(Zt,"_blank"):R(Zt)}}),ro({onLoading:()=>{},onLoaded:()=>{var _t;(_t=Lt.querySelector(".md-nav__title"))===null||_t===void 0||_t.removeAttribute("for")}}),ro({onLoading:()=>{Array.from(Lt.querySelectorAll(".md-sidebar")).forEach(Zt=>{Zt.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[$,R,rt]);return(0,i.useEffect)(()=>{if(!Kt)return()=>{};let Lt=!0;return Qt(Kt,Vt).then(async _t=>{if(!(_t!=null&&_t.innerHTML)||!Lt)return;window.scroll({top:0});const Zt=await ce(_t);ee(Zt)}),()=>{Lt=!1}},[Kt,Vt,Qt,ce]),Mt};var Fn=t(41883),Yo=t(72020),Nn=t(99730);const Qo=()=>{const p=(0,Yo.YR)(),{shadowRoot:R}=(0,y.V)(),$=R==null?void 0:R.querySelector('[data-md-component="content"]'),N=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let X=N==null?void 0:N.querySelector('[data-techdocs-addons-location="primary sidebar"]');X||(X=document.createElement("div"),X.setAttribute("data-techdocs-addons-location","primary sidebar"),N==null||N.prepend(X));const q=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let rt=q==null?void 0:q.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return rt||(rt=document.createElement("div"),rt.setAttribute("data-techdocs-addons-location","secondary sidebar"),q==null||q.prepend(rt)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Fn.A,{container:X,children:p.renderComponentsByLocation(Nn.e.PrimarySidebar)}),(0,o.jsx)(Fn.A,{container:$,children:p.renderComponentsByLocation(Nn.e.Content)}),(0,o.jsx)(Fn.A,{container:rt,children:p.renderComponentsByLocation(Nn.e.SecondarySidebar)})]})},io=(0,O.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),ao=Qe(p=>{var R;const{withSearch:$=!0,onReady:N}=p,X=io(),{entityMetadata:{value:q,loading:rt},entityRef:Ct,setShadowRoot:Ut,incShadowRootVersion:Wt}=(0,y.V)(),Vt=Go(Ct),Kt=window.location.pathname,Mt=window.location.hash,ee=h(Vt),[pe]=P([`[id="${Mt.slice(1)}"]`]);(0,i.useEffect)(()=>{if(!ee)if(Mt)pe&&pe.scrollIntoView();else{var qt,Qt;(Qt=document)===null||Qt===void 0||(qt=Qt.querySelector("header"))===null||qt===void 0||qt.scrollIntoView()}},[Kt,Mt,pe,ee]);const ne=(0,i.useCallback)(qt=>{Ut(qt),Wt(),N instanceof Function&&N()},[Ut,Wt,N]);return rt===!1&&!q?(0,o.jsx)(M.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Vt?(0,o.jsx)(v.U,{children:(0,o.jsxs)(d.A,{container:!0,children:[(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(Ue,{})}),$&&(0,o.jsx)(d.A,{className:X.search,xs:"auto",item:!0,children:(0,o.jsx)(ie,{entityId:Ct,entityTitle:q==null||(R=q.metadata)===null||R===void 0?void 0:R.title})}),(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(S,{element:Vt,onAppend:ne,children:(0,o.jsx)(Qo,{})})})]})}):(0,o.jsx)(v.U,{children:(0,o.jsx)(d.A,{container:!0,children:(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(Ue,{})})})})}),Dt=null},45061:(Q,T,t)=>{"use strict";t.d(T,{T:()=>tt});var o=t(31085),i=t(14041),d=t(93285),O=t(42899),y=t(4387),m=t(13660),g=t(72020),c=t(86892),C=t(99730),E=t(67871),w=t(8859),h=t(34428),S=t(51372),f=t(58837),B=t(268),P=t(72501),A=t(72072);const U=(0,f.A)(et=>({root:{textAlign:"left"},label:{color:et.page.fontColor,fontWeight:et.typography.fontWeightBold,letterSpacing:0,fontSize:et.typography.fontSize,marginBottom:et.spacing(1)/2,lineHeight:1},value:{color:(0,B.X4)(et.page.fontColor,.8),fontSize:et.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),M=({value:et,className:dt,typographyRootComponent:ht})=>(0,o.jsx)(P.A,{component:ht!=null?ht:typeof et=="string"?"p":"span",className:dt,children:et});function v(et){const{label:dt,value:ht,url:Ot,contentTypograpyRootComponent:ut}=et,lt=U(),ct=(0,o.jsx)(M,{className:lt.value,value:ht||"<Unknown>",typographyRootComponent:ut});return(0,o.jsx)(O.A,{item:!0,children:(0,o.jsxs)(P.A,{component:"span",className:lt.root,children:[(0,o.jsx)(P.A,{className:lt.label,children:dt}),Ot?(0,o.jsx)(A.N_,{to:Ot,children:ct}):ct]})})}var z=t(69814),H=t(72427),_=t(65461),K=t(9222),W=t(45250),J=t(82779);const V=(0,o.jsx)(y.A,{animation:"wave",variant:"text",height:40}),tt=et=>{const{children:dt}=et,ht=(0,g.YR)(),Ot=(0,H.gf)(_.U),{title:ut,setTitle:lt,subtitle:ct,setSubtitle:gt,entityRef:At,metadata:{value:yt,loading:Tt},entityMetadata:{value:mt,loading:wt}}=(0,c.V)();(0,i.useEffect)(()=>{yt&&(lt(yt.site_name),gt(()=>{let{site_description:It}=yt;return(!It||It==="None")&&(It=""),It}))},[yt,lt,gt]);const jt=Ot.getOptional("app.title")||"Backstage",ft=[ut,ct,jt].filter(Boolean).join(" | "),{locationMetadata:St,spec:pt}=mt||{},k=pt==null?void 0:pt.lifecycle,G=mt?(0,E.t)(mt,S.vv):[],at=(0,K.S)(J.rQ)(),vt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{label:(0,W.capitalize)((mt==null?void 0:mt.kind)||"entity"),value:(0,o.jsx)(w.z,{color:"inherit",entityRef:At,title:mt==null?void 0:mt.metadata.title,defaultKind:"Component"})}),G.length>0&&(0,o.jsx)(v,{label:"Owner",value:(0,o.jsx)(h.i,{color:"inherit",entityRefs:G,defaultKind:"group"})}),k?(0,o.jsx)(v,{label:"Lifecycle",value:String(k)}):null,St&&St.type!=="dir"&&St.type!=="file"?(0,o.jsx)(v,{label:"",value:(0,o.jsxs)(O.A,{container:!0,direction:"column",alignItems:"center",children:[(0,o.jsx)(O.A,{style:{padding:0},item:!0,children:(0,o.jsx)(m.A,{style:{marginTop:"-25px"}})}),(0,o.jsx)(O.A,{style:{padding:0},item:!0,children:"Source"})]}),url:St.target}):null]});return!wt&&mt===void 0||!Tt&&yt===void 0?null:(0,o.jsxs)(z.Y,{type:"Documentation",typeLink:at,title:ut||V,subtitle:ct===""?void 0:ct||V,children:[(0,o.jsx)(d.A,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:ft})}),vt,dt,ht.renderComponentsByLocation(C.e.Header)]})}},82779:(Q,T,t)=>{"use strict";t.d(T,{Oc:()=>d,Ri:()=>O,rQ:()=>i});var o=t(34569);const i=(0,o.H)({id:"techdocs:index-page"}),d=(0,o.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),O=(0,o.H)({id:"techdocs:catalog-reader-view"})},27698:(Q,T,t)=>{"use strict";t.r(T),t.d(T,{TechDocsSearchResultListItem:()=>E});var o=t(31085),i=t(14041),d=t(46423),O=t(5951),y=t(58837),m=t(72501),g=t(72072),c=t(70734);const C=(0,y.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),E=w=>{const{result:h,highlight:S,lineClamp:f=5,asListItem:B=!0,asLink:P=!0,title:A,icon:U}=w,M=C(),v=({children:_})=>P?(0,o.jsx)(g.N_,{noTrack:!0,to:h.location,children:_}):(0,o.jsx)(o.Fragment,{children:_}),z=()=>{const _=S!=null&&S.fields.title?(0,o.jsx)(c.e,{text:S.fields.title,preTag:S.preTag,postTag:S.postTag}):h.title,K=S!=null&&S.fields.entityTitle?(0,o.jsx)(c.e,{text:S.fields.entityTitle,preTag:S.preTag,postTag:S.postTag}):h.entityTitle,W=S!=null&&S.fields.name?(0,o.jsx)(c.e,{text:S.fields.name,preTag:S.preTag,postTag:S.postTag}):h.name;return h?(0,o.jsx)(O.A,{className:M.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(v,{children:A||(0,o.jsxs)(o.Fragment,{children:[_," | ",K!=null?K:W," docs"]})}),secondary:(0,o.jsx)(m.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:f,overflow:"hidden"},color:"textSecondary",variant:"body2",children:S!=null&&S.fields.text?(0,o.jsx)(c.e,{text:S.fields.text,preTag:S.preTag,postTag:S.postTag}):h.text})}):null},H=({children:_})=>B?(0,o.jsxs)(o.Fragment,{children:[U&&(0,o.jsx)(d.A,{children:typeof U=="function"?U(h):U}),(0,o.jsx)("div",{className:M.flexContainer,children:_})]}):(0,o.jsx)(o.Fragment,{children:_});return(0,o.jsx)(H,{children:(0,o.jsx)(z,{})})}},86973:()=>{}},Q=>{var T=o=>Q(Q.s=o);Q.O(0,[1751,1888,5067,1678,235,6587,2754,9669,1975,5042,7400,4121],()=>T(85318));var t=Q.O()}]);})();
|
|
507
508
|
|
|
508
|
-
//# sourceMappingURL=main.
|
|
509
|
+
//# sourceMappingURL=main.7315d124.js.map
|