@techdocs/cli 0.0.0-nightly-20241224023253 → 0.0.0-nightly-20241226023155

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,15 +1,26 @@
1
1
  # @techdocs/cli
2
2
 
3
- ## 0.0.0-nightly-20241224023253
3
+ ## 0.0.0-nightly-20241226023155
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies
8
- - @backstage/backend-defaults@0.0.0-nightly-20241224023253
9
- - @backstage/plugin-techdocs-node@0.0.0-nightly-20241224023253
8
+ - @backstage/backend-defaults@0.0.0-nightly-20241226023155
10
9
  - @backstage/catalog-model@1.7.2
11
10
  - @backstage/cli-common@0.1.15
12
11
  - @backstage/config@1.3.1
12
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20241226023155
13
+
14
+ ## 1.8.25-next.0
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+ - @backstage/backend-defaults@0.7.0-next.0
20
+ - @backstage/catalog-model@1.7.2
21
+ - @backstage/cli-common@0.1.15
22
+ - @backstage/config@1.3.1
23
+ - @backstage/plugin-techdocs-node@1.12.16-next.0
13
24
 
14
25
  ## 1.8.24
15
26
 
@@ -127,52 +127,6 @@
127
127
  },
128
128
  "packageName": "@backstage/plugin-permission-common"
129
129
  },
130
- {
131
- "path": "../core-components/config.d.ts",
132
- "value": {
133
- "type": "object",
134
- "properties": {
135
- "auth": {
136
- "type": "object",
137
- "properties": {
138
- "autologout": {
139
- "description": "Autologout feature configuration",
140
- "type": "object",
141
- "properties": {
142
- "enabled": {
143
- "description": "Enable or disable the autologout feature",
144
- "visibility": "frontend",
145
- "type": "boolean"
146
- },
147
- "idleTimeoutMinutes": {
148
- "description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
149
- "visibility": "frontend",
150
- "type": "number"
151
- },
152
- "promptBeforeIdleSeconds": {
153
- "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.",
154
- "visibility": "frontend",
155
- "type": "number"
156
- },
157
- "useWorkerTimers": {
158
- "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.",
159
- "visibility": "frontend",
160
- "type": "boolean"
161
- },
162
- "logoutIfDisconnected": {
163
- "description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
164
- "visibility": "frontend",
165
- "type": "boolean"
166
- }
167
- }
168
- }
169
- }
170
- }
171
- },
172
- "$schema": "http://json-schema.org/draft-07/schema#"
173
- },
174
- "packageName": "@backstage/core-components"
175
- },
176
130
  {
177
131
  "path": "../core-app-api/config.d.ts",
178
132
  "value": {
@@ -403,6 +357,52 @@
403
357
  },
404
358
  "packageName": "@backstage/core-app-api"
405
359
  },
360
+ {
361
+ "path": "../core-components/config.d.ts",
362
+ "value": {
363
+ "type": "object",
364
+ "properties": {
365
+ "auth": {
366
+ "type": "object",
367
+ "properties": {
368
+ "autologout": {
369
+ "description": "Autologout feature configuration",
370
+ "type": "object",
371
+ "properties": {
372
+ "enabled": {
373
+ "description": "Enable or disable the autologout feature",
374
+ "visibility": "frontend",
375
+ "type": "boolean"
376
+ },
377
+ "idleTimeoutMinutes": {
378
+ "description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
379
+ "visibility": "frontend",
380
+ "type": "number"
381
+ },
382
+ "promptBeforeIdleSeconds": {
383
+ "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.",
384
+ "visibility": "frontend",
385
+ "type": "number"
386
+ },
387
+ "useWorkerTimers": {
388
+ "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.",
389
+ "visibility": "frontend",
390
+ "type": "boolean"
391
+ },
392
+ "logoutIfDisconnected": {
393
+ "description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
394
+ "visibility": "frontend",
395
+ "type": "boolean"
396
+ }
397
+ }
398
+ }
399
+ }
400
+ }
401
+ },
402
+ "$schema": "http://json-schema.org/draft-07/schema#"
403
+ },
404
+ "packageName": "@backstage/core-components"
405
+ },
406
406
  {
407
407
  "path": "../../plugins/techdocs/config.d.ts",
408
408
  "value": {
@@ -2833,7 +2833,7 @@
2833
2833
  "packageName": "@backstage/plugin-auth-backend-module-bitbucket-server-provider"
2834
2834
  },
2835
2835
  {
2836
- "path": "../../plugins/auth-backend-module-gcp-iap-provider/config.d.ts",
2836
+ "path": "../../plugins/auth-backend-module-cloudflare-access-provider/config.d.ts",
2837
2837
  "value": {
2838
2838
  "type": "object",
2839
2839
  "properties": {
@@ -2843,16 +2843,36 @@
2843
2843
  "providers": {
2844
2844
  "type": "object",
2845
2845
  "properties": {
2846
- "gcpIap": {
2847
- "description": "Configuration for the Google Cloud Platform Identity-Aware Proxy (IAP) auth provider.",
2846
+ "cfaccess": {
2847
+ "visibility": "frontend",
2848
2848
  "type": "object",
2849
2849
  "properties": {
2850
- "audience": {
2851
- "description": "The audience to use when validating incoming JWT tokens.\nSee https://backstage.io/docs/auth/google/gcp-iap-auth",
2850
+ "teamName": {
2852
2851
  "type": "string"
2853
2852
  },
2854
- "jwtHeader": {
2855
- "description": "The name of the header to read the JWT token from, defaults to `'x-goog-iap-jwt-assertion'`.",
2853
+ "serviceTokens": {
2854
+ "deepVisibility": "secret",
2855
+ "type": "array",
2856
+ "items": {
2857
+ "type": "object",
2858
+ "properties": {
2859
+ "token": {
2860
+ "type": "string"
2861
+ },
2862
+ "subject": {
2863
+ "type": "string"
2864
+ }
2865
+ },
2866
+ "required": [
2867
+ "subject",
2868
+ "token"
2869
+ ]
2870
+ }
2871
+ },
2872
+ "jwtHeaderName": {
2873
+ "type": "string"
2874
+ },
2875
+ "authorizationCookieName": {
2856
2876
  "type": "string"
2857
2877
  },
2858
2878
  "signIn": {
@@ -2862,30 +2882,6 @@
2862
2882
  "type": "array",
2863
2883
  "items": {
2864
2884
  "anyOf": [
2865
- {
2866
- "type": "object",
2867
- "properties": {
2868
- "resolver": {
2869
- "type": "string",
2870
- "const": "emailMatchingUserEntityAnnotation"
2871
- }
2872
- },
2873
- "required": [
2874
- "resolver"
2875
- ]
2876
- },
2877
- {
2878
- "type": "object",
2879
- "properties": {
2880
- "resolver": {
2881
- "type": "string",
2882
- "const": "idMatchingUserEntityAnnotation"
2883
- }
2884
- },
2885
- "required": [
2886
- "resolver"
2887
- ]
2888
- },
2889
2885
  {
2890
2886
  "type": "object",
2891
2887
  "properties": {
@@ -2926,8 +2922,11 @@
2926
2922
  }
2927
2923
  },
2928
2924
  "required": [
2929
- "audience"
2925
+ "teamName"
2930
2926
  ]
2927
+ },
2928
+ "backstageTokenExpiration": {
2929
+ "description": "The backstage token expiration."
2931
2930
  }
2932
2931
  }
2933
2932
  }
@@ -2936,10 +2935,10 @@
2936
2935
  },
2937
2936
  "$schema": "http://json-schema.org/draft-07/schema#"
2938
2937
  },
2939
- "packageName": "@backstage/plugin-auth-backend-module-gcp-iap-provider"
2938
+ "packageName": "@backstage/plugin-auth-backend-module-cloudflare-access-provider"
2940
2939
  },
2941
2940
  {
2942
- "path": "../../plugins/auth-backend-module-cloudflare-access-provider/config.d.ts",
2941
+ "path": "../../plugins/auth-backend-module-gcp-iap-provider/config.d.ts",
2943
2942
  "value": {
2944
2943
  "type": "object",
2945
2944
  "properties": {
@@ -2949,36 +2948,16 @@
2949
2948
  "providers": {
2950
2949
  "type": "object",
2951
2950
  "properties": {
2952
- "cfaccess": {
2953
- "visibility": "frontend",
2951
+ "gcpIap": {
2952
+ "description": "Configuration for the Google Cloud Platform Identity-Aware Proxy (IAP) auth provider.",
2954
2953
  "type": "object",
2955
2954
  "properties": {
2956
- "teamName": {
2957
- "type": "string"
2958
- },
2959
- "serviceTokens": {
2960
- "deepVisibility": "secret",
2961
- "type": "array",
2962
- "items": {
2963
- "type": "object",
2964
- "properties": {
2965
- "token": {
2966
- "type": "string"
2967
- },
2968
- "subject": {
2969
- "type": "string"
2970
- }
2971
- },
2972
- "required": [
2973
- "subject",
2974
- "token"
2975
- ]
2976
- }
2977
- },
2978
- "jwtHeaderName": {
2955
+ "audience": {
2956
+ "description": "The audience to use when validating incoming JWT tokens.\nSee https://backstage.io/docs/auth/google/gcp-iap-auth",
2979
2957
  "type": "string"
2980
2958
  },
2981
- "authorizationCookieName": {
2959
+ "jwtHeader": {
2960
+ "description": "The name of the header to read the JWT token from, defaults to `'x-goog-iap-jwt-assertion'`.",
2982
2961
  "type": "string"
2983
2962
  },
2984
2963
  "signIn": {
@@ -2988,6 +2967,30 @@
2988
2967
  "type": "array",
2989
2968
  "items": {
2990
2969
  "anyOf": [
2970
+ {
2971
+ "type": "object",
2972
+ "properties": {
2973
+ "resolver": {
2974
+ "type": "string",
2975
+ "const": "emailMatchingUserEntityAnnotation"
2976
+ }
2977
+ },
2978
+ "required": [
2979
+ "resolver"
2980
+ ]
2981
+ },
2982
+ {
2983
+ "type": "object",
2984
+ "properties": {
2985
+ "resolver": {
2986
+ "type": "string",
2987
+ "const": "idMatchingUserEntityAnnotation"
2988
+ }
2989
+ },
2990
+ "required": [
2991
+ "resolver"
2992
+ ]
2993
+ },
2991
2994
  {
2992
2995
  "type": "object",
2993
2996
  "properties": {
@@ -3028,11 +3031,8 @@
3028
3031
  }
3029
3032
  },
3030
3033
  "required": [
3031
- "teamName"
3034
+ "audience"
3032
3035
  ]
3033
- },
3034
- "backstageTokenExpiration": {
3035
- "description": "The backstage token expiration."
3036
3036
  }
3037
3037
  }
3038
3038
  }
@@ -3041,7 +3041,7 @@
3041
3041
  },
3042
3042
  "$schema": "http://json-schema.org/draft-07/schema#"
3043
3043
  },
3044
- "packageName": "@backstage/plugin-auth-backend-module-cloudflare-access-provider"
3044
+ "packageName": "@backstage/plugin-auth-backend-module-gcp-iap-provider"
3045
3045
  },
3046
3046
  {
3047
3047
  "path": "../../plugins/auth-backend-module-github-provider/config.d.ts",
@@ -4089,6 +4089,25 @@
4089
4089
  "$schema": "http://json-schema.org/draft-07/schema#"
4090
4090
  },
4091
4091
  "packageName": "@backstage/integration-aws-node"
4092
+ },
4093
+ {
4094
+ "path": "../../node_modules/@backstage/backend-common/node_modules/@backstage/backend-plugin-api/config.d.ts",
4095
+ "value": {
4096
+ "type": "object",
4097
+ "properties": {
4098
+ "backend": {
4099
+ "type": "object",
4100
+ "properties": {
4101
+ "workingDirectory": {
4102
+ "description": "An absolute path to a directory that can be used as a working dir, for\nexample as scratch space for large operations.",
4103
+ "type": "string"
4104
+ }
4105
+ }
4106
+ }
4107
+ },
4108
+ "$schema": "http://json-schema.org/draft-07/schema#"
4109
+ },
4110
+ "packageName": "@backstage/backend-plugin-api"
4092
4111
  }
4093
4112
  ],
4094
4113
  "backstageConfigSchemaVersion": 1
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.a90fd85d.js"></script><script defer="defer" src="/static/module-material-ui.05c1a36a.js"></script><script defer="defer" src="/static/module-lodash.aa647045.js"></script><script defer="defer" src="/static/module-date-fns.c633d602.js"></script><script defer="defer" src="/static/module-mui.f702282a.js"></script><script defer="defer" src="/static/module-material-table.84f30b2f.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer="defer" src="/static/module-zod.4f2eeb8c.js"></script><script defer="defer" src="/static/module-i18next.f50c1612.js"></script><script defer="defer" src="/static/module-remix-run.ba6397c2.js"></script><script defer="defer" src="/static/vendor.a90fd85d.js"></script><script defer="defer" src="/static/main.a90fd85d.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.41d3a86c.js"></script><script defer="defer" src="/static/module-material-ui.909829ed.js"></script><script defer="defer" src="/static/module-lodash.aa647045.js"></script><script defer="defer" src="/static/module-date-fns.c633d602.js"></script><script defer="defer" src="/static/module-mui.f702282a.js"></script><script defer="defer" src="/static/module-material-table.84f30b2f.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer="defer" src="/static/module-zod.4f2eeb8c.js"></script><script defer="defer" src="/static/module-i18next.f50c1612.js"></script><script defer="defer" src="/static/module-remix-run.ba6397c2.js"></script><script defer="defer" src="/static/vendor.41d3a86c.js"></script><script defer="defer" src="/static/main.41d3a86c.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.a90fd85d.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.05c1a36a.js"></script><script defer src="<%= publicPath %>/static/module-lodash.aa647045.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.c633d602.js"></script><script defer src="<%= publicPath %>/static/module-mui.f702282a.js"></script><script defer src="<%= publicPath %>/static/module-material-table.84f30b2f.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.42a304d3.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer src="<%= publicPath %>/static/module-zod.4f2eeb8c.js"></script><script defer src="<%= publicPath %>/static/module-i18next.f50c1612.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.ba6397c2.js"></script><script defer src="<%= publicPath %>/static/vendor.a90fd85d.js"></script><script defer src="<%= publicPath %>/static/main.a90fd85d.js"></script></head>
45
+ <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.41d3a86c.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.909829ed.js"></script><script defer src="<%= publicPath %>/static/module-lodash.aa647045.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.c633d602.js"></script><script defer src="<%= publicPath %>/static/module-mui.f702282a.js"></script><script defer src="<%= publicPath %>/static/module-material-table.84f30b2f.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.42a304d3.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer src="<%= publicPath %>/static/module-zod.4f2eeb8c.js"></script><script defer src="<%= publicPath %>/static/module-i18next.f50c1612.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.ba6397c2.js"></script><script defer src="<%= publicPath %>/static/vendor.41d3a86c.js"></script><script defer src="<%= publicPath %>/static/main.41d3a86c.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>
@@ -1,4 +1,4 @@
1
1
  "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[1297],{90759:(m,o,e)=>{e.d(o,{W:()=>r});var t=e(93184);const r=(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 & zoo to move around the diagram.",edgeLabels:{partOf:"part of",provides:"provides",dependsOn:"depends on"}}}})},61297:(m,o,e)=>{e.r(o),e.d(o,{CatalogSearchResultListItem:()=>b});var t=e(31085),r=e(14041),h=e(10394),a=e(67720),p=e(46423),y=e(5951),u=e(72501),g=e(58837),f=e(72072),d=e(70734),T=e(90759),C=e(87849);const v=(0,g.A)({item:{display:"flex"},flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",wordBreak:"break-all",marginBottom:"1rem"}},{name:"CatalogSearchResultListItem"});function b(s){const i=s.result,n=s.highlight,l=v(),{t:c}=(0,C.i)(T.W);return i?(0,t.jsxs)("div",{className:l.item,children:[s.icon&&(0,t.jsx)(p.A,{children:typeof s.icon=="function"?s.icon(i):s.icon}),(0,t.jsxs)("div",{className:l.flexContainer,children:[(0,t.jsx)(y.A,{className:l.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,t.jsx)(f.N_,{noTrack:!0,to:i.location,children:n?.fields.title?(0,t.jsx)(d.e,{text:n.fields.title,preTag:n.preTag,postTag:n.postTag}):i.title}),secondary:(0,t.jsx)(u.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s.lineClamp,overflow:"hidden"},color:"textSecondary",variant:"body2",children:n?.fields.text?(0,t.jsx)(d.e,{text:n.fields.text,preTag:n.preTag,postTag:n.postTag}):i.text})}),(0,t.jsxs)(h.A,{children:[i.kind&&(0,t.jsx)(a.A,{label:`Kind: ${i.kind}`,size:"small"}),i.type&&(0,t.jsx)(a.A,{label:`Type: ${i.type}`,size:"small"}),i.lifecycle&&(0,t.jsx)(a.A,{label:`${c("searchResultItem.lifecycle")}: ${i.lifecycle}`,size:"small"}),i.owner&&(0,t.jsx)(a.A,{label:`${c("searchResultItem.Owner")}: ${i.owner}`,size:"small"})]})]})]}):null}}}]);})();
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 & zoo to move around the diagram.",edgeLabels:{partOf:"part of",provides:"provides",dependsOn:"depends on"}}}})},61297:(m,o,e)=>{e.r(o),e.d(o,{CatalogSearchResultListItem:()=>b});var t=e(31085),r=e(14041),h=e(10394),a=e(67720),p=e(68804),y=e(5951),u=e(72501),g=e(58837),f=e(72072),d=e(70734),T=e(90759),C=e(87849);const v=(0,g.A)({item:{display:"flex"},flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",wordBreak:"break-all",marginBottom:"1rem"}},{name:"CatalogSearchResultListItem"});function b(s){const i=s.result,n=s.highlight,l=v(),{t:c}=(0,C.i)(T.W);return i?(0,t.jsxs)("div",{className:l.item,children:[s.icon&&(0,t.jsx)(p.A,{children:typeof s.icon=="function"?s.icon(i):s.icon}),(0,t.jsxs)("div",{className:l.flexContainer,children:[(0,t.jsx)(y.A,{className:l.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,t.jsx)(f.N_,{noTrack:!0,to:i.location,children:n?.fields.title?(0,t.jsx)(d.e,{text:n.fields.title,preTag:n.preTag,postTag:n.postTag}):i.title}),secondary:(0,t.jsx)(u.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s.lineClamp,overflow:"hidden"},color:"textSecondary",variant:"body2",children:n?.fields.text?(0,t.jsx)(d.e,{text:n.fields.text,preTag:n.preTag,postTag:n.postTag}):i.text})}),(0,t.jsxs)(h.A,{children:[i.kind&&(0,t.jsx)(a.A,{label:`Kind: ${i.kind}`,size:"small"}),i.type&&(0,t.jsx)(a.A,{label:`Type: ${i.type}`,size:"small"}),i.lifecycle&&(0,t.jsx)(a.A,{label:`${c("searchResultItem.lifecycle")}: ${i.lifecycle}`,size:"small"}),i.owner&&(0,t.jsx)(a.A,{label:`${c("searchResultItem.Owner")}: ${i.owner}`,size:"small"})]})]})]}):null}}}]);})();
3
3
 
4
- //# sourceMappingURL=1297.5286dfc5.chunk.js.map
4
+ //# sourceMappingURL=1297.51afb104.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/1297.5286dfc5.chunk.js","mappings":"6KAmBO,MAAMA,KAAwBC,EAAAA,GAAqB,CACxDC,GAAI,UACJC,SAAU,CACRC,UAAW,CACTC,MAAO,sBACPC,kBAAmB,SACnBC,qBAAsB,oCACxB,EACAC,UAAW,CACTH,MAAO,QACPI,mBAAoB,0BACpBC,gBAAiB,gBACjBC,yBAA0B,2BAC1B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ACE,OAACC,EAAAA,EAAUA,CACTC,UAAU,OACVC,MAAO,CACLnC,QAAS,cACToC,gBAAiB,WACjBC,gBAAiB5B,EAAM6B,UACvBC,SAAU,QACZ,EACAC,MAAM,gBACNnB,QAAQ,Q,SAEPV,GAAWgB,OAAOE,QACjB,OAACD,EAAAA,EAA2BA,CAC1BC,KAAMlB,EAAUgB,OAAOE,KACvBC,OAAQnB,EAAUmB,OAClBC,QAASpB,EAAUoB,O,GAGrBrB,EAAOmB,I,QAKf,QAACY,EAAAA,EAAGA,C,UACD/B,EAAOgC,SAAQ,OAACC,EAAAA,EAAIA,CAACvG,MAAO,SAASsE,EAAOgC,IAAI,GAAIE,KAAK,O,GACzDlC,EAAOmC,SAAQ,OAACF,EAAAA,EAAIA,CAACvG,MAAO,SAASsE,EAAOmC,IAAI,GAAID,KAAK,O,GACzDlC,EAAO3D,cACN,OAAC4F,EAAAA,EAAIA,CACHvG,MAAO,GAAGyE,EAAE,4BAA4B,CAAC,KAAKH,EAAO3D,SAAS,GAC9D6F,KAAK,O,GAGRlC,EAAOoC,UACN,OAACH,EAAAA,EAAIA,CACHvG,MAAO,GAAGyE,EAAE,wBAAwB,CAAC,KAAKH,EAAOoC,KAAK,GACtDF,KAAK,O,YA9DG,IAqEtB,C","sources":["webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/alpha/translation.ts","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogSearchResultListItem/CatalogSearchResultListItem.tsx"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @alpha */\nexport const catalogTranslationRef = createTranslationRef({\n id: 'catalog',\n messages: {\n indexPage: {\n title: `{{orgName}} Catalog`,\n createButtonTitle: 'Create',\n supportButtonContent: 'All your software catalog entities',\n },\n aboutCard: {\n title: 'About',\n refreshButtonTitle: 'Schedule entity refresh',\n editButtonTitle: 'Edit Metadata',\n createSimilarButtonTitle: 'Create something similar',\n refreshScheduledMessage: 'Refresh scheduled',\n launchTemplate: 'Launch Template',\n viewTechdocs: 'View TechDocs',\n viewSource: 'View Source',\n descriptionField: {\n label: 'Description',\n value: 'No description',\n },\n ownerField: {\n label: 'Owner',\n value: 'No Owner',\n },\n domainField: {\n label: 'Domain',\n value: 'No Domain',\n },\n systemField: {\n label: 'System',\n value: 'No System',\n },\n parentComponentField: {\n label: 'Parent Component',\n value: 'No Parent Component',\n },\n typeField: {\n label: 'Type',\n },\n lifecycleField: {\n label: 'Lifecycle',\n },\n tagsField: {\n label: 'Tags',\n value: 'No Tags',\n },\n targetsField: {\n label: 'Targets',\n },\n },\n searchResultItem: {\n lifecycle: 'Lifecycle',\n Owner: 'Owner',\n },\n catalogTable: {\n warningPanelTitle: 'Could not fetch catalog entities.',\n viewActionTitle: 'View',\n editActionTitle: 'Edit',\n starActionTitle: 'Add to favorites',\n unStarActionTitle: 'Remove from favorites',\n },\n dependencyOfComponentsCard: {\n title: 'Dependency of components',\n emptyMessage: 'No component depends on this component',\n },\n dependsOnComponentsCard: {\n title: 'Depends on components',\n emptyMessage: 'No component is a dependency of this component',\n },\n dependsOnResourcesCard: {\n title: 'Depends on resources',\n emptyMessage: 'No resource is a dependency of this component',\n },\n entityContextMenu: {\n copiedMessage: 'Copied!',\n moreButtonTitle: 'More',\n inspectMenuTitle: 'Inspect entity',\n copyURLMenuTitle: 'Copy entity URL',\n unregisterMenuTitle: 'Unregister entity',\n },\n entityLabelsCard: {\n title: 'Labels',\n emptyDescription:\n 'No labels defined for this entity. You can add labels to your entity YAML as shown in the highlighted example below:',\n readMoreButtonTitle: 'Read more',\n },\n entityLabels: {\n warningPanelTitle: 'Entity not found',\n ownerLabel: 'Owner',\n lifecycleLabel: 'Lifecycle',\n },\n entityLinksCard: {\n title: 'Links',\n emptyDescription:\n 'No links defined for this entity. You can add links to your entity YAML as shown in the highlighted example below:',\n readMoreButtonTitle: 'Read more',\n },\n entityNotFound: {\n title: 'Entity was not found',\n description:\n 'Want to help us build this? Check out our Getting Started documentation.',\n docButtonTitle: 'DOCS',\n },\n deleteEntity: {\n dialogTitle: 'Are you sure you want to delete this entity?',\n deleteButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n description:\n 'This entity is not referenced by any location and is therefore not receiving updates. Click here to delete.',\n },\n entityProcessingErrorsDescription: 'The error below originates from',\n entityRelationWarningDescription:\n \"This entity has relations to other entities, which can't be found in the catalog.\\n Entities not found are: \",\n hasComponentsCard: {\n title: 'Has components',\n emptyMessage: 'No component is part of this system',\n },\n hasResourcesCard: {\n title: 'Has resources',\n emptyMessage: 'No resource is part of this system',\n },\n hasSubcomponentsCard: {\n title: 'Has subcomponents',\n emptyMessage: 'No subcomponent is part of this component',\n },\n hasSubdomainsCard: {\n title: 'Has subdomains',\n emptyMessage: 'No subdomain is part of this domain',\n },\n hasSystemsCard: {\n title: 'Has systems',\n emptyMessage: 'No system is part of this domain',\n },\n relatedEntitiesCard: {\n emptyHelpLinkTitle: 'Learn how to change this',\n },\n systemDiagramCard: {\n title: 'System Diagram',\n description: 'Use pinch & zoo to move around the diagram.',\n edgeLabels: {\n partOf: 'part of',\n provides: 'provides',\n dependsOn: 'depends on',\n },\n },\n },\n});\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ReactNode } from 'react';\nimport Box from '@material-ui/core/Box';\nimport Chip from '@material-ui/core/Chip';\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Link } from '@backstage/core-components';\nimport {\n IndexableDocument,\n ResultHighlight,\n} from '@backstage/plugin-search-common';\nimport { HighlightedSearchResultText } from '@backstage/plugin-search-react';\nimport { catalogTranslationRef } from '../../alpha/translation';\nimport { useTranslationRef } from '@backstage/frontend-plugin-api';\n\n/** @public */\nexport type CatalogSearchResultListItemClassKey =\n | 'item'\n | 'flexContainer'\n | 'itemText';\n\nconst useStyles = makeStyles(\n {\n item: {\n display: 'flex',\n },\n flexContainer: {\n flexWrap: 'wrap',\n },\n itemText: {\n width: '100%',\n wordBreak: 'break-all',\n marginBottom: '1rem',\n },\n },\n { name: 'CatalogSearchResultListItem' },\n);\n\n/**\n * Props for {@link CatalogSearchResultListItem}.\n *\n * @public\n */\nexport interface CatalogSearchResultListItemProps {\n icon?: ReactNode | ((result: IndexableDocument) => ReactNode);\n result?: IndexableDocument;\n highlight?: ResultHighlight;\n rank?: number;\n lineClamp?: number;\n}\n\n/** @public */\nexport function CatalogSearchResultListItem(\n props: CatalogSearchResultListItemProps,\n) {\n const result = props.result as any;\n const highlight = props.highlight as ResultHighlight;\n\n const classes = useStyles();\n const { t } = useTranslationRef(catalogTranslationRef);\n\n if (!result) return null;\n\n return (\n <div className={classes.item}>\n {props.icon && (\n <ListItemIcon>\n {typeof props.icon === 'function' ? props.icon(result) : props.icon}\n </ListItemIcon>\n )}\n <div className={classes.flexContainer}>\n <ListItemText\n className={classes.itemText}\n primaryTypographyProps={{ variant: 'h6' }}\n primary={\n <Link noTrack to={result.location}>\n {highlight?.fields.title ? (\n <HighlightedSearchResultText\n text={highlight.fields.title}\n preTag={highlight.preTag}\n postTag={highlight.postTag}\n />\n ) : (\n result.title\n )}\n </Link>\n }\n secondary={\n <Typography\n component=\"span\"\n style={{\n display: '-webkit-box',\n WebkitBoxOrient: 'vertical',\n WebkitLineClamp: props.lineClamp,\n overflow: 'hidden',\n }}\n color=\"textSecondary\"\n variant=\"body2\"\n >\n {highlight?.fields.text ? (\n <HighlightedSearchResultText\n text={highlight.fields.text}\n preTag={highlight.preTag}\n postTag={highlight.postTag}\n />\n ) : (\n result.text\n )}\n </Typography>\n }\n />\n <Box>\n {result.kind && <Chip label={`Kind: ${result.kind}`} size=\"small\" />}\n {result.type && <Chip label={`Type: ${result.type}`} size=\"small\" />}\n {result.lifecycle && (\n <Chip\n label={`${t('searchResultItem.lifecycle')}: ${result.lifecycle}`}\n size=\"small\"\n />\n )}\n {result.owner && (\n <Chip\n label={`${t('searchResultItem.Owner')}: ${result.owner}`}\n size=\"small\"\n />\n )}\n </Box>\n </div>\n </div>\n );\n}\n"],"names":["catalogTranslationRef","createTranslationRef","id","messages","indexPage","title","createButtonTitle","supportButtonContent","aboutCard","refreshButtonTitle","editButtonTitle","createSimilarButtonTitle","refreshScheduledMessage","launchTemplate","viewTechdocs","viewSource","descriptionField","label","value","ownerField","domainField","systemField","parentComponentField","typeField","lifecycleField","tagsField","targetsField","searchResultItem","lifecycle","Owner","catalogTable","warningPanelTitle","viewActionTitle","editActionTitle","starActionTitle","unStarActionTitle","dependencyOfComponentsCard","emptyMessage","dependsOnComponentsCard","dependsOnResourcesCard","entityContextMenu","copiedMessage","moreButtonTitle","inspectMenuTitle","copyURLMenuTitle","unregisterMenuTitle","entityLabelsCard","emptyDescription","readMoreButtonTitle","entityLabels","ownerLabel","lifecycleLabel","entityLinksCard","entityNotFound","description","docButtonTitle","deleteEntity","dialogTitle","deleteButtonTitle","cancelButtonTitle","entityProcessingErrorsDescription","entityRelationWarningDescription","hasComponentsCard","hasResourcesCard","hasSubcomponentsCard","hasSubdomainsCard","hasSystemsCard","relatedEntitiesCard","emptyHelpLinkTitle","systemDiagramCard","edgeLabels","partOf","provides","dependsOn","useStyles","makeStyles","item","display","flexContainer","flexWrap","itemText","width","wordBreak","marginBottom","name","CatalogSearchResultListItem","props","result","highlight","classes","t","useTranslationRef","div","className","icon","ListItemIcon","ListItemText","primaryTypographyProps","variant","primary","Link","noTrack","to","location","fields","HighlightedSearchResultText","text","preTag","postTag","secondary","Typography","component","style","WebkitBoxOrient","WebkitLineClamp","lineClamp","overflow","color","Box","kind","Chip","size","type","owner"],"sourceRoot":""}
1
+ {"version":3,"file":"static/1297.51afb104.chunk.js","mappings":"6KAmBO,MAAMA,KAAwBC,EAAAA,GAAqB,CACxDC,GAAI,UACJC,SAAU,CACRC,UAAW,CACTC,MAAO,sBACPC,kBAAmB,SACnBC,qBAAsB,oCACxB,EACAC,UAAW,CACTH,MAAO,QACPI,mBAAoB,0BACpBC,gBAAiB,gBACjBC,yBAA0B,2BAC1BC,wBAAyB,oBACzBC,eAAgB,kBAChBC,aAAc,gBACdC,WAAY,cACZC,iBAAkB,CAChBC,MAAO,cACPC,MAAO,gBACT,EACAC,WAAY,CACVF,MAAO,QACPC,MAAO,UACT,EACAE,YAAa,CACXH,MAAO,SACPC,MAAO,WACT,EACAG,YAAa,CACXJ,MAAO,SACPC,MAAO,WACT,EACAI,qBAAsB,CACpBL,MAAO,mBACPC,MAAO,qBACT,EACAK,UAAW,CACTN,MAAO,MACT,EACAO,eAAgB,CACdP,MAAO,WACT,EACAQ,UAAW,CACTR,MAAO,OACPC,MAAO,SACT,EACAQ,aAAc,CACZT,MAAO,SACT,CACF,EACAU,iBAAkB,CAChBC,UAAW,YACXC,MAAO,OACT,EACAC,aAAc,CACZC,kBAAmB,oCACnBC,gBAAiB,OACjBC,gBAAiB,OACjBC,gBAAiB,mBACjBC,kBAAmB,uBACrB,EACAC,2BAA4B,CAC1B/B,MAAO,2BACPgC,aAAc,wCAChB,EACAC,wBAAyB,CACvBjC,MAAO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,GAC9D6F,KAAK,O,GAGRlC,EAAOoC,UACN,OAACH,EAAAA,EAAIA,CACHvG,MAAO,GAAGyE,EAAE,wBAAwB,CAAC,KAAKH,EAAOoC,KAAK,GACtDF,KAAK,O,YA9DG,IAqEtB,C","sources":["webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/alpha/translation.ts","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogSearchResultListItem/CatalogSearchResultListItem.tsx"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @alpha */\nexport const catalogTranslationRef = createTranslationRef({\n id: 'catalog',\n messages: {\n indexPage: {\n title: `{{orgName}} Catalog`,\n createButtonTitle: 'Create',\n supportButtonContent: 'All your software catalog entities',\n },\n aboutCard: {\n title: 'About',\n refreshButtonTitle: 'Schedule entity refresh',\n editButtonTitle: 'Edit Metadata',\n createSimilarButtonTitle: 'Create something similar',\n refreshScheduledMessage: 'Refresh scheduled',\n launchTemplate: 'Launch Template',\n viewTechdocs: 'View TechDocs',\n viewSource: 'View Source',\n descriptionField: {\n label: 'Description',\n value: 'No description',\n },\n ownerField: {\n label: 'Owner',\n value: 'No Owner',\n },\n domainField: {\n label: 'Domain',\n value: 'No Domain',\n },\n systemField: {\n label: 'System',\n value: 'No System',\n },\n parentComponentField: {\n label: 'Parent Component',\n value: 'No Parent Component',\n },\n typeField: {\n label: 'Type',\n },\n lifecycleField: {\n label: 'Lifecycle',\n },\n tagsField: {\n label: 'Tags',\n value: 'No Tags',\n },\n targetsField: {\n label: 'Targets',\n },\n },\n searchResultItem: {\n lifecycle: 'Lifecycle',\n Owner: 'Owner',\n },\n catalogTable: {\n warningPanelTitle: 'Could not fetch catalog entities.',\n viewActionTitle: 'View',\n editActionTitle: 'Edit',\n starActionTitle: 'Add to favorites',\n unStarActionTitle: 'Remove from favorites',\n },\n dependencyOfComponentsCard: {\n title: 'Dependency of components',\n emptyMessage: 'No component depends on this component',\n },\n dependsOnComponentsCard: {\n title: 'Depends on components',\n emptyMessage: 'No component is a dependency of this component',\n },\n dependsOnResourcesCard: {\n title: 'Depends on resources',\n emptyMessage: 'No resource is a dependency of this component',\n },\n entityContextMenu: {\n copiedMessage: 'Copied!',\n moreButtonTitle: 'More',\n inspectMenuTitle: 'Inspect entity',\n copyURLMenuTitle: 'Copy entity URL',\n unregisterMenuTitle: 'Unregister entity',\n },\n entityLabelsCard: {\n title: 'Labels',\n emptyDescription:\n 'No labels defined for this entity. You can add labels to your entity YAML as shown in the highlighted example below:',\n readMoreButtonTitle: 'Read more',\n },\n entityLabels: {\n warningPanelTitle: 'Entity not found',\n ownerLabel: 'Owner',\n lifecycleLabel: 'Lifecycle',\n },\n entityLinksCard: {\n title: 'Links',\n emptyDescription:\n 'No links defined for this entity. You can add links to your entity YAML as shown in the highlighted example below:',\n readMoreButtonTitle: 'Read more',\n },\n entityNotFound: {\n title: 'Entity was not found',\n description:\n 'Want to help us build this? Check out our Getting Started documentation.',\n docButtonTitle: 'DOCS',\n },\n deleteEntity: {\n dialogTitle: 'Are you sure you want to delete this entity?',\n deleteButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n description:\n 'This entity is not referenced by any location and is therefore not receiving updates. Click here to delete.',\n },\n entityProcessingErrorsDescription: 'The error below originates from',\n entityRelationWarningDescription:\n \"This entity has relations to other entities, which can't be found in the catalog.\\n Entities not found are: \",\n hasComponentsCard: {\n title: 'Has components',\n emptyMessage: 'No component is part of this system',\n },\n hasResourcesCard: {\n title: 'Has resources',\n emptyMessage: 'No resource is part of this system',\n },\n hasSubcomponentsCard: {\n title: 'Has subcomponents',\n emptyMessage: 'No subcomponent is part of this component',\n },\n hasSubdomainsCard: {\n title: 'Has subdomains',\n emptyMessage: 'No subdomain is part of this domain',\n },\n hasSystemsCard: {\n title: 'Has systems',\n emptyMessage: 'No system is part of this domain',\n },\n relatedEntitiesCard: {\n emptyHelpLinkTitle: 'Learn how to change this',\n },\n systemDiagramCard: {\n title: 'System Diagram',\n description: 'Use pinch & zoo to move around the diagram.',\n edgeLabels: {\n partOf: 'part of',\n provides: 'provides',\n dependsOn: 'depends on',\n },\n },\n },\n});\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ReactNode } from 'react';\nimport Box from '@material-ui/core/Box';\nimport Chip from '@material-ui/core/Chip';\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Link } from '@backstage/core-components';\nimport {\n IndexableDocument,\n ResultHighlight,\n} from '@backstage/plugin-search-common';\nimport { HighlightedSearchResultText } from '@backstage/plugin-search-react';\nimport { catalogTranslationRef } from '../../alpha/translation';\nimport { useTranslationRef } from '@backstage/frontend-plugin-api';\n\n/** @public */\nexport type CatalogSearchResultListItemClassKey =\n | 'item'\n | 'flexContainer'\n | 'itemText';\n\nconst useStyles = makeStyles(\n {\n item: {\n display: 'flex',\n },\n flexContainer: {\n flexWrap: 'wrap',\n },\n itemText: {\n width: '100%',\n wordBreak: 'break-all',\n marginBottom: '1rem',\n },\n },\n { name: 'CatalogSearchResultListItem' },\n);\n\n/**\n * Props for {@link CatalogSearchResultListItem}.\n *\n * @public\n */\nexport interface CatalogSearchResultListItemProps {\n icon?: ReactNode | ((result: IndexableDocument) => ReactNode);\n result?: IndexableDocument;\n highlight?: ResultHighlight;\n rank?: number;\n lineClamp?: number;\n}\n\n/** @public */\nexport function CatalogSearchResultListItem(\n props: CatalogSearchResultListItemProps,\n) {\n const result = props.result as any;\n const highlight = props.highlight as ResultHighlight;\n\n const classes = useStyles();\n const { t } = useTranslationRef(catalogTranslationRef);\n\n if (!result) return null;\n\n return (\n <div className={classes.item}>\n {props.icon && (\n <ListItemIcon>\n {typeof props.icon === 'function' ? props.icon(result) : props.icon}\n </ListItemIcon>\n )}\n <div className={classes.flexContainer}>\n <ListItemText\n className={classes.itemText}\n primaryTypographyProps={{ variant: 'h6' }}\n primary={\n <Link noTrack to={result.location}>\n {highlight?.fields.title ? (\n <HighlightedSearchResultText\n text={highlight.fields.title}\n preTag={highlight.preTag}\n postTag={highlight.postTag}\n />\n ) : (\n result.title\n )}\n </Link>\n }\n secondary={\n <Typography\n component=\"span\"\n style={{\n display: '-webkit-box',\n WebkitBoxOrient: 'vertical',\n WebkitLineClamp: props.lineClamp,\n overflow: 'hidden',\n }}\n color=\"textSecondary\"\n variant=\"body2\"\n >\n {highlight?.fields.text ? (\n <HighlightedSearchResultText\n text={highlight.fields.text}\n preTag={highlight.preTag}\n postTag={highlight.postTag}\n />\n ) : (\n result.text\n )}\n </Typography>\n }\n />\n <Box>\n {result.kind && <Chip label={`Kind: ${result.kind}`} size=\"small\" />}\n {result.type && <Chip label={`Type: ${result.type}`} size=\"small\" />}\n {result.lifecycle && (\n <Chip\n label={`${t('searchResultItem.lifecycle')}: ${result.lifecycle}`}\n size=\"small\"\n />\n )}\n {result.owner && (\n <Chip\n label={`${t('searchResultItem.Owner')}: ${result.owner}`}\n size=\"small\"\n />\n )}\n </Box>\n </div>\n </div>\n );\n}\n"],"names":["catalogTranslationRef","createTranslationRef","id","messages","indexPage","title","createButtonTitle","supportButtonContent","aboutCard","refreshButtonTitle","editButtonTitle","createSimilarButtonTitle","refreshScheduledMessage","launchTemplate","viewTechdocs","viewSource","descriptionField","label","value","ownerField","domainField","systemField","parentComponentField","typeField","lifecycleField","tagsField","targetsField","searchResultItem","lifecycle","Owner","catalogTable","warningPanelTitle","viewActionTitle","editActionTitle","starActionTitle","unStarActionTitle","dependencyOfComponentsCard","emptyMessage","dependsOnComponentsCard","dependsOnResourcesCard","entityContextMenu","copiedMessage","moreButtonTitle","inspectMenuTitle","copyURLMenuTitle","unregisterMenuTitle","entityLabelsCard","emptyDescription","readMoreButtonTitle","entityLabels","ownerLabel","lifecycleLabel","entityLinksCard","entityNotFound","description","docButtonTitle","deleteEntity","dialogTitle","deleteButtonTitle","cancelButtonTitle","entityProcessingErrorsDescription","entityRelationWarningDescription","hasComponentsCard","hasResourcesCard","hasSubcomponentsCard","hasSubdomainsCard","hasSystemsCard","relatedEntitiesCard","emptyHelpLinkTitle","systemDiagramCard","edgeLabels","partOf","provides","dependsOn","useStyles","makeStyles","item","display","flexContainer","flexWrap","itemText","width","wordBreak","marginBottom","name","CatalogSearchResultListItem","props","result","highlight","classes","t","useTranslationRef","div","className","icon","ListItemIcon","ListItemText","primaryTypographyProps","variant","primary","Link","noTrack","to","location","fields","HighlightedSearchResultText","text","preTag","postTag","secondary","Typography","component","style","WebkitBoxOrient","WebkitLineClamp","lineClamp","overflow","color","Box","kind","Chip","size","type","owner"],"sourceRoot":""}