@techdocs/cli 1.8.1-next.2 → 1.8.2-next.0
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 +22 -0
- package/dist/embedded-app/.config-schema.json +22 -67
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/static/{1032.962f0dc0.chunk.js → 1032.140ea063.chunk.js} +2 -2
- package/dist/embedded-app/static/{1032.962f0dc0.chunk.js.map → 1032.140ea063.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{1105.b895d544.chunk.js → 1105.d3f18e31.chunk.js} +2 -2
- package/dist/embedded-app/static/{1105.b895d544.chunk.js.map → 1105.d3f18e31.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{184.1dc24a02.chunk.js → 184.fb5a152a.chunk.js} +2 -2
- package/dist/embedded-app/static/{184.1dc24a02.chunk.js.map → 184.fb5a152a.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{2440.c190961f.chunk.js → 2440.7a3710e0.chunk.js} +2 -2
- package/dist/embedded-app/static/{2440.c190961f.chunk.js.map → 2440.7a3710e0.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{3487.033f70d1.chunk.js → 3487.00057c69.chunk.js} +2 -2
- package/dist/embedded-app/static/{3487.033f70d1.chunk.js.map → 3487.00057c69.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{4917.a5e1279c.chunk.js → 4917.5d4a6c52.chunk.js} +2 -2
- package/dist/embedded-app/static/{4917.a5e1279c.chunk.js.map → 4917.5d4a6c52.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{5458.ee26d731.chunk.js → 5458.7bf88cf3.chunk.js} +2 -2
- package/dist/embedded-app/static/{5458.ee26d731.chunk.js.map → 5458.7bf88cf3.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{5877.917fd5e0.chunk.js → 5877.fce91b72.chunk.js} +2 -2
- package/dist/embedded-app/static/{5877.917fd5e0.chunk.js.map → 5877.fce91b72.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{6051.4b8c1634.chunk.js → 6051.71a9b063.chunk.js} +2 -2
- package/dist/embedded-app/static/{6051.4b8c1634.chunk.js.map → 6051.71a9b063.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{7750.259f7924.chunk.js → 7750.a9abe428.chunk.js} +2 -2
- package/dist/embedded-app/static/{7750.259f7924.chunk.js.map → 7750.a9abe428.chunk.js.map} +1 -1
- package/dist/embedded-app/static/87.06c3bfc1.chunk.js +3 -0
- package/dist/embedded-app/static/87.06c3bfc1.chunk.js.map +1 -0
- package/dist/embedded-app/static/{9545.21600bcf.chunk.js → 9545.264135de.chunk.js} +2 -2
- package/dist/embedded-app/static/{9545.21600bcf.chunk.js.map → 9545.264135de.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{9770.69fa838c.chunk.js → 9770.cfa9f314.chunk.js} +2 -2
- package/dist/embedded-app/static/{9770.69fa838c.chunk.js.map → 9770.cfa9f314.chunk.js.map} +1 -1
- package/dist/embedded-app/static/main.5a486dfb.js +491 -0
- package/dist/embedded-app/static/main.5a486dfb.js.map +1 -0
- package/dist/embedded-app/static/{module-material-table.b510f85c.js → module-material-table.dc2e7a78.js} +2 -2
- package/dist/embedded-app/static/{module-material-table.b510f85c.js.map → module-material-table.dc2e7a78.js.map} +1 -1
- package/dist/embedded-app/static/{module-material-ui.c8f92ef8.js → module-material-ui.e26d0f76.js} +7 -7
- package/dist/embedded-app/static/module-material-ui.e26d0f76.js.map +1 -0
- package/dist/embedded-app/static/module-react-beautiful-dnd.d66821d2.js +67 -0
- package/dist/embedded-app/static/module-react-beautiful-dnd.d66821d2.js.map +1 -0
- package/dist/embedded-app/static/module-react-router-dom.6a4a6115.js +22 -0
- package/dist/embedded-app/static/module-react-router-dom.6a4a6115.js.map +1 -0
- package/dist/embedded-app/static/module-react-router.fc2430de.js +22 -0
- package/dist/embedded-app/static/module-react-router.fc2430de.js.map +1 -0
- package/dist/embedded-app/static/{runtime.f231fd80.js → runtime.5a486dfb.js} +3 -3
- package/dist/embedded-app/static/runtime.5a486dfb.js.map +1 -0
- package/dist/embedded-app/static/vendor.5a486dfb.js +164 -0
- package/dist/embedded-app/static/vendor.5a486dfb.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/package.json +4 -4
- package/dist/embedded-app/static/9814.cc1c4811.chunk.js +0 -3
- package/dist/embedded-app/static/9814.cc1c4811.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.f231fd80.js +0 -491
- package/dist/embedded-app/static/main.f231fd80.js.map +0 -1
- package/dist/embedded-app/static/module-material-ui.c8f92ef8.js.map +0 -1
- package/dist/embedded-app/static/module-react-beautiful-dnd.1f1d9332.js +0 -67
- package/dist/embedded-app/static/module-react-beautiful-dnd.1f1d9332.js.map +0 -1
- package/dist/embedded-app/static/module-react-router-dom.81a9f610.js +0 -22
- package/dist/embedded-app/static/module-react-router-dom.81a9f610.js.map +0 -1
- package/dist/embedded-app/static/module-react-router.e7f42b6c.js +0 -22
- package/dist/embedded-app/static/module-react-router.e7f42b6c.js.map +0 -1
- package/dist/embedded-app/static/runtime.f231fd80.js.map +0 -1
- package/dist/embedded-app/static/vendor.f231fd80.js +0 -164
- package/dist/embedded-app/static/vendor.f231fd80.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @techdocs/cli
|
|
2
2
|
|
|
3
|
+
## 1.8.2-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/backend-common@0.21.0-next.0
|
|
9
|
+
- @backstage/plugin-techdocs-node@1.11.2-next.0
|
|
10
|
+
- @backstage/catalog-model@1.4.3
|
|
11
|
+
- @backstage/cli-common@0.1.13
|
|
12
|
+
- @backstage/config@1.1.1
|
|
13
|
+
|
|
14
|
+
## 1.8.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- @backstage/backend-common@0.20.1
|
|
20
|
+
- @backstage/plugin-techdocs-node@1.11.1
|
|
21
|
+
- @backstage/catalog-model@1.4.3
|
|
22
|
+
- @backstage/cli-common@0.1.13
|
|
23
|
+
- @backstage/config@1.1.1
|
|
24
|
+
|
|
3
25
|
## 1.8.1-next.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -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": {
|
|
@@ -1590,51 +1590,6 @@
|
|
|
1590
1590
|
},
|
|
1591
1591
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1592
1592
|
}
|
|
1593
|
-
},
|
|
1594
|
-
{
|
|
1595
|
-
"path": "../../node_modules/@oriflame/backstage-plugin-score-card/node_modules/@backstage/plugin-catalog-react/node_modules/@backstage/core-components/config.d.ts",
|
|
1596
|
-
"value": {
|
|
1597
|
-
"type": "object",
|
|
1598
|
-
"properties": {
|
|
1599
|
-
"auth": {
|
|
1600
|
-
"type": "object",
|
|
1601
|
-
"properties": {
|
|
1602
|
-
"autologout": {
|
|
1603
|
-
"description": "Autologout feature configuration",
|
|
1604
|
-
"type": "object",
|
|
1605
|
-
"properties": {
|
|
1606
|
-
"enabled": {
|
|
1607
|
-
"description": "Enable or disable the autologout feature",
|
|
1608
|
-
"visibility": "frontend",
|
|
1609
|
-
"type": "boolean"
|
|
1610
|
-
},
|
|
1611
|
-
"idleTimeoutMinutes": {
|
|
1612
|
-
"description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
|
|
1613
|
-
"visibility": "frontend",
|
|
1614
|
-
"type": "number"
|
|
1615
|
-
},
|
|
1616
|
-
"promptBeforeIdleSeconds": {
|
|
1617
|
-
"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.",
|
|
1618
|
-
"visibility": "frontend",
|
|
1619
|
-
"type": "number"
|
|
1620
|
-
},
|
|
1621
|
-
"useWorkerTimers": {
|
|
1622
|
-
"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.",
|
|
1623
|
-
"visibility": "frontend",
|
|
1624
|
-
"type": "boolean"
|
|
1625
|
-
},
|
|
1626
|
-
"logoutIfDisconnected": {
|
|
1627
|
-
"description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
|
|
1628
|
-
"visibility": "frontend",
|
|
1629
|
-
"type": "boolean"
|
|
1630
|
-
}
|
|
1631
|
-
}
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
}
|
|
1635
|
-
},
|
|
1636
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1637
|
-
}
|
|
1638
1593
|
}
|
|
1639
1594
|
],
|
|
1640
1595
|
"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 platform 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.
|
|
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 platform 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.5a486dfb.js"></script><script defer="defer" src="/static/module-material-ui.e26d0f76.js"></script><script defer="defer" src="/static/module-lodash.fa492ce2.js"></script><script defer="defer" src="/static/module-date-fns.b8b6c380.js"></script><script defer="defer" src="/static/module-material-table.dc2e7a78.js"></script><script defer="defer" src="/static/module-react-dom.c3454ade.js"></script><script defer="defer" src="/static/module-react-router.fc2430de.js"></script><script defer="defer" src="/static/module-react-router-dom.6a4a6115.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.d66821d2.js"></script><script defer="defer" src="/static/module-zod.9e0f365e.js"></script><script defer="defer" src="/static/module-i18next.db8a27ed.js"></script><script defer="defer" src="/static/vendor.5a486dfb.js"></script><script defer="defer" src="/static/main.5a486dfb.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([[1032],{27597:function(z,g,t){var e,E=t(71600),R=t(34590);e={value:!0},g.Z=void 0;var l=R(t(2784)),f=E(t(50175)),L=(0,f.default)(l.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");g.Z=L},58985:function(z,g,t){t.d(g,{t:function(){return E}});var e=t(2784);function E(R=!1){const l=(0,e.useRef)(R),f=(0,e.useCallback)(()=>l.current,[]);return(0,e.useEffect)(()=>(l.current=!0,()=>{l.current=!1}),[]),f}},15277:function(z,g,t){var e,E,R;(function(l,f){if(!0)E=[g,t(2784),t(13980)],e=f,R=typeof e=="function"?e.apply(g,E):e,R!==void 0&&(z.exports=R);else var L})(void 0,function(l,f,L){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var M=Z(f),d=Z(L);function Z(a){return a&&a.__esModule?a:{default:a}}function c(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c=function(r){return typeof r}:c=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},c(a)}function T(a,o){if(a==null)return{};var r=v(a,o),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(i=0;i<s.length;i++)n=s[i],!(o.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(a,n)&&(r[n]=a[n])}return r}function v(a,o){if(a==null)return{};var r={},n=Object.keys(a),i,s;for(s=0;s<n.length;s++)i=n[s],!(o.indexOf(i)>=0)&&(r[i]=a[i]);return r}function j(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}function W(a,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}function B(a,o,r){return o&&W(a.prototype,o),r&&W(a,r),a}function y(a,o){return o&&(c(o)==="object"||typeof o=="function")?o:O(a)}function D(a){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},D(a)}function O(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function x(a,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(o&&o.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),o&&p(a,o)}function p(a,o){return p=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},p(a,o)}function b(a,o,r){return o in a?Object.defineProperty(a,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[o]=r,a}var $=1e-4,I=function(o,r){return Math.abs(o-r)<$},m=function(a){x(o,a);function o(){var r,n;j(this,o);for(var i=arguments.length,s=new Array(i),P=0;P<i;P++)s[P]=arguments[P];return n=y(this,(r=D(o)).call.apply(r,[this].concat(s))),b(O(n),"onResize",function(){n.rafId&&window.cancelAnimationFrame(n.rafId),n.rafId=window.requestAnimationFrame(n.update.bind(O(n)))}),b(O(n),"onToggled",function(C){typeof n.props.onToggled=="function"&&setTimeout(function(){return n.props.onToggled(C)},0)}),b(O(n),"onTruncated",function(){typeof n.props.onTruncated=="function"&&setTimeout(function(){return n.props.onTruncated()},0)}),b(O(n),"onCalculated",function(){typeof n.props.onCalculated=="function"&&setTimeout(function(){return n.props.onCalculated()},0)}),b(O(n),"update",function(){var C=window.getComputedStyle(n.scope),K=[C["font-weight"],C["font-style"],C["font-size"],C["font-family"],C["letter-spacing"]].join(" ");n.canvas.font=K,n.forceUpdate()}),n}return B(o,[{key:"componentDidMount",value:function(){var n=document.createElement("canvas"),i=document.createDocumentFragment(),s=window.getComputedStyle(this.scope),P=[s["font-weight"],s["font-style"],s["font-size"],s["font-family"]].join(" ");i.appendChild(n),this.canvas=n.getContext("2d"),this.canvas.font=P,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(n){return this.canvas.measureText(n).width}},{key:"getRenderText",value:function(){var n=this.props,i=n.containerClassName,s=n.element,P=n.line,C=n.onCalculated,K=n.onTruncated,w=n.onToggled,u=n.text,F=n.textElement,S=n.textTruncateChild,J=n.truncateText,tt=n.maxCalculateTimes,V=T(n,["containerClassName","element","line","onCalculated","onTruncated","onToggled","text","textElement","textTruncateChild","truncateText","maxCalculateTimes"]),H=this.scope.getBoundingClientRect().width;if(H===0)return null;var q=this.measureWidth(u);if(H>q||I(H,q))return this.onToggled(!1),(0,f.createElement)(F,V,u);var G="";if(S&&typeof S.type=="string"){var _=S.type;(_.indexOf("span")>=0||_.indexOf("a")>=0)&&(G=S.props.children)}for(var h=1,N=u.length,A="",k=0,U=0,X=P,Y=0,Q=!1,rt=!1,et=0,nt=-1,ot="",at=0;X-- >0;){for(ot=X?"":J+(G?" "+G:"");h<=N;)if(A=u.substr(U,h),Y=this.measureWidth(A+ot),Y<H)k=u.indexOf(" ",h+1),k===-1?(h+=1,Q=!1):(Q=!0,h=k);else{do{if(at++>=tt)break;A=u.substr(U,h),X||h--,A[A.length-1]===" "&&(A=u.substr(U,h-1)),Q?(nt=A.lastIndexOf(" "),nt>-1?(h=nt,X&&h++,A=u.substr(U,h)):(h--,A=u.substr(U,h))):(h--,A=u.substr(U,h)),Y=this.measureWidth(A+ot)}while((Y>H||I(Y,H))&&A.length>0);U+=h;break}if(h>=N){U=N;break}Q&&!rt&&u.substr(et,h).indexOf(" ")===-1&&(rt=u.substr(et,h).indexOf(" ")===-1,X--),et=h+1}return U===N?(this.onToggled(!1),(0,f.createElement)(F,V,u)):(this.onTruncated(),this.onToggled(!0),M.default.createElement("span",V,(0,f.createElement)(F,V,u.substr(0,U)+J+" "),S))}},{key:"render",value:function(){var n=this,i=this.props,s=i.element,P=i.text,C=i.style,K=C===void 0?{}:C,w=i.containerClassName,u=i.line,F=i.onCalculated,S=i.onTruncated,J=i.onToggled,tt=i.textElement,V=i.textTruncateChild,H=i.truncateText,q=i.maxCalculateTimes,G=T(i,["element","text","style","containerClassName","line","onCalculated","onTruncated","onToggled","textElement","textTruncateChild","truncateText","maxCalculateTimes"]),_=K.fontWeight,h=K.fontStyle,N=K.fontSize,A=K.fontFamily,k=this.scope&&u?this.getRenderText():(0,f.createElement)(tt,G,P),U={ref:function(Y){n.scope=Y},className:w,style:{overflow:"hidden",fontWeight:_,fontStyle:h,fontSize:N,fontFamily:A}};return this.scope&&this.onCalculated(),(0,f.createElement)(s,U,k)}}]),o}(f.Component);b(m,"propTypes",{containerClassName:d.default.string,element:d.default.string,line:d.default.oneOfType([d.default.number,d.default.bool]),onCalculated:d.default.func,onTruncated:d.default.func,onToggled:d.default.func,text:d.default.string,textElement:d.default.elementType,textTruncateChild:d.default.node,truncateText:d.default.string,maxCalculateTimes:d.default.number}),b(m,"defaultProps",{element:"div",line:1,text:"",textElement:"span",truncateText:"\u2026",maxCalculateTimes:10}),l.default=m,z.exports=l.default})},59119:function(z,g,t){t.d(g,{O:function(){return Z}});var e=t(52322),E=t(79692),R=t(80030),l=t(2784),f=t(15277),L=t.n(f),M=t(58985);const d=(0,E.Z)({container:{overflow:"visible !important"}},{name:"BackstageOverflowTooltip"});function Z(c){const[T,v]=(0,l.useState)(!1),j=(0,M.t)(),W=d(),B=D=>{j()&&v(D)};var y;return(0,e.jsx)(R.ZP,{title:(y=c.title)!==null&&y!==void 0?y:c.text||"",placement:c.placement,disableHoverListener:!T,children:(0,e.jsx)(L(),{text:c.text,line:c.line,onToggled:B,containerClassName:W.container})})}},1546:function(z,g,t){t.d(g,{r:function(){return a}});var e=t(52322),E=t(94339),R=t(14503),l=t(24579),f=t(32552),L=t(85256),M=t(79692),d=t(15459),Z=t(72779),c=t.n(Z),T=t(2784),v=t(62774),j=t(90436),W=t(27597),B=t(98864);const y=(0,M.Z)(o=>({root:{maxWidth:"fit-content",padding:o.spacing(2,2,2,2.5)},boxTitle:{margin:0,color:o.palette.textSubtle},arrow:{color:o.palette.textSubtle}}),{name:"BackstageBottomLink"});function D(o){const{link:r,title:n,onClick:i}=o,s=y();return(0,e.jsxs)(v.Z,{children:[(0,e.jsx)(L.Z,{}),(0,e.jsx)(B.rU,{to:r,onClick:i,underline:"none",children:(0,e.jsxs)(v.Z,{display:"flex",alignItems:"center",className:s.root,children:[(0,e.jsx)(v.Z,{className:s.boxTitle,fontWeight:"fontWeightBold",m:1,children:(0,e.jsx)(j.Z,{children:(0,e.jsx)("strong",{children:n})})}),(0,e.jsx)(W.Z,{className:s.arrow})]})})]})}var O=t(15929),x=t(74359);const p=o=>{const{slackChannel:r}=o;if(r){if(typeof r=="string")return(0,e.jsxs)(j.Z,{children:["Please contact ",r," for help."]});if(!r.href)return(0,e.jsxs)(j.Z,{children:["Please contact ",r.name," for help."]})}else return null;return(0,e.jsx)(O.Q,{to:r.href,variant:"contained",children:r.name})},b=class extends T.Component{componentDidCatch(r,n){console.error(`ErrorBoundary, error: ${r}, info: ${n}`),this.setState({error:r,errorInfo:n})}render(){const{slackChannel:r,children:n}=this.props,{error:i}=this.state;return i?(0,e.jsx)(x.y,{title:"Something Went Wrong",error:i,children:(0,e.jsx)(p,{slackChannel:r})}):n}constructor(r){super(r),this.state={error:void 0,errorInfo:void 0}}},$=(0,M.Z)(o=>({noPadding:{padding:0,"&:last-child":{paddingBottom:0}},header:{padding:o.spacing(2,2,2,2.5)},headerTitle:{fontWeight:o.typography.fontWeightBold},headerSubheader:{paddingTop:o.spacing(1)},headerAvatar:{},headerAction:{},headerContent:{},subheader:{display:"flex"}}),{name:"BackstageInfoCard"}),I=(0,d.Z)(o=>({root:{display:"inline-block",padding:o.spacing(8,8,0,0),float:"right"}}),{name:"BackstageInfoCardCardActionsTopRight"})(R.Z),m={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 a(o){const{title:r,subheader:n,divider:i=!0,deepLink:s,slackChannel:P,errorBoundaryProps:C,variant:K,children:w,headerStyle:u,headerProps:F,icon:S,action:J,actionsClassName:tt,actions:V,cardClassName:H,actionsTopRight:q,className:G,noPadding:_,titleTypographyProps:h}=o,N=$();let A={},k={};K&&K.split(/[\s]+/g).forEach(Q=>{A={...A,...m.card[Q]},k={...k,...m.cardContent[Q]}});const U=()=>!n&&!S?null:(0,e.jsxs)("div",{className:N.headerSubheader,"data-testid":"info-card-subheader",children:[n&&(0,e.jsx)("div",{className:N.subheader,children:n}),S]}),X=C||(P?{slackChannel:P}:{});return(0,e.jsx)(E.Z,{style:A,className:G,children:(0,e.jsxs)(b,{...X,children:[r&&(0,e.jsx)(f.Z,{classes:{root:N.header,title:N.headerTitle,subheader:N.headerSubheader,avatar:N.headerAvatar,action:N.headerAction,content:N.headerContent},title:r,subheader:U(),action:J,style:{...u},titleTypographyProps:h,...F}),q&&(0,e.jsx)(I,{children:q}),i&&(0,e.jsx)(L.Z,{}),(0,e.jsx)(l.Z,{className:c()(H,{[N.noPadding]:_}),style:k,children:w}),V&&(0,e.jsx)(R.Z,{className:tt,children:V}),s&&(0,e.jsx)(D,{...s})]})})}},48283:function(z,g,t){t.d(g,{u:function(){return B}});var e=t(52322),E=t(79692),R=t(2784),l=t(8709),f=t(59119),L=t(75435),M=t(86540),d=t(84719),Z=t(51194);const c=Object.freeze({createEntityRefColumn(y){const{defaultKind:D}=y;function O(x){var p;return((p=x.metadata)===null||p===void 0?void 0:p.title)||(0,M.$)(x,{defaultKind:D})}return{title:"Name",highlight:!0,customFilterAndSearch(x,p){return O(p).includes(x)},customSort(x,p){return O(x).localeCompare(O(p))},render:x=>{var p;return(0,e.jsx)(d.d,{entityRef:x,defaultKind:D,title:(p=x.metadata)===null||p===void 0?void 0:p.title})}}},createEntityRelationColumn(y){const{title:D,relation:O,defaultKind:x,filter:p}=y;function b(I){return(0,L.h)(I,O,p)}function $(I){return b(I).map(m=>(0,M.$)(m,{defaultKind:x})).join(", ")}return{title:D,customFilterAndSearch(I,m){return $(m).includes(I)},customSort(I,m){return $(I).localeCompare($(m))},render:I=>(0,e.jsx)(Z.r,{entityRefs:b(I),defaultKind:x})}},createOwnerColumn(){return this.createEntityRelationColumn({title:"Owner",relation:l.S4,defaultKind:"group"})},createDomainColumn(){return this.createEntityRelationColumn({title:"Domain",relation:l.cz,defaultKind:"domain",filter:{kind:"domain"}})},createSystemColumn(){return this.createEntityRelationColumn({title:"System",relation:l.cz,defaultKind:"system",filter:{kind:"system"}})},createMetadataDescriptionColumn(){return{title:"Description",field:"metadata.description",render:y=>(0,e.jsx)(f.O,{text:y.metadata.description,placement:"bottom-start",line:2})}},createSpecLifecycleColumn(){return{title:"Lifecycle",field:"spec.lifecycle"}},createSpecTypeColumn(){return{title:"Type",field:"spec.type"}}}),T=[c.createEntityRefColumn({defaultKind:"system"}),c.createDomainColumn(),c.createOwnerColumn(),c.createMetadataDescriptionColumn()],v=[c.createEntityRefColumn({defaultKind:"component"}),c.createSystemColumn(),c.createOwnerColumn(),c.createSpecTypeColumn(),c.createSpecLifecycleColumn(),c.createMetadataDescriptionColumn()];var j=t(34378);const W=(0,E.Z)(y=>({empty:{padding:y.spacing(2),display:"flex",justifyContent:"center"}})),B=y=>{const{entities:D,title:O,emptyContent:x,variant:p="gridItem",columns:b,tableOptions:$={}}=y,I=W(),m={minWidth:"0",width:"100%"};return p==="gridItem"&&(m.height="calc(100% - 10px)"),(0,e.jsx)(j.i,{columns:b,title:O,style:m,emptyContent:x&&(0,e.jsx)("div",{className:I.empty,children:x}),options:{search:!1,paging:!1,actionsColumnIndex:-1,padding:"dense",draggable:!1,...$},data:D})};B.columns=c,B.systemEntityColumns=T,B.componentEntityColumns=v},96641:function(z,g,t){t.d(g,{X2:function(){return c},ce:function(){return T},h$:function(){return d}});var e=t(52322),E=t(74314),R=t(72388),l=t(29651),f=t(68993),L=t(2784);const M=(0,l.CT)("entity-context"),d=v=>{const{children:j,entity:W,loading:B,error:y,refresh:D}=v,O={entity:W,loading:B,error:y,refresh:D};return(0,e.jsx)(M.Provider,{value:(0,f.E)({1:O}),children:(0,e.jsx)(R.fC,{attributes:{...W?{entityRef:(0,E.eE)(W)}:void 0},children:j})})},Z=v=>_jsx(d,{entity:v.entity,loading:!Boolean(v.entity),error:void 0,refresh:void 0,children:v.children});function c(){const v=(0,l.Vt)("entity-context");if(!v)throw new Error("Entity context is not available");const j=v.atVersion(1);if(!j)throw new Error("EntityContext v1 not available");if(!j.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:j.entity}}function T(){const v=(0,l.Vt)("entity-context");if(!v)throw new Error("Entity context is not available");const j=v.atVersion(1);if(!j)throw new Error("EntityContext v1 not available");const{entity:W,loading:B,error:y,refresh:D}=j;return{entity:W,loading:B,error:y,refresh:D}}},81032:function(z,g,t){t.r(g),t.d(g,{DependsOnResourcesCard:function(){return L}});var e=t(52322),E=t(8709),R=t(2784),l=t(19431),f=t(30083);function L(M){const{variant:d="gridItem",title:Z="Depends on resources",columns:c=l.xp,tableOptions:T={}}=M;return(0,e.jsx)(f.f,{variant:d,title:Z,entityKind:"Resource",relationType:E.nP,columns:c,emptyMessage:"No resource is a dependency of this component",emptyHelpLink:l.AE,asRenderableEntities:l.$c,tableOptions:T})}},30083:function(z,g,t){t.d(g,{f:function(){return I}});var e=t(52322),E=t(90436),R=t(96641),l=t(74314),f=t(44394),L=t(64279),M=t(88624);function d(m,a){var o,r;const n=a==null||(o=a.type)===null||o===void 0?void 0:o.toLocaleLowerCase("en-US"),i=a==null||(r=a.kind)===null||r===void 0?void 0:r.toLocaleLowerCase("en-US"),s=(0,f.h_)(M.A),{loading:P,value:C,error:K}=(0,L.default)(async()=>{var w;const u=(w=m.relations)===null||w===void 0?void 0:w.filter(S=>(!n||S.type.toLocaleLowerCase("en-US")===n)&&(!i||(0,l.of)(S.targetRef).kind===i));if(!(u!=null&&u.length))return[];const{items:F}=await s.getEntitiesByRefs({entityRefs:u.map(S=>S.targetRef)});return F.filter(S=>Boolean(S))},[m,n,i]);return{entities:C,loading:P,error:K}}var Z=t(48283),c=t(2784),T=t(1546),v=t(55015),j=t(79692),W=t(85256),B=t(38402),y=t(49378),D=t(9791),O=t(58033),x=t(74359);const p=(0,j.Z)(m=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:m.spacing(2)},divider:{margin:m.spacing(2)}}),{name:"BackstageResponseErrorPanel"});function b(m){var a;const{title:o,error:r,defaultExpanded:n}=m,i=p();if(r.name!=="ResponseError")return(0,e.jsx)(x.y,{title:o!=null?o:r.message,defaultExpanded:n,error:r});const{body:s,cause:P}=r,{request:C,response:K}=s,w=`${K.statusCode}: ${P.name}`,u=C&&`${C.method} ${C.url}`,F=P.message.replace(/\\n/g,`
|
|
1
|
+
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[1032],{27597:function(z,g,t){var e,E=t(71600),R=t(34590);e={value:!0},g.Z=void 0;var l=R(t(2784)),f=E(t(50175)),L=(0,f.default)(l.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");g.Z=L},58985:function(z,g,t){t.d(g,{t:function(){return E}});var e=t(2784);function E(R=!1){const l=(0,e.useRef)(R),f=(0,e.useCallback)(()=>l.current,[]);return(0,e.useEffect)(()=>(l.current=!0,()=>{l.current=!1}),[]),f}},15277:function(z,g,t){var e,E,R;(function(l,f){if(!0)E=[g,t(2784),t(13980)],e=f,R=typeof e=="function"?e.apply(g,E):e,R!==void 0&&(z.exports=R);else var L})(void 0,function(l,f,L){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var M=Z(f),d=Z(L);function Z(a){return a&&a.__esModule?a:{default:a}}function c(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c=function(r){return typeof r}:c=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},c(a)}function T(a,o){if(a==null)return{};var r=v(a,o),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(i=0;i<s.length;i++)n=s[i],!(o.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(a,n)&&(r[n]=a[n])}return r}function v(a,o){if(a==null)return{};var r={},n=Object.keys(a),i,s;for(s=0;s<n.length;s++)i=n[s],!(o.indexOf(i)>=0)&&(r[i]=a[i]);return r}function j(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}function W(a,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}function B(a,o,r){return o&&W(a.prototype,o),r&&W(a,r),a}function y(a,o){return o&&(c(o)==="object"||typeof o=="function")?o:O(a)}function D(a){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},D(a)}function O(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function x(a,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(o&&o.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),o&&p(a,o)}function p(a,o){return p=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},p(a,o)}function b(a,o,r){return o in a?Object.defineProperty(a,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[o]=r,a}var $=1e-4,I=function(o,r){return Math.abs(o-r)<$},m=function(a){x(o,a);function o(){var r,n;j(this,o);for(var i=arguments.length,s=new Array(i),P=0;P<i;P++)s[P]=arguments[P];return n=y(this,(r=D(o)).call.apply(r,[this].concat(s))),b(O(n),"onResize",function(){n.rafId&&window.cancelAnimationFrame(n.rafId),n.rafId=window.requestAnimationFrame(n.update.bind(O(n)))}),b(O(n),"onToggled",function(C){typeof n.props.onToggled=="function"&&setTimeout(function(){return n.props.onToggled(C)},0)}),b(O(n),"onTruncated",function(){typeof n.props.onTruncated=="function"&&setTimeout(function(){return n.props.onTruncated()},0)}),b(O(n),"onCalculated",function(){typeof n.props.onCalculated=="function"&&setTimeout(function(){return n.props.onCalculated()},0)}),b(O(n),"update",function(){var C=window.getComputedStyle(n.scope),K=[C["font-weight"],C["font-style"],C["font-size"],C["font-family"],C["letter-spacing"]].join(" ");n.canvas.font=K,n.forceUpdate()}),n}return B(o,[{key:"componentDidMount",value:function(){var n=document.createElement("canvas"),i=document.createDocumentFragment(),s=window.getComputedStyle(this.scope),P=[s["font-weight"],s["font-style"],s["font-size"],s["font-family"]].join(" ");i.appendChild(n),this.canvas=n.getContext("2d"),this.canvas.font=P,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(n){return this.canvas.measureText(n).width}},{key:"getRenderText",value:function(){var n=this.props,i=n.containerClassName,s=n.element,P=n.line,C=n.onCalculated,K=n.onTruncated,w=n.onToggled,u=n.text,F=n.textElement,S=n.textTruncateChild,J=n.truncateText,tt=n.maxCalculateTimes,V=T(n,["containerClassName","element","line","onCalculated","onTruncated","onToggled","text","textElement","textTruncateChild","truncateText","maxCalculateTimes"]),H=this.scope.getBoundingClientRect().width;if(H===0)return null;var q=this.measureWidth(u);if(H>q||I(H,q))return this.onToggled(!1),(0,f.createElement)(F,V,u);var G="";if(S&&typeof S.type=="string"){var _=S.type;(_.indexOf("span")>=0||_.indexOf("a")>=0)&&(G=S.props.children)}for(var h=1,N=u.length,A="",k=0,U=0,X=P,Y=0,Q=!1,rt=!1,et=0,nt=-1,ot="",at=0;X-- >0;){for(ot=X?"":J+(G?" "+G:"");h<=N;)if(A=u.substr(U,h),Y=this.measureWidth(A+ot),Y<H)k=u.indexOf(" ",h+1),k===-1?(h+=1,Q=!1):(Q=!0,h=k);else{do{if(at++>=tt)break;A=u.substr(U,h),X||h--,A[A.length-1]===" "&&(A=u.substr(U,h-1)),Q?(nt=A.lastIndexOf(" "),nt>-1?(h=nt,X&&h++,A=u.substr(U,h)):(h--,A=u.substr(U,h))):(h--,A=u.substr(U,h)),Y=this.measureWidth(A+ot)}while((Y>H||I(Y,H))&&A.length>0);U+=h;break}if(h>=N){U=N;break}Q&&!rt&&u.substr(et,h).indexOf(" ")===-1&&(rt=u.substr(et,h).indexOf(" ")===-1,X--),et=h+1}return U===N?(this.onToggled(!1),(0,f.createElement)(F,V,u)):(this.onTruncated(),this.onToggled(!0),M.default.createElement("span",V,(0,f.createElement)(F,V,u.substr(0,U)+J+" "),S))}},{key:"render",value:function(){var n=this,i=this.props,s=i.element,P=i.text,C=i.style,K=C===void 0?{}:C,w=i.containerClassName,u=i.line,F=i.onCalculated,S=i.onTruncated,J=i.onToggled,tt=i.textElement,V=i.textTruncateChild,H=i.truncateText,q=i.maxCalculateTimes,G=T(i,["element","text","style","containerClassName","line","onCalculated","onTruncated","onToggled","textElement","textTruncateChild","truncateText","maxCalculateTimes"]),_=K.fontWeight,h=K.fontStyle,N=K.fontSize,A=K.fontFamily,k=this.scope&&u?this.getRenderText():(0,f.createElement)(tt,G,P),U={ref:function(Y){n.scope=Y},className:w,style:{overflow:"hidden",fontWeight:_,fontStyle:h,fontSize:N,fontFamily:A}};return this.scope&&this.onCalculated(),(0,f.createElement)(s,U,k)}}]),o}(f.Component);b(m,"propTypes",{containerClassName:d.default.string,element:d.default.string,line:d.default.oneOfType([d.default.number,d.default.bool]),onCalculated:d.default.func,onTruncated:d.default.func,onToggled:d.default.func,text:d.default.string,textElement:d.default.elementType,textTruncateChild:d.default.node,truncateText:d.default.string,maxCalculateTimes:d.default.number}),b(m,"defaultProps",{element:"div",line:1,text:"",textElement:"span",truncateText:"\u2026",maxCalculateTimes:10}),l.default=m,z.exports=l.default})},59119:function(z,g,t){t.d(g,{O:function(){return Z}});var e=t(52322),E=t(79692),R=t(80030),l=t(2784),f=t(15277),L=t.n(f),M=t(58985);const d=(0,E.Z)({container:{overflow:"visible !important"}},{name:"BackstageOverflowTooltip"});function Z(c){const[T,v]=(0,l.useState)(!1),j=(0,M.t)(),W=d(),B=D=>{j()&&v(D)};var y;return(0,e.jsx)(R.ZP,{title:(y=c.title)!==null&&y!==void 0?y:c.text||"",placement:c.placement,disableHoverListener:!T,children:(0,e.jsx)(L(),{text:c.text,line:c.line,onToggled:B,containerClassName:W.container})})}},1546:function(z,g,t){t.d(g,{r:function(){return a}});var e=t(52322),E=t(94339),R=t(14503),l=t(24579),f=t(32552),L=t(85256),M=t(79692),d=t(15459),Z=t(12524),c=t.n(Z),T=t(2784),v=t(62774),j=t(90436),W=t(27597),B=t(98864);const y=(0,M.Z)(o=>({root:{maxWidth:"fit-content",padding:o.spacing(2,2,2,2.5)},boxTitle:{margin:0,color:o.palette.textSubtle},arrow:{color:o.palette.textSubtle}}),{name:"BackstageBottomLink"});function D(o){const{link:r,title:n,onClick:i}=o,s=y();return(0,e.jsxs)(v.Z,{children:[(0,e.jsx)(L.Z,{}),(0,e.jsx)(B.rU,{to:r,onClick:i,underline:"none",children:(0,e.jsxs)(v.Z,{display:"flex",alignItems:"center",className:s.root,children:[(0,e.jsx)(v.Z,{className:s.boxTitle,fontWeight:"fontWeightBold",m:1,children:(0,e.jsx)(j.Z,{children:(0,e.jsx)("strong",{children:n})})}),(0,e.jsx)(W.Z,{className:s.arrow})]})})]})}var O=t(15929),x=t(74359);const p=o=>{const{slackChannel:r}=o;if(r){if(typeof r=="string")return(0,e.jsxs)(j.Z,{children:["Please contact ",r," for help."]});if(!r.href)return(0,e.jsxs)(j.Z,{children:["Please contact ",r.name," for help."]})}else return null;return(0,e.jsx)(O.Q,{to:r.href,variant:"contained",children:r.name})},b=class extends T.Component{componentDidCatch(r,n){console.error(`ErrorBoundary, error: ${r}, info: ${n}`),this.setState({error:r,errorInfo:n})}render(){const{slackChannel:r,children:n}=this.props,{error:i}=this.state;return i?(0,e.jsx)(x.y,{title:"Something Went Wrong",error:i,children:(0,e.jsx)(p,{slackChannel:r})}):n}constructor(r){super(r),this.state={error:void 0,errorInfo:void 0}}},$=(0,M.Z)(o=>({noPadding:{padding:0,"&:last-child":{paddingBottom:0}},header:{padding:o.spacing(2,2,2,2.5)},headerTitle:{fontWeight:o.typography.fontWeightBold},headerSubheader:{paddingTop:o.spacing(1)},headerAvatar:{},headerAction:{},headerContent:{},subheader:{display:"flex"}}),{name:"BackstageInfoCard"}),I=(0,d.Z)(o=>({root:{display:"inline-block",padding:o.spacing(8,8,0,0),float:"right"}}),{name:"BackstageInfoCardCardActionsTopRight"})(R.Z),m={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 a(o){const{title:r,subheader:n,divider:i=!0,deepLink:s,slackChannel:P,errorBoundaryProps:C,variant:K,children:w,headerStyle:u,headerProps:F,icon:S,action:J,actionsClassName:tt,actions:V,cardClassName:H,actionsTopRight:q,className:G,noPadding:_,titleTypographyProps:h}=o,N=$();let A={},k={};K&&K.split(/[\s]+/g).forEach(Q=>{A={...A,...m.card[Q]},k={...k,...m.cardContent[Q]}});const U=()=>!n&&!S?null:(0,e.jsxs)("div",{className:N.headerSubheader,"data-testid":"info-card-subheader",children:[n&&(0,e.jsx)("div",{className:N.subheader,children:n}),S]}),X=C||(P?{slackChannel:P}:{});return(0,e.jsx)(E.Z,{style:A,className:G,children:(0,e.jsxs)(b,{...X,children:[r&&(0,e.jsx)(f.Z,{classes:{root:N.header,title:N.headerTitle,subheader:N.headerSubheader,avatar:N.headerAvatar,action:N.headerAction,content:N.headerContent},title:r,subheader:U(),action:J,style:{...u},titleTypographyProps:h,...F}),q&&(0,e.jsx)(I,{children:q}),i&&(0,e.jsx)(L.Z,{}),(0,e.jsx)(l.Z,{className:c()(H,{[N.noPadding]:_}),style:k,children:w}),V&&(0,e.jsx)(R.Z,{className:tt,children:V}),s&&(0,e.jsx)(D,{...s})]})})}},48283:function(z,g,t){t.d(g,{u:function(){return B}});var e=t(52322),E=t(79692),R=t(2784),l=t(8709),f=t(59119),L=t(75435),M=t(86540),d=t(76277),Z=t(51194);const c=Object.freeze({createEntityRefColumn(y){const{defaultKind:D}=y;function O(x){var p;return((p=x.metadata)===null||p===void 0?void 0:p.title)||(0,M.$)(x,{defaultKind:D})}return{title:"Name",highlight:!0,customFilterAndSearch(x,p){return O(p).includes(x)},customSort(x,p){return O(x).localeCompare(O(p))},render:x=>{var p;return(0,e.jsx)(d.d,{entityRef:x,defaultKind:D,title:(p=x.metadata)===null||p===void 0?void 0:p.title})}}},createEntityRelationColumn(y){const{title:D,relation:O,defaultKind:x,filter:p}=y;function b(I){return(0,L.h)(I,O,p)}function $(I){return b(I).map(m=>(0,M.$)(m,{defaultKind:x})).join(", ")}return{title:D,customFilterAndSearch(I,m){return $(m).includes(I)},customSort(I,m){return $(I).localeCompare($(m))},render:I=>(0,e.jsx)(Z.r,{entityRefs:b(I),defaultKind:x})}},createOwnerColumn(){return this.createEntityRelationColumn({title:"Owner",relation:l.S4,defaultKind:"group"})},createDomainColumn(){return this.createEntityRelationColumn({title:"Domain",relation:l.cz,defaultKind:"domain",filter:{kind:"domain"}})},createSystemColumn(){return this.createEntityRelationColumn({title:"System",relation:l.cz,defaultKind:"system",filter:{kind:"system"}})},createMetadataDescriptionColumn(){return{title:"Description",field:"metadata.description",render:y=>(0,e.jsx)(f.O,{text:y.metadata.description,placement:"bottom-start",line:2})}},createSpecLifecycleColumn(){return{title:"Lifecycle",field:"spec.lifecycle"}},createSpecTypeColumn(){return{title:"Type",field:"spec.type"}}}),T=[c.createEntityRefColumn({defaultKind:"system"}),c.createDomainColumn(),c.createOwnerColumn(),c.createMetadataDescriptionColumn()],v=[c.createEntityRefColumn({defaultKind:"component"}),c.createSystemColumn(),c.createOwnerColumn(),c.createSpecTypeColumn(),c.createSpecLifecycleColumn(),c.createMetadataDescriptionColumn()];var j=t(34378);const W=(0,E.Z)(y=>({empty:{padding:y.spacing(2),display:"flex",justifyContent:"center"}})),B=y=>{const{entities:D,title:O,emptyContent:x,variant:p="gridItem",columns:b,tableOptions:$={}}=y,I=W(),m={minWidth:"0",width:"100%"};return p==="gridItem"&&(m.height="calc(100% - 10px)"),(0,e.jsx)(j.i,{columns:b,title:O,style:m,emptyContent:x&&(0,e.jsx)("div",{className:I.empty,children:x}),options:{search:!1,paging:!1,actionsColumnIndex:-1,padding:"dense",draggable:!1,...$},data:D})};B.columns=c,B.systemEntityColumns=T,B.componentEntityColumns=v},96641:function(z,g,t){t.d(g,{X2:function(){return c},ce:function(){return T},h$:function(){return d}});var e=t(52322),E=t(74314),R=t(72388),l=t(29651),f=t(68993),L=t(2784);const M=(0,l.CT)("entity-context"),d=v=>{const{children:j,entity:W,loading:B,error:y,refresh:D}=v,O={entity:W,loading:B,error:y,refresh:D};return(0,e.jsx)(M.Provider,{value:(0,f.E)({1:O}),children:(0,e.jsx)(R.fC,{attributes:{...W?{entityRef:(0,E.eE)(W)}:void 0},children:j})})},Z=v=>_jsx(d,{entity:v.entity,loading:!Boolean(v.entity),error:void 0,refresh:void 0,children:v.children});function c(){const v=(0,l.Vt)("entity-context");if(!v)throw new Error("Entity context is not available");const j=v.atVersion(1);if(!j)throw new Error("EntityContext v1 not available");if(!j.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:j.entity}}function T(){const v=(0,l.Vt)("entity-context");if(!v)throw new Error("Entity context is not available");const j=v.atVersion(1);if(!j)throw new Error("EntityContext v1 not available");const{entity:W,loading:B,error:y,refresh:D}=j;return{entity:W,loading:B,error:y,refresh:D}}},81032:function(z,g,t){t.r(g),t.d(g,{DependsOnResourcesCard:function(){return L}});var e=t(52322),E=t(8709),R=t(2784),l=t(19431),f=t(30083);function L(M){const{variant:d="gridItem",title:Z="Depends on resources",columns:c=l.xp,tableOptions:T={}}=M;return(0,e.jsx)(f.f,{variant:d,title:Z,entityKind:"Resource",relationType:E.nP,columns:c,emptyMessage:"No resource is a dependency of this component",emptyHelpLink:l.AE,asRenderableEntities:l.$c,tableOptions:T})}},30083:function(z,g,t){t.d(g,{f:function(){return I}});var e=t(52322),E=t(90436),R=t(96641),l=t(74314),f=t(44394),L=t(64279),M=t(88624);function d(m,a){var o,r;const n=a==null||(o=a.type)===null||o===void 0?void 0:o.toLocaleLowerCase("en-US"),i=a==null||(r=a.kind)===null||r===void 0?void 0:r.toLocaleLowerCase("en-US"),s=(0,f.h_)(M.A),{loading:P,value:C,error:K}=(0,L.default)(async()=>{var w;const u=(w=m.relations)===null||w===void 0?void 0:w.filter(S=>(!n||S.type.toLocaleLowerCase("en-US")===n)&&(!i||(0,l.of)(S.targetRef).kind===i));if(!(u!=null&&u.length))return[];const{items:F}=await s.getEntitiesByRefs({entityRefs:u.map(S=>S.targetRef)});return F.filter(S=>Boolean(S))},[m,n,i]);return{entities:C,loading:P,error:K}}var Z=t(48283),c=t(2784),T=t(1546),v=t(55015),j=t(79692),W=t(85256),B=t(38402),y=t(49378),D=t(9791),O=t(58033),x=t(74359);const p=(0,j.Z)(m=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:m.spacing(2)},divider:{margin:m.spacing(2)}}),{name:"BackstageResponseErrorPanel"});function b(m){var a;const{title:o,error:r,defaultExpanded:n}=m,i=p();if(r.name!=="ResponseError")return(0,e.jsx)(x.y,{title:o!=null?o:r.message,defaultExpanded:n,error:r});const{body:s,cause:P}=r,{request:C,response:K}=s,w=`${K.statusCode}: ${P.name}`,u=C&&`${C.method} ${C.url}`,F=P.message.replace(/\\n/g,`
|
|
2
2
|
`),S=(a=P.stack)===null||a===void 0?void 0:a.replace(/\\n/g,`
|
|
3
3
|
`),J=JSON.stringify(s,void 0,2);return(0,e.jsxs)(x.y,{title:o!=null?o:r.message,defaultExpanded:n,error:{name:w,message:F,stack:S},children:[u&&(0,e.jsxs)(B.Z,{alignItems:"flex-start",children:[(0,e.jsx)(y.Z,{classes:{secondary:i.text},primary:"Request",secondary:C?`${u}`:void 0}),(0,e.jsx)(O.b,{text:u})]}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(W.Z,{component:"li",className:i.divider}),(0,e.jsx)(B.Z,{alignItems:"flex-start",children:(0,e.jsx)(y.Z,{classes:{secondary:i.text},primary:"Full Error as JSON"})}),(0,e.jsx)(D.O,{language:"json",text:J,showCopyCodeButton:!0})]})]})}var $=t(98864);function I(m){const{variant:a="gridItem",title:o,columns:r,entityKind:n,relationType:i,emptyMessage:s,emptyHelpLink:P,asRenderableEntities:C,tableOptions:K={}}=m,{entity:w}=(0,R.X2)(),{entities:u,loading:F,error:S}=d(w,{type:i,kind:n});return F?(0,e.jsx)(T.r,{variant:a,title:o,children:(0,e.jsx)(v.E,{})}):S?(0,e.jsx)(T.r,{variant:a,title:o,children:(0,e.jsx)(b,{error:S})}):(0,e.jsx)(Z.u,{title:o,variant:a,emptyContent:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)(E.Z,{variant:"body1",children:s}),(0,e.jsx)(E.Z,{variant:"body2",children:(0,e.jsx)($.rU,{to:P,children:"Learn how to change this."})})]}),columns:r,entities:C(u||[]),tableOptions:K})}},19431:function(z,g,t){t.d(g,{$c:function(){return M},AE:function(){return R},D:function(){return l},G5:function(){return Z},Uc:function(){return L},_v:function(){return d},el:function(){return c},we:function(){return E},xp:function(){return f}});var e=t(48283);const E=[e.u.columns.createEntityRefColumn({defaultKind:"component"}),e.u.columns.createOwnerColumn(),e.u.columns.createSpecTypeColumn(),e.u.columns.createSpecLifecycleColumn(),e.u.columns.createMetadataDescriptionColumn()],R="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component",l=T=>T,f=[e.u.columns.createEntityRefColumn({defaultKind:"resource"}),e.u.columns.createOwnerColumn(),e.u.columns.createSpecTypeColumn(),e.u.columns.createSpecLifecycleColumn(),e.u.columns.createMetadataDescriptionColumn()],L="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource",M=T=>T,d=[e.u.columns.createEntityRefColumn({defaultKind:"system"}),e.u.columns.createOwnerColumn(),e.u.columns.createMetadataDescriptionColumn()],Z="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system",c=T=>T}}]);})();
|
|
4
4
|
|
|
5
|
-
//# sourceMappingURL=1032.
|
|
5
|
+
//# sourceMappingURL=1032.140ea063.chunk.js.map
|