@techdocs/cli 0.0.0-nightly-20241022023338 → 0.0.0-nightly-20241023023252

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,27 @@
1
1
  # @techdocs/cli
2
2
 
3
- ## 0.0.0-nightly-20241022023338
3
+ ## 0.0.0-nightly-20241023023252
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-20241022023338
9
+ - @backstage/backend-defaults@0.0.0-nightly-20241023023252
10
+ - @backstage/cli-common@0.0.0-nightly-20241023023252
11
+ - @backstage/catalog-model@1.7.0
12
+ - @backstage/config@1.2.0
13
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20241023023252
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@0.0.0-nightly-20241022023338
24
+ - @backstage/plugin-techdocs-node@1.12.13-next.0
13
25
 
14
26
  ## 1.8.20
15
27
 
@@ -1095,6 +1095,24 @@
1095
1095
  "$schema": "http://json-schema.org/draft-07/schema#"
1096
1096
  }
1097
1097
  },
1098
+ {
1099
+ "path": "../backend-plugin-api/config.d.ts",
1100
+ "value": {
1101
+ "type": "object",
1102
+ "properties": {
1103
+ "backend": {
1104
+ "type": "object",
1105
+ "properties": {
1106
+ "workingDirectory": {
1107
+ "description": "An absolute path to a directory that can be used as a working dir, for\nexample as scratch space for large operations.",
1108
+ "type": "string"
1109
+ }
1110
+ }
1111
+ }
1112
+ },
1113
+ "$schema": "http://json-schema.org/draft-07/schema#"
1114
+ }
1115
+ },
1098
1116
  {
1099
1117
  "path": "../../node_modules/@backstage/backend-common/config.d.ts",
1100
1118
  "value": {
@@ -1520,18 +1538,45 @@
1520
1538
  }
1521
1539
  },
1522
1540
  {
1523
- "path": "../backend-plugin-api/config.d.ts",
1541
+ "path": "../../plugins/auth-backend-module-guest-provider/config.d.ts",
1524
1542
  "value": {
1525
1543
  "type": "object",
1526
1544
  "properties": {
1527
- "backend": {
1545
+ "auth": {
1546
+ "description": "Configuration options for the auth plugin",
1528
1547
  "type": "object",
1529
1548
  "properties": {
1530
- "workingDirectory": {
1531
- "description": "An absolute path to a directory that can be used as a working dir, for\nexample as scratch space for large operations.",
1532
- "type": "string"
1549
+ "providers": {
1550
+ "type": "object",
1551
+ "properties": {
1552
+ "guest": {
1553
+ "type": "object",
1554
+ "properties": {
1555
+ "userEntityRef": {
1556
+ "description": "The entity reference to use for the guest user.",
1557
+ "default": "user:development/guest",
1558
+ "type": "string"
1559
+ },
1560
+ "ownershipEntityRefs": {
1561
+ "description": "A list of entity references to user for ownership of the guest user if the user\n is not found in the catalog.",
1562
+ "default": "[userEntityRef]",
1563
+ "type": "array",
1564
+ "items": {
1565
+ "type": "string"
1566
+ }
1567
+ },
1568
+ "dangerouslyAllowOutsideDevelopment": {
1569
+ "description": "Allow users to sign in with the guest provider outside of their development environments.",
1570
+ "type": "boolean"
1571
+ }
1572
+ }
1573
+ }
1574
+ }
1533
1575
  }
1534
- }
1576
+ },
1577
+ "required": [
1578
+ "providers"
1579
+ ]
1535
1580
  }
1536
1581
  },
1537
1582
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -1795,45 +1840,45 @@
1795
1840
  }
1796
1841
  },
1797
1842
  {
1798
- "path": "../../plugins/auth-backend-module-guest-provider/config.d.ts",
1843
+ "path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/core-components/config.d.ts",
1799
1844
  "value": {
1800
1845
  "type": "object",
1801
1846
  "properties": {
1802
1847
  "auth": {
1803
- "description": "Configuration options for the auth plugin",
1804
1848
  "type": "object",
1805
1849
  "properties": {
1806
- "providers": {
1850
+ "autologout": {
1851
+ "description": "Autologout feature configuration",
1807
1852
  "type": "object",
1808
1853
  "properties": {
1809
- "guest": {
1810
- "type": "object",
1811
- "properties": {
1812
- "userEntityRef": {
1813
- "description": "The entity reference to use for the guest user.",
1814
- "default": "user:development/guest",
1815
- "type": "string"
1816
- },
1817
- "ownershipEntityRefs": {
1818
- "description": "A list of entity references to user for ownership of the guest user if the user\n is not found in the catalog.",
1819
- "default": "[userEntityRef]",
1820
- "type": "array",
1821
- "items": {
1822
- "type": "string"
1823
- }
1824
- },
1825
- "dangerouslyAllowOutsideDevelopment": {
1826
- "description": "Allow users to sign in with the guest provider outside of their development environments.",
1827
- "type": "boolean"
1828
- }
1829
- }
1854
+ "enabled": {
1855
+ "description": "Enable or disable the autologout feature",
1856
+ "visibility": "frontend",
1857
+ "type": "boolean"
1858
+ },
1859
+ "idleTimeoutMinutes": {
1860
+ "description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
1861
+ "visibility": "frontend",
1862
+ "type": "number"
1863
+ },
1864
+ "promptBeforeIdleSeconds": {
1865
+ "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.",
1866
+ "visibility": "frontend",
1867
+ "type": "number"
1868
+ },
1869
+ "useWorkerTimers": {
1870
+ "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.",
1871
+ "visibility": "frontend",
1872
+ "type": "boolean"
1873
+ },
1874
+ "logoutIfDisconnected": {
1875
+ "description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
1876
+ "visibility": "frontend",
1877
+ "type": "boolean"
1830
1878
  }
1831
1879
  }
1832
1880
  }
1833
- },
1834
- "required": [
1835
- "providers"
1836
- ]
1881
+ }
1837
1882
  }
1838
1883
  },
1839
1884
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -1884,6 +1929,24 @@
1884
1929
  "$schema": "http://json-schema.org/draft-07/schema#"
1885
1930
  }
1886
1931
  },
1932
+ {
1933
+ "path": "../../node_modules/@backstage/backend-common/node_modules/@backstage/backend-plugin-api/config.d.ts",
1934
+ "value": {
1935
+ "type": "object",
1936
+ "properties": {
1937
+ "backend": {
1938
+ "type": "object",
1939
+ "properties": {
1940
+ "workingDirectory": {
1941
+ "description": "An absolute path to a directory that can be used as a working dir, for\nexample as scratch space for large operations.",
1942
+ "type": "string"
1943
+ }
1944
+ }
1945
+ }
1946
+ },
1947
+ "$schema": "http://json-schema.org/draft-07/schema#"
1948
+ }
1949
+ },
1887
1950
  {
1888
1951
  "path": "../integration-aws-node/config.d.ts",
1889
1952
  "value": {
@@ -4343,6 +4406,118 @@
4343
4406
  },
4344
4407
  "$schema": "http://json-schema.org/draft-07/schema#"
4345
4408
  }
4409
+ },
4410
+ {
4411
+ "path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/frontend-app-api/config.d.ts",
4412
+ "value": {
4413
+ "type": "object",
4414
+ "properties": {
4415
+ "app": {
4416
+ "type": "object",
4417
+ "properties": {
4418
+ "experimental": {
4419
+ "type": "object",
4420
+ "properties": {
4421
+ "packages": {
4422
+ "visibility": "frontend",
4423
+ "deepVisibility": "frontend",
4424
+ "anyOf": [
4425
+ {
4426
+ "type": "object",
4427
+ "properties": {
4428
+ "include": {
4429
+ "type": "array",
4430
+ "items": {
4431
+ "type": "string"
4432
+ }
4433
+ },
4434
+ "exclude": {
4435
+ "type": "array",
4436
+ "items": {
4437
+ "type": "string"
4438
+ }
4439
+ }
4440
+ }
4441
+ },
4442
+ {
4443
+ "const": "all",
4444
+ "type": "string"
4445
+ }
4446
+ ]
4447
+ }
4448
+ }
4449
+ },
4450
+ "routes": {
4451
+ "type": "object",
4452
+ "properties": {
4453
+ "bindings": {
4454
+ "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.",
4455
+ "deepVisibility": "frontend",
4456
+ "type": "object",
4457
+ "additionalProperties": {
4458
+ "anyOf": [
4459
+ {
4460
+ "const": false,
4461
+ "type": "boolean"
4462
+ },
4463
+ {
4464
+ "type": "string"
4465
+ }
4466
+ ]
4467
+ }
4468
+ }
4469
+ }
4470
+ },
4471
+ "extensions": {
4472
+ "deepVisibility": "frontend",
4473
+ "type": "array",
4474
+ "items": {
4475
+ "anyOf": [
4476
+ {
4477
+ "type": "object",
4478
+ "additionalProperties": {
4479
+ "anyOf": [
4480
+ {
4481
+ "type": "object",
4482
+ "properties": {
4483
+ "attachTo": {
4484
+ "type": "object",
4485
+ "properties": {
4486
+ "id": {
4487
+ "type": "string"
4488
+ },
4489
+ "input": {
4490
+ "type": "string"
4491
+ }
4492
+ },
4493
+ "required": [
4494
+ "id",
4495
+ "input"
4496
+ ]
4497
+ },
4498
+ "disabled": {
4499
+ "type": "boolean"
4500
+ },
4501
+ "config": {}
4502
+ }
4503
+ },
4504
+ {
4505
+ "type": "boolean"
4506
+ }
4507
+ ]
4508
+ }
4509
+ },
4510
+ {
4511
+ "type": "string"
4512
+ }
4513
+ ]
4514
+ }
4515
+ }
4516
+ }
4517
+ }
4518
+ },
4519
+ "$schema": "http://json-schema.org/draft-07/schema#"
4520
+ }
4346
4521
  }
4347
4522
  ],
4348
4523
  "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.8f1d6ec3.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.8f1d6ec3.js"></script><script defer="defer" src="/static/main.8f1d6ec3.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.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.8f1d6ec3.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.8f1d6ec3.js"></script><script defer src="<%= publicPath %>/static/main.8f1d6ec3.js"></script></head>
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&&gt.type!=="dir"&&gt.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.8f1d6ec3.js.map
553
+ //# sourceMappingURL=main.13ab76c8.js.map