@techdocs/cli 0.0.0-nightly-20241022023338 → 0.0.0-nightly-20241024023249
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 +15 -3
- package/dist/embedded-app/.config-schema.json +176 -5
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/index.html.tmpl +1 -1
- package/dist/embedded-app/static/{main.8f1d6ec3.js → main.13ab76c8.js} +1 -1
- package/dist/embedded-app/static/{main.8f1d6ec3.js.map → main.13ab76c8.js.map} +1 -1
- package/dist/embedded-app/static/{runtime.8f1d6ec3.js → runtime.13ab76c8.js} +1 -1
- package/dist/embedded-app/static/{runtime.8f1d6ec3.js.map → runtime.13ab76c8.js.map} +1 -1
- package/dist/embedded-app/static/{vendor.8f1d6ec3.js → vendor.13ab76c8.js} +1 -1
- package/dist/embedded-app/static/{vendor.8f1d6ec3.js.map → vendor.13ab76c8.js.map} +1 -1
- package/dist/package.json.cjs.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
# @techdocs/cli
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20241024023249
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- 702f41d: Bumped dev dependencies `@types/node`
|
|
7
8
|
- Updated dependencies
|
|
8
|
-
- @backstage/backend-defaults@0.0.0-nightly-
|
|
9
|
+
- @backstage/backend-defaults@0.0.0-nightly-20241024023249
|
|
10
|
+
- @backstage/cli-common@0.0.0-nightly-20241024023249
|
|
11
|
+
- @backstage/catalog-model@1.7.0
|
|
12
|
+
- @backstage/config@1.2.0
|
|
13
|
+
- @backstage/plugin-techdocs-node@0.0.0-nightly-20241024023249
|
|
14
|
+
|
|
15
|
+
## 1.8.22-next.0
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
- @backstage/backend-defaults@0.5.3-next.0
|
|
9
21
|
- @backstage/catalog-model@1.7.0
|
|
10
22
|
- @backstage/cli-common@0.1.14
|
|
11
23
|
- @backstage/config@1.2.0
|
|
12
|
-
- @backstage/plugin-techdocs-node@
|
|
24
|
+
- @backstage/plugin-techdocs-node@1.12.13-next.0
|
|
13
25
|
|
|
14
26
|
## 1.8.20
|
|
15
27
|
|
|
@@ -443,11 +443,7 @@
|
|
|
443
443
|
"visibility": "frontend",
|
|
444
444
|
"type": "string"
|
|
445
445
|
}
|
|
446
|
-
}
|
|
447
|
-
"required": [
|
|
448
|
-
"allowedCustomElementAttributeNameRegExp",
|
|
449
|
-
"allowedCustomElementTagNameRegExp"
|
|
450
|
-
]
|
|
446
|
+
}
|
|
451
447
|
}
|
|
452
448
|
}
|
|
453
449
|
}
|
|
@@ -1839,6 +1835,51 @@
|
|
|
1839
1835
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1840
1836
|
}
|
|
1841
1837
|
},
|
|
1838
|
+
{
|
|
1839
|
+
"path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/core-components/config.d.ts",
|
|
1840
|
+
"value": {
|
|
1841
|
+
"type": "object",
|
|
1842
|
+
"properties": {
|
|
1843
|
+
"auth": {
|
|
1844
|
+
"type": "object",
|
|
1845
|
+
"properties": {
|
|
1846
|
+
"autologout": {
|
|
1847
|
+
"description": "Autologout feature configuration",
|
|
1848
|
+
"type": "object",
|
|
1849
|
+
"properties": {
|
|
1850
|
+
"enabled": {
|
|
1851
|
+
"description": "Enable or disable the autologout feature",
|
|
1852
|
+
"visibility": "frontend",
|
|
1853
|
+
"type": "boolean"
|
|
1854
|
+
},
|
|
1855
|
+
"idleTimeoutMinutes": {
|
|
1856
|
+
"description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
|
|
1857
|
+
"visibility": "frontend",
|
|
1858
|
+
"type": "number"
|
|
1859
|
+
},
|
|
1860
|
+
"promptBeforeIdleSeconds": {
|
|
1861
|
+
"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.",
|
|
1862
|
+
"visibility": "frontend",
|
|
1863
|
+
"type": "number"
|
|
1864
|
+
},
|
|
1865
|
+
"useWorkerTimers": {
|
|
1866
|
+
"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.",
|
|
1867
|
+
"visibility": "frontend",
|
|
1868
|
+
"type": "boolean"
|
|
1869
|
+
},
|
|
1870
|
+
"logoutIfDisconnected": {
|
|
1871
|
+
"description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
|
|
1872
|
+
"visibility": "frontend",
|
|
1873
|
+
"type": "boolean"
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1881
|
+
}
|
|
1882
|
+
},
|
|
1842
1883
|
{
|
|
1843
1884
|
"path": "../../node_modules/@oriflame/backstage-plugin-score-card/node_modules/@backstage/core-components/config.d.ts",
|
|
1844
1885
|
"value": {
|
|
@@ -1884,6 +1925,24 @@
|
|
|
1884
1925
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1885
1926
|
}
|
|
1886
1927
|
},
|
|
1928
|
+
{
|
|
1929
|
+
"path": "../../node_modules/@backstage/backend-common/node_modules/@backstage/backend-plugin-api/config.d.ts",
|
|
1930
|
+
"value": {
|
|
1931
|
+
"type": "object",
|
|
1932
|
+
"properties": {
|
|
1933
|
+
"backend": {
|
|
1934
|
+
"type": "object",
|
|
1935
|
+
"properties": {
|
|
1936
|
+
"workingDirectory": {
|
|
1937
|
+
"description": "An absolute path to a directory that can be used as a working dir, for\nexample as scratch space for large operations.",
|
|
1938
|
+
"type": "string"
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
},
|
|
1943
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1944
|
+
}
|
|
1945
|
+
},
|
|
1887
1946
|
{
|
|
1888
1947
|
"path": "../integration-aws-node/config.d.ts",
|
|
1889
1948
|
"value": {
|
|
@@ -4343,6 +4402,118 @@
|
|
|
4343
4402
|
},
|
|
4344
4403
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
4345
4404
|
}
|
|
4405
|
+
},
|
|
4406
|
+
{
|
|
4407
|
+
"path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/frontend-app-api/config.d.ts",
|
|
4408
|
+
"value": {
|
|
4409
|
+
"type": "object",
|
|
4410
|
+
"properties": {
|
|
4411
|
+
"app": {
|
|
4412
|
+
"type": "object",
|
|
4413
|
+
"properties": {
|
|
4414
|
+
"experimental": {
|
|
4415
|
+
"type": "object",
|
|
4416
|
+
"properties": {
|
|
4417
|
+
"packages": {
|
|
4418
|
+
"visibility": "frontend",
|
|
4419
|
+
"deepVisibility": "frontend",
|
|
4420
|
+
"anyOf": [
|
|
4421
|
+
{
|
|
4422
|
+
"type": "object",
|
|
4423
|
+
"properties": {
|
|
4424
|
+
"include": {
|
|
4425
|
+
"type": "array",
|
|
4426
|
+
"items": {
|
|
4427
|
+
"type": "string"
|
|
4428
|
+
}
|
|
4429
|
+
},
|
|
4430
|
+
"exclude": {
|
|
4431
|
+
"type": "array",
|
|
4432
|
+
"items": {
|
|
4433
|
+
"type": "string"
|
|
4434
|
+
}
|
|
4435
|
+
}
|
|
4436
|
+
}
|
|
4437
|
+
},
|
|
4438
|
+
{
|
|
4439
|
+
"const": "all",
|
|
4440
|
+
"type": "string"
|
|
4441
|
+
}
|
|
4442
|
+
]
|
|
4443
|
+
}
|
|
4444
|
+
}
|
|
4445
|
+
},
|
|
4446
|
+
"routes": {
|
|
4447
|
+
"type": "object",
|
|
4448
|
+
"properties": {
|
|
4449
|
+
"bindings": {
|
|
4450
|
+
"description": "Maps external route references to regular route references. Both the\nkey and the value is expected to be on the form `<pluginId>.<routeId>`.\nIf the value is `false`, the route will be disabled even if it has a\ndefault mapping.",
|
|
4451
|
+
"deepVisibility": "frontend",
|
|
4452
|
+
"type": "object",
|
|
4453
|
+
"additionalProperties": {
|
|
4454
|
+
"anyOf": [
|
|
4455
|
+
{
|
|
4456
|
+
"const": false,
|
|
4457
|
+
"type": "boolean"
|
|
4458
|
+
},
|
|
4459
|
+
{
|
|
4460
|
+
"type": "string"
|
|
4461
|
+
}
|
|
4462
|
+
]
|
|
4463
|
+
}
|
|
4464
|
+
}
|
|
4465
|
+
}
|
|
4466
|
+
},
|
|
4467
|
+
"extensions": {
|
|
4468
|
+
"deepVisibility": "frontend",
|
|
4469
|
+
"type": "array",
|
|
4470
|
+
"items": {
|
|
4471
|
+
"anyOf": [
|
|
4472
|
+
{
|
|
4473
|
+
"type": "object",
|
|
4474
|
+
"additionalProperties": {
|
|
4475
|
+
"anyOf": [
|
|
4476
|
+
{
|
|
4477
|
+
"type": "object",
|
|
4478
|
+
"properties": {
|
|
4479
|
+
"attachTo": {
|
|
4480
|
+
"type": "object",
|
|
4481
|
+
"properties": {
|
|
4482
|
+
"id": {
|
|
4483
|
+
"type": "string"
|
|
4484
|
+
},
|
|
4485
|
+
"input": {
|
|
4486
|
+
"type": "string"
|
|
4487
|
+
}
|
|
4488
|
+
},
|
|
4489
|
+
"required": [
|
|
4490
|
+
"id",
|
|
4491
|
+
"input"
|
|
4492
|
+
]
|
|
4493
|
+
},
|
|
4494
|
+
"disabled": {
|
|
4495
|
+
"type": "boolean"
|
|
4496
|
+
},
|
|
4497
|
+
"config": {}
|
|
4498
|
+
}
|
|
4499
|
+
},
|
|
4500
|
+
{
|
|
4501
|
+
"type": "boolean"
|
|
4502
|
+
}
|
|
4503
|
+
]
|
|
4504
|
+
}
|
|
4505
|
+
},
|
|
4506
|
+
{
|
|
4507
|
+
"type": "string"
|
|
4508
|
+
}
|
|
4509
|
+
]
|
|
4510
|
+
}
|
|
4511
|
+
}
|
|
4512
|
+
}
|
|
4513
|
+
}
|
|
4514
|
+
},
|
|
4515
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
4516
|
+
}
|
|
4346
4517
|
}
|
|
4347
4518
|
],
|
|
4348
4519
|
"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.
|
|
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.13ab76c8.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.e7427c94.js"></script><script defer="defer" src="/static/vendor.13ab76c8.js"></script><script defer="defer" src="/static/main.13ab76c8.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.
|
|
45
|
+
<meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.13ab76c8.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.e7427c94.js"></script><script defer src="<%= publicPath %>/static/vendor.13ab76c8.js"></script><script defer src="<%= publicPath %>/static/main.13ab76c8.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:`),St=K?.type==="github"?(0,hs.F)(F.href,"blob"):F.href,$t=Un()(St),wt=`/${$t.organization}/${$t.name}`,Ft=U.cloneNode();switch(K?.type){case"gitlab":Ft.href=`${F.origin}${wt}/issues/new?issue[title]=${rt}&issue[description]=${Ct}`;break;case"github":Ft.href=`${F.origin}${wt}/issues/new?title=${rt}&body=${Ct}`;break;default:return R}return ln(a.createElement(gs.A),Ft),Ft.style.paddingLeft="5px",Ft.title="Leave feedback for this page",Ft.id="git-feedback-link",U?.insertAdjacentElement("beforebegin",Ft),R};var An=t(38097);const xn=(0,x.A)(f=>({button:{color:f.palette.primary.light,textDecoration:"underline"}})),fs=({message:f,handleButtonClick:R,autoHideDuration:U})=>{const F=xn(),[K,J]=(0,a.useState)(!0),rt=()=>J(!1);return(0,n.jsx)(An.A,{open:K,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:U,color:"primary",onClose:rt,message:f,action:(0,n.jsx)(j.A,{classes:{root:F.button},size:"small",onClick:()=>{rt(),R()},children:"Redirect now"})})},$n=(f,R)=>{const F=K=>{const J=Ln(window.location.href),rt=new URL(K,J);if(rt.hostname!==window.location.hostname){const St=window.location.pathname,$t=St.indexOf(R),wt=St.slice(0,$t+R.length);return new URL(wt,J).href}return rt.href};return K=>{for(const J of Array.from(K.querySelectorAll("meta")))if(J.getAttribute("http-equiv")==="refresh"){const rt=J.getAttribute("content")?.split("url=");if(!rt||rt.length<2)return K;const Ct=rt[1],St=F(Ct);if(window.location.href===St)return K;const $t=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(St),autoHideDuration:3e3}),$t),document.body.appendChild($t),setTimeout(()=>{f(St)},3e3),K}return K}},Fn=()=>f=>(setTimeout(()=>{const R=f?.querySelectorAll("li.md-nav__item--active");R.length!==0&&(R.forEach(F=>{const K=F?.querySelector("input");K?.checked||K?.click()}),R[R.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[R,U]=(0,a.useState)(!1),[,F]=(0,As.A)(),K=(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:R,onClose:J,leaveDelay:1e3,children:(0,n.jsx)(Mt.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:K,children:(0,n.jsx)(Cs,{})})})},Ss=f=>R=>{const U=R.querySelectorAll("pre > code");for(const F of U){const K=F.textContent||"",J=document.createElement("div");F?.parentElement?.prepend(J),ln((0,n.jsx)(ms.A,{theme:f,children:(0,n.jsx)(bs,{text:K})}),J)}return R},Os=({baseUrl:f,onClick:R})=>U=>(Array.from(U.getElementsByTagName("a")).forEach(F=>{F.addEventListener("click",K=>{const rt=F.getAttribute("href");rt&&rt.startsWith(f)&&!F.hasAttribute("download")&&(K.preventDefault(),R(K,rt))})}),U),Nn=({onLoading:f,onLoaded:R})=>U=>(f(),U.addEventListener(p,function F(){R(),U.removeEventListener(p,F)}),U);function Ts(f,R){const U=new URL(R),F=`${U.origin}${U.pathname.replace(/\/$/,"")}`,K=f.replace(F,"").replace(/^\/+/,""),J=new URL(`http://localhost/${K}`);return`${J.pathname}${J.search}${J.hash}`}function kn(){const f=(0,a.useRef)((0,Ut.Zp)()),U=(0,st.gf)(Y.U).getOptionalString("app.baseUrl");return(0,a.useCallback)(K=>{let J=K;if(U)try{J=Ts(K,U)}catch{}f.current(J)},[U])}const Wn="screen and (max-width: 76.1875em)",Ps=f=>{const R=kn(),U=(0,l.A)(),F=(0,L.A)(Wn),K=Re(),J=as(),rt=(0,X.s)(),Ct=(0,st.gf)(qe.s),St=(0,st.gf)(E.Y),{state:$t,path:wt,content:Ft}=$e(),[jt,ue]=(0,a.useState)(null),ie=v(jt),Wt=(0,a.useCallback)(()=>{if(!jt)return;jt.querySelectorAll(".md-sidebar").forEach(_t=>{if(F)_t.style.top="0px";else{const Ce=document?.querySelector(".techdocs-reader-page")?.getBoundingClientRect().top??0;let he=jt.getBoundingClientRect().top??0;const He=jt.querySelector(".md-container > .md-tabs")?.getBoundingClientRect().height??0;he<Ce&&(he=Ce);const dn=Math.max(he,0)+He;_t.style.top=`${dn}px`;const me=jt.querySelector(".md-container > .md-footer")?.getBoundingClientRect().top??window.innerHeight;_t.style.height=`${me-dn}px`}_t.style.setProperty("opacity","1")})},[jt,F]);(0,a.useEffect)(()=>(window.addEventListener("resize",Wt),window.addEventListener("scroll",Wt,!0),()=>{window.removeEventListener("resize",Wt),window.removeEventListener("scroll",Wt,!0)}),[jt,Wt]);const fe=(0,a.useCallback)(()=>{if(!jt)return;const Nt=jt.querySelector(".md-footer");Nt&&(Nt.style.width=`${jt.getBoundingClientRect().width}px`)},[jt]);(0,a.useEffect)(()=>(window.addEventListener("resize",fe),()=>{window.removeEventListener("resize",fe)}),[jt,fe]),(0,a.useEffect)(()=>{ie||(fe(),Wt())},[$t,ie,fe,Wt]);const te=(0,a.useCallback)((Nt,_t)=>En(Nt,[K,Dn({techdocsStorageApi:Ct,entityId:f,path:_t}),cs(),ds(),us(),jn(),ps(St),J]),[f,St,Ct,K,J]),ae=(0,a.useCallback)(async Nt=>En(Nt,[$n(R,f.name),Fn(),Ss(U),Os({baseUrl:window.location.origin,onClick:(_t,re)=>{const Ce=_t.ctrlKey||_t.metaKey,he=new URL(re),nn=_t.target?.innerText||re,He=re.replace(window.location.origin,"");rt.captureEvent("click",nn,{attributes:{to:He}}),he.hash?Ce?window.open(re,"_blank"):(window.location.pathname!==he.pathname?R(re):window.history.pushState(null,document.title,he.hash),Nt?.querySelector(`[id="${he.hash.slice(1)}"]`)?.scrollIntoView()):Ce?window.open(re,"_blank"):R(re)}}),Nn({onLoading:()=>{},onLoaded:()=>{Nt.querySelector(".md-nav__title")?.removeAttribute("for")}}),Nn({onLoading:()=>{Array.from(Nt.querySelectorAll(".md-sidebar")).forEach(re=>{re.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[U,R,rt,f.name]);return(0,a.useEffect)(()=>{if(!Ft)return()=>{};let Nt=!0;return te(Ft,wt).then(async _t=>{if(!_t?.innerHTML||!Nt||!window.location.pathname.endsWith(wt))return;window.scroll({top:0});const re=await ae(_t);ue(re)}),()=>{Nt=!1}},[Ft,wt,te,ae]),jt};var Cn=t(41883),Ne=t(72020),Ie=t(99730);const ke=()=>{const f=(0,Ne.YR)(),{shadowRoot:R}=(0,m.V)(),U=R?.querySelector('[data-md-component="content"]'),F=R?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let K=F?.querySelector('[data-techdocs-addons-location="primary sidebar"]');K||(K=document.createElement("div"),K.setAttribute("data-techdocs-addons-location","primary sidebar"),F?.prepend(K));const J=R?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let rt=J?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return rt||(rt=document.createElement("div"),rt.setAttribute("data-techdocs-addons-location","secondary sidebar"),J?.prepend(rt)),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Cn.A,{container:K,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:rt,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=Ae(f=>{const{withSearch:R=!0,onReady:U}=f,F=ws(),{entityMetadata:{value:K,loading:J},entityRef:rt,setShadowRoot:Ct}=(0,m.V)(),{state:St}=$e(),$t=Ps(rt),wt=window.location.pathname,Ft=window.location.hash,jt=v($t),[ue]=I([`[id="${Ft.slice(1)}"]`]);(0,a.useEffect)(()=>{jt||(Ft?ue&&ue.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[wt,Ft,ue,jt]);const ie=(0,a.useCallback)(Wt=>{Ct(Wt),U instanceof Function&&U()},[Ct,U]);return J===!1&&!K?(0,n.jsx)(N.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):$t?(0,n.jsx)(D.U,{children:(0,n.jsxs)(d.A,{container:!0,children:[(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(Ze,{})}),R&&(0,n.jsx)(d.A,{className:F.search,xs:"auto",item:!0,children:(0,n.jsx)(ge,{entityId:rt,entityTitle:K?.metadata?.title})}),(0,n.jsxs)(d.A,{xs:12,item:!0,children:[(St==="CHECKING"||jt)&&(0,n.jsx)(Z.k,{}),(0,n.jsx)(A,{element:$t,onAppend:ie,children:(0,n.jsx)(ke,{})})]})]})}):(0,n.jsx)(D.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:()=>V});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),P=t(51372),T=t(58837),I=t(268),S=t(72501),B=t(72072);const N=(0,T.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,I.X4)(Y.page.fontColor,.8),fontSize:Y.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),D=({value:Y,className:nt,typographyRootComponent:at})=>(0,n.jsx)(S.A,{component:at??(typeof Y=="string"?"p":"span"),className:nt,children:Y});function Z(Y){const{label:nt,value:at,url:ft,contentTypograpyRootComponent:Et}=Y,bt=N(),mt=(0,n.jsx)(D,{className:bt.value,value:at||"<Unknown>",typographyRootComponent:Et});return(0,n.jsx)(x.A,{item:!0,children:(0,n.jsxs)(S.A,{component:"span",className:bt.root,children:[(0,n.jsx)(S.A,{className:bt.label,children:nt}),ft?(0,n.jsx)(B.N_,{to:ft,children:mt}):mt]})})}var G=t(69814),k=t(72427),Q=t(65461),z=t(9222),_=t(45250),st=t(82779);const X=(0,n.jsx)(m.A,{animation:"wave",variant:"text",height:40}),V=Y=>{const{children:nt}=Y,at=(0,u.YR)(),ft=(0,k.gf)(Q.U),{title:Et,setTitle:bt,subtitle:mt,setSubtitle:dt,entityRef:At,metadata:{value:vt,loading:Tt},entityMetadata:{value:Ot,loading:Lt}}=(0,g.V)();(0,a.useEffect)(()=>{vt&&(bt(vt.site_name),dt(()=>{let{site_description:xt}=vt;return(!xt||xt==="None")&&(xt=""),xt}))},[vt,bt,dt]);const kt=ft.getOptional("app.title")||"Backstage",Mt=[Et,mt,kt].filter(Boolean).join(" | "),{locationMetadata:gt,spec:Dt}=Ot||{},j=Dt?.lifecycle,$=Ot?(0,y.t)(Ot,P.vv):[],et=(0,z.S)(st.rQ)(),ct=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Z,{label:(0,_.capitalize)(Ot?.kind||"entity"),value:(0,n.jsx)(v.z,{color:"inherit",entityRef:At,title:Ot?.metadata.title,defaultKind:"Component"})}),$.length>0&&(0,n.jsx)(Z,{label:"Owner",value:(0,n.jsx)(A.i,{color:"inherit",entityRefs:$,defaultKind:"group"})}),j?(0,n.jsx)(Z,{label:"Lifecycle",value:String(j)}):null,gt&>.type!=="dir"&>.type!=="file"?(0,n.jsx)(Z,{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:gt.target}):null]});return!Lt&&Ot===void 0||!Tt&&vt===void 0?null:(0,n.jsxs)(G.Y,{type:"Documentation",typeLink:et,title:Et||X,subtitle:mt===""?void 0:mt||X,children:[(0,n.jsx)(d.A,{titleTemplate:"%s",children:(0,n.jsx)("title",{children:Mt})}),ct,nt,at.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:P,lineClamp:T=5,asListItem:I=!0,asLink:S=!0,title:B,icon:N}=v,D=p(),Z=({children:Q})=>S?(0,n.jsx)(u.N_,{noTrack:!0,to:A.location,children:Q}):(0,n.jsx)(n.Fragment,{children:Q}),G=()=>{const Q=P?.fields.title?(0,n.jsx)(g.e,{text:P.fields.title,preTag:P.preTag,postTag:P.postTag}):A.title,z=P?.fields.entityTitle?(0,n.jsx)(g.e,{text:P.fields.entityTitle,preTag:P.preTag,postTag:P.postTag}):A.entityTitle,_=P?.fields.name?(0,n.jsx)(g.e,{text:P.fields.name,preTag:P.preTag,postTag:P.postTag}):A.name;return A?(0,n.jsx)(x.A,{className:D.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,n.jsx)(Z,{children:B||(0,n.jsxs)(n.Fragment,{children:[Q," | ",z??_," 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}):A.text})}):null},k=({children:Q})=>I?(0,n.jsxs)(n.Fragment,{children:[N&&(0,n.jsx)(d.A,{children:typeof N=="function"?N(A):N}),(0,n.jsx)("div",{className:D.flexContainer,children:Q})]}):(0,n.jsx)(n.Fragment,{children:Q});return(0,n.jsx)(k,{children:(0,n.jsx)(G,{})})}},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()}]);})();
|
|
552
552
|
|
|
553
|
-
//# sourceMappingURL=main.
|
|
553
|
+
//# sourceMappingURL=main.13ab76c8.js.map
|