@techdocs/cli 1.8.6 → 1.8.7

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 (55) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/{PublisherConfig-cbad5748.cjs.js → PublisherConfig-B9GYw8mh.cjs.js} +1 -1
  3. package/dist/cjs/{PublisherConfig-cbad5748.cjs.js.map → PublisherConfig-B9GYw8mh.cjs.js.map} +1 -1
  4. package/dist/cjs/{generate-f9a039d6.cjs.js → generate-ZiP9GGnN.cjs.js} +9 -9
  5. package/dist/cjs/{generate-f9a039d6.cjs.js.map → generate-ZiP9GGnN.cjs.js.map} +1 -1
  6. package/dist/cjs/{migrate-6884188f.cjs.js → migrate-CccqCfHt.cjs.js} +4 -4
  7. package/dist/cjs/{migrate-6884188f.cjs.js.map → migrate-CccqCfHt.cjs.js.map} +1 -1
  8. package/dist/cjs/{mkdocs-35db8d18.cjs.js → mkdocs-v2pfmOKh.cjs.js} +9 -9
  9. package/dist/cjs/{mkdocs-35db8d18.cjs.js.map → mkdocs-v2pfmOKh.cjs.js.map} +1 -1
  10. package/dist/cjs/{publish-009fdf9f.cjs.js → publish-D19dZg09.cjs.js} +4 -4
  11. package/dist/cjs/{publish-009fdf9f.cjs.js.map → publish-D19dZg09.cjs.js.map} +1 -1
  12. package/dist/cjs/{serve-c333b152.cjs.js → serve-C91gBkLm.cjs.js} +18 -18
  13. package/dist/cjs/{serve-c333b152.cjs.js.map → serve-C91gBkLm.cjs.js.map} +1 -1
  14. package/dist/cjs/{utility-3c0df5a9.cjs.js → utility-CsspJYjU.cjs.js} +5 -5
  15. package/dist/cjs/{utility-3c0df5a9.cjs.js.map → utility-CsspJYjU.cjs.js.map} +1 -1
  16. package/dist/cjs/{utils-8afb2c2c.cjs.js → utils-xnPYUjip.cjs.js} +1 -1
  17. package/dist/cjs/{utils-8afb2c2c.cjs.js.map → utils-xnPYUjip.cjs.js.map} +1 -1
  18. package/dist/embedded-app/.config-schema.json +115 -141
  19. package/dist/embedded-app/index.html +1 -1
  20. package/dist/embedded-app/static/{124.bcbbf0a4.chunk.js → 124.79598769.chunk.js} +2 -2
  21. package/dist/embedded-app/static/{124.bcbbf0a4.chunk.js.map → 124.79598769.chunk.js.map} +1 -1
  22. package/dist/embedded-app/static/{2401.937251cb.chunk.js → 2401.1d69db66.chunk.js} +2 -2
  23. package/dist/embedded-app/static/{2401.937251cb.chunk.js.map → 2401.1d69db66.chunk.js.map} +1 -1
  24. package/dist/embedded-app/static/{2420.940cc021.chunk.js → 2420.af0a138a.chunk.js} +2 -2
  25. package/dist/embedded-app/static/{2420.940cc021.chunk.js.map → 2420.af0a138a.chunk.js.map} +1 -1
  26. package/dist/embedded-app/static/{287.4f1942e3.chunk.js → 287.e4086426.chunk.js} +2 -2
  27. package/dist/embedded-app/static/{287.4f1942e3.chunk.js.map → 287.e4086426.chunk.js.map} +1 -1
  28. package/dist/embedded-app/static/{3632.135770ac.chunk.js → 3632.311321b8.chunk.js} +2 -2
  29. package/dist/embedded-app/static/{3632.135770ac.chunk.js.map → 3632.311321b8.chunk.js.map} +1 -1
  30. package/dist/embedded-app/static/4487.bd1aa826.chunk.js +3 -0
  31. package/dist/embedded-app/static/{4487.7a16d602.chunk.js.map → 4487.bd1aa826.chunk.js.map} +1 -1
  32. package/dist/embedded-app/static/{4516.f764862f.chunk.js → 4516.88dfcdbc.chunk.js} +2 -2
  33. package/dist/embedded-app/static/{4516.f764862f.chunk.js.map → 4516.88dfcdbc.chunk.js.map} +1 -1
  34. package/dist/embedded-app/static/{4992.7ed27cd6.chunk.js → 4992.cffa1169.chunk.js} +2 -2
  35. package/dist/embedded-app/static/{4992.7ed27cd6.chunk.js.map → 4992.cffa1169.chunk.js.map} +1 -1
  36. package/dist/embedded-app/static/{6271.127ce25e.chunk.js → 6271.25bd2120.chunk.js} +2 -2
  37. package/dist/embedded-app/static/{6271.127ce25e.chunk.js.map → 6271.25bd2120.chunk.js.map} +1 -1
  38. package/dist/embedded-app/static/{8384.7cb59b29.chunk.js → 8384.6e8b1108.chunk.js} +2 -2
  39. package/dist/embedded-app/static/{8384.7cb59b29.chunk.js.map → 8384.6e8b1108.chunk.js.map} +1 -1
  40. package/dist/embedded-app/static/{9234.d9f1c8a3.chunk.js → 9234.2136bcf4.chunk.js} +2 -2
  41. package/dist/embedded-app/static/{9234.d9f1c8a3.chunk.js.map → 9234.2136bcf4.chunk.js.map} +1 -1
  42. package/dist/embedded-app/static/{9652.b3a364b6.chunk.js → 9652.b4fc9f0c.chunk.js} +2 -2
  43. package/dist/embedded-app/static/{9652.b3a364b6.chunk.js.map → 9652.b4fc9f0c.chunk.js.map} +1 -1
  44. package/dist/embedded-app/static/{main.eafbd509.js → main.6a42e4f3.js} +6 -6
  45. package/dist/embedded-app/static/main.6a42e4f3.js.map +1 -0
  46. package/dist/embedded-app/static/{runtime.eafbd509.js → runtime.6a42e4f3.js} +2 -2
  47. package/dist/embedded-app/static/{runtime.eafbd509.js.map → runtime.6a42e4f3.js.map} +1 -1
  48. package/dist/embedded-app/static/vendor.6a42e4f3.js +160 -0
  49. package/dist/embedded-app/static/vendor.6a42e4f3.js.map +1 -0
  50. package/dist/index.cjs.js +6 -6
  51. package/package.json +4 -4
  52. package/dist/embedded-app/static/4487.7a16d602.chunk.js +0 -3
  53. package/dist/embedded-app/static/main.eafbd509.js.map +0 -1
  54. package/dist/embedded-app/static/vendor.eafbd509.js +0 -160
  55. package/dist/embedded-app/static/vendor.eafbd509.js.map +0 -1
@@ -115,51 +115,6 @@
115
115
  "$schema": "http://json-schema.org/draft-07/schema#"
116
116
  }
117
117
  },
118
- {
119
- "path": "../core-components/config.d.ts",
120
- "value": {
121
- "type": "object",
122
- "properties": {
123
- "auth": {
124
- "type": "object",
125
- "properties": {
126
- "autologout": {
127
- "description": "Autologout feature configuration",
128
- "type": "object",
129
- "properties": {
130
- "enabled": {
131
- "description": "Enable or disable the autologout feature",
132
- "visibility": "frontend",
133
- "type": "boolean"
134
- },
135
- "idleTimeoutMinutes": {
136
- "description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
137
- "visibility": "frontend",
138
- "type": "number"
139
- },
140
- "promptBeforeIdleSeconds": {
141
- "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.",
142
- "visibility": "frontend",
143
- "type": "number"
144
- },
145
- "useWorkerTimers": {
146
- "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.",
147
- "visibility": "frontend",
148
- "type": "boolean"
149
- },
150
- "logoutIfDisconnected": {
151
- "description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
152
- "visibility": "frontend",
153
- "type": "boolean"
154
- }
155
- }
156
- }
157
- }
158
- }
159
- },
160
- "$schema": "http://json-schema.org/draft-07/schema#"
161
- }
162
- },
163
118
  {
164
119
  "path": "../core-app-api/config.d.ts",
165
120
  "value": {
@@ -368,6 +323,99 @@
368
323
  "$schema": "http://json-schema.org/draft-07/schema#"
369
324
  }
370
325
  },
326
+ {
327
+ "path": "../core-components/config.d.ts",
328
+ "value": {
329
+ "type": "object",
330
+ "properties": {
331
+ "auth": {
332
+ "type": "object",
333
+ "properties": {
334
+ "autologout": {
335
+ "description": "Autologout feature configuration",
336
+ "type": "object",
337
+ "properties": {
338
+ "enabled": {
339
+ "description": "Enable or disable the autologout feature",
340
+ "visibility": "frontend",
341
+ "type": "boolean"
342
+ },
343
+ "idleTimeoutMinutes": {
344
+ "description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
345
+ "visibility": "frontend",
346
+ "type": "number"
347
+ },
348
+ "promptBeforeIdleSeconds": {
349
+ "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.",
350
+ "visibility": "frontend",
351
+ "type": "number"
352
+ },
353
+ "useWorkerTimers": {
354
+ "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.",
355
+ "visibility": "frontend",
356
+ "type": "boolean"
357
+ },
358
+ "logoutIfDisconnected": {
359
+ "description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
360
+ "visibility": "frontend",
361
+ "type": "boolean"
362
+ }
363
+ }
364
+ }
365
+ }
366
+ }
367
+ },
368
+ "$schema": "http://json-schema.org/draft-07/schema#"
369
+ }
370
+ },
371
+ {
372
+ "path": "../../plugins/techdocs/config.d.ts",
373
+ "value": {
374
+ "type": "object",
375
+ "properties": {
376
+ "techdocs": {
377
+ "description": "Configuration options for the techdocs plugin",
378
+ "type": "object",
379
+ "properties": {
380
+ "builder": {
381
+ "description": "Documentation building process depends on the builder attr",
382
+ "visibility": "frontend",
383
+ "enum": [
384
+ "external",
385
+ "local"
386
+ ],
387
+ "type": "string"
388
+ },
389
+ "legacyUseCaseSensitiveTripletPaths": {
390
+ "description": "Allows fallback to case-sensitive triplets in case of migration issues.",
391
+ "visibility": "frontend",
392
+ "type": "boolean"
393
+ },
394
+ "sanitizer": {
395
+ "type": "object",
396
+ "properties": {
397
+ "allowedIframeHosts": {
398
+ "description": "Allows iframe tag only for listed hosts\nExample:\n allowedIframeHosts: [\"example.com\"]\n this will allow all iframes with the host `example.com` in the src attribute",
399
+ "visibility": "frontend",
400
+ "type": "array",
401
+ "items": {
402
+ "type": "string"
403
+ }
404
+ }
405
+ }
406
+ }
407
+ },
408
+ "required": [
409
+ "builder"
410
+ ]
411
+ }
412
+ },
413
+ "required": [
414
+ "techdocs"
415
+ ],
416
+ "$schema": "http://json-schema.org/draft-07/schema#"
417
+ }
418
+ },
371
419
  {
372
420
  "path": "../integration/config.d.ts",
373
421
  "value": {
@@ -780,54 +828,6 @@
780
828
  "$schema": "http://json-schema.org/draft-07/schema#"
781
829
  }
782
830
  },
783
- {
784
- "path": "../../plugins/techdocs/config.d.ts",
785
- "value": {
786
- "type": "object",
787
- "properties": {
788
- "techdocs": {
789
- "description": "Configuration options for the techdocs plugin",
790
- "type": "object",
791
- "properties": {
792
- "builder": {
793
- "description": "Documentation building process depends on the builder attr",
794
- "visibility": "frontend",
795
- "enum": [
796
- "external",
797
- "local"
798
- ],
799
- "type": "string"
800
- },
801
- "legacyUseCaseSensitiveTripletPaths": {
802
- "description": "Allows fallback to case-sensitive triplets in case of migration issues.",
803
- "visibility": "frontend",
804
- "type": "boolean"
805
- },
806
- "sanitizer": {
807
- "type": "object",
808
- "properties": {
809
- "allowedIframeHosts": {
810
- "description": "Allows iframe tag only for listed hosts\nExample:\n allowedIframeHosts: [\"example.com\"]\n this will allow all iframes with the host `example.com` in the src attribute",
811
- "visibility": "frontend",
812
- "type": "array",
813
- "items": {
814
- "type": "string"
815
- }
816
- }
817
- }
818
- }
819
- },
820
- "required": [
821
- "builder"
822
- ]
823
- }
824
- },
825
- "required": [
826
- "techdocs"
827
- ],
828
- "$schema": "http://json-schema.org/draft-07/schema#"
829
- }
830
- },
831
831
  {
832
832
  "path": "../../plugins/catalog/config.d.ts",
833
833
  "value": {
@@ -961,28 +961,6 @@
961
961
  "$schema": "http://json-schema.org/draft-07/schema#"
962
962
  }
963
963
  },
964
- {
965
- "path": "../../plugins/stackstorm/config.d.ts",
966
- "value": {
967
- "type": "object",
968
- "properties": {
969
- "stackstorm": {
970
- "type": "object",
971
- "properties": {
972
- "webUrl": {
973
- "description": "StackStorm Web UI url\nUsed in links to StackStorm web UI",
974
- "visibility": "frontend",
975
- "type": "string"
976
- }
977
- },
978
- "required": [
979
- "webUrl"
980
- ]
981
- }
982
- },
983
- "$schema": "http://json-schema.org/draft-07/schema#"
984
- }
985
- },
986
964
  {
987
965
  "path": "../../node_modules/@oriflame/backstage-plugin-score-card/config.d.ts",
988
966
  "value": {
@@ -1011,6 +989,28 @@
1011
989
  "$schema": "http://json-schema.org/draft-07/schema#"
1012
990
  }
1013
991
  },
992
+ {
993
+ "path": "../../plugins/stackstorm/config.d.ts",
994
+ "value": {
995
+ "type": "object",
996
+ "properties": {
997
+ "stackstorm": {
998
+ "type": "object",
999
+ "properties": {
1000
+ "webUrl": {
1001
+ "description": "StackStorm Web UI url\nUsed in links to StackStorm web UI",
1002
+ "visibility": "frontend",
1003
+ "type": "string"
1004
+ }
1005
+ },
1006
+ "required": [
1007
+ "webUrl"
1008
+ ]
1009
+ }
1010
+ },
1011
+ "$schema": "http://json-schema.org/draft-07/schema#"
1012
+ }
1013
+ },
1014
1014
  {
1015
1015
  "path": "../backend-common/config.d.ts",
1016
1016
  "value": {
@@ -1486,32 +1486,6 @@
1486
1486
  "type": "boolean"
1487
1487
  }
1488
1488
  }
1489
- },
1490
- "rateLimit": {
1491
- "visibility": "frontend",
1492
- "anyOf": [
1493
- {
1494
- "type": "object",
1495
- "properties": {
1496
- "max": {
1497
- "description": "Limit each IP to max requests per window, defaults to 60 requests.",
1498
- "type": "number"
1499
- },
1500
- "window": {
1501
- "description": "The duration for which the rate limit is enforced, defaults to 1 minute."
1502
- },
1503
- "disable": {
1504
- "description": "Disable the rate limit verification.",
1505
- "const": true,
1506
- "type": "boolean"
1507
- }
1508
- }
1509
- },
1510
- {
1511
- "const": false,
1512
- "type": "boolean"
1513
- }
1514
- ]
1515
1489
  }
1516
1490
  }
1517
1491
  },
@@ -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><script defer="defer" src="/static/runtime.eafbd509.js"></script><script defer="defer" src="/static/module-material-ui.033f9fa6.js"></script><script defer="defer" src="/static/module-material-table.145eb704.js"></script><script defer="defer" src="/static/module-lodash.1a2b8e11.js"></script><script defer="defer" src="/static/module-react-dom.3e65b8bc.js"></script><script defer="defer" src="/static/module-react-router.07ec2a81.js"></script><script defer="defer" src="/static/module-react-router-dom.ba9d01bf.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.8a51ed97.js"></script><script defer="defer" src="/static/module-zod.955be94f.js"></script><script defer="defer" src="/static/module-i18next.40b7c233.js"></script><script defer="defer" src="/static/vendor.eafbd509.js"></script><script defer="defer" src="/static/main.eafbd509.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><script defer="defer" src="/static/runtime.6a42e4f3.js"></script><script defer="defer" src="/static/module-material-ui.033f9fa6.js"></script><script defer="defer" src="/static/module-material-table.145eb704.js"></script><script defer="defer" src="/static/module-lodash.1a2b8e11.js"></script><script defer="defer" src="/static/module-react-dom.3e65b8bc.js"></script><script defer="defer" src="/static/module-react-router.07ec2a81.js"></script><script defer="defer" src="/static/module-react-router-dom.ba9d01bf.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.8a51ed97.js"></script><script defer="defer" src="/static/module-zod.955be94f.js"></script><script defer="defer" src="/static/module-i18next.40b7c233.js"></script><script defer="defer" src="/static/vendor.6a42e4f3.js"></script><script defer="defer" src="/static/main.6a42e4f3.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -1,5 +1,5 @@
1
- "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[124],{74616:function(H,C,t){var n,T=t(4293),A=t(78920);n={value:!0},C.A=void 0;var c=A(t(14041)),d=T(t(74044)),D=(0,d.default)(c.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");C.A=D},62220:function(H,C,t){var n,T,A;(function(c,d){if(1)T=[C,t(14041),t(39067)],n=d,A=typeof n=="function"?n.apply(C,T):n,A!==void 0&&(H.exports=A);else var D})(void 0,function(c,d,D){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var I=U(d),f=U(D);function U(o){return o&&o.__esModule?o:{default:o}}function u(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(i){return typeof i}:u=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},u(o)}function R(o,r){if(o==null)return{};var i=g(o,r),e,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);for(a=0;a<s.length;a++)e=s[a],!(r.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(o,e)&&(i[e]=o[e])}return i}function g(o,r){if(o==null)return{};var i={},e=Object.keys(o),a,s;for(s=0;s<e.length;s++)a=e[s],!(r.indexOf(a)>=0)&&(i[a]=o[a]);return i}function S(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function B(o,r){for(var i=0;i<r.length;i++){var e=r[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}function M(o,r,i){return r&&B(o.prototype,r),i&&B(o,i),o}function v(o,r){return r&&(u(r)==="object"||typeof r=="function")?r:O(o)}function j(o){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},j(o)}function O(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function E(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),r&&x(o,r)}function x(o,r){return x=Object.setPrototypeOf||function(e,a){return e.__proto__=a,e},x(o,r)}function W(o,r,i){return r in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,o}var $=1e-4,L=function(r,i){return Math.abs(r-i)<$},h=function(o){E(r,o);function r(){var i,e;S(this,r);for(var a=arguments.length,s=new Array(a),y=0;y<a;y++)s[y]=arguments[y];return e=v(this,(i=j(r)).call.apply(i,[this].concat(s))),W(O(e),"onResize",function(){e.rafId&&window.cancelAnimationFrame(e.rafId),e.rafId=window.requestAnimationFrame(e.update.bind(O(e)))}),W(O(e),"onToggled",function(m){typeof e.props.onToggled=="function"&&setTimeout(function(){return e.props.onToggled(m)},0)}),W(O(e),"onTruncated",function(){typeof e.props.onTruncated=="function"&&setTimeout(function(){return e.props.onTruncated()},0)}),W(O(e),"onCalculated",function(){typeof e.props.onCalculated=="function"&&setTimeout(function(){return e.props.onCalculated()},0)}),W(O(e),"update",function(){var m=window.getComputedStyle(e.scope),b=[m["font-weight"],m["font-style"],m["font-size"],m["font-family"],m["letter-spacing"]].join(" ");e.canvas.font=b,e.forceUpdate()}),e}return M(r,[{key:"componentDidMount",value:function(){var e=document.createElement("canvas"),a=document.createDocumentFragment(),s=window.getComputedStyle(this.scope),y=[s["font-weight"],s["font-style"],s["font-size"],s["font-family"]].join(" ");a.appendChild(e),this.canvas=e.getContext("2d"),this.canvas.font=y,this.forceUpdate(),window.addEventListener("resize",this.onResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onResize),this.rafId&&window.cancelAnimationFrame(this.rafId)}},{key:"measureWidth",value:function(e){return this.canvas.measureText(e).width}},{key:"getRenderText",value:function(){var e=this.props,a=e.containerClassName,s=e.element,y=e.line,m=e.onCalculated,b=e.onTruncated,w=e.onToggled,l=e.text,F=e.textElement,P=e.textTruncateChild,X=e.truncateText,q=e.maxCalculateTimes,G=R(e,["containerClassName","element","line","onCalculated","onTruncated","onToggled","text","textElement","textTruncateChild","truncateText","maxCalculateTimes"]),J=this.scope.getBoundingClientRect().width;if(J===0)return null;var _=this.measureWidth(l);if(J>_||L(J,_))return this.onToggled(!1),(0,d.createElement)(F,G,l);var Q="";if(P&&typeof P.type=="string"){var Z=P.type;(Z.indexOf("span")>=0||Z.indexOf("a")>=0)&&(Q=P.props.children)}for(var p=1,V=l.length,N="",z=0,K=0,k=y,Y=0,tt=!1,nt=!1,et=0,ot=-1,at="",rt=0;k-- >0;){for(at=k?"":X+(Q?" "+Q:"");p<=V;)if(N=l.substr(K,p),Y=this.measureWidth(N+at),Y<J)z=l.indexOf(" ",p+1),z===-1?(p+=1,tt=!1):(tt=!0,p=z);else{do{if(rt++>=q)break;N=l.substr(K,p),k||p--,N[N.length-1]===" "&&(N=l.substr(K,p-1)),tt?(ot=N.lastIndexOf(" "),ot>-1?(p=ot,k&&p++,N=l.substr(K,p)):(p--,N=l.substr(K,p))):(p--,N=l.substr(K,p)),Y=this.measureWidth(N+at)}while((Y>J||L(Y,J))&&N.length>0);K+=p;break}if(p>=V){K=V;break}tt&&!nt&&l.substr(et,p).indexOf(" ")===-1&&(nt=l.substr(et,p).indexOf(" ")===-1,k--),et=p+1}return K===V?(this.onToggled(!1),(0,d.createElement)(F,G,l)):(this.onTruncated(),this.onToggled(!0),I.default.createElement("span",G,(0,d.createElement)(F,G,l.substr(0,K)+X+" "),P))}},{key:"render",value:function(){var e=this,a=this.props,s=a.element,y=a.text,m=a.style,b=m===void 0?{}:m,w=a.containerClassName,l=a.line,F=a.onCalculated,P=a.onTruncated,X=a.onToggled,q=a.textElement,G=a.textTruncateChild,J=a.truncateText,_=a.maxCalculateTimes,Q=R(a,["element","text","style","containerClassName","line","onCalculated","onTruncated","onToggled","textElement","textTruncateChild","truncateText","maxCalculateTimes"]),Z=b.fontWeight,p=b.fontStyle,V=b.fontSize,N=b.fontFamily,z=this.scope&&l?this.getRenderText():(0,d.createElement)(q,Q,y),K={ref:function(Y){e.scope=Y},className:w,style:{overflow:"hidden",fontWeight:Z,fontStyle:p,fontSize:V,fontFamily:N}};return this.scope&&this.onCalculated(),(0,d.createElement)(s,K,z)}}]),r}(d.Component);W(h,"propTypes",{containerClassName:f.default.string,element:f.default.string,line:f.default.oneOfType([f.default.number,f.default.bool]),onCalculated:f.default.func,onTruncated:f.default.func,onToggled:f.default.func,text:f.default.string,textElement:f.default.elementType,textTruncateChild:f.default.node,truncateText:f.default.string,maxCalculateTimes:f.default.number}),W(h,"defaultProps",{element:"div",line:1,text:"",textElement:"span",truncateText:"\u2026",maxCalculateTimes:10}),c.default=h,H.exports=c.default})},48514:function(H,C,t){t.d(C,{M:function(){return U}});var n=t(31085),T=t(58837),A=t(71677),c=t(14041),d=t(62220),D=t.n(d),I=t(85058);const f=(0,T.A)({container:{overflow:"visible !important"}},{name:"BackstageOverflowTooltip"});function U(u){const[R,g]=(0,c.useState)(!1),S=(0,I.a)(),B=f(),M=j=>{S()&&g(j)};var v;return(0,n.jsx)(A.Ay,{title:(v=u.title)!==null&&v!==void 0?v:u.text||"",placement:u.placement,disableHoverListener:!R,children:(0,n.jsx)(D(),{text:u.text,line:u.line,onToggled:M,containerClassName:B.container})})}},48045:function(H,C,t){t.d(C,{n:function(){return i}});var n=t(31085),T=t(40703),A=t(59469),c=t(48653),d=t(45685),D=t(37197),I=t(58837),f=t(87051),U=t(53373),u=t.n(U),R=t(14041),g=t(10394),S=t(72501),B=t(74616),M=t(72072);const v=(0,I.A)(e=>({root:{maxWidth:"fit-content",padding:e.spacing(2,2,2,2.5)},boxTitle:{margin:0,color:e.palette.textSubtle},arrow:{color:e.palette.textSubtle}}),{name:"BackstageBottomLink"});function j(e){const{link:a,title:s,onClick:y}=e,m=v();return(0,n.jsxs)(g.A,{children:[(0,n.jsx)(D.A,{}),(0,n.jsx)(M.N_,{to:a,onClick:y,underline:"none",children:(0,n.jsxs)(g.A,{display:"flex",alignItems:"center",className:m.root,children:[(0,n.jsx)(g.A,{className:m.boxTitle,fontWeight:"fontWeightBold",m:1,children:(0,n.jsx)(S.A,{children:(0,n.jsx)("strong",{children:s})})}),(0,n.jsx)(B.A,{className:m.arrow})]})})]})}var O=t(73896),E=t(22020),x=t(10315),W=t(87849);const $=e=>{const{slackChannel:a}=e,{t:s}=(0,W.i)(x.O);if(a){if(typeof a=="string")return(0,n.jsx)(S.A,{children:s("errorBoundary.title",{slackChannel:a})});if(!a.href)return(0,n.jsx)(S.A,{children:s("errorBoundary.title",{slackChannel:a.name})})}else return null;return(0,n.jsx)(O.z,{to:a.href,variant:"contained",children:a.name})},L=class extends R.Component{componentDidCatch(a,s){console.error(`ErrorBoundary, error: ${a}, info: ${s}`),this.setState({error:a,errorInfo:s})}render(){const{slackChannel:a,children:s}=this.props,{error:y}=this.state;return y?(0,n.jsx)(E.b,{title:"Something Went Wrong",error:y,children:(0,n.jsx)($,{slackChannel:a})}):s}constructor(a){super(a),this.state={error:void 0,errorInfo:void 0}}},h=(0,I.A)(e=>({noPadding:{padding:0,"&:last-child":{paddingBottom:0}},header:{padding:e.spacing(2,2,2,2.5)},headerTitle:{fontWeight:e.typography.fontWeightBold},headerSubheader:{paddingTop:e.spacing(1)},headerAvatar:{},headerAction:{},headerContent:{},subheader:{display:"flex"}}),{name:"BackstageInfoCard"}),o=(0,f.A)(e=>({root:{display:"inline-block",padding:e.spacing(8,8,0,0),float:"right"}}),{name:"BackstageInfoCardCardActionsTopRight"})(A.A),r={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 i(e){const{title:a,subheader:s,divider:y=!0,deepLink:m,slackChannel:b,errorBoundaryProps:w,variant:l,children:F,headerStyle:P,headerProps:X,icon:q,action:G,actionsClassName:J,actions:_,cardClassName:Q,actionsTopRight:Z,className:p,noPadding:V,titleTypographyProps:N}=e,z=h();let K={},k={};l&&l.split(/[\s]+/g).forEach(et=>{K={...K,...r.card[et]},k={...k,...r.cardContent[et]}});const Y=()=>!s&&!q?null:(0,n.jsxs)("div",{className:z.headerSubheader,"data-testid":"info-card-subheader",children:[s&&(0,n.jsx)("div",{className:z.subheader,children:s}),q]}),tt=w||(b?{slackChannel:b}:{});return(0,n.jsx)(T.A,{style:K,className:p,children:(0,n.jsxs)(L,{...tt,children:[a&&(0,n.jsx)(d.A,{classes:{root:z.header,title:z.headerTitle,subheader:z.headerSubheader,avatar:z.headerAvatar,action:z.headerAction,content:z.headerContent},title:a,subheader:Y(),action:G,style:{...P},titleTypographyProps:N,...X}),Z&&(0,n.jsx)(o,{children:Z}),y&&(0,n.jsx)(D.A,{}),(0,n.jsx)(c.A,{className:u()(Q,{[z.noPadding]:V}),style:k,children:F}),_&&(0,n.jsx)(A.A,{className:J,children:_}),m&&(0,n.jsx)(j,{...m})]})})}},89648:function(H,C,t){t.d(C,{s:function(){return M}});var n=t(31085),T=t(58837),A=t(14041),c=t(51372),d=t(48514),D=t(67871),I=t(90184),f=t(8859),U=t(34428);const u=Object.freeze({createEntityRefColumn(v){const{defaultKind:j}=v;function O(E){var x;return((x=E.metadata)===null||x===void 0?void 0:x.title)||(0,I.S)(E,{defaultKind:j})}return{title:"Name",highlight:!0,customFilterAndSearch(E,x){return O(x).includes(E)},customSort(E,x){return O(E).localeCompare(O(x))},render:E=>{var x;return(0,n.jsx)(f.z,{entityRef:E,defaultKind:j,title:(x=E.metadata)===null||x===void 0?void 0:x.title})}}},createEntityRelationColumn(v){const{title:j,relation:O,defaultKind:E,filter:x}=v;function W(L){return(0,D.t)(L,O,x)}function $(L){return W(L).map(h=>(0,I.S)(h,{defaultKind:E})).join(", ")}return{title:j,customFilterAndSearch(L,h){return $(h).includes(L)},customSort(L,h){return $(L).localeCompare($(h))},render:L=>(0,n.jsx)(U.i,{entityRefs:W(L),defaultKind:E})}},createOwnerColumn(){return this.createEntityRelationColumn({title:"Owner",relation:c.vv,defaultKind:"group"})},createDomainColumn(){return this.createEntityRelationColumn({title:"Domain",relation:c.jn,defaultKind:"domain",filter:{kind:"domain"}})},createSystemColumn(){return this.createEntityRelationColumn({title:"System",relation:c.jn,defaultKind:"system",filter:{kind:"system"}})},createMetadataDescriptionColumn(){return{title:"Description",field:"metadata.description",render:v=>(0,n.jsx)(d.M,{text:v.metadata.description,placement:"bottom-start",line:2})}},createSpecLifecycleColumn(){return{title:"Lifecycle",field:"spec.lifecycle"}},createSpecTypeColumn(){return{title:"Type",field:"spec.type"}}}),R=[u.createEntityRefColumn({defaultKind:"system"}),u.createDomainColumn(),u.createOwnerColumn(),u.createMetadataDescriptionColumn()],g=[u.createEntityRefColumn({defaultKind:"component"}),u.createSystemColumn(),u.createOwnerColumn(),u.createSpecTypeColumn(),u.createSpecLifecycleColumn(),u.createMetadataDescriptionColumn()];var S=t(14209);const B=(0,T.A)(v=>({empty:{padding:v.spacing(2),display:"flex",justifyContent:"center"}})),M=v=>{const{entities:j,title:O,emptyContent:E,variant:x="gridItem",columns:W,tableOptions:$={}}=v,L=B(),h={minWidth:"0",width:"100%"};return x==="gridItem"&&(h.height="calc(100% - 10px)"),(0,n.jsx)(S.X,{columns:W,title:O,style:h,emptyContent:E&&(0,n.jsx)("div",{className:L.empty,children:E}),options:{search:!1,paging:!1,actionsColumnIndex:-1,padding:"dense",draggable:!1,...$},data:j})};M.columns=u,M.systemEntityColumns=R,M.componentEntityColumns=g},99538:function(H,C,t){t.d(C,{T7:function(){return f},TY:function(){return R},tN:function(){return u}});var n=t(31085),T=t(6820),A=t(25862),c=t(43836),d=t(10602),D=t(14041);const I=(0,c.tK)("entity-context"),f=g=>{const{children:S,entity:B,loading:M,error:v,refresh:j}=g,O={entity:B,loading:M,error:v,refresh:j};return(0,n.jsx)(I.Provider,{value:(0,d.B)({1:O}),children:(0,n.jsx)(A.Ig,{attributes:{...B?{entityRef:(0,T.U2)(B)}:void 0},children:S})})},U=g=>_jsx(f,{entity:g.entity,loading:!g.entity,error:void 0,refresh:void 0,children:g.children});function u(){const g=(0,c.qO)("entity-context");if(!g)throw new Error("Entity context is not available");const S=g.atVersion(1);if(!S)throw new Error("EntityContext v1 not available");if(!S.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:S.entity}}function R(){const g=(0,c.qO)("entity-context");if(!g)throw new Error("Entity context is not available");const S=g.atVersion(1);if(!S)throw new Error("EntityContext v1 not available");const{entity:B,loading:M,error:v,refresh:j}=S;return{entity:B,loading:M,error:v,refresh:j}}},124:function(H,C,t){t.r(C),t.d(C,{DependencyOfComponentsCard:function(){return D}});var n=t(31085),T=t(51372),A=t(14041),c=t(59251),d=t(48105);function D(I){const{variant:f="gridItem",title:U="Dependency of components"}=I;return(0,n.jsx)(c.p,{variant:f,title:U,entityKind:"Component",relationType:T.fT,columns:d.mz,emptyMessage:"No component depends on this component",emptyHelpLink:d.e2,asRenderableEntities:d.xJ})}},59251:function(H,C,t){t.d(C,{p:function(){return L}});var n=t(31085),T=t(72501),A=t(99538),c=t(6820),d=t(72427),D=t(91638),I=t(7341);function f(h,o){var r,i;const e=o==null||(r=o.type)===null||r===void 0?void 0:r.toLocaleLowerCase("en-US"),a=o==null||(i=o.kind)===null||i===void 0?void 0:i.toLocaleLowerCase("en-US"),s=(0,d.gf)(I.v),{loading:y,value:m,error:b}=(0,D.default)(async()=>{var w;const l=(w=h.relations)===null||w===void 0?void 0:w.filter(P=>(!e||P.type.toLocaleLowerCase("en-US")===e)&&(!a||(0,c.KU)(P.targetRef).kind===a));if(!(l!=null&&l.length))return[];const{items:F}=await s.getEntitiesByRefs({entityRefs:l.map(P=>P.targetRef)});return F.filter(P=>!!P)},[h,e,a]);return{entities:m,loading:y,error:b}}var U=t(89648),u=t(14041),R=t(48045),g=t(68146),S=t(58837),B=t(37197),M=t(8109),v=t(5951),j=t(77310),O=t(37916),E=t(22020);const x=(0,S.A)(h=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:h.spacing(2)},divider:{margin:h.spacing(2)}}),{name:"BackstageResponseErrorPanel"});function W(h){var o;const{title:r,error:i,defaultExpanded:e}=h,a=x();if(i.name!=="ResponseError")return(0,n.jsx)(E.b,{title:r!=null?r:i.message,defaultExpanded:e,error:i});const{body:s,cause:y}=i,{request:m,response:b}=s,w=`${b.statusCode}: ${y.name}`,l=m&&`${m.method} ${m.url}`,F=y.message.replace(/\\n/g,`
1
+ "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[124],{74616:function(H,C,t){var n,T=t(4293),A=t(78920);n={value:!0},C.A=void 0;var c=A(t(14041)),d=T(t(74044)),D=(0,d.default)(c.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");C.A=D},62220:function(H,C,t){var n,T,A;(function(c,d){if(1)T=[C,t(14041),t(39067)],n=d,A=typeof n=="function"?n.apply(C,T):n,A!==void 0&&(H.exports=A);else var D})(void 0,function(c,d,D){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var I=U(d),f=U(D);function U(o){return o&&o.__esModule?o:{default:o}}function u(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(i){return typeof i}:u=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},u(o)}function R(o,r){if(o==null)return{};var i=g(o,r),e,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);for(a=0;a<s.length;a++)e=s[a],!(r.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(o,e)&&(i[e]=o[e])}return i}function g(o,r){if(o==null)return{};var i={},e=Object.keys(o),a,s;for(s=0;s<e.length;s++)a=e[s],!(r.indexOf(a)>=0)&&(i[a]=o[a]);return i}function S(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function B(o,r){for(var i=0;i<r.length;i++){var e=r[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}function M(o,r,i){return r&&B(o.prototype,r),i&&B(o,i),o}function v(o,r){return r&&(u(r)==="object"||typeof r=="function")?r:O(o)}function j(o){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},j(o)}function O(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function E(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),r&&x(o,r)}function x(o,r){return x=Object.setPrototypeOf||function(e,a){return e.__proto__=a,e},x(o,r)}function W(o,r,i){return r in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,o}var $=1e-4,L=function(r,i){return Math.abs(r-i)<$},h=function(o){E(r,o);function r(){var i,e;S(this,r);for(var a=arguments.length,s=new Array(a),y=0;y<a;y++)s[y]=arguments[y];return e=v(this,(i=j(r)).call.apply(i,[this].concat(s))),W(O(e),"onResize",function(){e.rafId&&window.cancelAnimationFrame(e.rafId),e.rafId=window.requestAnimationFrame(e.update.bind(O(e)))}),W(O(e),"onToggled",function(m){typeof e.props.onToggled=="function"&&setTimeout(function(){return e.props.onToggled(m)},0)}),W(O(e),"onTruncated",function(){typeof e.props.onTruncated=="function"&&setTimeout(function(){return e.props.onTruncated()},0)}),W(O(e),"onCalculated",function(){typeof e.props.onCalculated=="function"&&setTimeout(function(){return e.props.onCalculated()},0)}),W(O(e),"update",function(){var m=window.getComputedStyle(e.scope),b=[m["font-weight"],m["font-style"],m["font-size"],m["font-family"],m["letter-spacing"]].join(" ");e.canvas.font=b,e.forceUpdate()}),e}return M(r,[{key:"componentDidMount",value:function(){var e=document.createElement("canvas"),a=document.createDocumentFragment(),s=window.getComputedStyle(this.scope),y=[s["font-weight"],s["font-style"],s["font-size"],s["font-family"]].join(" ");a.appendChild(e),this.canvas=e.getContext("2d"),this.canvas.font=y,this.forceUpdate(),window.addEventListener("resize",this.onResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onResize),this.rafId&&window.cancelAnimationFrame(this.rafId)}},{key:"measureWidth",value:function(e){return this.canvas.measureText(e).width}},{key:"getRenderText",value:function(){var e=this.props,a=e.containerClassName,s=e.element,y=e.line,m=e.onCalculated,b=e.onTruncated,w=e.onToggled,l=e.text,F=e.textElement,P=e.textTruncateChild,X=e.truncateText,q=e.maxCalculateTimes,G=R(e,["containerClassName","element","line","onCalculated","onTruncated","onToggled","text","textElement","textTruncateChild","truncateText","maxCalculateTimes"]),J=this.scope.getBoundingClientRect().width;if(J===0)return null;var _=this.measureWidth(l);if(J>_||L(J,_))return this.onToggled(!1),(0,d.createElement)(F,G,l);var Q="";if(P&&typeof P.type=="string"){var Z=P.type;(Z.indexOf("span")>=0||Z.indexOf("a")>=0)&&(Q=P.props.children)}for(var p=1,V=l.length,N="",z=0,K=0,k=y,Y=0,tt=!1,nt=!1,et=0,ot=-1,at="",rt=0;k-- >0;){for(at=k?"":X+(Q?" "+Q:"");p<=V;)if(N=l.substr(K,p),Y=this.measureWidth(N+at),Y<J)z=l.indexOf(" ",p+1),z===-1?(p+=1,tt=!1):(tt=!0,p=z);else{do{if(rt++>=q)break;N=l.substr(K,p),k||p--,N[N.length-1]===" "&&(N=l.substr(K,p-1)),tt?(ot=N.lastIndexOf(" "),ot>-1?(p=ot,k&&p++,N=l.substr(K,p)):(p--,N=l.substr(K,p))):(p--,N=l.substr(K,p)),Y=this.measureWidth(N+at)}while((Y>J||L(Y,J))&&N.length>0);K+=p;break}if(p>=V){K=V;break}tt&&!nt&&l.substr(et,p).indexOf(" ")===-1&&(nt=l.substr(et,p).indexOf(" ")===-1,k--),et=p+1}return K===V?(this.onToggled(!1),(0,d.createElement)(F,G,l)):(this.onTruncated(),this.onToggled(!0),I.default.createElement("span",G,(0,d.createElement)(F,G,l.substr(0,K)+X+" "),P))}},{key:"render",value:function(){var e=this,a=this.props,s=a.element,y=a.text,m=a.style,b=m===void 0?{}:m,w=a.containerClassName,l=a.line,F=a.onCalculated,P=a.onTruncated,X=a.onToggled,q=a.textElement,G=a.textTruncateChild,J=a.truncateText,_=a.maxCalculateTimes,Q=R(a,["element","text","style","containerClassName","line","onCalculated","onTruncated","onToggled","textElement","textTruncateChild","truncateText","maxCalculateTimes"]),Z=b.fontWeight,p=b.fontStyle,V=b.fontSize,N=b.fontFamily,z=this.scope&&l?this.getRenderText():(0,d.createElement)(q,Q,y),K={ref:function(Y){e.scope=Y},className:w,style:{overflow:"hidden",fontWeight:Z,fontStyle:p,fontSize:V,fontFamily:N}};return this.scope&&this.onCalculated(),(0,d.createElement)(s,K,z)}}]),r}(d.Component);W(h,"propTypes",{containerClassName:f.default.string,element:f.default.string,line:f.default.oneOfType([f.default.number,f.default.bool]),onCalculated:f.default.func,onTruncated:f.default.func,onToggled:f.default.func,text:f.default.string,textElement:f.default.elementType,textTruncateChild:f.default.node,truncateText:f.default.string,maxCalculateTimes:f.default.number}),W(h,"defaultProps",{element:"div",line:1,text:"",textElement:"span",truncateText:"\u2026",maxCalculateTimes:10}),c.default=h,H.exports=c.default})},48514:function(H,C,t){t.d(C,{M:function(){return U}});var n=t(31085),T=t(58837),A=t(71677),c=t(14041),d=t(62220),D=t.n(d),I=t(85058);const f=(0,T.A)({container:{overflow:"visible !important"}},{name:"BackstageOverflowTooltip"});function U(u){const[R,g]=(0,c.useState)(!1),S=(0,I.a)(),B=f(),M=j=>{S()&&g(j)};var v;return(0,n.jsx)(A.Ay,{title:(v=u.title)!==null&&v!==void 0?v:u.text||"",placement:u.placement,disableHoverListener:!R,children:(0,n.jsx)(D(),{text:u.text,line:u.line,onToggled:M,containerClassName:B.container})})}},48045:function(H,C,t){t.d(C,{n:function(){return i}});var n=t(31085),T=t(40703),A=t(59469),c=t(48653),d=t(45685),D=t(37197),I=t(58837),f=t(87051),U=t(53373),u=t.n(U),R=t(14041),g=t(10394),S=t(72501),B=t(74616),M=t(72072);const v=(0,I.A)(e=>({root:{maxWidth:"fit-content",padding:e.spacing(2,2,2,2.5)},boxTitle:{margin:0,color:e.palette.textSubtle},arrow:{color:e.palette.textSubtle}}),{name:"BackstageBottomLink"});function j(e){const{link:a,title:s,onClick:y}=e,m=v();return(0,n.jsxs)(g.A,{children:[(0,n.jsx)(D.A,{}),(0,n.jsx)(M.N_,{to:a,onClick:y,underline:"none",children:(0,n.jsxs)(g.A,{display:"flex",alignItems:"center",className:m.root,children:[(0,n.jsx)(g.A,{className:m.boxTitle,fontWeight:"fontWeightBold",m:1,children:(0,n.jsx)(S.A,{children:(0,n.jsx)("strong",{children:s})})}),(0,n.jsx)(B.A,{className:m.arrow})]})})]})}var O=t(73896),E=t(22020),x=t(10315),W=t(87849);const $=e=>{const{slackChannel:a}=e,{t:s}=(0,W.i)(x.O);if(a){if(typeof a=="string")return(0,n.jsx)(S.A,{children:s("errorBoundary.title",{slackChannel:a})});if(!a.href)return(0,n.jsx)(S.A,{children:s("errorBoundary.title",{slackChannel:a.name})})}else return null;return(0,n.jsx)(O.z,{to:a.href,variant:"contained",children:a.name})},L=class extends R.Component{componentDidCatch(a,s){console.error(`ErrorBoundary, error: ${a}, info: ${s}`),this.setState({error:a,errorInfo:s})}render(){const{slackChannel:a,children:s}=this.props,{error:y}=this.state;return y?(0,n.jsx)(E.b,{title:"Something Went Wrong",error:y,children:(0,n.jsx)($,{slackChannel:a})}):s}constructor(a){super(a),this.state={error:void 0,errorInfo:void 0}}},h=(0,I.A)(e=>({noPadding:{padding:0,"&:last-child":{paddingBottom:0}},header:{padding:e.spacing(2,2,2,2.5)},headerTitle:{fontWeight:e.typography.fontWeightBold},headerSubheader:{paddingTop:e.spacing(1)},headerAvatar:{},headerAction:{},headerContent:{},subheader:{display:"flex"}}),{name:"BackstageInfoCard"}),o=(0,f.A)(e=>({root:{display:"inline-block",padding:e.spacing(8,8,0,0),float:"right"}}),{name:"BackstageInfoCardCardActionsTopRight"})(A.A),r={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 i(e){const{title:a,subheader:s,divider:y=!0,deepLink:m,slackChannel:b,errorBoundaryProps:w,variant:l,children:F,headerStyle:P,headerProps:X,icon:q,action:G,actionsClassName:J,actions:_,cardClassName:Q,actionsTopRight:Z,className:p,noPadding:V,titleTypographyProps:N}=e,z=h();let K={},k={};l&&l.split(/[\s]+/g).forEach(et=>{K={...K,...r.card[et]},k={...k,...r.cardContent[et]}});const Y=()=>!s&&!q?null:(0,n.jsxs)("div",{className:z.headerSubheader,"data-testid":"info-card-subheader",children:[s&&(0,n.jsx)("div",{className:z.subheader,children:s}),q]}),tt=w||(b?{slackChannel:b}:{});return(0,n.jsx)(T.A,{style:K,className:p,children:(0,n.jsxs)(L,{...tt,children:[a&&(0,n.jsx)(d.A,{classes:{root:z.header,title:z.headerTitle,subheader:z.headerSubheader,avatar:z.headerAvatar,action:z.headerAction,content:z.headerContent},title:a,subheader:Y(),action:G,style:{...P},titleTypographyProps:N,...X}),Z&&(0,n.jsx)(o,{children:Z}),y&&(0,n.jsx)(D.A,{}),(0,n.jsx)(c.A,{className:u()(Q,{[z.noPadding]:V}),style:k,children:F}),_&&(0,n.jsx)(A.A,{className:J,children:_}),m&&(0,n.jsx)(j,{...m})]})})}},89648:function(H,C,t){t.d(C,{s:function(){return M}});var n=t(31085),T=t(58837),A=t(14041),c=t(51372),d=t(48514),D=t(67871),I=t(90184),f=t(8859),U=t(34428);const u=Object.freeze({createEntityRefColumn(v){const{defaultKind:j}=v;function O(E){var x;return((x=E.metadata)===null||x===void 0?void 0:x.title)||(0,I.S)(E,{defaultKind:j})}return{title:"Name",highlight:!0,customFilterAndSearch(E,x){return O(x).includes(E)},customSort(E,x){return O(E).localeCompare(O(x))},render:E=>{var x;return(0,n.jsx)(f.z,{entityRef:E,defaultKind:j,title:(x=E.metadata)===null||x===void 0?void 0:x.title})}}},createEntityRelationColumn(v){const{title:j,relation:O,defaultKind:E,filter:x}=v;function W(L){return(0,D.t)(L,O,x)}function $(L){return W(L).map(h=>(0,I.S)(h,{defaultKind:E})).join(", ")}return{title:j,customFilterAndSearch(L,h){return $(h).includes(L)},customSort(L,h){return $(L).localeCompare($(h))},render:L=>(0,n.jsx)(U.i,{entityRefs:W(L),defaultKind:E})}},createOwnerColumn(){return this.createEntityRelationColumn({title:"Owner",relation:c.vv,defaultKind:"group"})},createDomainColumn(){return this.createEntityRelationColumn({title:"Domain",relation:c.jn,defaultKind:"domain",filter:{kind:"domain"}})},createSystemColumn(){return this.createEntityRelationColumn({title:"System",relation:c.jn,defaultKind:"system",filter:{kind:"system"}})},createMetadataDescriptionColumn(){return{title:"Description",field:"metadata.description",render:v=>(0,n.jsx)(d.M,{text:v.metadata.description,placement:"bottom-start",line:2})}},createSpecLifecycleColumn(){return{title:"Lifecycle",field:"spec.lifecycle"}},createSpecTypeColumn(){return{title:"Type",field:"spec.type"}}}),R=[u.createEntityRefColumn({defaultKind:"system"}),u.createDomainColumn(),u.createOwnerColumn(),u.createMetadataDescriptionColumn()],g=[u.createEntityRefColumn({defaultKind:"component"}),u.createSystemColumn(),u.createOwnerColumn(),u.createSpecTypeColumn(),u.createSpecLifecycleColumn(),u.createMetadataDescriptionColumn()];var S=t(14209);const B=(0,T.A)(v=>({empty:{padding:v.spacing(2),display:"flex",justifyContent:"center"}})),M=v=>{const{entities:j,title:O,emptyContent:E,variant:x="gridItem",columns:W,tableOptions:$={}}=v,L=B(),h={minWidth:"0",width:"100%"};return x==="gridItem"&&(h.height="calc(100% - 10px)"),(0,n.jsx)(S.X,{columns:W,title:O,style:h,emptyContent:E&&(0,n.jsx)("div",{className:L.empty,children:E}),options:{search:!1,paging:!1,actionsColumnIndex:-1,padding:"dense",draggable:!1,...$},data:j})};M.columns=u,M.systemEntityColumns=R,M.componentEntityColumns=g},99538:function(H,C,t){t.d(C,{T7:function(){return f},TY:function(){return R},tN:function(){return u}});var n=t(31085),T=t(6820),A=t(25862),c=t(43836),d=t(10602),D=t(14041);const I=(0,c.tK)("entity-context"),f=g=>{const{children:S,entity:B,loading:M,error:v,refresh:j}=g,O={entity:B,loading:M,error:v,refresh:j};return(0,n.jsx)(I.Provider,{value:(0,d.B)({1:O}),children:(0,n.jsx)(A.Ig,{attributes:{...B?{entityRef:(0,T.U2)(B)}:void 0},children:S})})},U=g=>_jsx(f,{entity:g.entity,loading:!g.entity,error:void 0,refresh:void 0,children:g.children});function u(){const g=(0,c.qO)("entity-context");if(!g)throw new Error("Entity context is not available");const S=g.atVersion(1);if(!S)throw new Error("EntityContext v1 not available");if(!S.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:S.entity}}function R(){const g=(0,c.qO)("entity-context");if(!g)throw new Error("Entity context is not available");const S=g.atVersion(1);if(!S)throw new Error("EntityContext v1 not available");const{entity:B,loading:M,error:v,refresh:j}=S;return{entity:B,loading:M,error:v,refresh:j}}},124:function(H,C,t){t.r(C),t.d(C,{DependencyOfComponentsCard:function(){return D}});var n=t(31085),T=t(51372),A=t(14041),c=t(59251),d=t(48105);function D(I){const{variant:f="gridItem",title:U="Dependency of components"}=I;return(0,n.jsx)(c.p,{variant:f,title:U,entityKind:"Component",relationType:T.fT,columns:d.mz,emptyMessage:"No component depends on this component",emptyHelpLink:d.e2,asRenderableEntities:d.xJ})}},59251:function(H,C,t){t.d(C,{p:function(){return L}});var n=t(31085),T=t(72501),A=t(99538),c=t(6820),d=t(72427),D=t(73466),I=t(7341);function f(h,o){var r,i;const e=o==null||(r=o.type)===null||r===void 0?void 0:r.toLocaleLowerCase("en-US"),a=o==null||(i=o.kind)===null||i===void 0?void 0:i.toLocaleLowerCase("en-US"),s=(0,d.gf)(I.v),{loading:y,value:m,error:b}=(0,D.A)(async()=>{var w;const l=(w=h.relations)===null||w===void 0?void 0:w.filter(P=>(!e||P.type.toLocaleLowerCase("en-US")===e)&&(!a||(0,c.KU)(P.targetRef).kind===a));if(!(l!=null&&l.length))return[];const{items:F}=await s.getEntitiesByRefs({entityRefs:l.map(P=>P.targetRef)});return F.filter(P=>!!P)},[h,e,a]);return{entities:m,loading:y,error:b}}var U=t(89648),u=t(14041),R=t(48045),g=t(68146),S=t(58837),B=t(37197),M=t(8109),v=t(5951),j=t(77310),O=t(37916),E=t(22020);const x=(0,S.A)(h=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:h.spacing(2)},divider:{margin:h.spacing(2)}}),{name:"BackstageResponseErrorPanel"});function W(h){var o;const{title:r,error:i,defaultExpanded:e}=h,a=x();if(i.name!=="ResponseError")return(0,n.jsx)(E.b,{title:r!=null?r:i.message,defaultExpanded:e,error:i});const{body:s,cause:y}=i,{request:m,response:b}=s,w=`${b.statusCode}: ${y.name}`,l=m&&`${m.method} ${m.url}`,F=y.message.replace(/\\n/g,`
2
2
  `),P=(o=y.stack)===null||o===void 0?void 0:o.replace(/\\n/g,`
3
3
  `),X=JSON.stringify(s,void 0,2);return(0,n.jsxs)(E.b,{title:r!=null?r:i.message,defaultExpanded:e,error:{name:w,message:F,stack:P},children:[l&&(0,n.jsxs)(M.A,{alignItems:"flex-start",children:[(0,n.jsx)(v.A,{classes:{secondary:a.text},primary:"Request",secondary:m?`${l}`:void 0}),(0,n.jsx)(O.l,{text:l})]}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(B.A,{component:"li",className:a.divider}),(0,n.jsx)(M.A,{alignItems:"flex-start",children:(0,n.jsx)(v.A,{classes:{secondary:a.text},primary:"Full Error as JSON"})}),(0,n.jsx)(j.z,{language:"json",text:X,showCopyCodeButton:!0})]})]})}var $=t(72072);function L(h){const{variant:o="gridItem",title:r,columns:i,entityKind:e,relationType:a,emptyMessage:s,emptyHelpLink:y,asRenderableEntities:m,tableOptions:b={}}=h,{entity:w}=(0,A.tN)(),{entities:l,loading:F,error:P}=f(w,{type:a,kind:e});return F?(0,n.jsx)(R.n,{variant:o,title:r,children:(0,n.jsx)(g.k,{})}):P?(0,n.jsx)(R.n,{variant:o,title:r,children:(0,n.jsx)(W,{error:P})}):(0,n.jsx)(U.s,{title:r,variant:o,emptyContent:(0,n.jsxs)("div",{style:{textAlign:"center"},children:[(0,n.jsx)(T.A,{variant:"body1",children:s}),(0,n.jsx)(T.A,{variant:"body2",children:(0,n.jsx)($.N_,{to:y,children:"Learn how to change this."})})]}),columns:i,entities:m(l||[]),tableOptions:b})}},48105:function(H,C,t){t.d(C,{MW:function(){return f},e2:function(){return A},eB:function(){return I},iU:function(){return U},mz:function(){return T},nz:function(){return D},v9:function(){return d},vy:function(){return u},xJ:function(){return c}});var n=t(89648);const T=[n.s.columns.createEntityRefColumn({defaultKind:"component"}),n.s.columns.createOwnerColumn(),n.s.columns.createSpecTypeColumn(),n.s.columns.createSpecLifecycleColumn(),n.s.columns.createMetadataDescriptionColumn()],A="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component",c=R=>R,d=[n.s.columns.createEntityRefColumn({defaultKind:"resource"}),n.s.columns.createOwnerColumn(),n.s.columns.createSpecTypeColumn(),n.s.columns.createSpecLifecycleColumn(),n.s.columns.createMetadataDescriptionColumn()],D="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource",I=R=>R,f=[n.s.columns.createEntityRefColumn({defaultKind:"system"}),n.s.columns.createOwnerColumn(),n.s.columns.createMetadataDescriptionColumn()],U="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system",u=R=>R},85058:function(H,C,t){t.d(C,{a:function(){return T}});var n=t(14041);function T(A=!1){const c=(0,n.useRef)(A),d=(0,n.useCallback)(()=>c.current,[]);return(0,n.useEffect)(()=>(c.current=!0,()=>{c.current=!1}),[]),d}}}]);})();
4
4
 
5
- //# sourceMappingURL=124.bcbbf0a4.chunk.js.map
5
+ //# sourceMappingURL=124.79598769.chunk.js.map