@techdocs/cli 0.0.0-nightly-20241002023110 → 0.0.0-nightly-20241003023252

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-20241002023110
3
+ ## 0.0.0-nightly-20241003023252
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies
8
- - @backstage/backend-defaults@0.0.0-nightly-20241002023110
9
- - @backstage/plugin-techdocs-node@0.0.0-nightly-20241002023110
8
+ - @backstage/backend-defaults@0.0.0-nightly-20241003023252
9
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20241003023252
10
10
  - @backstage/catalog-model@1.7.0
11
11
  - @backstage/cli-common@0.1.14
12
12
  - @backstage/config@1.2.0
@@ -105,6 +105,26 @@
105
105
  },
106
106
  "path": "../cli/package.json"
107
107
  },
108
+ {
109
+ "path": "../../plugins/permission-common/config.d.ts",
110
+ "value": {
111
+ "type": "object",
112
+ "properties": {
113
+ "permission": {
114
+ "description": "Configuration options for Backstage permissions and authorization",
115
+ "type": "object",
116
+ "properties": {
117
+ "enabled": {
118
+ "description": "Whether authorization is enabled in Backstage. Defaults to false, which means authorization\nrequests will be automatically allowed without invoking the authorization policy.",
119
+ "visibility": "frontend",
120
+ "type": "boolean"
121
+ }
122
+ }
123
+ }
124
+ },
125
+ "$schema": "http://json-schema.org/draft-07/schema#"
126
+ }
127
+ },
108
128
  {
109
129
  "path": "../core-app-api/config.d.ts",
110
130
  "value": {
@@ -379,26 +399,6 @@
379
399
  "$schema": "http://json-schema.org/draft-07/schema#"
380
400
  }
381
401
  },
382
- {
383
- "path": "../../plugins/permission-common/config.d.ts",
384
- "value": {
385
- "type": "object",
386
- "properties": {
387
- "permission": {
388
- "description": "Configuration options for Backstage permissions and authorization",
389
- "type": "object",
390
- "properties": {
391
- "enabled": {
392
- "description": "Whether authorization is enabled in Backstage. Defaults to false, which means authorization\nrequests will be automatically allowed without invoking the authorization policy.",
393
- "visibility": "frontend",
394
- "type": "boolean"
395
- }
396
- }
397
- }
398
- },
399
- "$schema": "http://json-schema.org/draft-07/schema#"
400
- }
401
- },
402
402
  {
403
403
  "path": "../../plugins/techdocs/config.d.ts",
404
404
  "value": {
@@ -1081,24 +1081,6 @@
1081
1081
  "$schema": "http://json-schema.org/draft-07/schema#"
1082
1082
  }
1083
1083
  },
1084
- {
1085
- "path": "../backend-plugin-api/config.d.ts",
1086
- "value": {
1087
- "type": "object",
1088
- "properties": {
1089
- "backend": {
1090
- "type": "object",
1091
- "properties": {
1092
- "workingDirectory": {
1093
- "description": "An absolute path to a directory that can be used as a working dir, for\nexample as scratch space for large operations.",
1094
- "type": "string"
1095
- }
1096
- }
1097
- }
1098
- },
1099
- "$schema": "http://json-schema.org/draft-07/schema#"
1100
- }
1101
- },
1102
1084
  {
1103
1085
  "path": "../../node_modules/@backstage/backend-common/config.d.ts",
1104
1086
  "value": {
@@ -1523,6 +1505,24 @@
1523
1505
  "$schema": "http://json-schema.org/draft-07/schema#"
1524
1506
  }
1525
1507
  },
1508
+ {
1509
+ "path": "../backend-plugin-api/config.d.ts",
1510
+ "value": {
1511
+ "type": "object",
1512
+ "properties": {
1513
+ "backend": {
1514
+ "type": "object",
1515
+ "properties": {
1516
+ "workingDirectory": {
1517
+ "description": "An absolute path to a directory that can be used as a working dir, for\nexample as scratch space for large operations.",
1518
+ "type": "string"
1519
+ }
1520
+ }
1521
+ }
1522
+ },
1523
+ "$schema": "http://json-schema.org/draft-07/schema#"
1524
+ }
1525
+ },
1526
1526
  {
1527
1527
  "path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/core-components/config.d.ts",
1528
1528
  "value": {
@@ -2185,6 +2185,46 @@
2185
2185
  "$schema": "http://json-schema.org/draft-07/schema#"
2186
2186
  }
2187
2187
  },
2188
+ {
2189
+ "path": "../backend-app-api/config.d.ts",
2190
+ "value": {
2191
+ "type": "object",
2192
+ "properties": {
2193
+ "backend": {
2194
+ "type": "object",
2195
+ "properties": {
2196
+ "packages": {
2197
+ "description": "Used by the feature discovery service",
2198
+ "anyOf": [
2199
+ {
2200
+ "type": "object",
2201
+ "properties": {
2202
+ "include": {
2203
+ "type": "array",
2204
+ "items": {
2205
+ "type": "string"
2206
+ }
2207
+ },
2208
+ "exclude": {
2209
+ "type": "array",
2210
+ "items": {
2211
+ "type": "string"
2212
+ }
2213
+ }
2214
+ }
2215
+ },
2216
+ {
2217
+ "const": "all",
2218
+ "type": "string"
2219
+ }
2220
+ ]
2221
+ }
2222
+ }
2223
+ }
2224
+ },
2225
+ "$schema": "http://json-schema.org/draft-07/schema#"
2226
+ }
2227
+ },
2188
2228
  {
2189
2229
  "path": "../backend-defaults/config.d.ts",
2190
2230
  "value": {
@@ -3010,46 +3050,6 @@
3010
3050
  ],
3011
3051
  "$schema": "http://json-schema.org/draft-07/schema#"
3012
3052
  }
3013
- },
3014
- {
3015
- "path": "../backend-app-api/config.d.ts",
3016
- "value": {
3017
- "type": "object",
3018
- "properties": {
3019
- "backend": {
3020
- "type": "object",
3021
- "properties": {
3022
- "packages": {
3023
- "description": "Used by the feature discovery service",
3024
- "anyOf": [
3025
- {
3026
- "type": "object",
3027
- "properties": {
3028
- "include": {
3029
- "type": "array",
3030
- "items": {
3031
- "type": "string"
3032
- }
3033
- },
3034
- "exclude": {
3035
- "type": "array",
3036
- "items": {
3037
- "type": "string"
3038
- }
3039
- }
3040
- }
3041
- },
3042
- {
3043
- "const": "all",
3044
- "type": "string"
3045
- }
3046
- ]
3047
- }
3048
- }
3049
- }
3050
- },
3051
- "$schema": "http://json-schema.org/draft-07/schema#"
3052
- }
3053
3053
  }
3054
3054
  ],
3055
3055
  "backstageConfigSchemaVersion": 1
@@ -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.77670b27.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.f5e57c92.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.e486ee73.js"></script><script defer="defer" src="/static/vendor.77670b27.js"></script><script defer="defer" src="/static/main.77670b27.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.3e8a4663.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.f5e57c92.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.e486ee73.js"></script><script defer="defer" src="/static/vendor.3e8a4663.js"></script><script defer="defer" src="/static/main.3e8a4663.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.77670b27.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.f5e57c92.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.e486ee73.js"></script><script defer src="<%= publicPath %>/static/vendor.77670b27.js"></script><script defer src="<%= publicPath %>/static/main.77670b27.js"></script></head>
45
+ <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.3e8a4663.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.f5e57c92.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.e486ee73.js"></script><script defer src="<%= publicPath %>/static/vendor.3e8a4663.js"></script><script defer src="<%= publicPath %>/static/main.3e8a4663.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>
@@ -208,9 +208,14 @@ body {
208
208
  scrollbar-width: thin;
209
209
  }
210
210
  .md-sidebar .md-sidebar__scrollwrap {
211
- width: calc(12.1rem);
211
+ width: calc(16rem);
212
212
  overflow-y: hidden;
213
213
  }
214
+ @supports selector(::-webkit-scrollbar) {
215
+ [dir=ltr] .md-sidebar__inner {
216
+ padding-right: calc(100% - 15.1rem);
217
+ }
218
+ }
214
219
  .md-sidebar--secondary {
215
220
  right: ${f.spacing(3)}px;
216
221
  }
@@ -324,14 +329,18 @@ body {
324
329
  height: 100%;
325
330
  }
326
331
  .md-sidebar--primary {
327
- width: 12.1rem !important;
332
+ width: 16rem !important;
328
333
  z-index: 200;
329
- left: ${w.isPinned?`calc(-12.1rem + ${es})`:"calc(-12.1rem + 72px)"} !important;
334
+ left: ${w.isPinned?`calc(-16rem + ${es})`:"calc(-16rem + 72px)"} !important;
330
335
  }
331
336
  .md-sidebar--secondary:not([hidden]) {
332
337
  display: none;
333
338
  }
334
339
 
340
+ [data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary {
341
+ transform: translateX(16rem);
342
+ }
343
+
335
344
  .md-content {
336
345
  max-width: 100%;
337
346
  margin-left: 0;
@@ -359,8 +368,8 @@ body {
359
368
 
360
369
  @media screen and (max-width: 600px) {
361
370
  .md-sidebar--primary {
362
- left: -12.1rem !important;
363
- width: 12.1rem;
371
+ left: -16rem !important;
372
+ width: 16rem;
364
373
  }
365
374
  }
366
375
 
@@ -541,4 +550,4 @@ ${U.href}
541
550
 
542
551
  Feedback:`),Ot=W?.type==="github"?(0,hs.F)(F.href,"blob"):F.href,Mt=Un()(Ot),wt=`/${Mt.organization}/${Mt.name}`,$t=U.cloneNode();switch(W?.type){case"gitlab":$t.href=`${F.origin}${wt}/issues/new?issue[title]=${ot}&issue[description]=${St}`;break;case"github":$t.href=`${F.origin}${wt}/issues/new?title=${ot}&body=${St}`;break;default:return w}return ln(a.createElement(gs.A),$t),$t.style.paddingLeft="5px",$t.title="Leave feedback for this page",$t.id="git-feedback-link",U?.insertAdjacentElement("beforebegin",$t),w};var An=t(38097);const xn=(0,x.A)(f=>({button:{color:f.palette.primary.light,textDecoration:"underline"}})),fs=({message:f,handleButtonClick:w,autoHideDuration:U})=>{const F=xn(),[W,J]=(0,a.useState)(!0),ot=()=>J(!1);return(0,n.jsx)(An.A,{open:W,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:U,color:"primary",onClose:ot,message:f,action:(0,n.jsx)(j.A,{classes:{root:F.button},size:"small",onClick:()=>{ot(),w()},children:"Redirect now"})})},$n=(f,w)=>{const F=W=>{const J=Ln(window.location.href),ot=new URL(W,J);if(ot.hostname!==window.location.hostname){const Ot=window.location.pathname,Mt=Ot.indexOf(w),wt=Ot.slice(0,Mt+w.length);return new URL(wt,J).href}return ot.href};return W=>{for(const J of Array.from(W.querySelectorAll("meta")))if(J.getAttribute("http-equiv")==="refresh"){const ot=J.getAttribute("content")?.split("url=");if(!ot||ot.length<2)return W;const St=ot[1],Ot=F(St);if(window.location.href===Ot)return W;const Mt=document.createElement("div");return ln((0,n.jsx)(fs,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>f(Ot),autoHideDuration:3e3}),Mt),document.body.appendChild(Mt),setTimeout(()=>{f(Ot)},3e3),W}return W}},Fn=()=>f=>(setTimeout(()=>{const w=f?.querySelectorAll("li.md-nav__item--active");w.length!==0&&(w.forEach(F=>{const W=F?.querySelector("input");W?.checked||W?.click()}),w[w.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[w,U]=(0,a.useState)(!1),[,F]=(0,As.A)(),W=(0,a.useCallback)(()=>{F(f),U(!0)},[f,F]),J=(0,a.useCallback)(()=>{U(!1)},[U]);return(0,n.jsx)(xs,{title:"Copied to clipboard",placement:"left",open:w,onClose:J,leaveDelay:1e3,children:(0,n.jsx)(Ht.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:W,children:(0,n.jsx)(Cs,{})})})},Ss=f=>w=>{const U=w.querySelectorAll("pre > code");for(const F of U){const W=F.textContent||"",J=document.createElement("div");F?.parentElement?.prepend(J),ln((0,n.jsx)(ms.A,{theme:f,children:(0,n.jsx)(bs,{text:W})}),J)}return w},Os=({baseUrl:f,onClick:w})=>U=>(Array.from(U.getElementsByTagName("a")).forEach(F=>{F.addEventListener("click",W=>{const ot=F.getAttribute("href");ot&&ot.startsWith(f)&&!F.hasAttribute("download")&&(W.preventDefault(),w(W,ot))})}),U),Nn=({onLoading:f,onLoaded:w})=>U=>(f(),U.addEventListener(y,function F(){w(),U.removeEventListener(y,F)}),U);function Ts(f,w){const U=new URL(w),F=`${U.origin}${U.pathname.replace(/\/$/,"")}`,W=f.replace(F,"").replace(/^\/+/,""),J=new URL(`http://localhost/${W}`);return`${J.pathname}${J.search}${J.hash}`}function kn(){const f=(0,a.useRef)((0,Ut.Zp)()),U=(0,q.gf)(Y.U).getOptionalString("app.baseUrl");return(0,a.useCallback)(W=>{let J=W;if(U)try{J=Ts(W,U)}catch{}f.current(J)},[U])}const Wn="screen and (max-width: 76.1875em)",Ps=f=>{const w=kn(),U=(0,l.A)(),F=(0,D.A)(Wn),W=Re(),J=as(),ot=(0,Z.s)(),St=(0,q.gf)(qe.s),Ot=(0,q.gf)(E.Y),{state:Mt,path:wt,content:$t}=We(),[jt,Ae]=(0,a.useState)(null),ie=A(jt),Kt=(0,a.useCallback)(()=>{if(!jt)return;jt.querySelectorAll(".md-sidebar").forEach(_t=>{if(F)_t.style.top="0px";else{const xe=document?.querySelector(".techdocs-reader-page")?.getBoundingClientRect().top??0;let Ce=jt.getBoundingClientRect().top??0;const He=jt.querySelector(".md-container > .md-tabs")?.getBoundingClientRect().height??0;Ce<xe&&(Ce=xe);const dn=Math.max(Ce,0)+He;_t.style.top=`${dn}px`;const pe=jt.querySelector(".md-container > .md-footer")?.getBoundingClientRect().top??window.innerHeight;_t.style.height=`${pe-dn}px`}_t.style.setProperty("opacity","1")})},[jt,F]);(0,a.useEffect)(()=>(window.addEventListener("resize",Kt),window.addEventListener("scroll",Kt,!0),()=>{window.removeEventListener("resize",Kt),window.removeEventListener("scroll",Kt,!0)}),[jt,Kt]);const ge=(0,a.useCallback)(()=>{if(!jt)return;const Ft=jt.querySelector(".md-footer");Ft&&(Ft.style.width=`${jt.getBoundingClientRect().width}px`)},[jt]);(0,a.useEffect)(()=>(window.addEventListener("resize",ge),()=>{window.removeEventListener("resize",ge)}),[jt,ge]),(0,a.useEffect)(()=>{ie||(ge(),Kt())},[Mt,ie,ge,Kt]);const te=(0,a.useCallback)((Ft,_t)=>En(Ft,[W,Dn({techdocsStorageApi:St,entityId:f,path:_t}),cs(),ds(),us(),jn(),ps(Ot),J]),[f,Ot,St,W,J]),ae=(0,a.useCallback)(async Ft=>En(Ft,[$n(w,f.name),Fn(),Ss(U),Os({baseUrl:window.location.origin,onClick:(_t,re)=>{const xe=_t.ctrlKey||_t.metaKey,Ce=new URL(re),nn=_t.target?.innerText||re,He=re.replace(window.location.origin,"");ot.captureEvent("click",nn,{attributes:{to:He}}),Ce.hash?xe?window.open(re,"_blank"):(w(re),Ft?.querySelector(`[id="${Ce.hash.slice(1)}"]`)?.scrollIntoView()):xe?window.open(re,"_blank"):w(re)}}),Nn({onLoading:()=>{},onLoaded:()=>{Ft.querySelector(".md-nav__title")?.removeAttribute("for")}}),Nn({onLoading:()=>{Array.from(Ft.querySelectorAll(".md-sidebar")).forEach(re=>{re.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[U,w,ot,f.name]);return(0,a.useEffect)(()=>{if(!$t)return()=>{};let Ft=!0;return te($t,wt).then(async _t=>{if(!_t?.innerHTML||!Ft)return;window.scroll({top:0});const re=await ae(_t);Ae(re)}),()=>{Ft=!1}},[$t,wt,te,ae]),jt};var Cn=t(41883),Fe=t(72020),Ie=t(99730);const Ne=()=>{const f=(0,Fe.YR)(),{shadowRoot:w}=(0,m.V)(),U=w?.querySelector('[data-md-component="content"]'),F=w?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let W=F?.querySelector('[data-techdocs-addons-location="primary sidebar"]');W||(W=document.createElement("div"),W.setAttribute("data-techdocs-addons-location","primary sidebar"),F?.prepend(W));const J=w?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let ot=J?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return ot||(ot=document.createElement("div"),ot.setAttribute("data-techdocs-addons-location","secondary sidebar"),J?.prepend(ot)),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Cn.A,{container:W,children:f.renderComponentsByLocation(Ie.e.PrimarySidebar)}),(0,n.jsx)(Cn.A,{container:U,children:f.renderComponentsByLocation(Ie.e.Content)}),(0,n.jsx)(Cn.A,{container:ot,children:f.renderComponentsByLocation(Ie.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"}}}),Kn=ye(f=>{const{withSearch:w=!0,onReady:U}=f,F=ws(),{entityMetadata:{value:W,loading:J},entityRef:ot,setShadowRoot:St}=(0,m.V)(),Ot=Ps(ot),Mt=window.location.pathname,wt=window.location.hash,$t=A(Ot),[jt]=S([`[id="${wt.slice(1)}"]`]);(0,a.useEffect)(()=>{$t||(wt?jt&&jt.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[Mt,wt,jt,$t]);const Ae=(0,a.useCallback)(ie=>{St(ie),U instanceof Function&&U()},[St,U]);return J===!1&&!W?(0,n.jsx)(M.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Ot?(0,n.jsx)(X.U,{children:(0,n.jsxs)(d.A,{container:!0,children:[(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(Ze,{})}),w&&(0,n.jsx)(d.A,{className:F.search,xs:"auto",item:!0,children:(0,n.jsx)(ue,{entityId:ot,entityTitle:W?.metadata?.title})}),(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(T,{element:Ot,onAppend:Ae,children:(0,n.jsx)(Ne,{})})})]})}):(0,n.jsx)(X.U,{children:(0,n.jsx)(d.A,{container:!0,children:(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(Ze,{})})})})}),Rs=null},45061:(H,b,t)=>{"use strict";t.d(b,{T:()=>G});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),y=t(67871),v=t(8859),A=t(34428),T=t(51372),O=t(58837),R=t(268),S=t(72501),B=t(72072);const k=(0,O.A)(Y=>({root:{textAlign:"left"},label:{color:Y.page.fontColor,fontWeight:Y.typography.fontWeightBold,letterSpacing:0,fontSize:Y.typography.fontSize,marginBottom:Y.spacing(1)/2,lineHeight:1},value:{color:(0,R.X4)(Y.page.fontColor,.8),fontSize:Y.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),M=({value:Y,className:rt,typographyRootComponent:it})=>(0,n.jsx)(S.A,{component:it??(typeof Y=="string"?"p":"span"),className:rt,children:Y});function X(Y){const{label:rt,value:it,url:pt,contentTypograpyRootComponent:At}=Y,Ct=k(),mt=(0,n.jsx)(M,{className:Ct.value,value:it||"<Unknown>",typographyRootComponent:At});return(0,n.jsx)(x.A,{item:!0,children:(0,n.jsxs)(S.A,{component:"span",className:Ct.root,children:[(0,n.jsx)(S.A,{className:Ct.label,children:rt}),pt?(0,n.jsx)(B.N_,{to:pt,children:mt}):mt]})})}var V=t(69814),N=t(72427),Q=t(65461),K=t(9222),_=t(45250),q=t(82779);const Z=(0,n.jsx)(m.A,{animation:"wave",variant:"text",height:40}),G=Y=>{const{children:rt}=Y,it=(0,u.YR)(),pt=(0,N.gf)(Q.U),{title:At,setTitle:Ct,subtitle:mt,setSubtitle:dt,entityRef:xt,metadata:{value:vt,loading:Tt},entityMetadata:{value:bt,loading:Dt}}=(0,g.V)();(0,a.useEffect)(()=>{vt&&(Ct(vt.site_name),dt(()=>{let{site_description:Et}=vt;return(!Et||Et==="None")&&(Et=""),Et}))},[vt,Ct,dt]);const zt=pt.getOptional("app.title")||"Backstage",Ht=[At,mt,zt].filter(Boolean).join(" | "),{locationMetadata:yt,spec:Lt}=bt||{},j=Lt?.lifecycle,$=bt?(0,y.t)(bt,T.vv):[],nt=(0,K.S)(q.rQ)(),ct=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(X,{label:(0,_.capitalize)(bt?.kind||"entity"),value:(0,n.jsx)(v.z,{color:"inherit",entityRef:xt,title:bt?.metadata.title,defaultKind:"Component"})}),$.length>0&&(0,n.jsx)(X,{label:"Owner",value:(0,n.jsx)(A.i,{color:"inherit",entityRefs:$,defaultKind:"group"})}),j?(0,n.jsx)(X,{label:"Lifecycle",value:String(j)}):null,yt&&yt.type!=="dir"&&yt.type!=="file"?(0,n.jsx)(X,{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:yt.target}):null]});return!Dt&&bt===void 0||!Tt&&vt===void 0?null:(0,n.jsxs)(V.Y,{type:"Documentation",typeLink:nt,title:At||Z,subtitle:mt===""?void 0:mt||Z,children:[(0,n.jsx)(d.A,{titleTemplate:"%s",children:(0,n.jsx)("title",{children:Ht})}),ct,rt,it.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:()=>y});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"}}),y=v=>{const{result:A,highlight:T,lineClamp:O=5,asListItem:R=!0,asLink:S=!0,title:B,icon:k}=v,M=p(),X=({children:Q})=>S?(0,n.jsx)(u.N_,{noTrack:!0,to:A.location,children:Q}):(0,n.jsx)(n.Fragment,{children:Q}),V=()=>{const Q=T?.fields.title?(0,n.jsx)(g.e,{text:T.fields.title,preTag:T.preTag,postTag:T.postTag}):A.title,K=T?.fields.entityTitle?(0,n.jsx)(g.e,{text:T.fields.entityTitle,preTag:T.preTag,postTag:T.postTag}):A.entityTitle,_=T?.fields.name?(0,n.jsx)(g.e,{text:T.fields.name,preTag:T.preTag,postTag:T.postTag}):A.name;return A?(0,n.jsx)(x.A,{className:M.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,n.jsx)(X,{children:B||(0,n.jsxs)(n.Fragment,{children:[Q," | ",K??_," docs"]})}),secondary:(0,n.jsx)(h.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:O,overflow:"hidden"},color:"textSecondary",variant:"body2",children:T?.fields.text?(0,n.jsx)(g.e,{text:T.fields.text,preTag:T.preTag,postTag:T.postTag}):A.text})}):null},N=({children:Q})=>R?(0,n.jsxs)(n.Fragment,{children:[k&&(0,n.jsx)(d.A,{children:typeof k=="function"?k(A):k}),(0,n.jsx)("div",{className:M.flexContainer,children:Q})]}):(0,n.jsx)(n.Fragment,{children:Q});return(0,n.jsx)(N,{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(85318)));var t=H.O()}]);})();
543
552
 
544
- //# sourceMappingURL=main.77670b27.js.map
553
+ //# sourceMappingURL=main.3e8a4663.js.map