@techdocs/cli 0.0.0-nightly-20250102023150 → 0.0.0-nightly-20250104023038

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,15 +1,15 @@
1
1
  # @techdocs/cli
2
2
 
3
- ## 0.0.0-nightly-20250102023150
3
+ ## 0.0.0-nightly-20250104023038
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies
8
- - @backstage/backend-defaults@0.0.0-nightly-20250102023150
9
- - @backstage/catalog-model@1.7.2
8
+ - @backstage/backend-defaults@0.0.0-nightly-20250104023038
9
+ - @backstage/catalog-model@0.0.0-nightly-20250104023038
10
10
  - @backstage/cli-common@0.1.15
11
- - @backstage/config@1.3.1
12
- - @backstage/plugin-techdocs-node@0.0.0-nightly-20250102023150
11
+ - @backstage/config@0.0.0-nightly-20250104023038
12
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20250104023038
13
13
 
14
14
  ## 1.8.25-next.0
15
15
 
@@ -3641,7 +3641,7 @@
3641
3641
  "packageName": "@backstage/plugin-auth-backend-module-oauth2-provider"
3642
3642
  },
3643
3643
  {
3644
- "path": "../../plugins/auth-backend-module-oidc-provider/config.d.ts",
3644
+ "path": "../../plugins/auth-backend-module-okta-provider/config.d.ts",
3645
3645
  "value": {
3646
3646
  "type": "object",
3647
3647
  "properties": {
@@ -3651,7 +3651,7 @@
3651
3651
  "providers": {
3652
3652
  "type": "object",
3653
3653
  "properties": {
3654
- "oidc": {
3654
+ "okta": {
3655
3655
  "visibility": "frontend",
3656
3656
  "type": "object",
3657
3657
  "additionalProperties": {
@@ -3664,16 +3664,16 @@
3664
3664
  "visibility": "secret",
3665
3665
  "type": "string"
3666
3666
  },
3667
- "metadataUrl": {
3667
+ "audience": {
3668
3668
  "type": "string"
3669
3669
  },
3670
- "callbackUrl": {
3670
+ "authServerId": {
3671
3671
  "type": "string"
3672
3672
  },
3673
- "tokenEndpointAuthMethod": {
3673
+ "idp": {
3674
3674
  "type": "string"
3675
3675
  },
3676
- "tokenSignedResponseAlg": {
3676
+ "callbackUrl": {
3677
3677
  "type": "string"
3678
3678
  },
3679
3679
  "additionalScopes": {
@@ -3689,9 +3689,6 @@
3689
3689
  }
3690
3690
  ]
3691
3691
  },
3692
- "prompt": {
3693
- "type": "string"
3694
- },
3695
3692
  "signIn": {
3696
3693
  "type": "object",
3697
3694
  "properties": {
@@ -3699,6 +3696,18 @@
3699
3696
  "type": "array",
3700
3697
  "items": {
3701
3698
  "anyOf": [
3699
+ {
3700
+ "type": "object",
3701
+ "properties": {
3702
+ "resolver": {
3703
+ "type": "string",
3704
+ "const": "emailMatchingUserEntityAnnotation"
3705
+ }
3706
+ },
3707
+ "required": [
3708
+ "resolver"
3709
+ ]
3710
+ },
3702
3711
  {
3703
3712
  "type": "object",
3704
3713
  "properties": {
@@ -3740,8 +3749,7 @@
3740
3749
  },
3741
3750
  "required": [
3742
3751
  "clientId",
3743
- "clientSecret",
3744
- "metadataUrl"
3752
+ "clientSecret"
3745
3753
  ]
3746
3754
  }
3747
3755
  }
@@ -3752,10 +3760,10 @@
3752
3760
  },
3753
3761
  "$schema": "http://json-schema.org/draft-07/schema#"
3754
3762
  },
3755
- "packageName": "@backstage/plugin-auth-backend-module-oidc-provider"
3763
+ "packageName": "@backstage/plugin-auth-backend-module-okta-provider"
3756
3764
  },
3757
3765
  {
3758
- "path": "../../plugins/auth-backend-module-okta-provider/config.d.ts",
3766
+ "path": "../../plugins/auth-backend-module-oidc-provider/config.d.ts",
3759
3767
  "value": {
3760
3768
  "type": "object",
3761
3769
  "properties": {
@@ -3765,7 +3773,7 @@
3765
3773
  "providers": {
3766
3774
  "type": "object",
3767
3775
  "properties": {
3768
- "okta": {
3776
+ "oidc": {
3769
3777
  "visibility": "frontend",
3770
3778
  "type": "object",
3771
3779
  "additionalProperties": {
@@ -3778,16 +3786,16 @@
3778
3786
  "visibility": "secret",
3779
3787
  "type": "string"
3780
3788
  },
3781
- "audience": {
3789
+ "metadataUrl": {
3782
3790
  "type": "string"
3783
3791
  },
3784
- "authServerId": {
3792
+ "callbackUrl": {
3785
3793
  "type": "string"
3786
3794
  },
3787
- "idp": {
3795
+ "tokenEndpointAuthMethod": {
3788
3796
  "type": "string"
3789
3797
  },
3790
- "callbackUrl": {
3798
+ "tokenSignedResponseAlg": {
3791
3799
  "type": "string"
3792
3800
  },
3793
3801
  "additionalScopes": {
@@ -3803,6 +3811,9 @@
3803
3811
  }
3804
3812
  ]
3805
3813
  },
3814
+ "prompt": {
3815
+ "type": "string"
3816
+ },
3806
3817
  "signIn": {
3807
3818
  "type": "object",
3808
3819
  "properties": {
@@ -3810,18 +3821,6 @@
3810
3821
  "type": "array",
3811
3822
  "items": {
3812
3823
  "anyOf": [
3813
- {
3814
- "type": "object",
3815
- "properties": {
3816
- "resolver": {
3817
- "type": "string",
3818
- "const": "emailMatchingUserEntityAnnotation"
3819
- }
3820
- },
3821
- "required": [
3822
- "resolver"
3823
- ]
3824
- },
3825
3824
  {
3826
3825
  "type": "object",
3827
3826
  "properties": {
@@ -3863,7 +3862,8 @@
3863
3862
  },
3864
3863
  "required": [
3865
3864
  "clientId",
3866
- "clientSecret"
3865
+ "clientSecret",
3866
+ "metadataUrl"
3867
3867
  ]
3868
3868
  }
3869
3869
  }
@@ -3874,7 +3874,7 @@
3874
3874
  },
3875
3875
  "$schema": "http://json-schema.org/draft-07/schema#"
3876
3876
  },
3877
- "packageName": "@backstage/plugin-auth-backend-module-okta-provider"
3877
+ "packageName": "@backstage/plugin-auth-backend-module-oidc-provider"
3878
3878
  },
3879
3879
  {
3880
3880
  "path": "../../plugins/auth-backend-module-onelogin-provider/config.d.ts",
@@ -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.1a0ff023.js"></script><script defer="defer" src="/static/module-material-ui.909829ed.js"></script><script defer="defer" src="/static/module-lodash.aa647045.js"></script><script defer="defer" src="/static/module-date-fns.c633d602.js"></script><script defer="defer" src="/static/module-mui.f702282a.js"></script><script defer="defer" src="/static/module-material-table.84f30b2f.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer="defer" src="/static/module-zod.4f2eeb8c.js"></script><script defer="defer" src="/static/module-i18next.f50c1612.js"></script><script defer="defer" src="/static/module-remix-run.ba6397c2.js"></script><script defer="defer" src="/static/vendor.1a0ff023.js"></script><script defer="defer" src="/static/main.1a0ff023.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.842d0cf4.js"></script><script defer="defer" src="/static/module-material-ui.909829ed.js"></script><script defer="defer" src="/static/module-lodash.aa647045.js"></script><script defer="defer" src="/static/module-date-fns.c633d602.js"></script><script defer="defer" src="/static/module-mui.f702282a.js"></script><script defer="defer" src="/static/module-material-table.84f30b2f.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer="defer" src="/static/module-zod.4f2eeb8c.js"></script><script defer="defer" src="/static/module-i18next.f50c1612.js"></script><script defer="defer" src="/static/module-remix-run.ba6397c2.js"></script><script defer="defer" src="/static/vendor.842d0cf4.js"></script><script defer="defer" src="/static/main.842d0cf4.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -42,7 +42,7 @@
42
42
  color="#5bbad5"
43
43
  />
44
44
  <title><%= config.getString('app.title') %></title>
45
- <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.1a0ff023.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.909829ed.js"></script><script defer src="<%= publicPath %>/static/module-lodash.aa647045.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.c633d602.js"></script><script defer src="<%= publicPath %>/static/module-mui.f702282a.js"></script><script defer src="<%= publicPath %>/static/module-material-table.84f30b2f.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.42a304d3.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer src="<%= publicPath %>/static/module-zod.4f2eeb8c.js"></script><script defer src="<%= publicPath %>/static/module-i18next.f50c1612.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.ba6397c2.js"></script><script defer src="<%= publicPath %>/static/vendor.1a0ff023.js"></script><script defer src="<%= publicPath %>/static/main.1a0ff023.js"></script></head>
45
+ <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.842d0cf4.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.909829ed.js"></script><script defer src="<%= publicPath %>/static/module-lodash.aa647045.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.c633d602.js"></script><script defer src="<%= publicPath %>/static/module-mui.f702282a.js"></script><script defer src="<%= publicPath %>/static/module-material-table.84f30b2f.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.42a304d3.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer src="<%= publicPath %>/static/module-zod.4f2eeb8c.js"></script><script defer src="<%= publicPath %>/static/module-i18next.f50c1612.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.ba6397c2.js"></script><script defer src="<%= publicPath %>/static/vendor.842d0cf4.js"></script><script defer src="<%= publicPath %>/static/main.842d0cf4.js"></script></head>
46
46
  <body>
47
47
  <noscript>You need to enable JavaScript to run this app.</noscript>
48
48
  <div id="root"></div>
@@ -550,4 +550,4 @@ ${U.href}
550
550
 
551
551
  Feedback:`),Rt=W?.type==="github"?(0,hs.F)($.href,"blob"):$.href,$t=Fn()(Rt),Mt=`/${$t.organization}/${$t.name}`,Ut=U.cloneNode();switch(W?.type){case"gitlab":Ut.href=`${$.origin}${Mt}/issues/new?issue[title]=${ot}&issue[description]=${Ct}`;break;case"github":Ut.href=`${$.origin}${Mt}/issues/new?title=${ot}&body=${Ct}`;break;default:return D}return pn(a.createElement(gs.A),Ut),Ut.style.paddingLeft="5px",Ut.title="Leave feedback for this page",Ut.id="git-feedback-link",U?.insertAdjacentElement("beforebegin",Ut),D};var bn=t(38097);const Sn=(0,x.A)(f=>({button:{color:f.palette.primary.light,textDecoration:"underline"}})),fs=({message:f,handleButtonClick:D,autoHideDuration:U})=>{const $=Sn(),[W,Z]=(0,a.useState)(!0),ot=()=>Z(!1);return(0,n.jsx)(bn.A,{open:W,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:U,color:"primary",onClose:ot,message:f,action:(0,n.jsx)(tt.A,{classes:{root:$.button},size:"small",onClick:()=>{ot(),D()},children:"Redirect now"})})},Nn=(f,D)=>{const $=W=>{const Z=jn(window.location.href),ot=new URL(W,Z);if(ot.hostname!==window.location.hostname){const Rt=window.location.pathname,$t=Rt.indexOf(D),Mt=Rt.slice(0,$t+D.length);return new URL(Mt,Z).href}return ot.href};return W=>{for(const Z of Array.from(W.querySelectorAll("meta")))if(Z.getAttribute("http-equiv")==="refresh"){const ot=Z.getAttribute("content")?.split("url=");if(!ot||ot.length<2)return W;const Ct=ot[1],Rt=$(Ct);if(window.location.href===Rt)return W;const $t=document.createElement("div");return pn((0,n.jsx)(fs,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>f(Rt),autoHideDuration:3e3}),$t),document.body.appendChild($t),setTimeout(()=>{f(Rt)},3e3),W}return W}},kn=()=>f=>(setTimeout(()=>{const D=f?.querySelectorAll("li.md-nav__item--active");D.length!==0&&(D.forEach($=>{const W=$?.querySelector("input");W?.checked||W?.click()}),D[D.length-1].scrollIntoView())},200),f);var ms=t(50868),vs=t(10437),ys=t(71677),Es=t(87051),As=t(36338);const xs=(0,Es.A)(f=>({tooltip:{fontSize:"inherit",color:f.palette.text.primary,margin:0,padding:f.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(ys.Ay),Cs=()=>(0,n.jsx)(vs.A,{children:(0,n.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"})}),bs=({text:f})=>{const[D,U]=(0,a.useState)(!1),[,$]=(0,As.A)(),W=(0,a.useCallback)(()=>{$(f),U(!0)},[f,$]),Z=(0,a.useCallback)(()=>{U(!1)},[U]);return(0,n.jsx)(xs,{title:"Copied to clipboard",placement:"left",open:D,onClose:Z,leaveDelay:1e3,children:(0,n.jsx)(It.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:W,children:(0,n.jsx)(Cs,{})})})},Ss=f=>D=>{const U=D.querySelectorAll("pre > code");for(const $ of U){const W=$.textContent||"",Z=document.createElement("div");$?.parentElement?.prepend(Z),pn((0,n.jsx)(ms.A,{theme:f,children:(0,n.jsx)(bs,{text:W})}),Z)}return D},Os=({baseUrl:f,onClick:D})=>U=>(Array.from(U.getElementsByTagName("a")).forEach($=>{$.addEventListener("click",W=>{const ot=$.getAttribute("href");ot&&ot.startsWith(f)&&!$.hasAttribute("download")&&(W.preventDefault(),D(W,ot))})}),U),Wn=({onLoading:f,onLoaded:D})=>U=>(f(),U.addEventListener(p,function $(){D(),U.removeEventListener(p,$)}),U);function Ps(f,D){const U=new URL(D),$=`${U.origin}${U.pathname.replace(/\/$/,"")}`,W=f.replace($,"").replace(/^\/+/,""),Z=new URL(`http://localhost/${W}`);return`${Z.pathname}${Z.search}${Z.hash}`}function Kn(){const f=(0,a.useRef)((0,jt.Zp)()),U=(0,dt.gf)(G.U).getOptionalString("app.baseUrl");return(0,a.useCallback)(W=>{let Z=W;if(U)try{Z=Ps(W,U)}catch{}f.current(Z)},[U])}const zn="screen and (max-width: 76.1875em)",Ts=f=>{const D=Kn(),U=(0,Ve.A)(),$=(0,He.A)(zn),W=Ie(),Z=as(),ot=(0,X.s)(),Ct=(0,dt.gf)(_e.s),Rt=(0,dt.gf)(Ue.Y),{state:$t,path:Mt,content:Ut}=Be(),{"*":Jt=""}=(0,jt.g)(),[Gt,le]=(0,a.useState)(null),Yt=A(Gt),ce=(0,a.useCallback)(()=>{if(!Gt)return;Gt.querySelectorAll(".md-sidebar").forEach(te=>{if($)te.style.top="0px";else{const Pe=document?.querySelector(".techdocs-reader-page")?.getBoundingClientRect().top??0;let De=Gt.getBoundingClientRect().top??0;const cn=Gt.querySelector(".md-container > .md-tabs")?.getBoundingClientRect().height??0;De<Pe&&(De=Pe);const Ye=Math.max(De,0)+cn;te.style.top=`${Ye}px`;const ln=Gt.querySelector(".md-container > .md-footer")?.getBoundingClientRect().top??window.innerHeight;te.style.height=`${ln-Ye}px`}te.style.setProperty("opacity","1")})},[Gt,$]);(0,a.useEffect)(()=>(window.addEventListener("resize",ce),window.addEventListener("scroll",ce,!0),()=>{window.removeEventListener("resize",ce),window.removeEventListener("scroll",ce,!0)}),[Gt,ce]);const he=(0,a.useCallback)(()=>{if(!Gt)return;const Zt=Gt.querySelector(".md-footer");Zt&&(Zt.style.width=`${Gt.getBoundingClientRect().width}px`)},[Gt]);(0,a.useEffect)(()=>(window.addEventListener("resize",he),()=>{window.removeEventListener("resize",he)}),[Gt,he]),(0,a.useEffect)(()=>{Yt||(he(),ce())},[$t,Yt,he,ce]);const qt=(0,a.useCallback)((Zt,te)=>Cn(Zt,[W,Mn({techdocsStorageApi:Ct,entityId:f,path:te}),cs(),ds(),us(),Un(),ps(Rt),Z]),[f,Rt,Ct,W,Z]),Qt=(0,a.useCallback)(async Zt=>Cn(Zt,[Nn(D,f.name),kn(),Ss(U),Os({baseUrl:window.location.origin,onClick:(te,re)=>{const Pe=te.ctrlKey||te.metaKey,De=new URL(re),en=te.target?.innerText||re,cn=re.replace(window.location.origin,"");ot.captureEvent("click",en,{attributes:{to:cn}}),De.hash?Pe?window.open(re,"_blank"):(window.location.pathname!==De.pathname?D(re):window.history.pushState(null,document.title,De.hash),Zt?.querySelector(`[id="${De.hash.slice(1)}"]`)?.scrollIntoView()):Pe?window.open(re,"_blank"):D(re)}}),Wn({onLoading:()=>{},onLoaded:()=>{Zt.querySelector(".md-nav__title")?.removeAttribute("for")}}),Wn({onLoading:()=>{Array.from(Zt.querySelectorAll(".md-sidebar")).forEach(re=>{re.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[U,D,ot,f.name]);return(0,a.useEffect)(()=>{if(!Ut)return()=>{};let Zt=!0;return qt(Ut,Mt).then(async te=>{if(!te?.innerHTML||!Zt||Jt!==Mt)return;window.scroll({top:0});const re=await Qt(te);le(re)}),()=>{Zt=!1}},[Ut,Jt,Mt,qt,Qt]),Gt};var On=t(41883),Fe=t(72020),Oe=t(99730);const Ne=()=>{const f=(0,Fe.YR)(),{shadowRoot:D}=(0,m.V)(),U=D?.querySelector('[data-md-component="content"]'),$=D?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let W=$?.querySelector('[data-techdocs-addons-location="primary sidebar"]');W||(W=document.createElement("div"),W.setAttribute("data-techdocs-addons-location","primary sidebar"),$?.prepend(W));const Z=D?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let ot=Z?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return ot||(ot=document.createElement("div"),ot.setAttribute("data-techdocs-addons-location","secondary sidebar"),Z?.prepend(ot)),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(On.A,{container:W,children:f.renderComponentsByLocation(Oe.e.PrimarySidebar)}),(0,n.jsx)(On.A,{container:U,children:f.renderComponentsByLocation(Oe.e.Content)}),(0,n.jsx)(On.A,{container:ot,children:f.renderComponentsByLocation(Oe.e.SecondarySidebar)})]})},ws=(0,x.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Hn=on(f=>{const{withSearch:D=!0,searchResultUrlMapper:U,onReady:$}=f,W=ws(),{entityMetadata:{value:Z,loading:ot},entityRef:Ct,setShadowRoot:Rt}=(0,m.V)(),{state:$t}=Be(),Mt=Ts(Ct),Ut=window.location.pathname,Jt=window.location.hash,Gt=A(Mt),[le]=R([`[id="${Jt.slice(1)}"]`]);(0,a.useEffect)(()=>{Gt||(Jt?le&&le.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[Ut,Jt,le,Gt]);const Yt=(0,a.useCallback)(ce=>{Rt(ce),$ instanceof Function&&$()},[Rt,$]);return ot===!1&&!Z?(0,n.jsx)(F.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Mt?(0,n.jsx)(M.U,{children:(0,n.jsxs)(d.A,{container:!0,children:[(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(We,{})}),D&&(0,n.jsx)(d.A,{className:W.search,xs:"auto",item:!0,children:(0,n.jsx)(de,{entityId:Ct,entityTitle:Z?.metadata?.title,searchResultUrlMapper:U})}),(0,n.jsxs)(d.A,{xs:12,item:!0,children:[($t==="CHECKING"||Gt)&&(0,n.jsx)(J.k,{}),(0,n.jsx)(y,{element:Mt,onAppend:Yt,children:(0,n.jsx)(Ne,{})})]})]})}):(0,n.jsx)(M.U,{children:(0,n.jsx)(d.A,{container:!0,children:(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(We,{})})})})}),Rs=null},45061:(H,b,t)=>{"use strict";t.d(b,{T:()=>Q});var n=t(31085),a=t(14041),d=t(93285),x=t(42899),m=t(4387),h=t(13660),u=t(72020),g=t(86892),p=t(99730),v=t(67871),A=t(8859),y=t(34428),P=t(51372),T=t(58837),R=t(268),O=t(72501),j=t(72072);const F=(0,T.A)(G=>({root:{textAlign:"left"},label:{color:G.page.fontColor,fontWeight:G.typography.fontWeightBold,letterSpacing:0,fontSize:G.typography.fontSize,marginBottom:G.spacing(1)/2,lineHeight:1},value:{color:(0,R.X4)(G.page.fontColor,.8),fontSize:G.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),M=({value:G,className:ct,typographyRootComponent:lt})=>(0,n.jsx)(O.A,{component:lt??(typeof G=="string"?"p":"span"),className:ct,children:G});function J(G){const{label:ct,value:lt,url:At,contentTypograpyRootComponent:Pt}=G,Ot=F(),gt=(0,n.jsx)(M,{className:Ot.value,value:lt||"<Unknown>",typographyRootComponent:Pt});return(0,n.jsx)(x.A,{item:!0,children:(0,n.jsxs)(O.A,{component:"span",className:Ot.root,children:[(0,n.jsx)(O.A,{className:Ot.label,children:ct}),At?(0,n.jsx)(j.N_,{to:At,children:gt}):gt]})})}var V=t(69814),k=t(72427),Y=t(65461),q=t(9222),N=t(45250),dt=t(82779);const X=(0,n.jsx)(m.A,{animation:"wave",variant:"text",height:40}),Q=G=>{const{children:ct}=G,lt=(0,u.YR)(),At=(0,k.gf)(Y.U),{title:Pt,setTitle:Ot,subtitle:gt,setSubtitle:ht,entityRef:Et,metadata:{value:mt,loading:St},entityMetadata:{value:bt,loading:Dt}}=(0,g.V)();(0,a.useEffect)(()=>{mt&&(Ot(mt.site_name),ht(()=>{let{site_description:xt}=mt;return(!xt||xt==="None")&&(xt=""),xt}))},[mt,Ot,ht]);const Bt=At.getOptional("app.title")||"Backstage",It=[Pt,gt,Bt].filter(Boolean).join(" | "),{locationMetadata:ut,spec:it}=bt||{},tt=it?.lifecycle,B=bt?(0,v.t)(bt,P.vv):[],K=(0,q.S)(dt.rQ)(),rt=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(J,{label:(0,N.capitalize)(bt?.kind||"entity"),value:(0,n.jsx)(A.z,{color:"inherit",entityRef:Et,title:bt?.metadata.title,defaultKind:"Component"})}),B.length>0&&(0,n.jsx)(J,{label:"Owner",value:(0,n.jsx)(y.i,{color:"inherit",entityRefs:B,defaultKind:"group"})}),tt?(0,n.jsx)(J,{label:"Lifecycle",value:String(tt)}):null,ut&&ut.type!=="dir"&&ut.type!=="file"?(0,n.jsx)(J,{label:"",value:(0,n.jsxs)(x.A,{container:!0,direction:"column",alignItems:"center",children:[(0,n.jsx)(x.A,{style:{padding:0},item:!0,children:(0,n.jsx)(h.A,{style:{marginTop:"-25px"}})}),(0,n.jsx)(x.A,{style:{padding:0},item:!0,children:"Source"})]}),url:ut.target}):null]});return!Dt&&bt===void 0||!St&&mt===void 0?null:(0,n.jsxs)(V.Y,{type:"Documentation",typeLink:K,title:Pt||X,subtitle:gt===""?void 0:gt||X,children:[(0,n.jsx)(d.A,{titleTemplate:"%s",children:(0,n.jsx)("title",{children:It})}),rt,ct,lt.renderComponentsByLocation(p.e.Header)]})}},82779:(H,b,t)=>{"use strict";t.d(b,{Oc:()=>d,Ri:()=>x,rQ:()=>a});var n=t(34569);const a=(0,n.H)({id:"techdocs:index-page"}),d=(0,n.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),x=(0,n.H)({id:"techdocs:catalog-reader-view"})},27698:(H,b,t)=>{"use strict";t.r(b),t.d(b,{TechDocsSearchResultListItem:()=>v});var n=t(31085),a=t(14041),d=t(68804),x=t(5951),m=t(58837),h=t(72501),u=t(72072),g=t(70734);const p=(0,m.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),v=A=>{const{result:y,highlight:P,lineClamp:T=5,asListItem:R=!0,asLink:O=!0,title:j,icon:F}=A,M=p(),J=({children:Y})=>O?(0,n.jsx)(u.N_,{noTrack:!0,to:y.location,children:Y}):(0,n.jsx)(n.Fragment,{children:Y}),V=()=>{const Y=P?.fields.title?(0,n.jsx)(g.e,{text:P.fields.title,preTag:P.preTag,postTag:P.postTag}):y.title,q=P?.fields.entityTitle?(0,n.jsx)(g.e,{text:P.fields.entityTitle,preTag:P.preTag,postTag:P.postTag}):y.entityTitle,N=P?.fields.name?(0,n.jsx)(g.e,{text:P.fields.name,preTag:P.preTag,postTag:P.postTag}):y.name;return y?(0,n.jsx)(x.A,{className:M.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,n.jsx)(J,{children:j||(0,n.jsxs)(n.Fragment,{children:[Y," | ",q??N," docs"]})}),secondary:(0,n.jsx)(h.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:T,overflow:"hidden"},color:"textSecondary",variant:"body2",children:P?.fields.text?(0,n.jsx)(g.e,{text:P.fields.text,preTag:P.preTag,postTag:P.postTag}):y.text})}):null},k=({children:Y})=>R?(0,n.jsxs)(n.Fragment,{children:[F&&(0,n.jsx)(d.A,{children:typeof F=="function"?F(y):F}),(0,n.jsx)("div",{className:M.flexContainer,children:Y})]}):(0,n.jsx)(n.Fragment,{children:Y});return(0,n.jsx)(k,{children:(0,n.jsx)(V,{})})}},97184:(H,b,t)=>{const a=document.querySelector('meta[name="backstage-public-path"]')?.getAttribute("content");a&&(t.p=a)},86973:()=>{}},H=>{var b=n=>H(H.s=n);H.O(0,[1751,1888,5067,1678,235,6587,1975,5042,7400,4538,4121],()=>(b(97184),b(47149)));var t=H.O()}]);})();
552
552
 
553
- //# sourceMappingURL=main.1a0ff023.js.map
553
+ //# sourceMappingURL=main.842d0cf4.js.map