@techdocs/cli 0.0.0-nightly-20241222023321 → 0.0.0-nightly-20241224023253

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # @techdocs/cli
2
2
 
3
- ## 0.0.0-nightly-20241222023321
3
+ ## 0.0.0-nightly-20241224023253
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies
8
- - @backstage/backend-defaults@0.0.0-nightly-20241222023321
9
- - @backstage/plugin-techdocs-node@1.12.15
8
+ - @backstage/backend-defaults@0.0.0-nightly-20241224023253
9
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20241224023253
10
10
  - @backstage/catalog-model@1.7.2
11
11
  - @backstage/cli-common@0.1.15
12
12
  - @backstage/config@1.3.1
@@ -127,6 +127,52 @@
127
127
  },
128
128
  "packageName": "@backstage/plugin-permission-common"
129
129
  },
130
+ {
131
+ "path": "../core-components/config.d.ts",
132
+ "value": {
133
+ "type": "object",
134
+ "properties": {
135
+ "auth": {
136
+ "type": "object",
137
+ "properties": {
138
+ "autologout": {
139
+ "description": "Autologout feature configuration",
140
+ "type": "object",
141
+ "properties": {
142
+ "enabled": {
143
+ "description": "Enable or disable the autologout feature",
144
+ "visibility": "frontend",
145
+ "type": "boolean"
146
+ },
147
+ "idleTimeoutMinutes": {
148
+ "description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
149
+ "visibility": "frontend",
150
+ "type": "number"
151
+ },
152
+ "promptBeforeIdleSeconds": {
153
+ "description": "Number of seconds before the idle timeout where the user will be asked if it's still active.\nA dialog will be shown.\nDefault is 10 seconds.\nSet to 0 seconds to disable the prompt.",
154
+ "visibility": "frontend",
155
+ "type": "number"
156
+ },
157
+ "useWorkerTimers": {
158
+ "description": "Enable/disable the usage of worker thread timers instead of main thread timers.\nDefault is true.\nIf you experience some browser incompatibility, you may try to set this to false.",
159
+ "visibility": "frontend",
160
+ "type": "boolean"
161
+ },
162
+ "logoutIfDisconnected": {
163
+ "description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
164
+ "visibility": "frontend",
165
+ "type": "boolean"
166
+ }
167
+ }
168
+ }
169
+ }
170
+ }
171
+ },
172
+ "$schema": "http://json-schema.org/draft-07/schema#"
173
+ },
174
+ "packageName": "@backstage/core-components"
175
+ },
130
176
  {
131
177
  "path": "../core-app-api/config.d.ts",
132
178
  "value": {
@@ -357,52 +403,6 @@
357
403
  },
358
404
  "packageName": "@backstage/core-app-api"
359
405
  },
360
- {
361
- "path": "../core-components/config.d.ts",
362
- "value": {
363
- "type": "object",
364
- "properties": {
365
- "auth": {
366
- "type": "object",
367
- "properties": {
368
- "autologout": {
369
- "description": "Autologout feature configuration",
370
- "type": "object",
371
- "properties": {
372
- "enabled": {
373
- "description": "Enable or disable the autologout feature",
374
- "visibility": "frontend",
375
- "type": "boolean"
376
- },
377
- "idleTimeoutMinutes": {
378
- "description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
379
- "visibility": "frontend",
380
- "type": "number"
381
- },
382
- "promptBeforeIdleSeconds": {
383
- "description": "Number of seconds before the idle timeout where the user will be asked if it's still active.\nA dialog will be shown.\nDefault is 10 seconds.\nSet to 0 seconds to disable the prompt.",
384
- "visibility": "frontend",
385
- "type": "number"
386
- },
387
- "useWorkerTimers": {
388
- "description": "Enable/disable the usage of worker thread timers instead of main thread timers.\nDefault is true.\nIf you experience some browser incompatibility, you may try to set this to false.",
389
- "visibility": "frontend",
390
- "type": "boolean"
391
- },
392
- "logoutIfDisconnected": {
393
- "description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
394
- "visibility": "frontend",
395
- "type": "boolean"
396
- }
397
- }
398
- }
399
- }
400
- }
401
- },
402
- "$schema": "http://json-schema.org/draft-07/schema#"
403
- },
404
- "packageName": "@backstage/core-components"
405
- },
406
406
  {
407
407
  "path": "../../plugins/techdocs/config.d.ts",
408
408
  "value": {
@@ -2833,7 +2833,7 @@
2833
2833
  "packageName": "@backstage/plugin-auth-backend-module-bitbucket-server-provider"
2834
2834
  },
2835
2835
  {
2836
- "path": "../../plugins/auth-backend-module-cloudflare-access-provider/config.d.ts",
2836
+ "path": "../../plugins/auth-backend-module-gcp-iap-provider/config.d.ts",
2837
2837
  "value": {
2838
2838
  "type": "object",
2839
2839
  "properties": {
@@ -2843,36 +2843,16 @@
2843
2843
  "providers": {
2844
2844
  "type": "object",
2845
2845
  "properties": {
2846
- "cfaccess": {
2847
- "visibility": "frontend",
2846
+ "gcpIap": {
2847
+ "description": "Configuration for the Google Cloud Platform Identity-Aware Proxy (IAP) auth provider.",
2848
2848
  "type": "object",
2849
2849
  "properties": {
2850
- "teamName": {
2851
- "type": "string"
2852
- },
2853
- "serviceTokens": {
2854
- "deepVisibility": "secret",
2855
- "type": "array",
2856
- "items": {
2857
- "type": "object",
2858
- "properties": {
2859
- "token": {
2860
- "type": "string"
2861
- },
2862
- "subject": {
2863
- "type": "string"
2864
- }
2865
- },
2866
- "required": [
2867
- "subject",
2868
- "token"
2869
- ]
2870
- }
2871
- },
2872
- "jwtHeaderName": {
2850
+ "audience": {
2851
+ "description": "The audience to use when validating incoming JWT tokens.\nSee https://backstage.io/docs/auth/google/gcp-iap-auth",
2873
2852
  "type": "string"
2874
2853
  },
2875
- "authorizationCookieName": {
2854
+ "jwtHeader": {
2855
+ "description": "The name of the header to read the JWT token from, defaults to `'x-goog-iap-jwt-assertion'`.",
2876
2856
  "type": "string"
2877
2857
  },
2878
2858
  "signIn": {
@@ -2882,6 +2862,30 @@
2882
2862
  "type": "array",
2883
2863
  "items": {
2884
2864
  "anyOf": [
2865
+ {
2866
+ "type": "object",
2867
+ "properties": {
2868
+ "resolver": {
2869
+ "type": "string",
2870
+ "const": "emailMatchingUserEntityAnnotation"
2871
+ }
2872
+ },
2873
+ "required": [
2874
+ "resolver"
2875
+ ]
2876
+ },
2877
+ {
2878
+ "type": "object",
2879
+ "properties": {
2880
+ "resolver": {
2881
+ "type": "string",
2882
+ "const": "idMatchingUserEntityAnnotation"
2883
+ }
2884
+ },
2885
+ "required": [
2886
+ "resolver"
2887
+ ]
2888
+ },
2885
2889
  {
2886
2890
  "type": "object",
2887
2891
  "properties": {
@@ -2922,11 +2926,8 @@
2922
2926
  }
2923
2927
  },
2924
2928
  "required": [
2925
- "teamName"
2929
+ "audience"
2926
2930
  ]
2927
- },
2928
- "backstageTokenExpiration": {
2929
- "description": "The backstage token expiration."
2930
2931
  }
2931
2932
  }
2932
2933
  }
@@ -2935,10 +2936,10 @@
2935
2936
  },
2936
2937
  "$schema": "http://json-schema.org/draft-07/schema#"
2937
2938
  },
2938
- "packageName": "@backstage/plugin-auth-backend-module-cloudflare-access-provider"
2939
+ "packageName": "@backstage/plugin-auth-backend-module-gcp-iap-provider"
2939
2940
  },
2940
2941
  {
2941
- "path": "../../plugins/auth-backend-module-gcp-iap-provider/config.d.ts",
2942
+ "path": "../../plugins/auth-backend-module-cloudflare-access-provider/config.d.ts",
2942
2943
  "value": {
2943
2944
  "type": "object",
2944
2945
  "properties": {
@@ -2948,16 +2949,36 @@
2948
2949
  "providers": {
2949
2950
  "type": "object",
2950
2951
  "properties": {
2951
- "gcpIap": {
2952
- "description": "Configuration for the Google Cloud Platform Identity-Aware Proxy (IAP) auth provider.",
2952
+ "cfaccess": {
2953
+ "visibility": "frontend",
2953
2954
  "type": "object",
2954
2955
  "properties": {
2955
- "audience": {
2956
- "description": "The audience to use when validating incoming JWT tokens.\nSee https://backstage.io/docs/auth/google/gcp-iap-auth",
2956
+ "teamName": {
2957
2957
  "type": "string"
2958
2958
  },
2959
- "jwtHeader": {
2960
- "description": "The name of the header to read the JWT token from, defaults to `'x-goog-iap-jwt-assertion'`.",
2959
+ "serviceTokens": {
2960
+ "deepVisibility": "secret",
2961
+ "type": "array",
2962
+ "items": {
2963
+ "type": "object",
2964
+ "properties": {
2965
+ "token": {
2966
+ "type": "string"
2967
+ },
2968
+ "subject": {
2969
+ "type": "string"
2970
+ }
2971
+ },
2972
+ "required": [
2973
+ "subject",
2974
+ "token"
2975
+ ]
2976
+ }
2977
+ },
2978
+ "jwtHeaderName": {
2979
+ "type": "string"
2980
+ },
2981
+ "authorizationCookieName": {
2961
2982
  "type": "string"
2962
2983
  },
2963
2984
  "signIn": {
@@ -2967,30 +2988,6 @@
2967
2988
  "type": "array",
2968
2989
  "items": {
2969
2990
  "anyOf": [
2970
- {
2971
- "type": "object",
2972
- "properties": {
2973
- "resolver": {
2974
- "type": "string",
2975
- "const": "emailMatchingUserEntityAnnotation"
2976
- }
2977
- },
2978
- "required": [
2979
- "resolver"
2980
- ]
2981
- },
2982
- {
2983
- "type": "object",
2984
- "properties": {
2985
- "resolver": {
2986
- "type": "string",
2987
- "const": "idMatchingUserEntityAnnotation"
2988
- }
2989
- },
2990
- "required": [
2991
- "resolver"
2992
- ]
2993
- },
2994
2991
  {
2995
2992
  "type": "object",
2996
2993
  "properties": {
@@ -3031,8 +3028,11 @@
3031
3028
  }
3032
3029
  },
3033
3030
  "required": [
3034
- "audience"
3031
+ "teamName"
3035
3032
  ]
3033
+ },
3034
+ "backstageTokenExpiration": {
3035
+ "description": "The backstage token expiration."
3036
3036
  }
3037
3037
  }
3038
3038
  }
@@ -3041,7 +3041,7 @@
3041
3041
  },
3042
3042
  "$schema": "http://json-schema.org/draft-07/schema#"
3043
3043
  },
3044
- "packageName": "@backstage/plugin-auth-backend-module-gcp-iap-provider"
3044
+ "packageName": "@backstage/plugin-auth-backend-module-cloudflare-access-provider"
3045
3045
  },
3046
3046
  {
3047
3047
  "path": "../../plugins/auth-backend-module-github-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.beed748d.js"></script><script defer="defer" src="/static/module-material-ui.05c1a36a.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.beed748d.js"></script><script defer="defer" src="/static/main.beed748d.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.a90fd85d.js"></script><script defer="defer" src="/static/module-material-ui.05c1a36a.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.a90fd85d.js"></script><script defer="defer" src="/static/main.a90fd85d.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.beed748d.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.05c1a36a.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.beed748d.js"></script><script defer src="<%= publicPath %>/static/main.beed748d.js"></script></head>
45
+ <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.a90fd85d.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.05c1a36a.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.a90fd85d.js"></script><script defer src="<%= publicPath %>/static/main.a90fd85d.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(),ht=(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:ht}):ht]})})}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:ht,setSubtitle:gt,entityRef:Et,metadata:{value:mt,loading:St},entityMetadata:{value:bt,loading:Dt}}=(0,g.V)();(0,a.useEffect)(()=>{mt&&(Ot(mt.site_name),gt(()=>{let{site_description:xt}=mt;return(!xt||xt==="None")&&(xt=""),xt}))},[mt,Ot,gt]);const Bt=At.getOptional("app.title")||"Backstage",It=[Pt,ht,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:ht===""?void 0:ht||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(46423),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.beed748d.js.map
553
+ //# sourceMappingURL=main.a90fd85d.js.map