@techdocs/cli 0.0.0-nightly-20250801025803 → 0.0.0-nightly-20250803025643

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,15 +1,15 @@
1
1
  # @techdocs/cli
2
2
 
3
- ## 0.0.0-nightly-20250801025803
3
+ ## 0.0.0-nightly-20250803025643
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies
8
- - @backstage/backend-defaults@0.0.0-nightly-20250801025803
9
- - @backstage/plugin-techdocs-node@0.0.0-nightly-20250801025803
8
+ - @backstage/backend-defaults@0.0.0-nightly-20250803025643
10
9
  - @backstage/catalog-model@1.7.5
11
10
  - @backstage/cli-common@0.1.15
12
11
  - @backstage/config@1.3.3
12
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20250803025643
13
13
 
14
14
  ## 1.9.6-next.0
15
15
 
@@ -1185,52 +1185,6 @@
1185
1185
  },
1186
1186
  "packageName": "@backstage/backend-plugin-api"
1187
1187
  },
1188
- {
1189
- "path": "../../plugins/auth-backend-module-guest-provider/config.d.ts",
1190
- "value": {
1191
- "type": "object",
1192
- "properties": {
1193
- "auth": {
1194
- "description": "Configuration options for the auth plugin",
1195
- "type": "object",
1196
- "properties": {
1197
- "providers": {
1198
- "type": "object",
1199
- "properties": {
1200
- "guest": {
1201
- "type": "object",
1202
- "properties": {
1203
- "userEntityRef": {
1204
- "description": "The entity reference to use for the guest user.",
1205
- "default": "user:development/guest",
1206
- "type": "string"
1207
- },
1208
- "ownershipEntityRefs": {
1209
- "description": "A list of entity references to user for ownership of the guest user if the user\n is not found in the catalog.",
1210
- "default": "[userEntityRef]",
1211
- "type": "array",
1212
- "items": {
1213
- "type": "string"
1214
- }
1215
- },
1216
- "dangerouslyAllowOutsideDevelopment": {
1217
- "description": "Allow users to sign in with the guest provider outside of their development environments.",
1218
- "type": "boolean"
1219
- }
1220
- }
1221
- }
1222
- }
1223
- }
1224
- },
1225
- "required": [
1226
- "providers"
1227
- ]
1228
- }
1229
- },
1230
- "$schema": "http://json-schema.org/draft-07/schema#"
1231
- },
1232
- "packageName": "@backstage/plugin-auth-backend-module-guest-provider"
1233
- },
1234
1188
  {
1235
1189
  "path": "../../plugins/auth-backend/config.d.ts",
1236
1190
  "value": {
@@ -1367,103 +1321,50 @@
1367
1321
  "packageName": "@backstage/plugin-auth-backend"
1368
1322
  },
1369
1323
  {
1370
- "path": "../backend-app-api/config.d.ts",
1324
+ "path": "../../plugins/auth-backend-module-guest-provider/config.d.ts",
1371
1325
  "value": {
1372
1326
  "type": "object",
1373
1327
  "properties": {
1374
- "backend": {
1328
+ "auth": {
1329
+ "description": "Configuration options for the auth plugin",
1375
1330
  "type": "object",
1376
1331
  "properties": {
1377
- "packages": {
1378
- "description": "Used by the feature discovery service",
1379
- "anyOf": [
1380
- {
1381
- "type": "object",
1382
- "properties": {
1383
- "include": {
1384
- "type": "array",
1385
- "items": {
1386
- "type": "string"
1387
- }
1388
- },
1389
- "exclude": {
1390
- "type": "array",
1391
- "items": {
1392
- "type": "string"
1393
- }
1394
- }
1395
- }
1396
- },
1397
- {
1398
- "const": "all",
1399
- "type": "string"
1400
- }
1401
- ]
1402
- },
1403
- "startup": {
1332
+ "providers": {
1404
1333
  "type": "object",
1405
1334
  "properties": {
1406
- "default": {
1335
+ "guest": {
1407
1336
  "type": "object",
1408
1337
  "properties": {
1409
- "onPluginBootFailure": {
1410
- "description": "The default value for `onPluginBootFailure` if not specified for a particular plugin.\nThis defaults to 'abort', which means `onPluginBootFailure: continue` must be specified\nfor backend startup to continue on plugin boot failure. This can also be set to\n'continue', which flips the logic for individual plugins so that they must be set to\n`onPluginBootFailure: abort` to be required.",
1411
- "enum": [
1412
- "abort",
1413
- "continue"
1414
- ],
1338
+ "userEntityRef": {
1339
+ "description": "The entity reference to use for the guest user.",
1340
+ "default": "user:development/guest",
1415
1341
  "type": "string"
1416
1342
  },
1417
- "onPluginModuleBootFailure": {
1418
- "description": "The default value for `onPluginModuleBootFailure` if not specified for a particular plugin module.\nThis defaults to 'abort', which means `onPluginModuleBootFailure: continue` must be specified\nfor backend startup to continue on plugin module boot failure. This can also be set to\n'continue', which flips the logic for individual plugin modules so that they must be set to\n`onPluginModuleBootFailure: abort` to be required.",
1419
- "enum": [
1420
- "abort",
1421
- "continue"
1422
- ],
1423
- "type": "string"
1424
- }
1425
- }
1426
- },
1427
- "plugins": {
1428
- "type": "object",
1429
- "additionalProperties": {
1430
- "type": "object",
1431
- "properties": {
1432
- "onPluginBootFailure": {
1433
- "description": "Used to control backend startup behavior when this plugin fails to boot up. Setting\nthis to `continue` allows the backend to continue starting up, even if this plugin\nfails. This can enable leaving a crashing plugin installed, but still permit backend\nstartup, which may help troubleshoot data-dependent issues. Plugin failures for plugins\nset to `abort` are fatal (this is the default unless overridden by the `default`\nsetting).",
1434
- "enum": [
1435
- "abort",
1436
- "continue"
1437
- ],
1343
+ "ownershipEntityRefs": {
1344
+ "description": "A list of entity references to user for ownership of the guest user if the user\n is not found in the catalog.",
1345
+ "default": "[userEntityRef]",
1346
+ "type": "array",
1347
+ "items": {
1438
1348
  "type": "string"
1439
- },
1440
- "modules": {
1441
- "type": "object",
1442
- "additionalProperties": {
1443
- "type": "object",
1444
- "properties": {
1445
- "onPluginModuleBootFailure": {
1446
- "description": "Used to control backend startup behavior when this plugin module fails to boot up. Setting\nthis to `continue` allows the backend to continue starting up, even if this plugin\nmodule fails. This can enable leaving a crashing plugin installed, but still permit backend\nstartup, which may help troubleshoot data-dependent issues. Plugin module failures for plugin modules\nset to `abort` are fatal (this is the default unless overridden by the `default`\nsetting).",
1447
- "enum": [
1448
- "abort",
1449
- "continue"
1450
- ],
1451
- "type": "string"
1452
- }
1453
- }
1454
- }
1455
1349
  }
1350
+ },
1351
+ "dangerouslyAllowOutsideDevelopment": {
1352
+ "description": "Allow users to sign in with the guest provider outside of their development environments.",
1353
+ "type": "boolean"
1456
1354
  }
1457
1355
  }
1458
1356
  }
1459
1357
  }
1460
1358
  }
1461
- }
1359
+ },
1360
+ "required": [
1361
+ "providers"
1362
+ ]
1462
1363
  }
1463
1364
  },
1464
1365
  "$schema": "http://json-schema.org/draft-07/schema#"
1465
1366
  },
1466
- "packageName": "@backstage/backend-app-api"
1367
+ "packageName": "@backstage/plugin-auth-backend-module-guest-provider"
1467
1368
  },
1468
1369
  {
1469
1370
  "path": "../backend-defaults/config.d.ts",
@@ -2726,30 +2627,6 @@
2726
2627
  },
2727
2628
  "packageName": "@backstage/backend-defaults"
2728
2629
  },
2729
- {
2730
- "path": "../../plugins/events-node/config.d.ts",
2731
- "value": {
2732
- "type": "object",
2733
- "properties": {
2734
- "events": {
2735
- "type": "object",
2736
- "properties": {
2737
- "useEventBus": {
2738
- "description": "Whether to use the event bus API in the events plugin backend to\ndistribute events across multiple instances when publishing and\nsubscribing to events.\n\nThe default is 'auto', which means means that the event bus API will be\nused if it's available, but will be disabled if the events backend\nreturns a 404.\n\nIf set to 'never', the events service will only ever publish events\nlocally to the same instance, while if set to 'always', the event bus API\nwill never be disabled, even if the events backend returns a 404.",
2739
- "enum": [
2740
- "always",
2741
- "auto",
2742
- "never"
2743
- ],
2744
- "type": "string"
2745
- }
2746
- }
2747
- }
2748
- },
2749
- "$schema": "http://json-schema.org/draft-07/schema#"
2750
- },
2751
- "packageName": "@backstage/plugin-events-node"
2752
- },
2753
2630
  {
2754
2631
  "path": "../../plugins/auth-backend-module-google-provider/config.d.ts",
2755
2632
  "value": {
@@ -2874,6 +2751,129 @@
2874
2751
  },
2875
2752
  "packageName": "@backstage/plugin-auth-backend-module-google-provider"
2876
2753
  },
2754
+ {
2755
+ "path": "../backend-app-api/config.d.ts",
2756
+ "value": {
2757
+ "type": "object",
2758
+ "properties": {
2759
+ "backend": {
2760
+ "type": "object",
2761
+ "properties": {
2762
+ "packages": {
2763
+ "description": "Used by the feature discovery service",
2764
+ "anyOf": [
2765
+ {
2766
+ "type": "object",
2767
+ "properties": {
2768
+ "include": {
2769
+ "type": "array",
2770
+ "items": {
2771
+ "type": "string"
2772
+ }
2773
+ },
2774
+ "exclude": {
2775
+ "type": "array",
2776
+ "items": {
2777
+ "type": "string"
2778
+ }
2779
+ }
2780
+ }
2781
+ },
2782
+ {
2783
+ "const": "all",
2784
+ "type": "string"
2785
+ }
2786
+ ]
2787
+ },
2788
+ "startup": {
2789
+ "type": "object",
2790
+ "properties": {
2791
+ "default": {
2792
+ "type": "object",
2793
+ "properties": {
2794
+ "onPluginBootFailure": {
2795
+ "description": "The default value for `onPluginBootFailure` if not specified for a particular plugin.\nThis defaults to 'abort', which means `onPluginBootFailure: continue` must be specified\nfor backend startup to continue on plugin boot failure. This can also be set to\n'continue', which flips the logic for individual plugins so that they must be set to\n`onPluginBootFailure: abort` to be required.",
2796
+ "enum": [
2797
+ "abort",
2798
+ "continue"
2799
+ ],
2800
+ "type": "string"
2801
+ },
2802
+ "onPluginModuleBootFailure": {
2803
+ "description": "The default value for `onPluginModuleBootFailure` if not specified for a particular plugin module.\nThis defaults to 'abort', which means `onPluginModuleBootFailure: continue` must be specified\nfor backend startup to continue on plugin module boot failure. This can also be set to\n'continue', which flips the logic for individual plugin modules so that they must be set to\n`onPluginModuleBootFailure: abort` to be required.",
2804
+ "enum": [
2805
+ "abort",
2806
+ "continue"
2807
+ ],
2808
+ "type": "string"
2809
+ }
2810
+ }
2811
+ },
2812
+ "plugins": {
2813
+ "type": "object",
2814
+ "additionalProperties": {
2815
+ "type": "object",
2816
+ "properties": {
2817
+ "onPluginBootFailure": {
2818
+ "description": "Used to control backend startup behavior when this plugin fails to boot up. Setting\nthis to `continue` allows the backend to continue starting up, even if this plugin\nfails. This can enable leaving a crashing plugin installed, but still permit backend\nstartup, which may help troubleshoot data-dependent issues. Plugin failures for plugins\nset to `abort` are fatal (this is the default unless overridden by the `default`\nsetting).",
2819
+ "enum": [
2820
+ "abort",
2821
+ "continue"
2822
+ ],
2823
+ "type": "string"
2824
+ },
2825
+ "modules": {
2826
+ "type": "object",
2827
+ "additionalProperties": {
2828
+ "type": "object",
2829
+ "properties": {
2830
+ "onPluginModuleBootFailure": {
2831
+ "description": "Used to control backend startup behavior when this plugin module fails to boot up. Setting\nthis to `continue` allows the backend to continue starting up, even if this plugin\nmodule fails. This can enable leaving a crashing plugin installed, but still permit backend\nstartup, which may help troubleshoot data-dependent issues. Plugin module failures for plugin modules\nset to `abort` are fatal (this is the default unless overridden by the `default`\nsetting).",
2832
+ "enum": [
2833
+ "abort",
2834
+ "continue"
2835
+ ],
2836
+ "type": "string"
2837
+ }
2838
+ }
2839
+ }
2840
+ }
2841
+ }
2842
+ }
2843
+ }
2844
+ }
2845
+ }
2846
+ }
2847
+ }
2848
+ },
2849
+ "$schema": "http://json-schema.org/draft-07/schema#"
2850
+ },
2851
+ "packageName": "@backstage/backend-app-api"
2852
+ },
2853
+ {
2854
+ "path": "../../plugins/events-node/config.d.ts",
2855
+ "value": {
2856
+ "type": "object",
2857
+ "properties": {
2858
+ "events": {
2859
+ "type": "object",
2860
+ "properties": {
2861
+ "useEventBus": {
2862
+ "description": "Whether to use the event bus API in the events plugin backend to\ndistribute events across multiple instances when publishing and\nsubscribing to events.\n\nThe default is 'auto', which means means that the event bus API will be\nused if it's available, but will be disabled if the events backend\nreturns a 404.\n\nIf set to 'never', the events service will only ever publish events\nlocally to the same instance, while if set to 'always', the event bus API\nwill never be disabled, even if the events backend returns a 404.",
2863
+ "enum": [
2864
+ "always",
2865
+ "auto",
2866
+ "never"
2867
+ ],
2868
+ "type": "string"
2869
+ }
2870
+ }
2871
+ }
2872
+ },
2873
+ "$schema": "http://json-schema.org/draft-07/schema#"
2874
+ },
2875
+ "packageName": "@backstage/plugin-events-node"
2876
+ },
2877
2877
  {
2878
2878
  "path": "../integration-aws-node/config.d.ts",
2879
2879
  "value": {
@@ -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.ca6e1ae0.js"></script><script defer="defer" src="/static/module-material-ui.557c1930.js"></script><script defer="defer" src="/static/module-lodash.05581125.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.00de7997.js"></script><script defer="defer" src="/static/module-zod.07fc8729.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.js"></script><script defer="defer" src="/static/module-i18next.f50c1612.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.e9f14677.js"></script><script defer="defer" src="/static/module-remix-run.ae6d33c5.js"></script><script defer="defer" src="/static/vendor.ca6e1ae0.js"></script><script defer="defer" src="/static/main.ca6e1ae0.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.05cc0991.js"></script><script defer="defer" src="/static/module-material-ui.557c1930.js"></script><script defer="defer" src="/static/module-lodash.05581125.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.00de7997.js"></script><script defer="defer" src="/static/module-zod.07fc8729.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.js"></script><script defer="defer" src="/static/module-i18next.f50c1612.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.e9f14677.js"></script><script defer="defer" src="/static/module-remix-run.ae6d33c5.js"></script><script defer="defer" src="/static/vendor.05cc0991.js"></script><script defer="defer" src="/static/main.05cc0991.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.ca6e1ae0.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.557c1930.js"></script><script defer src="<%= publicPath %>/static/module-lodash.05581125.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.00de7997.js"></script><script defer src="<%= publicPath %>/static/module-zod.07fc8729.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.42a304d3.js"></script><script defer src="<%= publicPath %>/static/module-i18next.f50c1612.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.e9f14677.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.ae6d33c5.js"></script><script defer src="<%= publicPath %>/static/vendor.ca6e1ae0.js"></script><script defer src="<%= publicPath %>/static/main.ca6e1ae0.js"></script></head>
45
+ <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.05cc0991.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.557c1930.js"></script><script defer src="<%= publicPath %>/static/module-lodash.05581125.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.00de7997.js"></script><script defer src="<%= publicPath %>/static/module-zod.07fc8729.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.42a304d3.js"></script><script defer src="<%= publicPath %>/static/module-i18next.f50c1612.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.e9f14677.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.ae6d33c5.js"></script><script defer src="<%= publicPath %>/static/vendor.05cc0991.js"></script><script defer src="<%= publicPath %>/static/main.05cc0991.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 @@ ${j.href}
550
550
 
551
551
  Feedback:`),wt=k?.type==="github"?(0,ys.F)(N.href,"blob"):N.href,Lt=vs()(wt),Dt=`/${Lt.organization}/${Lt.name}`,Ht=j.cloneNode();switch(k?.type){case"gitlab":Ht.href=`${N.origin}${Dt}/issues/new?issue[title]=${ot}&issue[description]=${Rt}`;break;case"github":Ht.href=`${N.origin}${Dt}/issues/new?title=${ot}&body=${Rt}`;break;default:return D}return yn((0,a.createElement)(kn.A),Ht),Ht.style.paddingLeft="5px",Ht.title="Leave feedback for this page",Ht.id="git-feedback-link",j?.insertAdjacentElement("beforebegin",Ht),D};var On=t(38097);const Es=(0,p.A)(m=>({button:{color:m.palette.primary.light,textDecoration:"underline"}})),Kn=({message:m,handleButtonClick:D,autoHideDuration:j})=>{const N=Es(),[k,q]=(0,a.useState)(!0),ot=()=>q(!1);return(0,s.jsx)(On.A,{open:k,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:j,color:"primary",onClose:ot,message:m,action:(0,s.jsx)(vt.A,{classes:{root:N.button},size:"small",onClick:()=>{ot(),D()},children:"Redirect now"})})},zn=(m,D)=>{const N=k=>{const q=$n(window.location.href),ot=new URL(k,q);if(ot.hostname!==window.location.hostname){const wt=window.location.pathname,Lt=wt.indexOf(D),Dt=wt.slice(0,Lt+D.length);return new URL(Dt,q).href}return ot.href};return k=>{for(const q of Array.from(k.querySelectorAll("meta")))if(q.getAttribute("http-equiv")==="refresh"){const ot=q.getAttribute("content")?.split("url=");if(!ot||ot.length<2)return k;const Rt=ot[1],wt=N(Rt);if(window.location.href===wt)return k;const Lt=document.createElement("div");return yn((0,s.jsx)(Kn,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>m(wt),autoHideDuration:3e3}),Lt),document.body.appendChild(Lt),setTimeout(()=>{m(wt)},3e3),k}return k}},As=()=>m=>(setTimeout(()=>{const D=m?.querySelectorAll("li.md-nav__item--active");D.length!==0&&(D.forEach(N=>{const k=N?.querySelector("input");k?.checked||k?.click()}),D[D.length-1].scrollIntoView())},200),m);var xs=t(50868),Cs=t(10437),bs=t(71677),Tt=t(87051),Ss=t(36338);const Os=(0,Tt.A)(m=>({tooltip:{fontSize:"inherit",color:m.palette.text.primary,margin:0,padding:m.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(bs.Ay),Ps=()=>(0,s.jsx)(Cs.A,{children:(0,s.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"})}),Ts=({text:m})=>{const[D,j]=(0,a.useState)(!1),[,N]=(0,Ss.A)(),k=(0,a.useCallback)(()=>{N(m),j(!0)},[m,N]),q=(0,a.useCallback)(()=>{j(!1)},[j]);return(0,s.jsx)(Os,{title:"Copied to clipboard",placement:"left",open:D,onClose:q,leaveDelay:1e3,children:(0,s.jsx)(gt.A,{style:{position:"absolute"},className:"md-clipboard md-icon",onClick:k,"aria-label":"Copy to clipboard",children:(0,s.jsx)(Ps,{})})})},Rs=m=>D=>{const j=D.querySelectorAll("pre > code");for(const N of j){const k=N.textContent||"",q=document.createElement("div");N?.parentElement?.prepend(q),yn((0,s.jsx)(xs.A,{theme:m,children:(0,s.jsx)(Ts,{text:k})}),q)}return D},ws=({baseUrl:m,onClick:D})=>j=>(Array.from(j.getElementsByTagName("a")).forEach(N=>{N.addEventListener("click",k=>{const ot=N.getAttribute("href");ot&&ot.startsWith(m)&&!N.hasAttribute("download")&&(k.preventDefault(),D(k,ot))})}),j),Hn=({onLoading:m,onLoaded:D})=>j=>(m(),j.addEventListener(u,function N(){D(),j.removeEventListener(u,N)}),j);function Is(){return m=>(m.querySelectorAll("label.md-nav__link[for]").forEach(j=>{j.setAttribute("tabIndex","0"),j.addEventListener("keydown",N=>{const k=N;if(k.key==="Enter"||k.key===" "){const q=j.getAttribute("for");if(!q)return;const ot=m.querySelector(`#${q}`);ot&&ot.type==="checkbox"&&(ot.checked=!ot.checked,ot.dispatchEvent(new Event("change",{bubbles:!0})),N.preventDefault(),N.stopPropagation())}})}),m)}function Vn(m,D){const j=new URL(D),N=`${j.origin}${j.pathname.replace(/\/$/,"")}`,k=m.replace(N,"").replace(/^\/+/,""),q=new URL(`http://localhost/${k}`);return`${q.pathname}${q.search}${q.hash}`}function Gn(){const m=(0,a.useRef)((0,Gt.Zp)()),j=(0,lt.gf)(J.U).getOptionalString("app.baseUrl");return(0,a.useCallback)(k=>{let q=k;if(j)try{q=Vn(k,j)}catch{}m.current(q)},[j])}const Ds="screen and (max-width: 76.1875em)",Ls=m=>{const D=(0,Gt.zy)(),j=(0,Gt.Zp)(),{"*":N=""}=(0,Gt.g)();(0,a.useLayoutEffect)(()=>{N===""&&m&&j(`${D.pathname}${m}`,{replace:!0})},[])},Ne=(m,D)=>{const j=Gn(),N=(0,Me.A)(),k=(0,$e.A)(Ds),q=fe(),ot=Bn(),Rt=(0,G.s)(),wt=(0,lt.gf)(nn.s),Lt=(0,lt.gf)(cn.Y),Dt=(0,lt.gf)(J.U),{state:Ht,path:Xt,content:me}=Ve(),{"*":pe=""}=(0,Gt.g)(),[Bt,Oe]=(0,a.useState)(null),ve=g(Bt);Ls(D);const Vt=(0,a.useCallback)(()=>{if(!Bt)return;Bt.querySelectorAll(".md-sidebar").forEach(ie=>{if(k)ie.style.top="0px";else{const We=document?.querySelector(".techdocs-reader-page")?.getBoundingClientRect().top??0;let Pe=Bt.getBoundingClientRect().top??0;const Xe=Bt.querySelector(".md-container > .md-tabs")?.getBoundingClientRect().height??0;Pe<We&&(Pe=We);const qt=Math.max(Pe,0)+Xe;ie.style.top=`${qt}px`;const dn=Bt.querySelector(".md-container > .md-footer")?.getBoundingClientRect().top??window.innerHeight;ie.style.height=`${dn-qt}px`}ie.style.setProperty("opacity","1")})},[Bt,k]);(0,a.useEffect)(()=>(window.addEventListener("resize",Vt),window.addEventListener("scroll",Vt,!0),()=>{window.removeEventListener("resize",Vt),window.removeEventListener("scroll",Vt,!0)}),[Bt,Vt]);const Zt=(0,a.useCallback)(()=>{if(!Bt)return;const ae=Bt.querySelector(".md-footer");ae&&(ae.style.width=`${Bt.getBoundingClientRect().width}px`)},[Bt]);(0,a.useEffect)(()=>(window.addEventListener("resize",Zt),()=>{window.removeEventListener("resize",Zt)}),[Bt,Zt]),(0,a.useEffect)(()=>{ve||(Zt(),Vt())},[Ht,ve,Zt,Vt]);const ce=(0,a.useCallback)((ae,ie)=>jn(ae,[q,hs({techdocsStorageApi:wt,entityId:m,path:ie}),ps(),fs(),Nn(),ms(),Sn(Lt),ot]),[m,Lt,wt,q,ot]),Ee=(0,a.useCallback)(async ae=>jn(ae,[zn(j,m.name),As(),Rs(N),ws({baseUrl:Dt.getOptionalString("app.baseUrl")||window.location.origin,onClick:(ie,Ae)=>{const We=ie.ctrlKey||ie.metaKey,Pe=new URL(Ae),Ye=ie.target?.innerText||Ae,Xe=Ae.replace(window.location.origin,"");Rt.captureEvent("click",Ye,{attributes:{to:Xe}}),Pe.hash?We?window.open(Ae,"_blank"):(window.location.pathname!==Pe.pathname?j(Ae):window.history.pushState(null,document.title,Pe.hash),ae?.querySelector(`[id="${Pe.hash.slice(1)}"]`)?.scrollIntoView(),ae?.querySelector(`[id="${Pe.hash.slice(1)}"]`)?.querySelector("a, button, [tabindex]")?.focus()):We?window.open(Ae,"_blank"):j(Ae)}}),Hn({onLoading:()=>{},onLoaded:()=>{ae.querySelector(".md-nav__title")?.removeAttribute("for")}}),Hn({onLoading:()=>{Array.from(ae.querySelectorAll(".md-sidebar")).forEach(Ae=>{Ae.style.setProperty("opacity","0")})},onLoaded:()=>{}}),Is()]),[N,j,Rt,m.name,Dt]);return(0,a.useEffect)(()=>{if(!me)return()=>{};let ae=!0;return ce(me,Xt).then(async ie=>{if(!ie?.innerHTML||!ae||pe!==Xt)return;window.scroll({top:0});const Ae=await Ee(ie);Oe(Ae)}),()=>{ae=!1}},[me,pe,Xt,ce,Ee]),Bt};var Ie=t(41883),ke=t(72020),Pn=t(99730);const Yn=()=>{const m=(0,ke.YR)(),{shadowRoot:D}=(0,b.V)(),j=D?.querySelector('[data-md-component="content"]'),N=D?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let k=N?.querySelector('[data-techdocs-addons-location="primary sidebar"]');k||(k=document.createElement("div"),k.setAttribute("data-techdocs-addons-location","primary sidebar"),N?.prepend(k));const q=D?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let ot=q?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return ot||(ot=document.createElement("div"),ot.setAttribute("data-techdocs-addons-location","secondary sidebar"),q?.prepend(ot)),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ie.A,{container:k,children:m.renderComponentsByLocation(Pn.e.PrimarySidebar)}),(0,s.jsx)(Ie.A,{container:j,children:m.renderComponentsByLocation(Pn.e.Content)}),(0,s.jsx)(Ie.A,{container:ot,children:m.renderComponentsByLocation(Pn.e.SecondarySidebar)})]})},Qn=(0,p.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Ms=Ze(m=>{const{withSearch:D=!0,searchResultUrlMapper:j,onReady:N}=m,k=Qn(),{entityMetadata:{value:q,loading:ot},entityRef:Rt,setShadowRoot:wt}=(0,b.V)(),{state:Lt}=Ve(),Dt=Ne(Rt,m.defaultPath),Ht=window.location.pathname,Xt=window.location.hash,me=g(Dt),[pe]=B([`[id="${Xt.slice(1)}"]`]),Bt=(0,at.n)(),{NotFoundErrorPage:Oe}=Bt.getComponents();(0,a.useEffect)(()=>{me||(Xt?pe&&pe.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[Ht,Xt,pe,me]);const ve=(0,a.useCallback)(Vt=>{wt(Vt),N instanceof Function&&N()},[wt,N]);return ot===!1&&!q?(0,s.jsx)(Oe,{}):Dt?(0,s.jsx)(M.U,{children:(0,s.jsxs)(x.A,{container:!0,children:[(0,s.jsx)(x.A,{xs:12,item:!0,children:(0,s.jsx)(Ue,{})}),D&&(0,s.jsx)(x.A,{className:k.search,xs:"auto",item:!0,children:(0,s.jsx)(ge,{entityId:Rt,entityTitle:q?.metadata?.title,searchResultUrlMapper:j})}),(0,s.jsxs)(x.A,{xs:12,item:!0,children:[(Lt==="CHECKING"||me)&&(0,s.jsx)(F.k,{}),(0,s.jsx)(C,{element:Dt,onAppend:ve,children:(0,s.jsx)(Yn,{})})]})]})}):(0,s.jsx)(M.U,{children:(0,s.jsx)(x.A,{container:!0,children:(0,s.jsx)(x.A,{xs:12,item:!0,children:(0,s.jsx)(Ue,{})})})})}),Zn=null},45061:(H,S,t)=>{"use strict";t.d(S,{T:()=>Et});var s=t(31085),a=t(14041),x=t(93285),p=t(42899),b=t(4387),h=t(13660),d=t(72020),f=t(88572),u=t(99730),y=t(82292),g=t(67871),C=t(8859),O=t(34428),P=t(51372),B=t(6820),L=t(58837),I=t(268),M=t(72501),F=t(72072);const W=(0,L.A)(St=>({root:{textAlign:"left"},label:{color:St.page.fontColor,fontWeight:St.typography.fontWeightBold,letterSpacing:0,fontSize:St.typography.fontSize,marginBottom:St.spacing(1)/2,lineHeight:1},value:{color:(0,I.X4)(St.page.fontColor,.8),fontSize:St.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),X=({value:St,className:It,typographyRootComponent:dt})=>(0,s.jsx)(M.A,{component:dt??(typeof St=="string"?"p":"span"),className:It,children:St});function z(St){const{label:It,value:dt,url:ct,contentTypograpyRootComponent:At}=St,pt=W(),Ct=(0,s.jsx)(X,{className:pt.value,value:dt||"<Unknown>",typographyRootComponent:At});return(0,s.jsx)(p.A,{item:!0,children:(0,s.jsxs)(M.A,{component:"span",className:pt.root,children:[(0,s.jsx)(M.A,{className:pt.label,children:It}),ct?(0,s.jsx)(F.N_,{to:ct,children:Ct}):Ct]})})}var Y=t(69814),K=t(72427),lt=t(65461),G=t(9222),Q=t(56005),J=t.n(Q),it=t(82779),ht=t(18690);const mt=(0,s.jsx)(b.A,{animation:"wave",variant:"text",height:40}),Et=St=>{const{children:It}=St,dt=(0,d.YR)(),ct=(0,K.gf)(lt.U),At=(0,K.gf)(y.n),{"*":pt=""}=(0,ht.g)(),{title:Ct,setTitle:Pt,subtitle:at,setSubtitle:gt,entityRef:yt,metadata:{value:et,loading:vt},entityMetadata:{value:rt,loading:U}}=(0,f.V)();(0,a.useEffect)(()=>{et&&(Pt(et.site_name),gt(()=>{let{site_description:de}=et;return(!de||de==="None")&&(de=""),de}))},[et,Pt,gt]);const V=ct.getOptional("app.title")||"Backstage",{locationMetadata:nt,spec:xt}=rt||{},ut=xt?.lifecycle,Ut=rt?(0,g.t)(rt,P.vv):[],Nt=(0,G.S)(it.rQ)(),kt=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z,{label:J()(rt?.kind||"entity"),value:(0,s.jsx)(C.z,{color:"inherit",entityRef:yt,title:rt?.metadata.title,defaultKind:"Component"})}),Ut.length>0&&(0,s.jsx)(z,{label:"Owner",value:(0,s.jsx)(O.i,{color:"inherit",entityRefs:Ut,defaultKind:"group"})}),ut?(0,s.jsx)(z,{label:"Lifecycle",value:String(ut)}):null,nt&&nt.type!=="dir"&&nt.type!=="file"?(0,s.jsx)(z,{label:"",value:(0,s.jsxs)(p.A,{container:!0,direction:"column",alignItems:"center",children:[(0,s.jsx)(p.A,{style:{padding:0},item:!0,children:(0,s.jsx)(h.A,{style:{marginTop:"-25px"}})}),(0,s.jsx)(p.A,{style:{padding:0},item:!0,children:"Source"})]}),url:nt.target}):null]});if(!U&&rt===void 0||!vt&&et===void 0)return null;const Gt=(0,B.U2)(yt),$t=At.forEntity(Gt).snapshot.primaryTitle,Yt=de=>de.replace(/\/$/,""),le=de=>de.replace(/-/g," ").split(" ").map(J()).join(" ");let ge=[];pt!==""&&(ge=Yt(pt).split("/").slice(0,3).map(le));const se=[V,$t,...ge].join(" | ");return(0,s.jsxs)(Y.Y,{type:"Documentation",typeLink:Nt,title:Ct||mt,subtitle:at===""?void 0:at||mt,children:[(0,s.jsx)(x.A,{titleTemplate:"%s",children:(0,s.jsx)("title",{children:se})}),kt,It,dt.renderComponentsByLocation(u.e.Header)]})}},82779:(H,S,t)=>{"use strict";t.d(S,{Oc:()=>x,Ri:()=>p,rQ:()=>a});var s=t(34569);const a=(0,s.H)({id:"techdocs:index-page"}),x=(0,s.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),p=(0,s.H)({id:"techdocs:catalog-reader-view"})},27698:(H,S,t)=>{"use strict";t.r(S),t.d(S,{TechDocsSearchResultListItem:()=>u});var s=t(31085),a=t(68804),x=t(5951),p=t(58837),b=t(72501),h=t(72072),d=t(70734);const f=(0,p.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),u=y=>{const{result:g,highlight:C,lineClamp:O=5,asListItem:P=!0,asLink:B=!0,title:L,icon:I}=y,M=f(),F=({children:z})=>B?(0,s.jsx)(h.N_,{noTrack:!0,to:g.location,children:z}):(0,s.jsx)(s.Fragment,{children:z}),W=()=>{const z=C?.fields.title?(0,s.jsx)(d.e,{text:C.fields.title,preTag:C.preTag,postTag:C.postTag}):g.title,Y=C?.fields.entityTitle?(0,s.jsx)(d.e,{text:C.fields.entityTitle,preTag:C.preTag,postTag:C.postTag}):g.entityTitle,K=C?.fields.name?(0,s.jsx)(d.e,{text:C.fields.name,preTag:C.preTag,postTag:C.postTag}):g.name;return g?(0,s.jsx)(x.A,{className:M.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,s.jsx)(F,{children:L||(0,s.jsxs)(s.Fragment,{children:[z," | ",Y??K," docs"]})}),secondary:(0,s.jsx)(b.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:O,overflow:"hidden"},color:"textSecondary",variant:"body2",children:C?.fields.text?(0,s.jsx)(d.e,{text:C.fields.text,preTag:C.preTag,postTag:C.postTag}):g.text})}):null},X=({children:z})=>P?(0,s.jsxs)(s.Fragment,{children:[I&&(0,s.jsx)(a.A,{children:typeof I=="function"?I(g):I}),(0,s.jsx)("div",{className:M.flexContainer,children:z})]}):(0,s.jsx)(s.Fragment,{children:z});return(0,s.jsx)(X,{children:(0,s.jsx)(W,{})})}},97184:(H,S,t)=>{const a=document.querySelector('meta[name="backstage-public-path"]')?.getAttribute("content");a&&(t.p=a)},86973:()=>{}},H=>{var S=s=>H(H.s=s);H.O(0,[1751,1888,5067,1678,235,5042,6587,7400,1975,4538,4121],()=>(S(97184),S(71543)));var t=H.O()}]);})();
552
552
 
553
- //# sourceMappingURL=main.ca6e1ae0.js.map
553
+ //# sourceMappingURL=main.05cc0991.js.map