@techdocs/cli 1.9.4-next.1 → 1.9.4-next.2

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,5 +1,16 @@
1
1
  # @techdocs/cli
2
2
 
3
+ ## 1.9.4-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-defaults@0.11.0-next.2
9
+ - @backstage/catalog-model@1.7.4
10
+ - @backstage/cli-common@0.1.15
11
+ - @backstage/config@1.3.2
12
+ - @backstage/plugin-techdocs-node@1.13.4-next.1
13
+
3
14
  ## 1.9.4-next.1
4
15
 
5
16
  ### Patch Changes
@@ -460,6 +460,182 @@
460
460
  },
461
461
  "packageName": "@backstage/plugin-techdocs"
462
462
  },
463
+ {
464
+ "path": "../frontend-app-api/config.d.ts",
465
+ "value": {
466
+ "type": "object",
467
+ "properties": {
468
+ "app": {
469
+ "type": "object",
470
+ "properties": {
471
+ "experimental": {
472
+ "type": "object",
473
+ "properties": {
474
+ "packages": {
475
+ "visibility": "frontend",
476
+ "deepVisibility": "frontend",
477
+ "anyOf": [
478
+ {
479
+ "type": "object",
480
+ "properties": {
481
+ "include": {
482
+ "type": "array",
483
+ "items": {
484
+ "type": "string"
485
+ }
486
+ },
487
+ "exclude": {
488
+ "type": "array",
489
+ "items": {
490
+ "type": "string"
491
+ }
492
+ }
493
+ }
494
+ },
495
+ {
496
+ "const": "all",
497
+ "type": "string"
498
+ }
499
+ ]
500
+ }
501
+ }
502
+ },
503
+ "routes": {
504
+ "type": "object",
505
+ "properties": {
506
+ "bindings": {
507
+ "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.",
508
+ "deepVisibility": "frontend",
509
+ "type": "object",
510
+ "additionalProperties": {
511
+ "anyOf": [
512
+ {
513
+ "const": false,
514
+ "type": "boolean"
515
+ },
516
+ {
517
+ "type": "string"
518
+ }
519
+ ]
520
+ }
521
+ }
522
+ }
523
+ },
524
+ "extensions": {
525
+ "deepVisibility": "frontend",
526
+ "type": "array",
527
+ "items": {
528
+ "anyOf": [
529
+ {
530
+ "type": "object",
531
+ "additionalProperties": {
532
+ "anyOf": [
533
+ {
534
+ "type": "object",
535
+ "properties": {
536
+ "attachTo": {
537
+ "type": "object",
538
+ "properties": {
539
+ "id": {
540
+ "type": "string"
541
+ },
542
+ "input": {
543
+ "type": "string"
544
+ }
545
+ },
546
+ "required": [
547
+ "id",
548
+ "input"
549
+ ]
550
+ },
551
+ "disabled": {
552
+ "type": "boolean"
553
+ },
554
+ "config": {}
555
+ }
556
+ },
557
+ {
558
+ "type": "boolean"
559
+ }
560
+ ]
561
+ }
562
+ },
563
+ {
564
+ "type": "string"
565
+ }
566
+ ]
567
+ }
568
+ },
569
+ "pluginOverrides": {
570
+ "description": "This section enables you to override certain properties of specific or\ngroups of plugins.",
571
+ "deepVisibility": "frontend",
572
+ "type": "array",
573
+ "items": {
574
+ "type": "object",
575
+ "properties": {
576
+ "match": {
577
+ "description": "The criteria for matching plugins to override.",
578
+ "type": "object",
579
+ "properties": {
580
+ "pluginId": {
581
+ "description": "A pattern that is matched against the plugin ID.",
582
+ "type": "string"
583
+ },
584
+ "packageName": {
585
+ "description": "A pattern that is matched against the package name.",
586
+ "type": "string"
587
+ }
588
+ }
589
+ },
590
+ "info": {
591
+ "description": "Overrides individual top-level fields of the plugin info.",
592
+ "type": "object",
593
+ "properties": {
594
+ "description": {
595
+ "description": "Override the description of the plugin.",
596
+ "type": "string"
597
+ },
598
+ "ownerEntityRefs": {
599
+ "description": "Override the owner entity references of the plugin.",
600
+ "type": "array",
601
+ "items": {
602
+ "type": "string"
603
+ }
604
+ },
605
+ "links": {
606
+ "description": "Override the links of the plugin.",
607
+ "type": "array",
608
+ "items": {
609
+ "type": "object",
610
+ "properties": {
611
+ "title": {
612
+ "type": "string"
613
+ },
614
+ "url": {
615
+ "type": "string"
616
+ }
617
+ },
618
+ "required": [
619
+ "title",
620
+ "url"
621
+ ]
622
+ }
623
+ }
624
+ }
625
+ }
626
+ },
627
+ "required": [
628
+ "info"
629
+ ]
630
+ }
631
+ }
632
+ }
633
+ }
634
+ },
635
+ "$schema": "http://json-schema.org/draft-07/schema#"
636
+ },
637
+ "packageName": "@backstage/frontend-app-api"
638
+ },
463
639
  {
464
640
  "path": "../integration/config.d.ts",
465
641
  "value": {
@@ -954,182 +1130,6 @@
954
1130
  },
955
1131
  "packageName": "@backstage/integration"
956
1132
  },
957
- {
958
- "path": "../frontend-app-api/config.d.ts",
959
- "value": {
960
- "type": "object",
961
- "properties": {
962
- "app": {
963
- "type": "object",
964
- "properties": {
965
- "experimental": {
966
- "type": "object",
967
- "properties": {
968
- "packages": {
969
- "visibility": "frontend",
970
- "deepVisibility": "frontend",
971
- "anyOf": [
972
- {
973
- "type": "object",
974
- "properties": {
975
- "include": {
976
- "type": "array",
977
- "items": {
978
- "type": "string"
979
- }
980
- },
981
- "exclude": {
982
- "type": "array",
983
- "items": {
984
- "type": "string"
985
- }
986
- }
987
- }
988
- },
989
- {
990
- "const": "all",
991
- "type": "string"
992
- }
993
- ]
994
- }
995
- }
996
- },
997
- "routes": {
998
- "type": "object",
999
- "properties": {
1000
- "bindings": {
1001
- "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.",
1002
- "deepVisibility": "frontend",
1003
- "type": "object",
1004
- "additionalProperties": {
1005
- "anyOf": [
1006
- {
1007
- "const": false,
1008
- "type": "boolean"
1009
- },
1010
- {
1011
- "type": "string"
1012
- }
1013
- ]
1014
- }
1015
- }
1016
- }
1017
- },
1018
- "extensions": {
1019
- "deepVisibility": "frontend",
1020
- "type": "array",
1021
- "items": {
1022
- "anyOf": [
1023
- {
1024
- "type": "object",
1025
- "additionalProperties": {
1026
- "anyOf": [
1027
- {
1028
- "type": "object",
1029
- "properties": {
1030
- "attachTo": {
1031
- "type": "object",
1032
- "properties": {
1033
- "id": {
1034
- "type": "string"
1035
- },
1036
- "input": {
1037
- "type": "string"
1038
- }
1039
- },
1040
- "required": [
1041
- "id",
1042
- "input"
1043
- ]
1044
- },
1045
- "disabled": {
1046
- "type": "boolean"
1047
- },
1048
- "config": {}
1049
- }
1050
- },
1051
- {
1052
- "type": "boolean"
1053
- }
1054
- ]
1055
- }
1056
- },
1057
- {
1058
- "type": "string"
1059
- }
1060
- ]
1061
- }
1062
- },
1063
- "pluginOverrides": {
1064
- "description": "This section enables you to override certain properties of specific or\ngroups of plugins.",
1065
- "deepVisibility": "frontend",
1066
- "type": "array",
1067
- "items": {
1068
- "type": "object",
1069
- "properties": {
1070
- "match": {
1071
- "description": "The criteria for matching plugins to override.",
1072
- "type": "object",
1073
- "properties": {
1074
- "pluginId": {
1075
- "description": "A pattern that is matched against the plugin ID.",
1076
- "type": "string"
1077
- },
1078
- "packageName": {
1079
- "description": "A pattern that is matched against the package name.",
1080
- "type": "string"
1081
- }
1082
- }
1083
- },
1084
- "info": {
1085
- "description": "Overrides individual top-level fields of the plugin info.",
1086
- "type": "object",
1087
- "properties": {
1088
- "description": {
1089
- "description": "Override the description of the plugin.",
1090
- "type": "string"
1091
- },
1092
- "ownerEntityRefs": {
1093
- "description": "Override the owner entity references of the plugin.",
1094
- "type": "array",
1095
- "items": {
1096
- "type": "string"
1097
- }
1098
- },
1099
- "links": {
1100
- "description": "Override the links of the plugin.",
1101
- "type": "array",
1102
- "items": {
1103
- "type": "object",
1104
- "properties": {
1105
- "title": {
1106
- "type": "string"
1107
- },
1108
- "url": {
1109
- "type": "string"
1110
- }
1111
- },
1112
- "required": [
1113
- "title",
1114
- "url"
1115
- ]
1116
- }
1117
- }
1118
- }
1119
- }
1120
- },
1121
- "required": [
1122
- "info"
1123
- ]
1124
- }
1125
- }
1126
- }
1127
- }
1128
- },
1129
- "$schema": "http://json-schema.org/draft-07/schema#"
1130
- },
1131
- "packageName": "@backstage/frontend-app-api"
1132
- },
1133
1133
  {
1134
1134
  "path": "../../plugins/catalog/config.d.ts",
1135
1135
  "value": {
@@ -1428,6 +1428,52 @@
1428
1428
  },
1429
1429
  "packageName": "@backstage/plugin-auth-backend-module-guest-provider"
1430
1430
  },
1431
+ {
1432
+ "path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/core-components/config.d.ts",
1433
+ "value": {
1434
+ "type": "object",
1435
+ "properties": {
1436
+ "auth": {
1437
+ "type": "object",
1438
+ "properties": {
1439
+ "autologout": {
1440
+ "description": "Autologout feature configuration",
1441
+ "type": "object",
1442
+ "properties": {
1443
+ "enabled": {
1444
+ "description": "Enable or disable the autologout feature",
1445
+ "visibility": "frontend",
1446
+ "type": "boolean"
1447
+ },
1448
+ "idleTimeoutMinutes": {
1449
+ "description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
1450
+ "visibility": "frontend",
1451
+ "type": "number"
1452
+ },
1453
+ "promptBeforeIdleSeconds": {
1454
+ "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.",
1455
+ "visibility": "frontend",
1456
+ "type": "number"
1457
+ },
1458
+ "useWorkerTimers": {
1459
+ "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.",
1460
+ "visibility": "frontend",
1461
+ "type": "boolean"
1462
+ },
1463
+ "logoutIfDisconnected": {
1464
+ "description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
1465
+ "visibility": "frontend",
1466
+ "type": "boolean"
1467
+ }
1468
+ }
1469
+ }
1470
+ }
1471
+ }
1472
+ },
1473
+ "$schema": "http://json-schema.org/draft-07/schema#"
1474
+ },
1475
+ "packageName": "@backstage/core-components"
1476
+ },
1431
1477
  {
1432
1478
  "path": "../../node_modules/@backstage-community/plugin-stackstorm/node_modules/@backstage/core-components/config.d.ts",
1433
1479
  "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.dcd8a2f6.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.67a27cd9.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.dcd8a2f6.js"></script><script defer="defer" src="/static/main.dcd8a2f6.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.a83e2ff3.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.67a27cd9.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.a83e2ff3.js"></script><script defer="defer" src="/static/main.a83e2ff3.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.dcd8a2f6.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.67a27cd9.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.dcd8a2f6.js"></script><script defer src="<%= publicPath %>/static/main.dcd8a2f6.js"></script></head>
45
+ <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.a83e2ff3.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.67a27cd9.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.a83e2ff3.js"></script><script defer src="<%= publicPath %>/static/main.a83e2ff3.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>
@@ -0,0 +1,4 @@
1
+ "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[5724],{35773:(N,y,e)=>{e.d(y,{C4:()=>m,tS:()=>x});var t=e(14117);const u="catalog-entity",h=(0,t.i)({name:"catalog.entity.read",attributes:{action:"read"},resourceType:u}),m=(0,t.i)({name:"catalog.entity.create",attributes:{action:"create"}}),S=(0,t.i)({name:"catalog.entity.delete",attributes:{action:"delete"},resourceType:u}),x=(0,t.i)({name:"catalog.entity.refresh",attributes:{action:"update"},resourceType:u}),A=(0,t.i)({name:"catalog.entity.validate",attributes:{}}),C=(0,t.i)({name:"catalog.location.read",attributes:{action:"read"}}),T=(0,t.i)({name:"catalog.location.create",attributes:{action:"create"}}),j=(0,t.i)({name:"catalog.location.analyze",attributes:{}}),l=(0,t.i)({name:"catalog.location.delete",attributes:{action:"delete"}}),f=[h,m,S,x,A,C,T,l,j]},99538:(N,y,e)=>{e.d(y,{T7:()=>A,TY:()=>j,tN:()=>T});var t=e(31085),u=e(6820),h=e(25862),m=e(43836),S=e(10602);const x=(0,m.tK)("entity-context"),A=l=>{const{children:f,entity:P,loading:R,error:b,refresh:g}=l,v={entity:P,loading:R,error:b,refresh:g};return(0,t.jsx)(x.Provider,{value:(0,S.B)({1:v}),children:(0,t.jsx)(h.Ig,{attributes:{...P?{entityRef:(0,u.U2)(P)}:void 0},children:f})})},C=l=>_jsx(A,{entity:l.entity,loading:!l.entity,error:void 0,refresh:void 0,children:l.children});function T(){const l=(0,m.qO)("entity-context");if(!l)throw new Error("Entity context is not available");const f=l.atVersion(1);if(!f)throw new Error("EntityContext v1 not available");if(!f.entity)throw new Error("useEntity hook is being called outside of an EntityLayout where the entity has not been loaded. If this is intentional, please use useAsyncEntity instead.");return{entity:f.entity}}function j(){const l=(0,m.qO)("entity-context");if(!l)throw new Error("Entity context is not available");const f=l.atVersion(1);if(!f)throw new Error("EntityContext v1 not available");const{entity:P,loading:R,error:b,refresh:g}=f;return{entity:P,loading:R,error:b,refresh:g}}},90759:(N,y,e)=>{e.d(y,{W:()=>u});var t=e(93184);const u=(0,t.h)({id:"catalog",messages:{indexPage:{title:"{{orgName}} Catalog",createButtonTitle:"Create",supportButtonContent:"All your software catalog entities"},aboutCard:{title:"About",refreshButtonTitle:"Schedule entity refresh",editButtonTitle:"Edit Metadata",createSimilarButtonTitle:"Create something similar",refreshScheduledMessage:"Refresh scheduled",launchTemplate:"Launch Template",viewTechdocs:"View TechDocs",viewSource:"View Source",descriptionField:{label:"Description",value:"No description"},ownerField:{label:"Owner",value:"No Owner"},domainField:{label:"Domain",value:"No Domain"},systemField:{label:"System",value:"No System"},parentComponentField:{label:"Parent Component",value:"No Parent Component"},typeField:{label:"Type"},lifecycleField:{label:"Lifecycle"},tagsField:{label:"Tags",value:"No Tags"},targetsField:{label:"Targets"}},searchResultItem:{lifecycle:"Lifecycle",Owner:"Owner"},catalogTable:{warningPanelTitle:"Could not fetch catalog entities.",viewActionTitle:"View",editActionTitle:"Edit",starActionTitle:"Add to favorites",unStarActionTitle:"Remove from favorites"},dependencyOfComponentsCard:{title:"Dependency of components",emptyMessage:"No component depends on this component"},dependsOnComponentsCard:{title:"Depends on components",emptyMessage:"No component is a dependency of this component"},dependsOnResourcesCard:{title:"Depends on resources",emptyMessage:"No resource is a dependency of this component"},entityContextMenu:{copiedMessage:"Copied!",moreButtonTitle:"More",inspectMenuTitle:"Inspect entity",copyURLMenuTitle:"Copy entity URL",unregisterMenuTitle:"Unregister entity"},entityLabelsCard:{title:"Labels",emptyDescription:"No labels defined for this entity. You can add labels to your entity YAML as shown in the highlighted example below:",readMoreButtonTitle:"Read more"},entityLabels:{warningPanelTitle:"Entity not found",ownerLabel:"Owner",lifecycleLabel:"Lifecycle"},entityLinksCard:{title:"Links",emptyDescription:"No links defined for this entity. You can add links to your entity YAML as shown in the highlighted example below:",readMoreButtonTitle:"Read more"},entityNotFound:{title:"Entity was not found",description:"Want to help us build this? Check out our Getting Started documentation.",docButtonTitle:"DOCS"},deleteEntity:{dialogTitle:"Are you sure you want to delete this entity?",deleteButtonTitle:"Delete",cancelButtonTitle:"Cancel",description:"This entity is not referenced by any location and is therefore not receiving updates. Click here to delete."},entityProcessingErrorsDescription:"The error below originates from",entityRelationWarningDescription:`This entity has relations to other entities, which can't be found in the catalog.
2
+ Entities not found are: `,hasComponentsCard:{title:"Has components",emptyMessage:"No component is part of this system"},hasResourcesCard:{title:"Has resources",emptyMessage:"No resource is part of this system"},hasSubcomponentsCard:{title:"Has subcomponents",emptyMessage:"No subcomponent is part of this component"},hasSubdomainsCard:{title:"Has subdomains",emptyMessage:"No subdomain is part of this domain"},hasSystemsCard:{title:"Has systems",emptyMessage:"No system is part of this domain"},relatedEntitiesCard:{emptyHelpLinkTitle:"Learn how to change this"},systemDiagramCard:{title:"System Diagram",description:"Use pinch & zoom to move around the diagram.",edgeLabels:{partOf:"part of",provides:"provides",dependsOn:"depends on"}}}})},65724:(N,y,e)=>{e.r(y),e.d(y,{AboutCard:()=>rt,AboutContent:()=>pe,AboutField:()=>E});var t=e(31085),u=e(14041),h=e(58837),m=e(40703),S=e(48653),x=e(45685),A=e(37197),C=e(29365),T=e(74011),j=e(75625),l=e(82451),f=e(25534),P=e(53373),R=e.n(P),b=e(86613),g=e(72072),v=e(10394),c=e(72501);const O=(0,h.A)(i=>({link:{display:"grid",justifyItems:"center",gridGap:4,textAlign:"center"},disabled:{color:i.palette.text.secondary,cursor:"default"},primary:{color:i.palette.primary.main},secondary:{color:i.palette.secondary.main},label:{textTransform:"uppercase",fontWeight:i.typography.fontWeightBold,letterSpacing:1.2}}),{name:"BackstageIconLinkVertical"});function K({color:i="primary",disabled:n=!1,href:s="#",icon:a=(0,t.jsx)(b.A,{}),label:o,onClick:r,title:d}){const p=O();return n?(0,t.jsxs)(v.A,{title:d,className:R()(p.link,p.disabled),children:[a,(0,t.jsx)(c.A,{variant:"caption",component:"span",className:p.label,children:o})]}):(0,t.jsxs)(g.N_,{title:d,className:R()(p.link,p[i]),to:s,onClick:r,children:[a,(0,t.jsx)(c.A,{variant:"caption",component:"span",className:p.label,children:o})]})}const J=(0,h.A)(i=>({links:{margin:i.spacing(2,0),display:"grid",gridAutoFlow:"column",gridAutoColumns:"min-content",gridGap:i.spacing(3)}}),{name:"BackstageHeaderIconLinkRow"});function X(i){const{links:n}=i,s=J();return(0,t.jsx)("nav",{className:s.links,children:n.map((a,o)=>(0,t.jsx)(K,{...a},o+1))})}var me=e(31129),F=e(72427),Q=e(9222),ee=e(82266),ue=e(36017),he=e(39837),W=e(87849),fe=e(96726),ye=e(13660);const ge=i=>{const{type:n}=i,s=(0,ee.n)(),a=ye.A,o=n?s.getSystemIcon(n)??a:a;return(0,t.jsx)(o,{})};var te=e(72348),ne=e(17736),Z=e(6820),D=e(99538),ie=e(78692);function be(i,n){const s=i.metadata.annotations?.[ne.I4];if(s)try{const a=(0,ie.aY)(s),o=n.byUrl(a.target);return{locationTargetUrl:a.target,integrationType:o?.type}}catch{return}}var ae=e(7341),se=e(39292);function ve(i){const{entity:n,loading:s,error:a}=(0,D.TY)(),{allowed:o,loading:r,error:d}=(0,se.J)({permission:i,resourceRef:n?(0,Z.U2)(n):void 0});return s||r?{loading:!0,allowed:!1}:a?{loading:!1,allowed:!1,error:a}:{loading:!1,allowed:o,error:d}}var xe=e(35773),oe=e(86202),Ae=e(65614),Ce=e(11601),Te=e.n(Ce);const je=JSON.parse(`{"$schema":"http://json-schema.org/draft-07/schema","$id":"Entity","description":"The parts of the format that's common to all versions/kinds of entity.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Component","metadata":{"name":"LoremService","description":"Creates Lorems like a pro.","labels":{"product_name":"Random value Generator"},"annotations":{"docs":"https://github.com/..../tree/develop/doc"}},"spec":{"type":"service","lifecycle":"production","owner":"tools"}}],"type":"object","required":["apiVersion","kind","metadata"],"additionalProperties":false,"properties":{"apiVersion":{"type":"string","description":"The version of specification format for this particular entity that this is written against.","minLength":1,"examples":["backstage.io/v1alpha1","my-company.net/v1","1.0"]},"kind":{"type":"string","description":"The high level entity type being described.","minLength":1,"examples":["API","Component","Domain","Group","Location","Resource","System","Template","User"]},"metadata":{"$ref":"EntityMeta"},"spec":{"type":"object","description":"The specification data describing the entity itself."},"relations":{"type":"array","description":"The relations that this entity has with other entities.","items":{"$ref":"common#relation"}},"status":{"$ref":"common#status"}}}`),Ee=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"EntityEnvelope","description":"The envelope skeleton parts of an entity - whatever is necessary to be able to give it a ref and pass to further validation / policy checking.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Component","metadata":{"name":"LoremService"}}],"type":"object","required":["apiVersion","kind","metadata"],"additionalProperties":true,"properties":{"apiVersion":{"type":"string","description":"The version of specification format for this particular entity that this is written against.","minLength":1,"examples":["backstage.io/v1alpha1","my-company.net/v1","1.0"]},"kind":{"type":"string","description":"The high level entity type being described.","minLength":1,"examples":["API","Component","Domain","Group","Location","Resource","System","Template","User"]},"metadata":{"type":"object","required":["name"],"additionalProperties":true,"properties":{"name":{"type":"string","description":"The name of the entity. Must be unique within the catalog at any given point in time, for any given namespace + kind pair.","examples":["metadata-proxy"],"minLength":1},"namespace":{"type":"string","description":"The namespace that the entity belongs to.","default":"default","examples":["default","admin"],"minLength":1}}}}}'),Le=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"EntityMeta","description":"Metadata fields common to all versions/kinds of entity.","examples":[{"uid":"e01199ab-08cc-44c2-8e19-5c29ded82521","etag":"lsndfkjsndfkjnsdfkjnsd==","name":"my-component-yay","namespace":"the-namespace","labels":{"backstage.io/custom":"ValueStuff"},"annotations":{"example.com/bindings":"are-secret"},"tags":["java","data"]}],"type":"object","required":["name"],"additionalProperties":true,"properties":{"uid":{"type":"string","description":"A globally unique ID for the entity. This field can not be set by the user at creation time, and the server will reject an attempt to do so. The field will be populated in read operations. The field can (optionally) be specified when performing update or delete operations, but the server is free to reject requests that do so in such a way that it breaks semantics.","examples":["e01199ab-08cc-44c2-8e19-5c29ded82521"],"minLength":1},"etag":{"type":"string","description":"An opaque string that changes for each update operation to any part of the entity, including metadata. This field can not be set by the user at creation time, and the server will reject an attempt to do so. The field will be populated in read operations. The field can (optionally) be specified when performing update or delete operations, and the server will then reject the operation if it does not match the current stored value.","examples":["lsndfkjsndfkjnsdfkjnsd=="],"minLength":1},"name":{"type":"string","description":"The name of the entity. Must be unique within the catalog at any given point in time, for any given namespace + kind pair.","examples":["metadata-proxy"],"minLength":1},"namespace":{"type":"string","description":"The namespace that the entity belongs to.","default":"default","examples":["default","admin"],"minLength":1},"title":{"type":"string","description":"A display name of the entity, to be presented in user interfaces instead of the name property, when available.","examples":["React SSR Template"],"minLength":1},"description":{"type":"string","description":"A short (typically relatively few words, on one line) description of the entity."},"labels":{"type":"object","description":"Key/value pairs of identifying information attached to the entity.","additionalProperties":true,"patternProperties":{"^.+$":{"type":"string"}}},"annotations":{"type":"object","description":"Key/value pairs of non-identifying auxiliary information attached to the entity.","additionalProperties":true,"patternProperties":{"^.+$":{"type":"string"}}},"tags":{"type":"array","description":"A list of single-valued strings, to for example classify catalog entities in various ways.","items":{"type":"string","minLength":1}},"links":{"type":"array","description":"A list of external hyperlinks related to the entity. Links can provide additional contextual information that may be located outside of Backstage itself. For example, an admin dashboard or external CMS page.","items":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"A url in a standard uri format.","examples":["https://admin.example-org.com"],"minLength":1},"title":{"type":"string","description":"A user friendly display name for the link.","examples":["Admin Dashboard"],"minLength":1},"icon":{"type":"string","description":"A key representing a visual icon to be displayed in the UI.","examples":["dashboard"],"minLength":1},"type":{"type":"string","description":"An optional value to categorize links into specific groups.","examples":["runbook","documentation","logs","dashboard"],"minLength":1}}}}}}'),ke=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"common","type":"object","description":"Common definitions to import from other schemas","definitions":{"reference":{"$id":"#reference","type":"object","description":"A reference by name to another entity.","required":["kind","namespace","name"],"additionalProperties":false,"properties":{"kind":{"type":"string","description":"The kind field of the entity.","minLength":1},"namespace":{"type":"string","description":"The metadata.namespace field of the entity.","minLength":1},"name":{"type":"string","description":"The metadata.name field of the entity.","minLength":1}}},"relation":{"$id":"#relation","type":"object","description":"A directed relation from one entity to another.","required":["type","targetRef"],"additionalProperties":false,"properties":{"type":{"type":"string","minLength":1,"pattern":"^\\\\w+$","description":"The type of relation."},"target":{"$ref":"#reference","deprecated":true},"targetRef":{"type":"string","minLength":1,"description":"The entity ref of the target of this relation."}}},"status":{"$id":"#status","type":"object","description":"The current status of the entity, as claimed by various sources.","required":[],"additionalProperties":true,"properties":{"items":{"type":"array","items":{"$ref":"#statusItem"}}}},"statusItem":{"$id":"#statusItem","type":"object","description":"A specific status item on a well known format.","required":["type","level","message"],"additionalProperties":true,"properties":{"type":{"type":"string","minLength":1},"level":{"$ref":"#statusLevel","description":"The status level / severity of the status item."},"message":{"type":"string","description":"A brief message describing the status, intended for human consumption."},"error":{"$ref":"#error","description":"An optional serialized error object related to the status."}}},"statusLevel":{"$id":"#statusLevel","type":"string","description":"A status level / severity.","enum":["info","warning","error"]},"error":{"$id":"#error","type":"object","description":"A serialized error object.","required":["name","message"],"additionalProperties":true,"properties":{"name":{"type":"string","examples":["Error","InputError"],"description":"The type name of the error","minLength":1},"message":{"type":"string","description":"The message of the error"},"code":{"type":"string","description":"An error code associated with the error"},"stack":{"type":"string","description":"An error stack trace"}}}}}'),re=new Map,Se=[Ee,je,Le,ke];function Pe(i){if(!i?.length)throw new TypeError("Unknown error");const n=i[0];throw new TypeError(`${n.instancePath||"<root>"} ${n.message}${n.params?` - ${Object.entries(n.params).map(([s,a])=>`${s}: ${a}`).join(", ")}`:""}`)}function Re(i,n={}){const s=n?.disableCache??!1,a=s?"":JSON.stringify(i);if(!s){const p=re.get(a);if(p)return p}const o=we(i),r=new(Te())({allowUnionTypes:!0,allErrors:!0,validateSchema:!0});o.length&&r.addSchema(o,void 0,void 0,!0);const d=r.compile(i);return s||re.set(a,d),d}function we(i){if(typeof i!="object")return[];const n=new Set;i.$id&&n.add(i.$id);const s=new Array,a=[i];for(;a.length;){const o=a.pop();for(const r of Oe(o))if(!n.has(r)){n.add(r);const d=Se.find(p=>p.$id===r);d&&(s.push(d),a.push(d))}}return s}function*Oe(i){const n=[i];for(;n.length;){const s=n.pop();if(typeof s=="object"&&s)for(const[a,o]of Object.entries(s))a==="$ref"&&typeof o=="string"?yield o.split("#")[0]:n.push(o)}}function Ie(i){const n=Re(i);return s=>{if(n(s)===!0)return s;const o=n.errors?.filter(r=>["/kind","/apiVersion"].includes(r.instancePath));if(o?.length&&o.every(r=>r.keyword==="enum"))return!1;throw Pe(n.errors)}}const Me=Ie(JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"TemplateV1beta3","description":"A Template describes a scaffolding task for use with the Scaffolder. It describes the required parameters as well as a series of steps that will be taken to execute the scaffolding task.","examples":[{"apiVersion":"scaffolder.backstage.io/v1beta3","kind":"Template","metadata":{"name":"react-ssr-template","title":"React SSR Template","description":"Next.js application skeleton for creating isomorphic web applications.","tags":["recommended","react"]},"spec":{"owner":"artist-relations-team","type":"website","lifecycle":"production","parameters":{"required":["name","description","repoUrl"],"backstage:permissions":{"tags":["one","two"]},"properties":{"name":{"title":"Name","type":"string","description":"Unique name of the component"},"description":{"title":"Description","type":"string","description":"Description of the component"},"repoUrl":{"title":"Pick a repository","type":"string","ui:field":"RepoUrlPicker"}}},"steps":[{"id":"fetch","name":"Fetch","action":"fetch:plain","parameters":{"url":"./template"},"backstage:permissions":{"tags":["one","two"]}},{"id":"publish","name":"Publish to GitHub","action":"publish:github","parameters":{"repoUrl":"${{ parameters.repoUrl }}"},"if":"${{ parameters.repoUrl }}"}],"output":{"catalogInfoUrl":"${{ steps.publish.output.catalogInfoUrl }}"}}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["scaffolder.backstage.io/v1beta3"]},"kind":{"enum":["Template"]},"spec":{"type":"object","required":["type","steps"],"properties":{"type":{"type":"string","description":"The type of component created by the template. The software catalog accepts any type value, but an organization should take great care to establish a proper taxonomy for these. Tools including Backstage itself may read this field and behave differently depending on its value. For example, a website type component may present tooling in the Backstage interface that is specific to just websites.","examples":["service","website","library"],"minLength":1},"owner":{"type":"string","description":"The user (or group) owner of the template","minLength":1},"lifecycle":{"type":"string","description":"The lifecycle state of the template.","examples":["experimental","production","deprecated"],"minLength":1},"parameters":{"oneOf":[{"type":"object","description":"The JSONSchema describing the inputs for the template.","properties":{"backstage:permissions":{"type":"object","description":"Object used for authorizing the parameter","properties":{"tags":{"type":"array","items":{"type":"string"}}}}}},{"type":"array","description":"A list of separate forms to collect parameters.","items":{"type":"object","description":"The JSONSchema describing the inputs for the template.","properties":{"backstage:permissions":{"type":"object","description":"Object used for authorizing the parameter","properties":{"tags":{"type":"array","items":{"type":"string"}}}}}}}]},"presentation":{"type":"object","description":"A way to redefine the presentation of the scaffolder.","properties":{"buttonLabels":{"type":"object","description":"A way to redefine the labels for actionable buttons.","properties":{"backButtonText":{"type":"string","description":"A button which return the user to one step back."},"createButtonText":{"type":"string","description":"A button which start the execution of the template."},"reviewButtonText":{"type":"string","description":"A button which open the review step to verify the input prior to start the execution."}}}}},"EXPERIMENTAL_recovery":{"type":"object","description":"A task recovery section.","properties":{"EXPERIMENTAL_strategy":{"type":"string","description":"Recovery strategy for your task (none or startOver). By default none"}}},"EXPERIMENTAL_formDecorators":{"type":"array","description":"A list of decorators and their inputs that the form should trigger before submitting the job","items":{"type":"object","properties":{"id":{"type":"string","description":"The form hook ID"},"input":{"type":"object","description":"A object describing the inputs to the form hook."}}}},"steps":{"type":"array","description":"A list of steps to execute.","items":{"type":"object","description":"A description of the step to execute.","required":["action"],"properties":{"id":{"type":"string","description":"The ID of the step, which can be used to refer to its outputs."},"name":{"type":"string","description":"The name of the step, which will be displayed in the UI during the scaffolding process."},"action":{"type":"string","description":"The name of the action to execute."},"input":{"type":"object","description":"A templated object describing the inputs to the action."},"if":{"type":["string","boolean"],"description":"A templated condition that skips the step when evaluated to false. If the condition is true or not defined, the step is executed. The condition is true, if the input is not `false`, `undefined`, `null`, `\\"\\"`, `0`, or `[]`."},"backstage:permissions":{"type":"object","description":"Object used for authorizing the step","properties":{"tags":{"type":"array","items":{"type":"string"}}}}}}},"output":{"type":"object","description":"A templated object describing the outputs of the scaffolding task.","properties":{"links":{"type":"array","description":"A list of external hyperlinks, typically pointing to resources created or updated by the template","items":{"type":"object","required":[],"properties":{"url":{"type":"string","description":"A url in a standard uri format.","examples":["https://github.com/my-org/my-new-repo"],"minLength":1},"entityRef":{"type":"string","description":"An entity reference to an entity in the catalog.","examples":["Component:default/my-app"],"minLength":1},"title":{"type":"string","description":"A user friendly display name for the link.","examples":["View new repo"],"minLength":1},"icon":{"type":"string","description":"A key representing a visual icon to be displayed in the UI.","examples":["dashboard"],"minLength":1}}}},"text":{"type":"array","description":"A list of Markdown text blobs, like output data from the template.","items":{"type":"object","required":[],"properties":{"title":{"type":"string","description":"A user friendly display name for the text.","examples":["Output Content"],"minLength":1},"icon":{"type":"string","description":"A key representing a visual icon to be displayed in the UI.","examples":["dashboard"],"minLength":1},"content":{"type":"string","description":"The text blob to display in the UI, rendered as Markdown.","examples":["**hey** _I\'m_ Markdown"]}}}}},"additionalProperties":{"type":"string"}}}}}}]}')),pt={async check(i){return Me(i)===i}},Ne=i=>i.apiVersion==="scaffolder.backstage.io/v1beta3"&&i.kind==="Template";var I=e(14117);const le="scaffolder-template",De=(0,I.i)({name:"scaffolder.action.execute",attributes:{},resourceType:"scaffolder-action"}),Ue=(0,I.i)({name:"scaffolder.template.parameter.read",attributes:{action:"read"},resourceType:le}),Be=(0,I.i)({name:"scaffolder.template.step.read",attributes:{action:"read"},resourceType:le}),$e=(0,I.i)({name:"scaffolder.task.read",attributes:{action:"read"}}),ce=(0,I.i)({name:"scaffolder.task.create",attributes:{action:"create"}}),Fe=(0,I.i)({name:"scaffolder.task.cancel",attributes:{}}),We=(0,I.i)({name:"scaffolder.template.management",attributes:{}}),ze=[Ue,Be],Ve=[De],Ke=[Fe,ce,$e],ut=[...ze,...Ve,...Ke,We];var q=e(95203),z=e(90759),He=e(91638);const Ge="backstage.io/source-template",Ye=i=>{const n=(0,F.gf)(ae.v),{value:s}=(0,He.A)(async()=>{const a=i.metadata.annotations?.[Ge];let o;if(a)try{const r=await n.getEntityByRef(a);return o=(0,Z.KU)(a),r!==void 0?o:void 0}catch{return}},[n,i]);return s};var H=e(51372),G=e(67871),Y=e(34428),Je=e(67720),de=e(42899),Xe=e(4650),Qe=e(82442);const Ze=(0,h.A)(i=>({value:{fontWeight:"bold",overflow:"hidden",lineHeight:"24px",wordBreak:"break-word"},label:{color:i.palette.text.secondary,textTransform:"uppercase",fontSize:"10px",fontWeight:"bold",letterSpacing:.5,overflow:"hidden",whiteSpace:"nowrap"}}));function E(i){const{label:n,value:s,gridSizes:a,children:o,className:r}=i,d=Ze(),p=(0,Qe.O)(o,w=>w.getElements()),U=p.length>0?p:(0,t.jsx)(c.A,{variant:"body2",className:d.value,children:s||"unknown"});return(0,t.jsxs)(de.A,{item:!0,...a,className:r,children:[(0,t.jsx)(c.A,{variant:"h2",className:d.label,children:n}),U]})}var qe=e(18750);const _e=(0,h.A)({description:{wordBreak:"break-word"}});function et(i,n,s){if(n==="url"||i.includes("://"))return i;const a=s.type==="file"?`file://${s.target}`:s.target;return n==="file"||s.type==="file"?new URL(i,a).href:a}function pe(i){const{entity:n}=i,s=_e(),{t:a}=(0,W.i)(z.W),o=n.kind.toLocaleLowerCase("en-US")==="system",r=n.kind.toLocaleLowerCase("en-US")==="resource",d=n.kind.toLocaleLowerCase("en-US")==="component",p=n.kind.toLocaleLowerCase("en-US")==="api",U=n.kind.toLocaleLowerCase("en-US")==="template",w=n.kind.toLocaleLowerCase("en-US")==="location",_=n.kind.toLocaleLowerCase("en-US")==="group",L=(0,G.t)(n,H.jn,{kind:"system"}),V=(0,G.t)(n,H.jn,{kind:"component"}),M=(0,G.t)(n,H.jn,{kind:"domain"}),B=(0,G.t)(n,H.vv);let $;try{$=(0,ie.Cr)(n)}catch{$=void 0}return(0,t.jsxs)(de.A,{container:!0,children:[(0,t.jsx)(E,{label:a("aboutCard.descriptionField.label"),gridSizes:{xs:12},children:(0,t.jsx)(Xe.h,{className:s.description,content:n?.metadata?.description||a("aboutCard.descriptionField.value")})}),(0,t.jsx)(E,{label:a("aboutCard.ownerField.label"),value:a("aboutCard.ownerField.value"),className:s.description,gridSizes:{xs:12,sm:6,lg:4},children:B.length>0&&(0,t.jsx)(Y.i,{entityRefs:B,defaultKind:"group"})}),(o||M.length>0)&&(0,t.jsx)(E,{label:a("aboutCard.domainField.label"),value:a("aboutCard.domainField.value"),gridSizes:{xs:12,sm:6,lg:4},children:M.length>0&&(0,t.jsx)(Y.i,{entityRefs:M,defaultKind:"domain"})}),(p||d||r||L.length>0)&&(0,t.jsx)(E,{label:a("aboutCard.systemField.label"),value:a("aboutCard.systemField.value"),gridSizes:{xs:12,sm:6,lg:4},children:L.length>0&&(0,t.jsx)(Y.i,{entityRefs:L,defaultKind:"system"})}),d&&V.length>0&&(0,t.jsx)(E,{label:a("aboutCard.parentComponentField.label"),value:a("aboutCard.parentComponentField.value"),gridSizes:{xs:12,sm:6,lg:4},children:(0,t.jsx)(Y.i,{entityRefs:V,defaultKind:"component"})}),(p||d||r||U||_||w||typeof n?.spec?.type=="string")&&(0,t.jsx)(E,{label:a("aboutCard.typeField.label"),value:n?.spec?.type,gridSizes:{xs:12,sm:6,lg:4}}),(p||d||typeof n?.spec?.lifecycle=="string")&&(0,t.jsx)(E,{label:a("aboutCard.lifecycleField.label"),value:n?.spec?.lifecycle,gridSizes:{xs:12,sm:6,lg:4}}),(0,t.jsx)(E,{label:a("aboutCard.tagsField.label"),value:a("aboutCard.tagsField.value"),gridSizes:{xs:12,sm:6,lg:4},children:(n?.metadata?.tags||[]).map(k=>(0,t.jsx)(Je.A,{size:"small",label:k},k))}),w&&(n?.spec?.targets||n?.spec?.target)&&(0,t.jsx)(E,{label:a("aboutCard.targetsField.label"),gridSizes:{xs:12},children:(0,t.jsx)(qe.m,{cols:1,items:(n.spec.targets||[n.spec.target]).map(k=>k).map(k=>({text:k,href:et(k,n?.spec?.type||"unknown",$)}))})})]})}function tt(){const{entity:i}=(0,D.tN)(),n=(0,F.gf)(fe.Y),{t:s}=(0,W.i)(z.W),a=be(i,n);return{label:s("aboutCard.viewSource"),disabled:!a,icon:(0,t.jsx)(ge,{type:a?.integrationType}),href:a?.locationTargetUrl}}function nt(){const{entity:i}=(0,D.tN)(),n=(0,Q.S)(q.UJ),{t:s}=(0,W.i)(z.W);return{label:s("aboutCard.viewTechdocs"),disabled:!(i.metadata.annotations?.[oe.As]||i.metadata.annotations?.[oe.GO])||!n,icon:(0,t.jsx)(l.A,{}),href:(0,Ae.b1)(i,n)}}function it(){const i=(0,ee.n)(),{entity:n}=(0,D.tN)(),s=(0,Q.S)(q.Zg),{t:a}=(0,W.i)(z.W),o=i.getSystemIcon("scaffolder")??f.A,{allowed:r}=(0,se.J)({permission:ce});return{label:a("aboutCard.launchTemplate"),icon:(0,t.jsx)(o,{}),disabled:!s||!r,href:s&&s({templateName:n.metadata.name,namespace:n.metadata.namespace||te.oQ})}}function at(){const{entity:i}=(0,D.tN)(),n=tt(),s=nt(),a=it(),o=[n,s];return Ne(i)&&o.push(a),(0,t.jsx)(X,{links:o})}const st=(0,h.A)({gridItemCard:{display:"flex",flexDirection:"column",height:"calc(100% - 10px)",marginBottom:"10px"},fullHeightCard:{display:"flex",flexDirection:"column",height:"100%"},gridItemCardContent:{flex:1},fullHeightCardContent:{flex:1}});function ot(i){const{variant:n,subheader:s}=i,a=st(),{entity:o}=(0,D.tN)(),r=(0,F.gf)(ae.v),d=(0,F.gf)(ue.k),p=(0,F.gf)(he.m),U=(0,Q.S)(q.Zg),w=Ye(o),{allowed:_}=ve(xe.tS),{t:L}=(0,W.i)(z.W),V=o.metadata.annotations?.[te.P];let M="";n==="gridItem"?M=a.gridItemCard:n==="fullHeight"&&(M=a.fullHeightCard);let B="";n==="gridItem"?B=a.gridItemCardContent:n==="fullHeight"&&(B=a.fullHeightCardContent);const $=o.metadata.annotations?.[ne.Eo],k=$?.startsWith("url:")||$?.startsWith("file:"),lt=(0,u.useCallback)(async()=>{try{await r.refreshEntity((0,Z.U2)(o)),d.post({message:L("aboutCard.refreshScheduledMessage"),severity:"info",display:"transient"})}catch(ct){p.post(ct)}},[r,o,d,L,p]);return(0,t.jsxs)(m.A,{className:M,children:[(0,t.jsx)(x.A,{title:L("aboutCard.title"),action:(0,t.jsxs)(t.Fragment,{children:[k&&_&&(0,t.jsx)(C.A,{"aria-label":"Refresh",title:L("aboutCard.refreshButtonTitle"),onClick:lt,children:(0,t.jsx)(T.A,{})}),(0,t.jsx)(C.A,{component:g.N_,"aria-label":"Edit",disabled:!V,title:L("aboutCard.editButtonTitle"),to:V??"#",children:(0,t.jsx)(j.A,{})}),w&&U&&(0,t.jsx)(C.A,{component:g.N_,title:L("aboutCard.createSimilarButtonTitle"),to:U({namespace:w.namespace,templateName:w.name}),children:(0,t.jsx)(me.z9,{id:"scaffolder"})})]}),subheader:s??(0,t.jsx)(at,{})}),(0,t.jsx)(A.A,{}),(0,t.jsx)(S.A,{className:B,children:(0,t.jsx)(pe,{entity:o})})]})}function rt(i){return(0,t.jsx)(ot,{...i})}},18750:(N,y,e)=>{e.d(y,{m:()=>R});var t=e(31085),u=e(24709),h=e(44913),m=e(10394),S=e(72501),x=e(58837),A=e(23127),C=e(72072);const T=(0,x.A)({svgIcon:{display:"inline-block","& svg":{display:"inline-block",fontSize:"inherit",verticalAlign:"baseline"}}});function j(b){const{href:g,text:v,Icon:c}=b,O=T();return(0,t.jsxs)(m.A,{display:"flex",children:[(0,t.jsx)(m.A,{mr:1,className:O.svgIcon,children:(0,t.jsx)(S.A,{component:"div",children:c?(0,t.jsx)(c,{}):(0,t.jsx)(A.A,{})})}),(0,t.jsx)(m.A,{flexGrow:"1",children:(0,t.jsx)(C.N_,{to:g,target:"_blank",rel:"noopener",children:v||g})})]})}var l=e(5893);const f={xs:1,sm:1,md:1,lg:2,xl:3};function P(b){const g=[(0,l.A)(c=>c.breakpoints.up("xl"))?"xl":null,(0,l.A)(c=>c.breakpoints.up("lg"))?"lg":null,(0,l.A)(c=>c.breakpoints.up("md"))?"md":null,(0,l.A)(c=>c.breakpoints.up("sm"))?"sm":null,(0,l.A)(c=>c.breakpoints.up("xs"))?"xs":null];let v=1;if(typeof b=="number")v=b;else{const c=g.find(O=>O!==null)??"xs";v=b?.[c]??f[c]}return v}function R(b){const{items:g,cols:v=void 0}=b,c=P(v);return(0,t.jsx)(u.A,{rowHeight:"auto",cols:c,children:g.map(({text:O,href:K,Icon:J},X)=>(0,t.jsx)(h.A,{children:(0,t.jsx)(j,{href:K,text:O??K,Icon:J})},X))})}},14117:(N,y,e)=>{e.d(y,{i:()=>t});function t({name:u,attributes:h,resourceType:m}){return m?{type:"resource",name:u,attributes:h,resourceType:m}:{type:"basic",name:u,attributes:h}}},39292:(N,y,e)=>{e.d(y,{J:()=>x});var t=e(72427),u=e(96824),h=e(13646),m=e(54241),S=e(68721);function x(A){const C=(0,t.gf)(u.x),{data:T,error:j}=(0,S.Ay)(A,async l=>{if((0,h.OL)(l.permission)&&!l.resourceRef)return m.b.DENY;const{result:f}=await C.authorize(l);return f});return j?{error:j,loading:!1,allowed:!1}:T===void 0?{loading:!0,allowed:!1}:{loading:!1,allowed:T===m.b.ALLOW}}}}]);})();
3
+
4
+ //# sourceMappingURL=5724.5992f8d0.chunk.js.map