@techdocs/cli 0.0.0-nightly-20240813022007 → 0.0.0-nightly-20240814021923

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +15 -4
  2. package/dist/embedded-app/.config-schema.json +106 -106
  3. package/dist/embedded-app/index.html +1 -1
  4. package/dist/embedded-app/static/{124.a0a572f3.chunk.js → 124.7c4c81f4.chunk.js} +3 -3
  5. package/dist/embedded-app/static/124.7c4c81f4.chunk.js.map +1 -0
  6. package/dist/embedded-app/static/{2420.f9fbc916.chunk.js → 2420.1bc102de.chunk.js} +3 -3
  7. package/dist/embedded-app/static/2420.1bc102de.chunk.js.map +1 -0
  8. package/dist/embedded-app/static/{6271.1952ce76.chunk.js → 6271.d5297b21.chunk.js} +3 -3
  9. package/dist/embedded-app/static/6271.d5297b21.chunk.js.map +1 -0
  10. package/dist/embedded-app/static/{8384.96619c53.chunk.js → 8384.bfea9665.chunk.js} +3 -3
  11. package/dist/embedded-app/static/8384.bfea9665.chunk.js.map +1 -0
  12. package/dist/embedded-app/static/{898.815b96f0.chunk.js → 898.b3655147.chunk.js} +1 -1
  13. package/dist/embedded-app/static/{898.815b96f0.chunk.js.map → 898.b3655147.chunk.js.map} +1 -1
  14. package/dist/embedded-app/static/{9652.8daa9515.chunk.js → 9652.aec21fe8.chunk.js} +3 -3
  15. package/dist/embedded-app/static/9652.aec21fe8.chunk.js.map +1 -0
  16. package/dist/embedded-app/static/{main.c6b39f1e.js → main.3d49bafb.js} +1 -1
  17. package/dist/embedded-app/static/{main.c6b39f1e.js.map → main.3d49bafb.js.map} +1 -1
  18. package/dist/embedded-app/static/module-react-router-dom.0c2bb614.js +23 -0
  19. package/dist/embedded-app/static/module-react-router-dom.0c2bb614.js.map +1 -0
  20. package/dist/embedded-app/static/module-react-router.dac764ce.js +23 -0
  21. package/dist/embedded-app/static/module-react-router.dac764ce.js.map +1 -0
  22. package/dist/embedded-app/static/{runtime.c6b39f1e.js → runtime.3d49bafb.js} +2 -2
  23. package/dist/embedded-app/static/{runtime.c6b39f1e.js.map → runtime.3d49bafb.js.map} +1 -1
  24. package/dist/embedded-app/static/{vendor.c6b39f1e.js → vendor.3d49bafb.js} +1 -1
  25. package/dist/embedded-app/static/{vendor.c6b39f1e.js.map → vendor.3d49bafb.js.map} +1 -1
  26. package/dist/index.cjs.js +1 -1
  27. package/package.json +5 -5
  28. package/dist/embedded-app/static/124.a0a572f3.chunk.js.map +0 -1
  29. package/dist/embedded-app/static/2420.f9fbc916.chunk.js.map +0 -1
  30. package/dist/embedded-app/static/6271.1952ce76.chunk.js.map +0 -1
  31. package/dist/embedded-app/static/8384.96619c53.chunk.js.map +0 -1
  32. package/dist/embedded-app/static/9652.8daa9515.chunk.js.map +0 -1
  33. package/dist/embedded-app/static/module-react-router-dom.473a1e8a.js +0 -22
  34. package/dist/embedded-app/static/module-react-router-dom.473a1e8a.js.map +0 -1
  35. package/dist/embedded-app/static/module-react-router.933956ac.js +0 -22
  36. package/dist/embedded-app/static/module-react-router.933956ac.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,13 +1,24 @@
1
1
  # @techdocs/cli
2
2
 
3
- ## 0.0.0-nightly-20240813022007
3
+ ## 0.0.0-nightly-20240814021923
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies
8
- - @backstage/backend-defaults@0.0.0-nightly-20240813022007
9
- - @backstage/plugin-techdocs-node@0.0.0-nightly-20240813022007
10
- - @backstage/catalog-model@0.0.0-nightly-20240813022007
8
+ - @backstage/backend-defaults@0.0.0-nightly-20240814021923
9
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20240814021923
10
+ - @backstage/catalog-model@0.0.0-nightly-20240814021923
11
+ - @backstage/cli-common@0.1.14
12
+ - @backstage/config@1.2.0
13
+
14
+ ## 1.8.17-next.3
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+ - @backstage/backend-defaults@0.4.2-next.3
20
+ - @backstage/plugin-techdocs-node@1.12.9-next.3
21
+ - @backstage/catalog-model@1.6.0-next.0
11
22
  - @backstage/cli-common@0.1.14
12
23
  - @backstage/config@1.2.0
13
24
 
@@ -105,26 +105,6 @@
105
105
  },
106
106
  "path": "../cli/package.json"
107
107
  },
108
- {
109
- "path": "../../plugins/permission-common/config.d.ts",
110
- "value": {
111
- "type": "object",
112
- "properties": {
113
- "permission": {
114
- "description": "Configuration options for Backstage permissions and authorization",
115
- "type": "object",
116
- "properties": {
117
- "enabled": {
118
- "description": "Whether authorization is enabled in Backstage. Defaults to false, which means authorization\nrequests will be automatically allowed without invoking the authorization policy.",
119
- "visibility": "frontend",
120
- "type": "boolean"
121
- }
122
- }
123
- }
124
- },
125
- "$schema": "http://json-schema.org/draft-07/schema#"
126
- }
127
- },
128
108
  {
129
109
  "path": "../core-app-api/config.d.ts",
130
110
  "value": {
@@ -354,6 +334,26 @@
354
334
  "$schema": "http://json-schema.org/draft-07/schema#"
355
335
  }
356
336
  },
337
+ {
338
+ "path": "../../plugins/permission-common/config.d.ts",
339
+ "value": {
340
+ "type": "object",
341
+ "properties": {
342
+ "permission": {
343
+ "description": "Configuration options for Backstage permissions and authorization",
344
+ "type": "object",
345
+ "properties": {
346
+ "enabled": {
347
+ "description": "Whether authorization is enabled in Backstage. Defaults to false, which means authorization\nrequests will be automatically allowed without invoking the authorization policy.",
348
+ "visibility": "frontend",
349
+ "type": "boolean"
350
+ }
351
+ }
352
+ }
353
+ },
354
+ "$schema": "http://json-schema.org/draft-07/schema#"
355
+ }
356
+ },
357
357
  {
358
358
  "path": "../core-components/config.d.ts",
359
359
  "value": {
@@ -1707,7 +1707,7 @@
1707
1707
  }
1708
1708
  },
1709
1709
  {
1710
- "path": "../backend-defaults/config.d.ts",
1710
+ "path": "../backend-app-api/config.d.ts",
1711
1711
  "value": {
1712
1712
  "type": "object",
1713
1713
  "properties": {
@@ -1715,7 +1715,6 @@
1715
1715
  "type": "object",
1716
1716
  "properties": {
1717
1717
  "auth": {
1718
- "description": "Options used by the default auth, httpAuth and userInfo services.",
1719
1718
  "type": "object",
1720
1719
  "properties": {
1721
1720
  "dangerouslyDisableDefaultAuthPolicy": {
@@ -2023,56 +2022,6 @@
2023
2022
  "required": [
2024
2023
  "url"
2025
2024
  ]
2026
- },
2027
- "accessRestrictions": {
2028
- "description": "Restricts what types of access that are permitted for this access\nmethod. If no access restrictions are given, it'll have unlimited\naccess. This access restriction applies for the framework level;\nindividual plugins may have their own access control mechanisms\non top of this.",
2029
- "type": "array",
2030
- "items": {
2031
- "type": "object",
2032
- "properties": {
2033
- "plugin": {
2034
- "description": "Permit access to make requests to this plugin.\n\nCan be further refined by setting additional fields below.",
2035
- "type": "string"
2036
- },
2037
- "permission": {
2038
- "description": "If given, this method is limited to only performing actions\nwith these named permissions in this plugin.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
2039
- "anyOf": [
2040
- {
2041
- "type": "array",
2042
- "items": {
2043
- "type": "string"
2044
- }
2045
- },
2046
- {
2047
- "type": "string"
2048
- }
2049
- ]
2050
- },
2051
- "permissionAttribute": {
2052
- "description": "If given, this method is limited to only performing actions\nwhose permissions have these attributes.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
2053
- "type": "object",
2054
- "properties": {
2055
- "action": {
2056
- "description": "One of more of 'create', 'read', 'update', or 'delete'.",
2057
- "anyOf": [
2058
- {
2059
- "type": "array",
2060
- "items": {
2061
- "type": "string"
2062
- }
2063
- },
2064
- {
2065
- "type": "string"
2066
- }
2067
- ]
2068
- }
2069
- }
2070
- }
2071
- },
2072
- "required": [
2073
- "plugin"
2074
- ]
2075
- }
2076
2025
  }
2077
2026
  },
2078
2027
  "required": [
@@ -2087,21 +2036,46 @@
2087
2036
  "required": [
2088
2037
  "externalAccess"
2089
2038
  ]
2039
+ },
2040
+ "packages": {
2041
+ "anyOf": [
2042
+ {
2043
+ "type": "object",
2044
+ "properties": {
2045
+ "include": {
2046
+ "type": "array",
2047
+ "items": {
2048
+ "type": "string"
2049
+ }
2050
+ },
2051
+ "exclude": {
2052
+ "type": "array",
2053
+ "items": {
2054
+ "type": "string"
2055
+ }
2056
+ }
2057
+ }
2058
+ },
2059
+ {
2060
+ "const": "all",
2061
+ "type": "string"
2062
+ }
2063
+ ]
2090
2064
  }
2091
2065
  }
2092
2066
  },
2093
2067
  "discovery": {
2094
- "description": "Options used by the default discovery service.",
2068
+ "description": "Discovery options.",
2095
2069
  "type": "object",
2096
2070
  "properties": {
2097
2071
  "endpoints": {
2098
- "description": "A list of target baseUrls and the associated plugins.",
2072
+ "description": "Endpoints\n\nA list of target baseUrls and the associated plugins.",
2099
2073
  "type": "array",
2100
2074
  "items": {
2101
2075
  "type": "object",
2102
2076
  "properties": {
2103
2077
  "target": {
2104
- "description": "The target base URL to use for the plugin.\n\nCan be either a string or an object with internal and external keys.\nTargets with `{{pluginId}}` or `{{ pluginId }} in the URL will be replaced with the plugin ID.",
2078
+ "description": "The target baseUrl to use for the plugin\n\nCan be either a string or an object with internal and external keys.\nTargets with `{{pluginId}}` or `{{ pluginId }} in the url will be replaced with the pluginId.",
2105
2079
  "anyOf": [
2106
2080
  {
2107
2081
  "type": "object",
@@ -2124,7 +2098,7 @@
2124
2098
  ]
2125
2099
  },
2126
2100
  "plugins": {
2127
- "description": "Array of plugins which use the target base URL.",
2101
+ "description": "Array of plugins which use the target baseUrl.",
2128
2102
  "type": "array",
2129
2103
  "items": {
2130
2104
  "type": "string"
@@ -2147,7 +2121,7 @@
2147
2121
  }
2148
2122
  },
2149
2123
  {
2150
- "path": "../backend-app-api/config.d.ts",
2124
+ "path": "../backend-defaults/config.d.ts",
2151
2125
  "value": {
2152
2126
  "type": "object",
2153
2127
  "properties": {
@@ -2155,6 +2129,7 @@
2155
2129
  "type": "object",
2156
2130
  "properties": {
2157
2131
  "auth": {
2132
+ "description": "Options used by the default auth, httpAuth and userInfo services.",
2158
2133
  "type": "object",
2159
2134
  "properties": {
2160
2135
  "dangerouslyDisableDefaultAuthPolicy": {
@@ -2462,6 +2437,56 @@
2462
2437
  "required": [
2463
2438
  "url"
2464
2439
  ]
2440
+ },
2441
+ "accessRestrictions": {
2442
+ "description": "Restricts what types of access that are permitted for this access\nmethod. If no access restrictions are given, it'll have unlimited\naccess. This access restriction applies for the framework level;\nindividual plugins may have their own access control mechanisms\non top of this.",
2443
+ "type": "array",
2444
+ "items": {
2445
+ "type": "object",
2446
+ "properties": {
2447
+ "plugin": {
2448
+ "description": "Permit access to make requests to this plugin.\n\nCan be further refined by setting additional fields below.",
2449
+ "type": "string"
2450
+ },
2451
+ "permission": {
2452
+ "description": "If given, this method is limited to only performing actions\nwith these named permissions in this plugin.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
2453
+ "anyOf": [
2454
+ {
2455
+ "type": "array",
2456
+ "items": {
2457
+ "type": "string"
2458
+ }
2459
+ },
2460
+ {
2461
+ "type": "string"
2462
+ }
2463
+ ]
2464
+ },
2465
+ "permissionAttribute": {
2466
+ "description": "If given, this method is limited to only performing actions\nwhose permissions have these attributes.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
2467
+ "type": "object",
2468
+ "properties": {
2469
+ "action": {
2470
+ "description": "One of more of 'create', 'read', 'update', or 'delete'.",
2471
+ "anyOf": [
2472
+ {
2473
+ "type": "array",
2474
+ "items": {
2475
+ "type": "string"
2476
+ }
2477
+ },
2478
+ {
2479
+ "type": "string"
2480
+ }
2481
+ ]
2482
+ }
2483
+ }
2484
+ }
2485
+ },
2486
+ "required": [
2487
+ "plugin"
2488
+ ]
2489
+ }
2465
2490
  }
2466
2491
  },
2467
2492
  "required": [
@@ -2476,46 +2501,21 @@
2476
2501
  "required": [
2477
2502
  "externalAccess"
2478
2503
  ]
2479
- },
2480
- "packages": {
2481
- "anyOf": [
2482
- {
2483
- "type": "object",
2484
- "properties": {
2485
- "include": {
2486
- "type": "array",
2487
- "items": {
2488
- "type": "string"
2489
- }
2490
- },
2491
- "exclude": {
2492
- "type": "array",
2493
- "items": {
2494
- "type": "string"
2495
- }
2496
- }
2497
- }
2498
- },
2499
- {
2500
- "const": "all",
2501
- "type": "string"
2502
- }
2503
- ]
2504
2504
  }
2505
2505
  }
2506
2506
  },
2507
2507
  "discovery": {
2508
- "description": "Discovery options.",
2508
+ "description": "Options used by the default discovery service.",
2509
2509
  "type": "object",
2510
2510
  "properties": {
2511
2511
  "endpoints": {
2512
- "description": "Endpoints\n\nA list of target baseUrls and the associated plugins.",
2512
+ "description": "A list of target baseUrls and the associated plugins.",
2513
2513
  "type": "array",
2514
2514
  "items": {
2515
2515
  "type": "object",
2516
2516
  "properties": {
2517
2517
  "target": {
2518
- "description": "The target baseUrl to use for the plugin\n\nCan be either a string or an object with internal and external keys.\nTargets with `{{pluginId}}` or `{{ pluginId }} in the url will be replaced with the pluginId.",
2518
+ "description": "The target base URL to use for the plugin.\n\nCan be either a string or an object with internal and external keys.\nTargets with `{{pluginId}}` or `{{ pluginId }} in the URL will be replaced with the plugin ID.",
2519
2519
  "anyOf": [
2520
2520
  {
2521
2521
  "type": "object",
@@ -2538,7 +2538,7 @@
2538
2538
  ]
2539
2539
  },
2540
2540
  "plugins": {
2541
- "description": "Array of plugins which use the target baseUrl.",
2541
+ "description": "Array of plugins which use the target base URL.",
2542
2542
  "type": "array",
2543
2543
  "items": {
2544
2544
  "type": "string"
@@ -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.c6b39f1e.js"></script><script defer="defer" src="/static/module-material-ui.f1846a3c.js"></script><script defer="defer" src="/static/module-lodash.9d3aac3b.js"></script><script defer="defer" src="/static/module-date-fns.9ba6144d.js"></script><script defer="defer" src="/static/module-mui.e17dd999.js"></script><script defer="defer" src="/static/module-material-table.e3f26578.js"></script><script defer="defer" src="/static/module-react-dom.1f38e13a.js"></script><script defer="defer" src="/static/module-react-router.933956ac.js"></script><script defer="defer" src="/static/module-react-router-dom.473a1e8a.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.ea59573c.js"></script><script defer="defer" src="/static/module-zod.9a0df421.js"></script><script defer="defer" src="/static/module-i18next.6b4e6495.js"></script><script defer="defer" src="/static/vendor.c6b39f1e.js"></script><script defer="defer" src="/static/main.c6b39f1e.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.3d49bafb.js"></script><script defer="defer" src="/static/module-material-ui.f1846a3c.js"></script><script defer="defer" src="/static/module-lodash.9d3aac3b.js"></script><script defer="defer" src="/static/module-date-fns.9ba6144d.js"></script><script defer="defer" src="/static/module-mui.e17dd999.js"></script><script defer="defer" src="/static/module-material-table.e3f26578.js"></script><script defer="defer" src="/static/module-react-dom.1f38e13a.js"></script><script defer="defer" src="/static/module-react-router.dac764ce.js"></script><script defer="defer" src="/static/module-react-router-dom.0c2bb614.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.ea59573c.js"></script><script defer="defer" src="/static/module-zod.9a0df421.js"></script><script defer="defer" src="/static/module-i18next.6b4e6495.js"></script><script defer="defer" src="/static/vendor.3d49bafb.js"></script><script defer="defer" src="/static/main.3d49bafb.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[124],{74616:(b,d,t)=>{var e,c=t(4293),C=t(78920);e={value:!0},d.A=void 0;var m=C(t(14041)),y=c(t(74044)),f=(0,y.default)(m.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");d.A=f},48514:(b,d,t)=>{t.d(d,{M:()=>g});var e=t(31085),c=t(58837),C=t(71677),m=t(14041),y=t(72501);const f=(0,c.A)({container:{overflow:"visible !important"},typo:{fontSize:"inherit",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":({line:r})=>r||1,"-webkit-box-orient":"vertical"}},{name:"BackstageOverflowTooltip"});function g(r){const R=f(r);return(0,e.jsx)(C.Ay,{title:r.title??(r.text||""),placement:r.placement,children:(0,e.jsx)(y.A,{className:R.typo,variant:"inherit",children:r.text})})}},48045:(b,d,t)=>{t.d(d,{n:()=>B});var e=t(31085),c=t(40703),C=t(59469),m=t(48653),y=t(45685),f=t(37197),g=t(58837),r=t(87051),R=t(53373),a=t.n(R),h=t(14041),s=t(10394),p=t(72501),D=t(74616),A=t(72072);const u=(0,g.A)(n=>({root:{maxWidth:"fit-content",padding:n.spacing(2,2,2,2.5)},boxTitle:{margin:0,color:n.palette.textSubtle},arrow:{color:n.palette.textSubtle}}),{name:"BackstageBottomLink"});function x(n){const{link:o,title:i,onClick:j}=n,E=u();return(0,e.jsxs)(s.A,{children:[(0,e.jsx)(f.A,{}),(0,e.jsx)(A.N_,{to:o,onClick:j,underline:"none",children:(0,e.jsxs)(s.A,{display:"flex",alignItems:"center",className:E.root,children:[(0,e.jsx)(s.A,{className:E.boxTitle,fontWeight:"fontWeightBold",m:1,children:(0,e.jsx)(p.A,{children:(0,e.jsx)("strong",{children:i})})}),(0,e.jsx)(D.A,{className:E.arrow})]})})]})}var S=t(73896),l=t(22020),M=t(10315),K=t(87849);const N=n=>{const{slackChannel:o}=n,{t:i}=(0,K.i)(M.O);if(o){if(typeof o=="string")return(0,e.jsx)(p.A,{children:i("errorBoundary.title",{slackChannel:o})});if(!o.href)return(0,e.jsx)(p.A,{children:i("errorBoundary.title",{slackChannel:o.name})})}else return null;return(0,e.jsx)(S.z,{to:o.href,variant:"contained",children:o.name})},v=class extends h.Component{constructor(o){super(o),this.state={error:void 0,errorInfo:void 0}}componentDidCatch(o,i){console.error(`ErrorBoundary, error: ${o}`,{error:o,errorInfo:i}),this.setState({error:o,errorInfo:i})}render(){const{slackChannel:o,children:i}=this.props,{error:j}=this.state;return j?(0,e.jsx)(l.b,{title:"Something Went Wrong",error:j,children:(0,e.jsx)(N,{slackChannel:o})}):i}},L=(0,g.A)(n=>({noPadding:{padding:0,"&:last-child":{paddingBottom:0}},contentAlignBottom:{display:"flex",alignItems:"self-end"},header:{padding:n.spacing(2,2,2,2.5)},headerTitle:{fontWeight:n.typography.fontWeightBold},headerSubheader:{paddingTop:n.spacing(1)},headerAvatar:{},headerAction:{},headerContent:{},subheader:{display:"flex"}}),{name:"BackstageInfoCard"}),V=(0,r.A)(n=>({root:{display:"inline-block",padding:n.spacing(8,8,0,0),float:"right"}}),{name:"BackstageInfoCardCardActionsTopRight"})(C.A),O={card:{flex:{display:"flex",flexDirection:"column"},fullHeight:{display:"flex",flexDirection:"column",height:"100%"},gridItem:{display:"flex",flexDirection:"column",height:"calc(100% - 10px)",marginBottom:"10px",breakInside:"avoid-page","@media print":{height:"auto"}}},cardContent:{fullHeight:{flex:1},gridItem:{flex:1}}};function B(n){const{title:o,subheader:i,divider:j=!0,deepLink:E,slackChannel:P,errorBoundaryProps:W,variant:U,alignContent:T="normal",children:F,headerStyle:H,headerProps:z,icon:w,action:G,actionsClassName:Q,actions:k,cardClassName:Z,actionsTopRight:J,className:q,noPadding:_,titleTypographyProps:tt,subheaderTypographyProps:et}=n,I=L();let Y={},$={};U&&U.split(/[\s]+/g).forEach(X=>{Y={...Y,...O.card[X]},$={...$,...O.cardContent[X]}});const nt=()=>!i&&!w?null:(0,e.jsxs)("div",{"data-testid":"info-card-subheader",children:[i&&(0,e.jsx)("div",{className:I.subheader,children:i}),w]}),ot=W||(P?{slackChannel:P}:{});return(0,e.jsx)(c.A,{style:Y,className:q,children:(0,e.jsxs)(v,{...ot,children:[o&&(0,e.jsx)(y.A,{classes:{root:a()(I.header),title:I.headerTitle,subheader:I.headerSubheader,avatar:I.headerAvatar,action:I.headerAction,content:I.headerContent},title:o,subheader:nt(),action:G,style:{...H},titleTypographyProps:tt,subheaderTypographyProps:et,...z}),J&&(0,e.jsx)(V,{children:J}),j&&(0,e.jsx)(f.A,{}),(0,e.jsx)(m.A,{className:a()(Z,{[I.noPadding]:_,[I.contentAlignBottom]:T==="bottom"}),style:$,children:F}),k&&(0,e.jsx)(C.A,{className:Q,children:k}),E&&(0,e.jsx)(x,{...E})]})})}},89648:(b,d,t)=>{t.d(d,{s:()=>A});var e=t(31085),c=t(58837),C=t(14041),m=t(51372),y=t(48514),f=t(67871),g=t(90184),r=t(8859),R=t(34428);const a=Object.freeze({createEntityRefColumn(u){const{defaultKind:x}=u;function S(l){return l.metadata?.title||(0,g.S)(l,{defaultKind:x})}return{title:"Name",highlight:!0,customFilterAndSearch(l,M){return S(M).includes(l)},customSort(l,M){return S(l).localeCompare(S(M))},render:l=>(0,e.jsx)(r.z,{entityRef:l,defaultKind:x,title:l.metadata?.title})}},createEntityRelationColumn(u){const{title:x,relation:S,defaultKind:l,filter:M}=u;function K(v){return(0,f.t)(v,S,M)}function N(v){return K(v).map(L=>(0,g.S)(L,{defaultKind:l})).join(", ")}return{title:x,customFilterAndSearch(v,L){return N(L).includes(v)},customSort(v,L){return N(v).localeCompare(N(L))},render:v=>(0,e.jsx)(R.i,{entityRefs:K(v),defaultKind:l})}},createOwnerColumn(){return this.createEntityRelationColumn({title:"Owner",relation:m.vv,defaultKind:"group"})},createDomainColumn(){return this.createEntityRelationColumn({title:"Domain",relation:m.jn,defaultKind:"domain",filter:{kind:"domain"}})},createSystemColumn(){return this.createEntityRelationColumn({title:"System",relation:m.jn,defaultKind:"system",filter:{kind:"system"}})},createMetadataDescriptionColumn(){return{title:"Description",field:"metadata.description",render:u=>(0,e.jsx)(y.M,{text:u.metadata.description,placement:"bottom-start",line:2})}},createSpecLifecycleColumn(){return{title:"Lifecycle",field:"spec.lifecycle"}},createSpecTypeColumn(){return{title:"Type",field:"spec.type"}}}),h=[a.createEntityRefColumn({defaultKind:"system"}),a.createDomainColumn(),a.createOwnerColumn(),a.createMetadataDescriptionColumn()],s=[a.createEntityRefColumn({defaultKind:"component"}),a.createSystemColumn(),a.createOwnerColumn(),a.createSpecTypeColumn(),a.createSpecLifecycleColumn(),a.createMetadataDescriptionColumn()];var p=t(14209);const D=(0,c.A)(u=>({empty:{padding:u.spacing(2),display:"flex",justifyContent:"center"}})),A=u=>{const{entities:x,title:S,emptyContent:l,variant:M="gridItem",columns:K,tableOptions:N={}}=u,v=D(),L={minWidth:"0",width:"100%"};return M==="gridItem"&&(L.height="calc(100% - 10px)"),(0,e.jsx)(p.X,{columns:K,title:S,style:L,emptyContent:l&&(0,e.jsx)("div",{className:v.empty,children:l}),options:{search:!1,paging:!1,actionsColumnIndex:-1,padding:"dense",draggable:!1,...N},data:x})};A.columns=a,A.systemEntityColumns=h,A.componentEntityColumns=s},99538:(b,d,t)=>{t.d(d,{T7:()=>r,TY:()=>h,tN:()=>a});var e=t(31085),c=t(6820),C=t(25862),m=t(43836),y=t(10602),f=t(14041);const g=(0,m.tK)("entity-context"),r=s=>{const{children:p,entity:D,loading:A,error:u,refresh:x}=s,S={entity:D,loading:A,error:u,refresh:x};return(0,e.jsx)(g.Provider,{value:(0,y.B)({1:S}),children:(0,e.jsx)(C.Ig,{attributes:{...D?{entityRef:(0,c.U2)(D)}:void 0},children:p})})},R=s=>_jsx(r,{entity:s.entity,loading:!s.entity,error:void 0,refresh:void 0,children:s.children});function a(){const s=(0,m.qO)("entity-context");if(!s)throw new Error("Entity context is not available");const p=s.atVersion(1);if(!p)throw new Error("EntityContext v1 not available");if(!p.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:p.entity}}function h(){const s=(0,m.qO)("entity-context");if(!s)throw new Error("Entity context is not available");const p=s.atVersion(1);if(!p)throw new Error("EntityContext v1 not available");const{entity:D,loading:A,error:u,refresh:x}=p;return{entity:D,loading:A,error:u,refresh:x}}},124:(b,d,t)=>{t.r(d),t.d(d,{DependencyOfComponentsCard:()=>r});var e=t(31085),c=t(51372),C=t(14041),m=t(59251),y=t(48105),f=t(98508),g=t(87849);function r(R){const{t:a}=(0,g.i)(f.W),{variant:h="gridItem",title:s=a("dependencyOfComponentsCard.title")}=R;return(0,e.jsx)(m.p,{variant:h,title:s,entityKind:"Component",relationType:c.fT,columns:y.mz,emptyMessage:a("dependencyOfComponentsCard.emptyMessage"),emptyHelpLink:y.e2,asRenderableEntities:y.xJ})}},59251:(b,d,t)=>{t.d(d,{p:()=>V});var e=t(31085),c=t(72501),C=t(99538),m=t(6820),y=t(72427),f=t(73466),g=t(7341);function r(O,B){const n=B?.type?.toLocaleLowerCase("en-US"),o=B?.kind?.toLocaleLowerCase("en-US"),i=(0,y.gf)(g.v),{loading:j,value:E,error:P}=(0,f.A)(async()=>{const W=O.relations?.filter(T=>(!n||T.type.toLocaleLowerCase("en-US")===n)&&(!o||(0,m.KU)(T.targetRef).kind===o));if(!W?.length)return[];const{items:U}=await i.getEntitiesByRefs({entityRefs:W.map(T=>T.targetRef)});return U.filter(T=>!!T)},[O,n,o]);return{entities:E,loading:j,error:P}}var R=t(89648),a=t(14041),h=t(48045),s=t(68146),p=t(58837),D=t(37197),A=t(8109),u=t(5951),x=t(77310),S=t(37916),l=t(22020);const M=(0,p.A)(O=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:O.spacing(2)},divider:{margin:O.spacing(2)}}),{name:"BackstageResponseErrorPanel"});function K(O){const{title:B,error:n,defaultExpanded:o}=O,i=M();if(n.name!=="ResponseError")return(0,e.jsx)(l.b,{title:B??n.message,defaultExpanded:o,error:n});const{body:j,cause:E}=n,{request:P,response:W}=j,U=`${W.statusCode}: ${E.name}`,T=P&&`${P.method} ${P.url}`,F=E.message.replace(/\\n/g,`
1
+ "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[124],{74616:(b,c,t)=>{var e,m=t(4293),C=t(78920);e={value:!0},c.A=void 0;var r=C(t(14041)),h=m(t(74044)),f=(0,h.default)(r.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");c.A=f},48514:(b,c,t)=>{t.d(c,{M:()=>g});var e=t(31085),m=t(58837),C=t(71677),r=t(14041),h=t(72501);const f=(0,m.A)({container:{overflow:"visible !important"},typo:{fontSize:"inherit",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":({line:l})=>l||1,"-webkit-box-orient":"vertical"}},{name:"BackstageOverflowTooltip"});function g(l){const L=f(l);return(0,e.jsx)(C.Ay,{title:l.title??(l.text||""),placement:l.placement,children:(0,e.jsx)(h.A,{className:L.typo,variant:"inherit",children:l.text})})}},48045:(b,c,t)=>{t.d(c,{n:()=>B});var e=t(31085),m=t(40703),C=t(59469),r=t(48653),h=t(45685),f=t(37197),g=t(58837),l=t(87051),L=t(53373),a=t.n(L),p=t(14041),s=t(10394),u=t(72501),A=t(74616),S=t(72072);const y=(0,g.A)(n=>({root:{maxWidth:"fit-content",padding:n.spacing(2,2,2,2.5)},boxTitle:{margin:0,color:n.palette.textSubtle},arrow:{color:n.palette.textSubtle}}),{name:"BackstageBottomLink"});function x(n){const{link:o,title:i,onClick:R}=n,E=y();return(0,e.jsxs)(s.A,{children:[(0,e.jsx)(f.A,{}),(0,e.jsx)(S.N_,{to:o,onClick:R,underline:"none",children:(0,e.jsxs)(s.A,{display:"flex",alignItems:"center",className:E.root,children:[(0,e.jsx)(s.A,{className:E.boxTitle,fontWeight:"fontWeightBold",m:1,children:(0,e.jsx)(u.A,{children:(0,e.jsx)("strong",{children:i})})}),(0,e.jsx)(A.A,{className:E.arrow})]})})]})}var j=t(73896),d=t(22020),M=t(10315),K=t(87849);const N=n=>{const{slackChannel:o}=n,{t:i}=(0,K.i)(M.O);if(o){if(typeof o=="string")return(0,e.jsx)(u.A,{children:i("errorBoundary.title",{slackChannel:o})});if(!o.href)return(0,e.jsx)(u.A,{children:i("errorBoundary.title",{slackChannel:o.name})})}else return null;return(0,e.jsx)(j.z,{to:o.href,variant:"contained",children:o.name})},v=class extends p.Component{constructor(o){super(o),this.state={error:void 0,errorInfo:void 0}}componentDidCatch(o,i){console.error(`ErrorBoundary, error: ${o}`,{error:o,errorInfo:i}),this.setState({error:o,errorInfo:i})}render(){const{slackChannel:o,children:i}=this.props,{error:R}=this.state;return R?(0,e.jsx)(d.b,{title:"Something Went Wrong",error:R,children:(0,e.jsx)(N,{slackChannel:o})}):i}},O=(0,g.A)(n=>({noPadding:{padding:0,"&:last-child":{paddingBottom:0}},contentAlignBottom:{display:"flex",alignItems:"self-end"},header:{padding:n.spacing(2,2,2,2.5)},headerTitle:{fontWeight:n.typography.fontWeightBold},headerSubheader:{paddingTop:n.spacing(1)},headerAvatar:{},headerAction:{},headerContent:{},subheader:{display:"flex"}}),{name:"BackstageInfoCard"}),V=(0,l.A)(n=>({root:{display:"inline-block",padding:n.spacing(8,8,0,0),float:"right"}}),{name:"BackstageInfoCardCardActionsTopRight"})(C.A),D={card:{flex:{display:"flex",flexDirection:"column"},fullHeight:{display:"flex",flexDirection:"column",height:"100%"},gridItem:{display:"flex",flexDirection:"column",height:"calc(100% - 10px)",marginBottom:"10px",breakInside:"avoid-page","@media print":{height:"auto"}}},cardContent:{fullHeight:{flex:1},gridItem:{flex:1}}};function B(n){const{title:o,subheader:i,divider:R=!0,deepLink:E,slackChannel:P,errorBoundaryProps:W,variant:U,alignContent:T="normal",children:F,headerStyle:H,headerProps:z,icon:w,action:G,actionsClassName:Q,actions:k,cardClassName:Z,actionsTopRight:J,className:q,noPadding:_,titleTypographyProps:tt,subheaderTypographyProps:et}=n,I=O();let Y={},$={};U&&U.split(/[\s]+/g).forEach(X=>{Y={...Y,...D.card[X]},$={...$,...D.cardContent[X]}});const nt=()=>!i&&!w?null:(0,e.jsxs)("div",{"data-testid":"info-card-subheader",children:[i&&(0,e.jsx)("div",{className:I.subheader,children:i}),w]}),ot=W||(P?{slackChannel:P}:{});return(0,e.jsx)(m.A,{style:Y,className:q,children:(0,e.jsxs)(v,{...ot,children:[o&&(0,e.jsx)(h.A,{classes:{root:a()(I.header),title:I.headerTitle,subheader:I.headerSubheader,avatar:I.headerAvatar,action:I.headerAction,content:I.headerContent},title:o,subheader:nt(),action:G,style:{...H},titleTypographyProps:tt,subheaderTypographyProps:et,...z}),J&&(0,e.jsx)(V,{children:J}),R&&(0,e.jsx)(f.A,{}),(0,e.jsx)(r.A,{className:a()(Z,{[I.noPadding]:_,[I.contentAlignBottom]:T==="bottom"}),style:$,children:F}),k&&(0,e.jsx)(C.A,{className:Q,children:k}),E&&(0,e.jsx)(x,{...E})]})})}},89648:(b,c,t)=>{t.d(c,{s:()=>S});var e=t(31085),m=t(58837),C=t(14041),r=t(51372),h=t(48514),f=t(67871),g=t(90184),l=t(8859),L=t(34428);const a=Object.freeze({createEntityRefColumn(y){const{defaultKind:x}=y;function j(d){return d.metadata?.title||(0,g.S)(d,{defaultKind:x})}return{title:"Name",highlight:!0,customFilterAndSearch(d,M){return j(M).includes(d)},customSort(d,M){return j(d).localeCompare(j(M))},render:d=>(0,e.jsx)(l.z,{entityRef:d,defaultKind:x,title:d.metadata?.title})}},createEntityRelationColumn(y){const{title:x,relation:j,defaultKind:d,filter:M}=y;function K(v){return(0,f.t)(v,j,M)}function N(v){return K(v).map(O=>(0,g.S)(O,{defaultKind:d})).join(", ")}return{title:x,customFilterAndSearch(v,O){return N(O).includes(v)},customSort(v,O){return N(v).localeCompare(N(O))},render:v=>(0,e.jsx)(L.i,{entityRefs:K(v),defaultKind:d})}},createOwnerColumn(){return this.createEntityRelationColumn({title:"Owner",relation:r.vv,defaultKind:"group"})},createDomainColumn(){return this.createEntityRelationColumn({title:"Domain",relation:r.jn,defaultKind:"domain",filter:{kind:"domain"}})},createSystemColumn(){return this.createEntityRelationColumn({title:"System",relation:r.jn,defaultKind:"system",filter:{kind:"system"}})},createMetadataDescriptionColumn(){return{title:"Description",field:"metadata.description",render:y=>(0,e.jsx)(h.M,{text:y.metadata.description,placement:"bottom-start",line:2})}},createSpecLifecycleColumn(){return{title:"Lifecycle",field:"spec.lifecycle"}},createSpecTypeColumn(){return{title:"Type",field:"spec.type"}}}),p=[a.createEntityRefColumn({defaultKind:"system"}),a.createDomainColumn(),a.createOwnerColumn(),a.createMetadataDescriptionColumn()],s=[a.createEntityRefColumn({defaultKind:"component"}),a.createSystemColumn(),a.createOwnerColumn(),a.createSpecTypeColumn(),a.createSpecLifecycleColumn(),a.createMetadataDescriptionColumn()];var u=t(14209);const A=(0,m.A)(y=>({empty:{padding:y.spacing(2),display:"flex",justifyContent:"center"}})),S=y=>{const{entities:x,title:j,emptyContent:d,variant:M="gridItem",columns:K,tableOptions:N={}}=y,v=A(),O={minWidth:"0",width:"100%"};return M==="gridItem"&&(O.height="calc(100% - 10px)"),(0,e.jsx)(u.X,{columns:K,title:j,style:O,emptyContent:d&&(0,e.jsx)("div",{className:v.empty,children:d}),options:{search:!1,paging:!1,actionsColumnIndex:-1,padding:"dense",draggable:!1,...N},data:x})};S.columns=a,S.systemEntityColumns=p,S.componentEntityColumns=s},99538:(b,c,t)=>{t.d(c,{T7:()=>l,TY:()=>p,tN:()=>a});var e=t(31085),m=t(6820),C=t(25862),r=t(43836),h=t(10602),f=t(14041);const g=(0,r.tK)("entity-context"),l=s=>{const{children:u,entity:A,loading:S,error:y,refresh:x}=s,j={entity:A,loading:S,error:y,refresh:x};return(0,e.jsx)(g.Provider,{value:(0,h.B)({1:j}),children:(0,e.jsx)(C.Ig,{attributes:{...A?{entityRef:(0,m.U2)(A)}:void 0},children:u})})},L=s=>_jsx(l,{entity:s.entity,loading:!s.entity,error:void 0,refresh:void 0,children:s.children});function a(){const s=(0,r.qO)("entity-context");if(!s)throw new Error("Entity context is not available");const u=s.atVersion(1);if(!u)throw new Error("EntityContext v1 not available");if(!u.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:u.entity}}function p(){const s=(0,r.qO)("entity-context");if(!s)throw new Error("Entity context is not available");const u=s.atVersion(1);if(!u)throw new Error("EntityContext v1 not available");const{entity:A,loading:S,error:y,refresh:x}=u;return{entity:A,loading:S,error:y,refresh:x}}},124:(b,c,t)=>{t.r(c),t.d(c,{DependencyOfComponentsCard:()=>l});var e=t(31085),m=t(51372),C=t(14041),r=t(48105),h=t(59251),f=t(98508),g=t(87849);function l(L){const{t:a}=(0,g.i)(f.W),{variant:p="gridItem",title:s=a("dependencyOfComponentsCard.title"),columns:u=r.mz,tableOptions:A={}}=L;return(0,e.jsx)(h.p,{variant:p,title:s,entityKind:"Component",relationType:m.fT,columns:u,emptyMessage:a("dependencyOfComponentsCard.emptyMessage"),emptyHelpLink:r.e2,asRenderableEntities:r.xJ,tableOptions:A})}},59251:(b,c,t)=>{t.d(c,{p:()=>V});var e=t(31085),m=t(72501),C=t(99538),r=t(6820),h=t(72427),f=t(73466),g=t(7341);function l(D,B){const n=B?.type?.toLocaleLowerCase("en-US"),o=B?.kind?.toLocaleLowerCase("en-US"),i=(0,h.gf)(g.v),{loading:R,value:E,error:P}=(0,f.A)(async()=>{const W=D.relations?.filter(T=>(!n||T.type.toLocaleLowerCase("en-US")===n)&&(!o||(0,r.KU)(T.targetRef).kind===o));if(!W?.length)return[];const{items:U}=await i.getEntitiesByRefs({entityRefs:W.map(T=>T.targetRef)});return U.filter(T=>!!T)},[D,n,o]);return{entities:E,loading:R,error:P}}var L=t(89648),a=t(14041),p=t(48045),s=t(68146),u=t(58837),A=t(37197),S=t(8109),y=t(5951),x=t(77310),j=t(37916),d=t(22020);const M=(0,u.A)(D=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:D.spacing(2)},divider:{margin:D.spacing(2)}}),{name:"BackstageResponseErrorPanel"});function K(D){const{title:B,error:n,defaultExpanded:o}=D,i=M();if(n.name!=="ResponseError")return(0,e.jsx)(d.b,{title:B??n.message,defaultExpanded:o,error:n});const{body:R,cause:E}=n,{request:P,response:W}=R,U=`${W.statusCode}: ${E.name}`,T=P&&`${P.method} ${P.url}`,F=E.message.replace(/\\n/g,`
2
2
  `),H=E.stack?.replace(/\\n/g,`
3
- `),z=JSON.stringify(j,void 0,2);return(0,e.jsxs)(l.b,{title:B??n.message,defaultExpanded:o,error:{name:U,message:F,stack:H},children:[T&&(0,e.jsxs)(A.A,{alignItems:"flex-start",children:[(0,e.jsx)(u.A,{classes:{secondary:i.text},primary:"Request",secondary:P?`${T}`:void 0}),(0,e.jsx)(S.l,{text:T})]}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(D.A,{component:"li",className:i.divider}),(0,e.jsx)(A.A,{alignItems:"flex-start",children:(0,e.jsx)(u.A,{classes:{secondary:i.text},primary:"Full Error as JSON"})}),(0,e.jsx)(x.z,{language:"json",text:z,showCopyCodeButton:!0})]})]})}var N=t(72072),v=t(98508),L=t(87849);function V(O){const{variant:B="gridItem",title:n,columns:o,entityKind:i,relationType:j,emptyMessage:E,emptyHelpLink:P,asRenderableEntities:W,tableOptions:U={}}=O,{t:T}=(0,L.i)(v.W),{entity:F}=(0,C.tN)(),{entities:H,loading:z,error:w}=r(F,{type:j,kind:i});return z?(0,e.jsx)(h.n,{variant:B,title:n,children:(0,e.jsx)(s.k,{})}):w?(0,e.jsx)(h.n,{variant:B,title:n,children:(0,e.jsx)(K,{error:w})}):(0,e.jsx)(R.s,{title:n,variant:B,emptyContent:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)(c.A,{variant:"body1",children:E}),(0,e.jsx)(c.A,{variant:"body2",children:(0,e.jsx)(N.N_,{to:P,children:T("relatedEntitiesCard.emptyHelpLinkTitle")})})]}),columns:o,entities:W(H||[]),tableOptions:U})}},48105:(b,d,t)=>{t.d(d,{MW:()=>r,e2:()=>C,eB:()=>g,iU:()=>R,mz:()=>c,nz:()=>f,v9:()=>y,vy:()=>a,xJ:()=>m});var e=t(89648);const c=[e.s.columns.createEntityRefColumn({defaultKind:"component"}),e.s.columns.createOwnerColumn(),e.s.columns.createSpecTypeColumn(),e.s.columns.createSpecLifecycleColumn(),e.s.columns.createMetadataDescriptionColumn()],C="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component",m=h=>h,y=[e.s.columns.createEntityRefColumn({defaultKind:"resource"}),e.s.columns.createOwnerColumn(),e.s.columns.createSpecTypeColumn(),e.s.columns.createSpecLifecycleColumn(),e.s.columns.createMetadataDescriptionColumn()],f="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource",g=h=>h,r=[e.s.columns.createEntityRefColumn({defaultKind:"system"}),e.s.columns.createOwnerColumn(),e.s.columns.createMetadataDescriptionColumn()],R="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system",a=h=>h},98508:(b,d,t)=>{t.d(d,{W:()=>c});var e=t(93184);const c=(0,e.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.
3
+ `),z=JSON.stringify(R,void 0,2);return(0,e.jsxs)(d.b,{title:B??n.message,defaultExpanded:o,error:{name:U,message:F,stack:H},children:[T&&(0,e.jsxs)(S.A,{alignItems:"flex-start",children:[(0,e.jsx)(y.A,{classes:{secondary:i.text},primary:"Request",secondary:P?`${T}`:void 0}),(0,e.jsx)(j.l,{text:T})]}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(A.A,{component:"li",className:i.divider}),(0,e.jsx)(S.A,{alignItems:"flex-start",children:(0,e.jsx)(y.A,{classes:{secondary:i.text},primary:"Full Error as JSON"})}),(0,e.jsx)(x.z,{language:"json",text:z,showCopyCodeButton:!0})]})]})}var N=t(72072),v=t(98508),O=t(87849);function V(D){const{variant:B="gridItem",title:n,columns:o,entityKind:i,relationType:R,emptyMessage:E,emptyHelpLink:P,asRenderableEntities:W,tableOptions:U={}}=D,{t:T}=(0,O.i)(v.W),{entity:F}=(0,C.tN)(),{entities:H,loading:z,error:w}=l(F,{type:R,kind:i});return z?(0,e.jsx)(p.n,{variant:B,title:n,children:(0,e.jsx)(s.k,{})}):w?(0,e.jsx)(p.n,{variant:B,title:n,children:(0,e.jsx)(K,{error:w})}):(0,e.jsx)(L.s,{title:n,variant:B,emptyContent:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)(m.A,{variant:"body1",children:E}),(0,e.jsx)(m.A,{variant:"body2",children:(0,e.jsx)(N.N_,{to:P,children:T("relatedEntitiesCard.emptyHelpLinkTitle")})})]}),columns:o,entities:W(H||[]),tableOptions:U})}},48105:(b,c,t)=>{t.d(c,{MW:()=>l,e2:()=>C,eB:()=>g,iU:()=>L,mz:()=>m,nz:()=>f,v9:()=>h,vy:()=>a,xJ:()=>r});var e=t(89648);const m=[e.s.columns.createEntityRefColumn({defaultKind:"component"}),e.s.columns.createOwnerColumn(),e.s.columns.createSpecTypeColumn(),e.s.columns.createSpecLifecycleColumn(),e.s.columns.createMetadataDescriptionColumn()],C="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component",r=p=>p,h=[e.s.columns.createEntityRefColumn({defaultKind:"resource"}),e.s.columns.createOwnerColumn(),e.s.columns.createSpecTypeColumn(),e.s.columns.createSpecLifecycleColumn(),e.s.columns.createMetadataDescriptionColumn()],f="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource",g=p=>p,l=[e.s.columns.createEntityRefColumn({defaultKind:"system"}),e.s.columns.createOwnerColumn(),e.s.columns.createMetadataDescriptionColumn()],L="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system",a=p=>p},98508:(b,c,t)=>{t.d(c,{W:()=>m});var e=t(93184);const m=(0,e.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.
4
4
  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 & zoo to move around the diagram.",edgeLabels:{partOf:"part of",provides:"provides",dependsOn:"depends on"}}}})}}]);})();
5
5
 
6
- //# sourceMappingURL=124.a0a572f3.chunk.js.map
6
+ //# sourceMappingURL=124.7c4c81f4.chunk.js.map