@techdocs/cli 0.0.0-nightly-20250402023738 → 0.0.0-nightly-20250408023830

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-20250402023738
3
+ ## 0.0.0-nightly-20250408023830
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies
8
- - @backstage/backend-defaults@0.0.0-nightly-20250402023738
9
- - @backstage/plugin-techdocs-node@0.0.0-nightly-20250402023738
8
+ - @backstage/backend-defaults@0.0.0-nightly-20250408023830
9
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20250408023830
10
10
  - @backstage/catalog-model@1.7.3
11
11
  - @backstage/cli-common@0.1.15
12
12
  - @backstage/config@1.3.2
@@ -106,27 +106,6 @@
106
106
  },
107
107
  "path": "../cli/package.json"
108
108
  },
109
- {
110
- "path": "../../plugins/permission-common/config.d.ts",
111
- "value": {
112
- "type": "object",
113
- "properties": {
114
- "permission": {
115
- "description": "Configuration options for Backstage permissions and authorization",
116
- "type": "object",
117
- "properties": {
118
- "enabled": {
119
- "description": "Whether authorization is enabled in Backstage. Defaults to false, which means authorization\nrequests will be automatically allowed without invoking the authorization policy.",
120
- "visibility": "frontend",
121
- "type": "boolean"
122
- }
123
- }
124
- }
125
- },
126
- "$schema": "http://json-schema.org/draft-07/schema#"
127
- },
128
- "packageName": "@backstage/plugin-permission-common"
129
- },
130
109
  {
131
110
  "path": "../core-app-api/config.d.ts",
132
111
  "value": {
@@ -456,150 +435,6 @@
456
435
  },
457
436
  "packageName": "@backstage/plugin-techdocs"
458
437
  },
459
- {
460
- "path": "../frontend-app-api/config.d.ts",
461
- "value": {
462
- "type": "object",
463
- "properties": {
464
- "app": {
465
- "type": "object",
466
- "properties": {
467
- "experimental": {
468
- "type": "object",
469
- "properties": {
470
- "packages": {
471
- "visibility": "frontend",
472
- "deepVisibility": "frontend",
473
- "anyOf": [
474
- {
475
- "type": "object",
476
- "properties": {
477
- "include": {
478
- "type": "array",
479
- "items": {
480
- "type": "string"
481
- }
482
- },
483
- "exclude": {
484
- "type": "array",
485
- "items": {
486
- "type": "string"
487
- }
488
- }
489
- }
490
- },
491
- {
492
- "const": "all",
493
- "type": "string"
494
- }
495
- ]
496
- }
497
- }
498
- },
499
- "routes": {
500
- "type": "object",
501
- "properties": {
502
- "bindings": {
503
- "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.",
504
- "deepVisibility": "frontend",
505
- "type": "object",
506
- "additionalProperties": {
507
- "anyOf": [
508
- {
509
- "const": false,
510
- "type": "boolean"
511
- },
512
- {
513
- "type": "string"
514
- }
515
- ]
516
- }
517
- }
518
- }
519
- },
520
- "extensions": {
521
- "deepVisibility": "frontend",
522
- "type": "array",
523
- "items": {
524
- "anyOf": [
525
- {
526
- "type": "object",
527
- "additionalProperties": {
528
- "anyOf": [
529
- {
530
- "type": "object",
531
- "properties": {
532
- "attachTo": {
533
- "type": "object",
534
- "properties": {
535
- "id": {
536
- "type": "string"
537
- },
538
- "input": {
539
- "type": "string"
540
- }
541
- },
542
- "required": [
543
- "id",
544
- "input"
545
- ]
546
- },
547
- "disabled": {
548
- "type": "boolean"
549
- },
550
- "config": {}
551
- }
552
- },
553
- {
554
- "type": "boolean"
555
- }
556
- ]
557
- }
558
- },
559
- {
560
- "type": "string"
561
- }
562
- ]
563
- }
564
- }
565
- }
566
- }
567
- },
568
- "$schema": "http://json-schema.org/draft-07/schema#"
569
- },
570
- "packageName": "@backstage/frontend-app-api"
571
- },
572
- {
573
- "path": "../../plugins/catalog/config.d.ts",
574
- "value": {
575
- "type": "object",
576
- "properties": {
577
- "catalog": {
578
- "type": "object",
579
- "properties": {
580
- "experimentalPagination": {
581
- "deepVisibility": "frontend",
582
- "anyOf": [
583
- {
584
- "type": "object",
585
- "properties": {
586
- "limit": {
587
- "type": "number"
588
- }
589
- }
590
- },
591
- {
592
- "type": "boolean"
593
- }
594
- ]
595
- }
596
- }
597
- }
598
- },
599
- "$schema": "http://json-schema.org/draft-07/schema#"
600
- },
601
- "packageName": "@backstage/plugin-catalog"
602
- },
603
438
  {
604
439
  "path": "../integration/config.d.ts",
605
440
  "value": {
@@ -1080,6 +915,171 @@
1080
915
  },
1081
916
  "packageName": "@backstage/integration"
1082
917
  },
918
+ {
919
+ "path": "../frontend-app-api/config.d.ts",
920
+ "value": {
921
+ "type": "object",
922
+ "properties": {
923
+ "app": {
924
+ "type": "object",
925
+ "properties": {
926
+ "experimental": {
927
+ "type": "object",
928
+ "properties": {
929
+ "packages": {
930
+ "visibility": "frontend",
931
+ "deepVisibility": "frontend",
932
+ "anyOf": [
933
+ {
934
+ "type": "object",
935
+ "properties": {
936
+ "include": {
937
+ "type": "array",
938
+ "items": {
939
+ "type": "string"
940
+ }
941
+ },
942
+ "exclude": {
943
+ "type": "array",
944
+ "items": {
945
+ "type": "string"
946
+ }
947
+ }
948
+ }
949
+ },
950
+ {
951
+ "const": "all",
952
+ "type": "string"
953
+ }
954
+ ]
955
+ }
956
+ }
957
+ },
958
+ "routes": {
959
+ "type": "object",
960
+ "properties": {
961
+ "bindings": {
962
+ "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.",
963
+ "deepVisibility": "frontend",
964
+ "type": "object",
965
+ "additionalProperties": {
966
+ "anyOf": [
967
+ {
968
+ "const": false,
969
+ "type": "boolean"
970
+ },
971
+ {
972
+ "type": "string"
973
+ }
974
+ ]
975
+ }
976
+ }
977
+ }
978
+ },
979
+ "extensions": {
980
+ "deepVisibility": "frontend",
981
+ "type": "array",
982
+ "items": {
983
+ "anyOf": [
984
+ {
985
+ "type": "object",
986
+ "additionalProperties": {
987
+ "anyOf": [
988
+ {
989
+ "type": "object",
990
+ "properties": {
991
+ "attachTo": {
992
+ "type": "object",
993
+ "properties": {
994
+ "id": {
995
+ "type": "string"
996
+ },
997
+ "input": {
998
+ "type": "string"
999
+ }
1000
+ },
1001
+ "required": [
1002
+ "id",
1003
+ "input"
1004
+ ]
1005
+ },
1006
+ "disabled": {
1007
+ "type": "boolean"
1008
+ },
1009
+ "config": {}
1010
+ }
1011
+ },
1012
+ {
1013
+ "type": "boolean"
1014
+ }
1015
+ ]
1016
+ }
1017
+ },
1018
+ {
1019
+ "type": "string"
1020
+ }
1021
+ ]
1022
+ }
1023
+ }
1024
+ }
1025
+ }
1026
+ },
1027
+ "$schema": "http://json-schema.org/draft-07/schema#"
1028
+ },
1029
+ "packageName": "@backstage/frontend-app-api"
1030
+ },
1031
+ {
1032
+ "path": "../../plugins/catalog/config.d.ts",
1033
+ "value": {
1034
+ "type": "object",
1035
+ "properties": {
1036
+ "catalog": {
1037
+ "type": "object",
1038
+ "properties": {
1039
+ "experimentalPagination": {
1040
+ "deepVisibility": "frontend",
1041
+ "anyOf": [
1042
+ {
1043
+ "type": "object",
1044
+ "properties": {
1045
+ "limit": {
1046
+ "type": "number"
1047
+ }
1048
+ }
1049
+ },
1050
+ {
1051
+ "type": "boolean"
1052
+ }
1053
+ ]
1054
+ }
1055
+ }
1056
+ }
1057
+ },
1058
+ "$schema": "http://json-schema.org/draft-07/schema#"
1059
+ },
1060
+ "packageName": "@backstage/plugin-catalog"
1061
+ },
1062
+ {
1063
+ "path": "../../plugins/permission-common/config.d.ts",
1064
+ "value": {
1065
+ "type": "object",
1066
+ "properties": {
1067
+ "permission": {
1068
+ "description": "Configuration options for Backstage permissions and authorization",
1069
+ "type": "object",
1070
+ "properties": {
1071
+ "enabled": {
1072
+ "description": "Whether authorization is enabled in Backstage. Defaults to false, which means authorization\nrequests will be automatically allowed without invoking the authorization policy.",
1073
+ "visibility": "frontend",
1074
+ "type": "boolean"
1075
+ }
1076
+ }
1077
+ }
1078
+ },
1079
+ "$schema": "http://json-schema.org/draft-07/schema#"
1080
+ },
1081
+ "packageName": "@backstage/plugin-permission-common"
1082
+ },
1083
1083
  {
1084
1084
  "path": "../../node_modules/@backstage-community/plugin-stackstorm/config.d.ts",
1085
1085
  "value": {
@@ -4284,7 +4284,7 @@
4284
4284
  "packageName": "@backstage/plugin-auth-backend-module-oauth2-provider"
4285
4285
  },
4286
4286
  {
4287
- "path": "../../plugins/auth-backend-module-okta-provider/config.d.ts",
4287
+ "path": "../../plugins/auth-backend-module-oidc-provider/config.d.ts",
4288
4288
  "value": {
4289
4289
  "type": "object",
4290
4290
  "properties": {
@@ -4294,7 +4294,7 @@
4294
4294
  "providers": {
4295
4295
  "type": "object",
4296
4296
  "properties": {
4297
- "okta": {
4297
+ "oidc": {
4298
4298
  "visibility": "frontend",
4299
4299
  "type": "object",
4300
4300
  "additionalProperties": {
@@ -4307,16 +4307,16 @@
4307
4307
  "visibility": "secret",
4308
4308
  "type": "string"
4309
4309
  },
4310
- "audience": {
4310
+ "metadataUrl": {
4311
4311
  "type": "string"
4312
4312
  },
4313
- "authServerId": {
4313
+ "callbackUrl": {
4314
4314
  "type": "string"
4315
4315
  },
4316
- "idp": {
4316
+ "tokenEndpointAuthMethod": {
4317
4317
  "type": "string"
4318
4318
  },
4319
- "callbackUrl": {
4319
+ "tokenSignedResponseAlg": {
4320
4320
  "type": "string"
4321
4321
  },
4322
4322
  "additionalScopes": {
@@ -4332,6 +4332,10 @@
4332
4332
  }
4333
4333
  ]
4334
4334
  },
4335
+ "prompt": {
4336
+ "type": "string"
4337
+ },
4338
+ "timeout": {},
4335
4339
  "signIn": {
4336
4340
  "type": "object",
4337
4341
  "properties": {
@@ -4339,18 +4343,6 @@
4339
4343
  "type": "array",
4340
4344
  "items": {
4341
4345
  "anyOf": [
4342
- {
4343
- "type": "object",
4344
- "properties": {
4345
- "resolver": {
4346
- "type": "string",
4347
- "const": "emailMatchingUserEntityAnnotation"
4348
- }
4349
- },
4350
- "required": [
4351
- "resolver"
4352
- ]
4353
- },
4354
4346
  {
4355
4347
  "type": "object",
4356
4348
  "properties": {
@@ -4393,7 +4385,8 @@
4393
4385
  },
4394
4386
  "required": [
4395
4387
  "clientId",
4396
- "clientSecret"
4388
+ "clientSecret",
4389
+ "metadataUrl"
4397
4390
  ]
4398
4391
  }
4399
4392
  }
@@ -4404,10 +4397,10 @@
4404
4397
  },
4405
4398
  "$schema": "http://json-schema.org/draft-07/schema#"
4406
4399
  },
4407
- "packageName": "@backstage/plugin-auth-backend-module-okta-provider"
4400
+ "packageName": "@backstage/plugin-auth-backend-module-oidc-provider"
4408
4401
  },
4409
4402
  {
4410
- "path": "../../plugins/auth-backend-module-oidc-provider/config.d.ts",
4403
+ "path": "../../plugins/auth-backend-module-okta-provider/config.d.ts",
4411
4404
  "value": {
4412
4405
  "type": "object",
4413
4406
  "properties": {
@@ -4417,7 +4410,7 @@
4417
4410
  "providers": {
4418
4411
  "type": "object",
4419
4412
  "properties": {
4420
- "oidc": {
4413
+ "okta": {
4421
4414
  "visibility": "frontend",
4422
4415
  "type": "object",
4423
4416
  "additionalProperties": {
@@ -4430,16 +4423,16 @@
4430
4423
  "visibility": "secret",
4431
4424
  "type": "string"
4432
4425
  },
4433
- "metadataUrl": {
4426
+ "audience": {
4434
4427
  "type": "string"
4435
4428
  },
4436
- "callbackUrl": {
4429
+ "authServerId": {
4437
4430
  "type": "string"
4438
4431
  },
4439
- "tokenEndpointAuthMethod": {
4432
+ "idp": {
4440
4433
  "type": "string"
4441
4434
  },
4442
- "tokenSignedResponseAlg": {
4435
+ "callbackUrl": {
4443
4436
  "type": "string"
4444
4437
  },
4445
4438
  "additionalScopes": {
@@ -4455,10 +4448,6 @@
4455
4448
  }
4456
4449
  ]
4457
4450
  },
4458
- "prompt": {
4459
- "type": "string"
4460
- },
4461
- "timeout": {},
4462
4451
  "signIn": {
4463
4452
  "type": "object",
4464
4453
  "properties": {
@@ -4466,6 +4455,18 @@
4466
4455
  "type": "array",
4467
4456
  "items": {
4468
4457
  "anyOf": [
4458
+ {
4459
+ "type": "object",
4460
+ "properties": {
4461
+ "resolver": {
4462
+ "type": "string",
4463
+ "const": "emailMatchingUserEntityAnnotation"
4464
+ }
4465
+ },
4466
+ "required": [
4467
+ "resolver"
4468
+ ]
4469
+ },
4469
4470
  {
4470
4471
  "type": "object",
4471
4472
  "properties": {
@@ -4508,8 +4509,7 @@
4508
4509
  },
4509
4510
  "required": [
4510
4511
  "clientId",
4511
- "clientSecret",
4512
- "metadataUrl"
4512
+ "clientSecret"
4513
4513
  ]
4514
4514
  }
4515
4515
  }
@@ -4520,7 +4520,7 @@
4520
4520
  },
4521
4521
  "$schema": "http://json-schema.org/draft-07/schema#"
4522
4522
  },
4523
- "packageName": "@backstage/plugin-auth-backend-module-oidc-provider"
4523
+ "packageName": "@backstage/plugin-auth-backend-module-okta-provider"
4524
4524
  },
4525
4525
  {
4526
4526
  "path": "../../plugins/auth-backend-module-onelogin-provider/config.d.ts",
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.d6d48c47.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.d6e8d890.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.ae6d33c5.js"></script><script defer="defer" src="/static/vendor.d6d48c47.js"></script><script defer="defer" src="/static/main.d6d48c47.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.ff98f0fa.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-react-dom.42a304d3.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-react-beautiful-dnd.e9f14677.js"></script><script defer="defer" src="/static/module-remix-run.ae6d33c5.js"></script><script defer="defer" src="/static/vendor.ff98f0fa.js"></script><script defer="defer" src="/static/main.ff98f0fa.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.d6d48c47.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.d6e8d890.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.ae6d33c5.js"></script><script defer src="<%= publicPath %>/static/vendor.d6d48c47.js"></script><script defer src="<%= publicPath %>/static/main.d6d48c47.js"></script></head>
45
+ <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.ff98f0fa.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-react-dom.42a304d3.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-react-beautiful-dnd.e9f14677.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.ae6d33c5.js"></script><script defer src="<%= publicPath %>/static/vendor.ff98f0fa.js"></script><script defer src="<%= publicPath %>/static/main.ff98f0fa.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>
@@ -548,6 +548,6 @@ ${pn[f.palette.type].map(D=>`img[src$="${D}"]`).join(", ")} {
548
548
  `],as=()=>(0,Le.Ut)(),is=()=>{const f=as(),D=(0,ke.A)();return(0,a.useMemo)(()=>{const U={theme:D,sidebar:f};return os.reduce((N,k)=>N+k(U),"")},[D,f])},Cn=()=>{const f=is();return(0,a.useCallback)(D=>(D.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${f}</style>`),D),[f])},Ln=async(f,D)=>{let U;if(typeof f=="string")U=new DOMParser().parseFromString(f,"text/html").documentElement;else if(f instanceof Element)U=f;else throw new Error("dom is not a recognized type");for(const N of D)U=await N(U);return U},Mn=(f,D,U)=>{const N=new URL(D,"https://ignored.com").pathname,k=f==="src"&&N.endsWith(".svg"),X=!D.match(/^([a-z]*:)?\/\//i),st=D.startsWith(U);return k&&(X||st)},cs=({techdocsStorageApi:f,entityId:D,path:U})=>async N=>{const k=await f.getApiOrigin(),X=async(st,St)=>{for(const Rt of st)if(Rt.hasAttribute(St)){const $t=Rt.getAttribute(St);if(!$t)return;const Bt=await f.getBaseUrl($t,D,U);if(Mn(St,$t,k))try{const Xt=await(await fetch(Bt,{credentials:"include"})).text();Rt.setAttribute(St,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(Xt)))}`)}catch{Rt.setAttribute("alt",`Error: ${$t}`)}else Rt.setAttribute(St,Bt)}};return await Promise.all([X(N.querySelectorAll("img"),"src"),X(N.querySelectorAll("script"),"src"),X(N.querySelectorAll("source"),"src"),X(N.querySelectorAll("link"),"href"),X(N.querySelectorAll("a[download]"),"href")]),N},Bn=()=>f=>(((U,N)=>{Array.from(U).filter(k=>k.hasAttribute(N)).forEach(k=>{const X=k.getAttribute(N);if(X){X.match(/^https?:\/\//i)&&k.setAttribute("target","_blank");try{const st=jn(window.location.href);k.setAttribute(N,new URL(X,st).toString())}catch{k.replaceWith(k.textContent||X)}}})})(Array.from(f.getElementsByTagName("a")),"href"),f);function jn(f){const D=new URL(f);return!D.pathname.endsWith("/")&&!D.pathname.endsWith(".html")&&(D.pathname+="/"),D.toString()}var ls=t(27326);let Un;Un=Promise.resolve().then(t.t.bind(t,25873,19));function fn(f,D){Un.then(U=>{"createRoot"in U?U.createRoot(D).render(f):U.render(f,D)})}const ds=()=>f=>{const D=f.querySelector('.md-header label[for="__drawer"]'),U=f.querySelector("article");if(!D||!U)return f;const N=D.cloneNode();return fn(a.createElement(ls.A),N),N.id="toggle-sidebar",N.title="Toggle Sidebar",N.classList.add("md-content__button"),N.style.setProperty("padding","0 0 0 5px"),N.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),U?.prepend(N),f},us=()=>f=>(f.querySelector(".md-header")?.remove(),f),hs=()=>f=>(f.querySelector(".md-footer .md-copyright")?.remove(),f.querySelector(".md-footer-copyright")?.remove(),f);var $n=t(36021),gs=t(90292),ps=t(52536),Fn=t.n(ps);const Nn=f=>D=>{const U=D.querySelector('[title="Edit this page"]');if(!U||!U.href)return D;const N=new URL(U.href),k=f.byUrl(N);if(k?.type!=="github"&&k?.type!=="gitlab")return D;const X=D.querySelector("article>h1")?.childNodes[0].textContent||"",st=encodeURIComponent(`Documentation Feedback: ${X}`),St=encodeURIComponent(`Page source:
549
549
  ${U.href}
550
550
 
551
- Feedback:`),Rt=k?.type==="github"?(0,$n.F)(N.href,"blob"):N.href,$t=Fn()(Rt),Bt=`/${$t.organization}/${$t.name}`,Ft=U.cloneNode();switch(k?.type){case"gitlab":Ft.href=`${N.origin}${Bt}/issues/new?issue[title]=${st}&issue[description]=${St}`;break;case"github":Ft.href=`${N.origin}${Bt}/issues/new?title=${st}&body=${St}`;break;default:return D}return fn(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),D};var fs=t(38097);const bn=(0,x.A)(f=>({button:{color:f.palette.primary.light,textDecoration:"underline"}})),Sn=({message:f,handleButtonClick:D,autoHideDuration:U})=>{const N=bn(),[k,X]=(0,a.useState)(!0),st=()=>X(!1);return(0,n.jsx)(fs.A,{open:k,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:U,color:"primary",onClose:st,message:f,action:(0,n.jsx)(ht.A,{classes:{root:N.button},size:"small",onClick:()=>{st(),D()},children:"Redirect now"})})},ms=(f,D)=>{const N=k=>{const X=jn(window.location.href),st=new URL(k,X);if(st.hostname!==window.location.hostname){const Rt=window.location.pathname,$t=Rt.indexOf(D),Bt=Rt.slice(0,$t+D.length);return new URL(Bt,X).href}return st.href};return k=>{for(const X of Array.from(k.querySelectorAll("meta")))if(X.getAttribute("http-equiv")==="refresh"){const st=X.getAttribute("content")?.split("url=");if(!st||st.length<2)return k;const St=st[1],Rt=N(St);if(window.location.href===Rt)return k;const $t=document.createElement("div");return fn((0,n.jsx)(Sn,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>f(Rt),autoHideDuration:3e3}),$t),document.body.appendChild($t),setTimeout(()=>{f(Rt)},3e3),k}return k}},kn=()=>f=>(setTimeout(()=>{const D=f?.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),f);var Wn=t(50868),ys=t(10437),vs=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"}}))(vs.Ay),Cs=()=>(0,n.jsx)(ys.A,{children:(0,n.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})}),bs=({text:f})=>{const[D,U]=(0,a.useState)(!1),[,N]=(0,As.A)(),k=(0,a.useCallback)(()=>{N(f),U(!0)},[f,N]),X=(0,a.useCallback)(()=>{U(!1)},[U]);return(0,n.jsx)(xs,{title:"Copied to clipboard",placement:"left",open:D,onClose:X,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=>D=>{const U=D.querySelectorAll("pre > code");for(const N of U){const k=N.textContent||"",X=document.createElement("div");N?.parentElement?.prepend(X),fn((0,n.jsx)(Wn.A,{theme:f,children:(0,n.jsx)(bs,{text:k})}),X)}return D},Os=({baseUrl:f,onClick:D})=>U=>(Array.from(U.getElementsByTagName("a")).forEach(N=>{N.addEventListener("click",k=>{const st=N.getAttribute("href");st&&st.startsWith(f)&&!N.hasAttribute("download")&&(k.preventDefault(),D(k,st))})}),U),Kn=({onLoading:f,onLoaded:D})=>U=>(f(),U.addEventListener(g,function N(){D(),U.removeEventListener(g,N)}),U);function Ps(f,D){const U=new URL(D),N=`${U.origin}${U.pathname.replace(/\/$/,"")}`,k=f.replace(N,"").replace(/^\/+/,""),X=new URL(`http://localhost/${k}`);return`${X.pathname}${X.search}${X.hash}`}function Ts(){const f=(0,a.useRef)((0,Nt.Zp)()),U=(0,nt.gf)(Y.U).getOptionalString("app.baseUrl");return(0,a.useCallback)(k=>{let X=k;if(U)try{X=Ps(k,U)}catch{}f.current(X)},[U])}const zn="screen and (max-width: 76.1875em)",Hn=f=>{const D=Ts(),U=(0,ke.A)(),N=(0,He.A)(zn),k=ie(),X=Cn(),st=(0,W.s)(),St=(0,nt.gf)(ge.s),Rt=(0,nt.gf)(Qe.Y),$t=(0,nt.gf)(Y.U),{state:Bt,path:Ft,content:Xt}=De(),{"*":he=""}=(0,Nt.g)(),[Ht,_t]=(0,a.useState)(null),Ae=A(Ht),re=(0,a.useCallback)(()=>{if(!Ht)return;Ht.querySelectorAll(".md-sidebar").forEach(ce=>{if(N)ce.style.top="0px";else{const Fe=document?.querySelector(".techdocs-reader-page")?.getBoundingClientRect().top??0;let Me=Ht.getBoundingClientRect().top??0;const ln=Ht.querySelector(".md-container > .md-tabs")?.getBoundingClientRect().height??0;Me<Fe&&(Me=Fe);const pe=Math.max(Me,0)+ln;ce.style.top=`${pe}px`;const dn=Ht.querySelector(".md-container > .md-footer")?.getBoundingClientRect().top??window.innerHeight;ce.style.height=`${dn-pe}px`}ce.style.setProperty("opacity","1")})},[Ht,N]);(0,a.useEffect)(()=>(window.addEventListener("resize",re),window.addEventListener("scroll",re,!0),()=>{window.removeEventListener("resize",re),window.removeEventListener("scroll",re,!0)}),[Ht,re]);const Zt=(0,a.useCallback)(()=>{if(!Ht)return;const qt=Ht.querySelector(".md-footer");qt&&(qt.style.width=`${Ht.getBoundingClientRect().width}px`)},[Ht]);(0,a.useEffect)(()=>(window.addEventListener("resize",Zt),()=>{window.removeEventListener("resize",Zt)}),[Ht,Zt]),(0,a.useEffect)(()=>{Ae||(Zt(),re())},[Bt,Ae,Zt,re]);const Jt=(0,a.useCallback)((qt,ce)=>Ln(qt,[k,cs({techdocsStorageApi:St,entityId:f,path:ce}),Bn(),ds(),us(),hs(),Nn(Rt),X]),[f,Rt,St,k,X]),Se=(0,a.useCallback)(async qt=>Ln(qt,[ms(D,f.name),kn(),Ss(U),Os({baseUrl:$t.getOptionalString("app.baseUrl")||window.location.origin,onClick:(ce,le)=>{const Fe=ce.ctrlKey||ce.metaKey,Me=new URL(le),nn=ce.target?.innerText||le,ln=le.replace(window.location.origin,"");st.captureEvent("click",nn,{attributes:{to:ln}}),Me.hash?Fe?window.open(le,"_blank"):(window.location.pathname!==Me.pathname?D(le):window.history.pushState(null,document.title,Me.hash),qt?.querySelector(`[id="${Me.hash.slice(1)}"]`)?.scrollIntoView()):Fe?window.open(le,"_blank"):D(le)}}),Kn({onLoading:()=>{},onLoaded:()=>{qt.querySelector(".md-nav__title")?.removeAttribute("for")}}),Kn({onLoading:()=>{Array.from(qt.querySelectorAll(".md-sidebar")).forEach(le=>{le.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[U,D,st,f.name,$t]);return(0,a.useEffect)(()=>{if(!Xt)return()=>{};let qt=!0;return Jt(Xt,Ft).then(async ce=>{if(!ce?.innerHTML||!qt||he!==Ft)return;window.scroll({top:0});const le=await Se(ce);_t(le)}),()=>{qt=!1}},[Xt,he,Ft,Jt,Se]),Ht};var On=t(41883),ws=t(72020),we=t(99730);const Ue=()=>{const f=(0,ws.YR)(),{shadowRoot:D}=(0,m.V)(),U=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 X=D?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let st=X?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return st||(st=document.createElement("div"),st.setAttribute("data-techdocs-addons-location","secondary sidebar"),X?.prepend(st)),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(On.A,{container:k,children:f.renderComponentsByLocation(we.e.PrimarySidebar)}),(0,n.jsx)(On.A,{container:U,children:f.renderComponentsByLocation(we.e.Content)}),(0,n.jsx)(On.A,{container:st,children:f.renderComponentsByLocation(we.e.SecondarySidebar)})]})},$e=(0,x.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Rs=ze(f=>{const{withSearch:D=!0,searchResultUrlMapper:U,onReady:N}=f,k=$e(),{entityMetadata:{value:X,loading:st},entityRef:St,setShadowRoot:Rt}=(0,m.V)(),{state:$t}=De(),Bt=Hn(St),Ft=window.location.pathname,Xt=window.location.hash,he=A(Bt),[Ht]=L([`[id="${Xt.slice(1)}"]`]),_t=(0,it.n)(),{NotFoundErrorPage:Ae}=_t.getComponents();(0,a.useEffect)(()=>{he||(Xt?Ht&&Ht.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[Ft,Xt,Ht,he]);const re=(0,a.useCallback)(Zt=>{Rt(Zt),N instanceof Function&&N()},[Rt,N]);return st===!1&&!X?(0,n.jsx)(Ae,{}):Bt?(0,n.jsx)($.U,{children:(0,n.jsxs)(d.A,{container:!0,children:[(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(ye,{})}),D&&(0,n.jsx)(d.A,{className:k.search,xs:"auto",item:!0,children:(0,n.jsx)(jt,{entityId:St,entityTitle:X?.metadata?.title,searchResultUrlMapper:U})}),(0,n.jsxs)(d.A,{xs:12,item:!0,children:[($t==="CHECKING"||he)&&(0,n.jsx)(M.k,{}),(0,n.jsx)(v,{element:Bt,onAppend:re,children:(0,n.jsx)(Ue,{})})]})]})}):(0,n.jsx)($.U,{children:(0,n.jsx)(d.A,{container:!0,children:(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(ye,{})})})})}),Is=null},45061:(V,S,t)=>{"use strict";t.d(S,{T:()=>bt});var n=t(31085),a=t(14041),d=t(93285),x=t(42899),m=t(4387),h=t(13660),u=t(72020),p=t(86892),g=t(99730),y=t(82292),A=t(67871),v=t(8859),T=t(34428),P=t(51372),L=t(6820),O=t(58837),j=t(268),$=t(72501),M=t(72072);const J=(0,O.A)(At=>({root:{textAlign:"left"},label:{color:At.page.fontColor,fontWeight:At.typography.fontWeightBold,letterSpacing:0,fontSize:At.typography.fontSize,marginBottom:At.spacing(1)/2,lineHeight:1},value:{color:(0,j.X4)(At.page.fontColor,.8),fontSize:At.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),Q=({value:At,className:Dt,typographyRootComponent:lt})=>(0,n.jsx)($.A,{component:lt??(typeof At=="string"?"p":"span"),className:Dt,children:At});function F(At){const{label:Dt,value:lt,url:dt,contentTypograpyRootComponent:xt}=At,ft=J(),Ct=(0,n.jsx)(Q,{className:ft.value,value:lt||"<Unknown>",typographyRootComponent:xt});return(0,n.jsx)(x.A,{item:!0,children:(0,n.jsxs)($.A,{component:"span",className:ft.root,children:[(0,n.jsx)($.A,{className:ft.label,children:Dt}),dt?(0,n.jsx)(M.N_,{to:dt,children:Ct}):Ct]})})}var G=t(69814),H=t(72427),nt=t(65461),W=t(9222),Z=t(56005),Y=t.n(Z),at=t(82779),pt=t(18690);const Et=(0,n.jsx)(m.A,{animation:"wave",variant:"text",height:40}),bt=At=>{const{children:Dt}=At,lt=(0,u.YR)(),dt=(0,H.gf)(nt.U),xt=(0,H.gf)(y.n),{"*":ft=""}=(0,pt.g)(),{title:Ct,setTitle:Pt,subtitle:it,setSubtitle:mt,entityRef:yt,metadata:{value:et,loading:ht},entityMetadata:{value:rt,loading:B}}=(0,p.V)();(0,a.useEffect)(()=>{et&&(Pt(et.site_name),mt(()=>{let{site_description:de}=et;return(!de||de==="None")&&(de=""),de}))},[et,Pt,mt]);const z=dt.getOptional("app.title")||"Backstage",{locationMetadata:ut,spec:Ot}=rt||{},It=Ot?.lifecycle,Lt=rt?(0,A.t)(rt,P.vv):[],Ut=(0,W.S)(at.rQ)(),Nt=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(F,{label:Y()(rt?.kind||"entity"),value:(0,n.jsx)(v.z,{color:"inherit",entityRef:yt,title:rt?.metadata.title,defaultKind:"Component"})}),Lt.length>0&&(0,n.jsx)(F,{label:"Owner",value:(0,n.jsx)(T.i,{color:"inherit",entityRefs:Lt,defaultKind:"group"})}),It?(0,n.jsx)(F,{label:"Lifecycle",value:String(It)}):null,ut&&ut.type!=="dir"&&ut.type!=="file"?(0,n.jsx)(F,{label:"",value:(0,n.jsxs)(x.A,{container:!0,direction:"column",alignItems:"center",children:[(0,n.jsx)(x.A,{style:{padding:0},item:!0,children:(0,n.jsx)(h.A,{style:{marginTop:"-25px"}})}),(0,n.jsx)(x.A,{style:{padding:0},item:!0,children:"Source"})]}),url:ut.target}):null]});if(!B&&rt===void 0||!ht&&et===void 0)return null;const te=(0,L.U2)(yt),jt=xt.forEntity(te).snapshot.primaryTitle,kt=de=>de.replace(/\/$/,""),ee=de=>de.replace(/-/g," ").split(" ").map(Y()).join(" ");let fe=[];ft!==""&&(fe=kt(ft).split("/").slice(0,3).map(ee));const ne=[z,jt,...fe].join(" | ");return(0,n.jsxs)(G.Y,{type:"Documentation",typeLink:Ut,title:Ct||Et,subtitle:it===""?void 0:it||Et,children:[(0,n.jsx)(d.A,{titleTemplate:"%s",children:(0,n.jsx)("title",{children:ne})}),Nt,Dt,lt.renderComponentsByLocation(g.e.Header)]})}},82779:(V,S,t)=>{"use strict";t.d(S,{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:(V,S,t)=>{"use strict";t.r(S),t.d(S,{TechDocsSearchResultListItem:()=>y});var n=t(31085),a=t(14041),d=t(68804),x=t(5951),m=t(58837),h=t(72501),u=t(72072),p=t(70734);const g=(0,m.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),y=A=>{const{result:v,highlight:T,lineClamp:P=5,asListItem:L=!0,asLink:O=!0,title:j,icon:$}=A,M=g(),J=({children:G})=>O?(0,n.jsx)(u.N_,{noTrack:!0,to:v.location,children:G}):(0,n.jsx)(n.Fragment,{children:G}),Q=()=>{const G=T?.fields.title?(0,n.jsx)(p.e,{text:T.fields.title,preTag:T.preTag,postTag:T.postTag}):v.title,H=T?.fields.entityTitle?(0,n.jsx)(p.e,{text:T.fields.entityTitle,preTag:T.preTag,postTag:T.postTag}):v.entityTitle,nt=T?.fields.name?(0,n.jsx)(p.e,{text:T.fields.name,preTag:T.preTag,postTag:T.postTag}):v.name;return v?(0,n.jsx)(x.A,{className:M.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,n.jsx)(J,{children:j||(0,n.jsxs)(n.Fragment,{children:[G," | ",H??nt," docs"]})}),secondary:(0,n.jsx)(h.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:P,overflow:"hidden"},color:"textSecondary",variant:"body2",children:T?.fields.text?(0,n.jsx)(p.e,{text:T.fields.text,preTag:T.preTag,postTag:T.postTag}):v.text})}):null},F=({children:G})=>L?(0,n.jsxs)(n.Fragment,{children:[$&&(0,n.jsx)(d.A,{children:typeof $=="function"?$(v):$}),(0,n.jsx)("div",{className:M.flexContainer,children:G})]}):(0,n.jsx)(n.Fragment,{children:G});return(0,n.jsx)(F,{children:(0,n.jsx)(Q,{})})}},97184:(V,S,t)=>{const a=document.querySelector('meta[name="backstage-public-path"]')?.getAttribute("content");a&&(t.p=a)},86973:()=>{}},V=>{var S=n=>V(V.s=n);V.O(0,[1751,1888,5067,1678,235,6587,1975,5042,7400,4538,4121],()=>(S(97184),S(71543)));var t=V.O()}]);})();
551
+ Feedback:`),Rt=k?.type==="github"?(0,$n.F)(N.href,"blob"):N.href,$t=Fn()(Rt),Bt=`/${$t.organization}/${$t.name}`,Ft=U.cloneNode();switch(k?.type){case"gitlab":Ft.href=`${N.origin}${Bt}/issues/new?issue[title]=${st}&issue[description]=${St}`;break;case"github":Ft.href=`${N.origin}${Bt}/issues/new?title=${st}&body=${St}`;break;default:return D}return fn(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),D};var fs=t(38097);const bn=(0,x.A)(f=>({button:{color:f.palette.primary.light,textDecoration:"underline"}})),Sn=({message:f,handleButtonClick:D,autoHideDuration:U})=>{const N=bn(),[k,X]=(0,a.useState)(!0),st=()=>X(!1);return(0,n.jsx)(fs.A,{open:k,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:U,color:"primary",onClose:st,message:f,action:(0,n.jsx)(ht.A,{classes:{root:N.button},size:"small",onClick:()=>{st(),D()},children:"Redirect now"})})},ms=(f,D)=>{const N=k=>{const X=jn(window.location.href),st=new URL(k,X);if(st.hostname!==window.location.hostname){const Rt=window.location.pathname,$t=Rt.indexOf(D),Bt=Rt.slice(0,$t+D.length);return new URL(Bt,X).href}return st.href};return k=>{for(const X of Array.from(k.querySelectorAll("meta")))if(X.getAttribute("http-equiv")==="refresh"){const st=X.getAttribute("content")?.split("url=");if(!st||st.length<2)return k;const St=st[1],Rt=N(St);if(window.location.href===Rt)return k;const $t=document.createElement("div");return fn((0,n.jsx)(Sn,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>f(Rt),autoHideDuration:3e3}),$t),document.body.appendChild($t),setTimeout(()=>{f(Rt)},3e3),k}return k}},kn=()=>f=>(setTimeout(()=>{const D=f?.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),f);var Wn=t(50868),ys=t(10437),vs=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"}}))(vs.Ay),Cs=()=>(0,n.jsx)(ys.A,{children:(0,n.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})}),bs=({text:f})=>{const[D,U]=(0,a.useState)(!1),[,N]=(0,As.A)(),k=(0,a.useCallback)(()=>{N(f),U(!0)},[f,N]),X=(0,a.useCallback)(()=>{U(!1)},[U]);return(0,n.jsx)(xs,{title:"Copied to clipboard",placement:"left",open:D,onClose:X,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=>D=>{const U=D.querySelectorAll("pre > code");for(const N of U){const k=N.textContent||"",X=document.createElement("div");N?.parentElement?.prepend(X),fn((0,n.jsx)(Wn.A,{theme:f,children:(0,n.jsx)(bs,{text:k})}),X)}return D},Os=({baseUrl:f,onClick:D})=>U=>(Array.from(U.getElementsByTagName("a")).forEach(N=>{N.addEventListener("click",k=>{const st=N.getAttribute("href");st&&st.startsWith(f)&&!N.hasAttribute("download")&&(k.preventDefault(),D(k,st))})}),U),Kn=({onLoading:f,onLoaded:D})=>U=>(f(),U.addEventListener(g,function N(){D(),U.removeEventListener(g,N)}),U);function Ps(f,D){const U=new URL(D),N=`${U.origin}${U.pathname.replace(/\/$/,"")}`,k=f.replace(N,"").replace(/^\/+/,""),X=new URL(`http://localhost/${k}`);return`${X.pathname}${X.search}${X.hash}`}function Ts(){const f=(0,a.useRef)((0,Nt.Zp)()),U=(0,nt.gf)(Y.U).getOptionalString("app.baseUrl");return(0,a.useCallback)(k=>{let X=k;if(U)try{X=Ps(k,U)}catch{}f.current(X)},[U])}const zn="screen and (max-width: 76.1875em)",Hn=f=>{const D=Ts(),U=(0,ke.A)(),N=(0,He.A)(zn),k=ie(),X=Cn(),st=(0,W.s)(),St=(0,nt.gf)(ge.s),Rt=(0,nt.gf)(Qe.Y),$t=(0,nt.gf)(Y.U),{state:Bt,path:Ft,content:Xt}=De(),{"*":he=""}=(0,Nt.g)(),[Ht,_t]=(0,a.useState)(null),Ae=A(Ht),re=(0,a.useCallback)(()=>{if(!Ht)return;Ht.querySelectorAll(".md-sidebar").forEach(ce=>{if(N)ce.style.top="0px";else{const Fe=document?.querySelector(".techdocs-reader-page")?.getBoundingClientRect().top??0;let Me=Ht.getBoundingClientRect().top??0;const ln=Ht.querySelector(".md-container > .md-tabs")?.getBoundingClientRect().height??0;Me<Fe&&(Me=Fe);const pe=Math.max(Me,0)+ln;ce.style.top=`${pe}px`;const dn=Ht.querySelector(".md-container > .md-footer")?.getBoundingClientRect().top??window.innerHeight;ce.style.height=`${dn-pe}px`}ce.style.setProperty("opacity","1")})},[Ht,N]);(0,a.useEffect)(()=>(window.addEventListener("resize",re),window.addEventListener("scroll",re,!0),()=>{window.removeEventListener("resize",re),window.removeEventListener("scroll",re,!0)}),[Ht,re]);const Zt=(0,a.useCallback)(()=>{if(!Ht)return;const qt=Ht.querySelector(".md-footer");qt&&(qt.style.width=`${Ht.getBoundingClientRect().width}px`)},[Ht]);(0,a.useEffect)(()=>(window.addEventListener("resize",Zt),()=>{window.removeEventListener("resize",Zt)}),[Ht,Zt]),(0,a.useEffect)(()=>{Ae||(Zt(),re())},[Bt,Ae,Zt,re]);const Jt=(0,a.useCallback)((qt,ce)=>Ln(qt,[k,cs({techdocsStorageApi:St,entityId:f,path:ce}),Bn(),ds(),us(),hs(),Nn(Rt),X]),[f,Rt,St,k,X]),Se=(0,a.useCallback)(async qt=>Ln(qt,[ms(D,f.name),kn(),Ss(U),Os({baseUrl:$t.getOptionalString("app.baseUrl")||window.location.origin,onClick:(ce,le)=>{const Fe=ce.ctrlKey||ce.metaKey,Me=new URL(le),nn=ce.target?.innerText||le,ln=le.replace(window.location.origin,"");st.captureEvent("click",nn,{attributes:{to:ln}}),Me.hash?Fe?window.open(le,"_blank"):(window.location.pathname!==Me.pathname?D(le):window.history.pushState(null,document.title,Me.hash),qt?.querySelector(`[id="${Me.hash.slice(1)}"]`)?.scrollIntoView()):Fe?window.open(le,"_blank"):D(le)}}),Kn({onLoading:()=>{},onLoaded:()=>{qt.querySelector(".md-nav__title")?.removeAttribute("for")}}),Kn({onLoading:()=>{Array.from(qt.querySelectorAll(".md-sidebar")).forEach(le=>{le.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[U,D,st,f.name,$t]);return(0,a.useEffect)(()=>{if(!Xt)return()=>{};let qt=!0;return Jt(Xt,Ft).then(async ce=>{if(!ce?.innerHTML||!qt||he!==Ft)return;window.scroll({top:0});const le=await Se(ce);_t(le)}),()=>{qt=!1}},[Xt,he,Ft,Jt,Se]),Ht};var On=t(41883),ws=t(72020),we=t(99730);const Ue=()=>{const f=(0,ws.YR)(),{shadowRoot:D}=(0,m.V)(),U=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 X=D?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let st=X?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return st||(st=document.createElement("div"),st.setAttribute("data-techdocs-addons-location","secondary sidebar"),X?.prepend(st)),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(On.A,{container:k,children:f.renderComponentsByLocation(we.e.PrimarySidebar)}),(0,n.jsx)(On.A,{container:U,children:f.renderComponentsByLocation(we.e.Content)}),(0,n.jsx)(On.A,{container:st,children:f.renderComponentsByLocation(we.e.SecondarySidebar)})]})},$e=(0,x.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Rs=ze(f=>{const{withSearch:D=!0,searchResultUrlMapper:U,onReady:N}=f,k=$e(),{entityMetadata:{value:X,loading:st},entityRef:St,setShadowRoot:Rt}=(0,m.V)(),{state:$t}=De(),Bt=Hn(St),Ft=window.location.pathname,Xt=window.location.hash,he=A(Bt),[Ht]=L([`[id="${Xt.slice(1)}"]`]),_t=(0,it.n)(),{NotFoundErrorPage:Ae}=_t.getComponents();(0,a.useEffect)(()=>{he||(Xt?Ht&&Ht.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[Ft,Xt,Ht,he]);const re=(0,a.useCallback)(Zt=>{Rt(Zt),N instanceof Function&&N()},[Rt,N]);return st===!1&&!X?(0,n.jsx)(Ae,{}):Bt?(0,n.jsx)($.U,{children:(0,n.jsxs)(d.A,{container:!0,children:[(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(ye,{})}),D&&(0,n.jsx)(d.A,{className:k.search,xs:"auto",item:!0,children:(0,n.jsx)(jt,{entityId:St,entityTitle:X?.metadata?.title,searchResultUrlMapper:U})}),(0,n.jsxs)(d.A,{xs:12,item:!0,children:[($t==="CHECKING"||he)&&(0,n.jsx)(M.k,{}),(0,n.jsx)(v,{element:Bt,onAppend:re,children:(0,n.jsx)(Ue,{})})]})]})}):(0,n.jsx)($.U,{children:(0,n.jsx)(d.A,{container:!0,children:(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(ye,{})})})})}),Is=null},45061:(V,S,t)=>{"use strict";t.d(S,{T:()=>bt});var n=t(31085),a=t(14041),d=t(93285),x=t(42899),m=t(4387),h=t(13660),u=t(72020),p=t(86892),g=t(99730),y=t(82292),A=t(67871),v=t(8859),T=t(34428),P=t(51372),L=t(6820),O=t(58837),j=t(268),$=t(72501),M=t(72072);const J=(0,O.A)(At=>({root:{textAlign:"left"},label:{color:At.page.fontColor,fontWeight:At.typography.fontWeightBold,letterSpacing:0,fontSize:At.typography.fontSize,marginBottom:At.spacing(1)/2,lineHeight:1},value:{color:(0,j.X4)(At.page.fontColor,.8),fontSize:At.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),Q=({value:At,className:Dt,typographyRootComponent:lt})=>(0,n.jsx)($.A,{component:lt??(typeof At=="string"?"p":"span"),className:Dt,children:At});function F(At){const{label:Dt,value:lt,url:dt,contentTypograpyRootComponent:xt}=At,ft=J(),Ct=(0,n.jsx)(Q,{className:ft.value,value:lt||"<Unknown>",typographyRootComponent:xt});return(0,n.jsx)(x.A,{item:!0,children:(0,n.jsxs)($.A,{component:"span",className:ft.root,children:[(0,n.jsx)($.A,{className:ft.label,children:Dt}),dt?(0,n.jsx)(M.N_,{to:dt,children:Ct}):Ct]})})}var G=t(69814),H=t(72427),nt=t(65461),W=t(9222),Z=t(56005),Y=t.n(Z),at=t(82779),pt=t(18690);const Et=(0,n.jsx)(m.A,{animation:"wave",variant:"text",height:40}),bt=At=>{const{children:Dt}=At,lt=(0,u.YR)(),dt=(0,H.gf)(nt.U),xt=(0,H.gf)(y.n),{"*":ft=""}=(0,pt.g)(),{title:Ct,setTitle:Pt,subtitle:it,setSubtitle:mt,entityRef:yt,metadata:{value:et,loading:ht},entityMetadata:{value:rt,loading:B}}=(0,p.V)();(0,a.useEffect)(()=>{et&&(Pt(et.site_name),mt(()=>{let{site_description:de}=et;return(!de||de==="None")&&(de=""),de}))},[et,Pt,mt]);const z=dt.getOptional("app.title")||"Backstage",{locationMetadata:ut,spec:Ot}=rt||{},It=Ot?.lifecycle,Lt=rt?(0,A.t)(rt,P.vv):[],Ut=(0,W.S)(at.rQ)(),Nt=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(F,{label:Y()(rt?.kind||"entity"),value:(0,n.jsx)(v.z,{color:"inherit",entityRef:yt,title:rt?.metadata.title,defaultKind:"Component"})}),Lt.length>0&&(0,n.jsx)(F,{label:"Owner",value:(0,n.jsx)(T.i,{color:"inherit",entityRefs:Lt,defaultKind:"group"})}),It?(0,n.jsx)(F,{label:"Lifecycle",value:String(It)}):null,ut&&ut.type!=="dir"&&ut.type!=="file"?(0,n.jsx)(F,{label:"",value:(0,n.jsxs)(x.A,{container:!0,direction:"column",alignItems:"center",children:[(0,n.jsx)(x.A,{style:{padding:0},item:!0,children:(0,n.jsx)(h.A,{style:{marginTop:"-25px"}})}),(0,n.jsx)(x.A,{style:{padding:0},item:!0,children:"Source"})]}),url:ut.target}):null]});if(!B&&rt===void 0||!ht&&et===void 0)return null;const te=(0,L.U2)(yt),jt=xt.forEntity(te).snapshot.primaryTitle,kt=de=>de.replace(/\/$/,""),ee=de=>de.replace(/-/g," ").split(" ").map(Y()).join(" ");let fe=[];ft!==""&&(fe=kt(ft).split("/").slice(0,3).map(ee));const ne=[z,jt,...fe].join(" | ");return(0,n.jsxs)(G.Y,{type:"Documentation",typeLink:Ut,title:Ct||Et,subtitle:it===""?void 0:it||Et,children:[(0,n.jsx)(d.A,{titleTemplate:"%s",children:(0,n.jsx)("title",{children:ne})}),Nt,Dt,lt.renderComponentsByLocation(g.e.Header)]})}},82779:(V,S,t)=>{"use strict";t.d(S,{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:(V,S,t)=>{"use strict";t.r(S),t.d(S,{TechDocsSearchResultListItem:()=>y});var n=t(31085),a=t(14041),d=t(68804),x=t(5951),m=t(58837),h=t(72501),u=t(72072),p=t(70734);const g=(0,m.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),y=A=>{const{result:v,highlight:T,lineClamp:P=5,asListItem:L=!0,asLink:O=!0,title:j,icon:$}=A,M=g(),J=({children:G})=>O?(0,n.jsx)(u.N_,{noTrack:!0,to:v.location,children:G}):(0,n.jsx)(n.Fragment,{children:G}),Q=()=>{const G=T?.fields.title?(0,n.jsx)(p.e,{text:T.fields.title,preTag:T.preTag,postTag:T.postTag}):v.title,H=T?.fields.entityTitle?(0,n.jsx)(p.e,{text:T.fields.entityTitle,preTag:T.preTag,postTag:T.postTag}):v.entityTitle,nt=T?.fields.name?(0,n.jsx)(p.e,{text:T.fields.name,preTag:T.preTag,postTag:T.postTag}):v.name;return v?(0,n.jsx)(x.A,{className:M.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,n.jsx)(J,{children:j||(0,n.jsxs)(n.Fragment,{children:[G," | ",H??nt," docs"]})}),secondary:(0,n.jsx)(h.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:P,overflow:"hidden"},color:"textSecondary",variant:"body2",children:T?.fields.text?(0,n.jsx)(p.e,{text:T.fields.text,preTag:T.preTag,postTag:T.postTag}):v.text})}):null},F=({children:G})=>L?(0,n.jsxs)(n.Fragment,{children:[$&&(0,n.jsx)(d.A,{children:typeof $=="function"?$(v):$}),(0,n.jsx)("div",{className:M.flexContainer,children:G})]}):(0,n.jsx)(n.Fragment,{children:G});return(0,n.jsx)(F,{children:(0,n.jsx)(Q,{})})}},97184:(V,S,t)=>{const a=document.querySelector('meta[name="backstage-public-path"]')?.getAttribute("content");a&&(t.p=a)},86973:()=>{}},V=>{var S=n=>V(V.s=n);V.O(0,[1751,1888,5067,1678,235,6587,5042,7400,1975,4538,4121],()=>(S(97184),S(71543)));var t=V.O()}]);})();
552
552
 
553
- //# sourceMappingURL=main.d6d48c47.js.map
553
+ //# sourceMappingURL=main.ff98f0fa.js.map